Subject: Re: help with gdal
To: None <pkgsrc-users@netbSD.org>
From: MLH <mlh@goathill.org>
List: pkgsrc-users
Date: 02/23/2006 23:24:00
(Moved this discussion to the new maillist)
Berndt Josef Wulf wrote:
> On Friday 24 February 2006 08:31, MLH wrote:
>> I'm attempting to create a pkg for gdal. It wants to pull in postgres
>> (so I added the buildlink) which I don't really want, and Python,
>> which I really need. Right now it is failing to find 'lfind' which
>> is apparently part of the libcompat library, but I'm not sure hwo
>> to handle these issues. How is lfind dealt with? I can't find a
>> reference to it anywhere in relation to pkgsrc.
> G'day,
>
> According to the manpages, lfind is part of libc and requires <search.h>
> headerfile. Not sure why it doesn't find it on your system.
>
> LSEARCH(3) NetBSD Library Functions Manual
> LSEARCH(3)
>
> NAME
> lsearch, lfind -- linear searching routines
>
> LIBRARY
> Standard C Library (libc, -lc)
> [...]
Maybe that was in NetBSD 3.0? I'm running NetBSD 2.1_STABLE :
LSEARCH(3) NetBSD Library Functions Manual LSEARCH(3)
NAME
lsearch, lfind - linear searching routines
LIBRARY
Compatibility Library (libcompat, -lcompat)
SYNOPSIS
char *
lsearch(const void *key, const void *base, size_t *nelp, size_t width,
int (*compar)(void *, void *));
char *
lfind(const void *key, const void *base, size_t *nelp, size_t width,
int (*compar)(void *, void *));
DESCRIPTION
These interfaces were obsolete before they were written. They are avail-
able from the compatibility library, libcompat.
...
>
> There is a gdal package in pkgsrc-wip.sf.net which you may want to take a
> look at.
Thanks, but it doesn't build either.
configure: checking whether we should include thread/mutex support......
thread safe support disabled.
checking for deflateInit_ in -lz... yes
using pre-installed libz
checking for PostgreSQL... ./configure.lineno: 21972: Syntax error: Bad fd
number
*** Error code 2
It tries to include postgres support even though I tried to disable
it, and I don't need or want it.