Subject: Re: help with gdal
To: None <mlh@goathill.org>
From: Berndt Josef Wulf <wulf@ping.net.au>
List: tech-pkg
Date: 02/24/2006 10:51:49
--nextPart11640755.nkPvrANL2m
Content-Type: text/plain;
  charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

G'day,

According to the manpages, lfind is part of libc and requires <search.h>=20
headerfile. Not sure why it doesn't find it on your system.=20


LSEARCH(3)              NetBSD Library Functions Manual             LSEARCH=
(3)

NAME
     lsearch, lfind -- linear searching routines

LIBRARY
     Standard C Library (libc, -lc)

SYNOPSIS
     #include <search.h>

     void *
     lsearch(const void *key, void *base, size_t *nelp, size_t width,
         int (*compar)(const void *, const void *));

     void *
     lfind(const void *key, const void *base, size_t *nelp, size_t width,
         int (*compar)(const void *, const void *));
[...]

There is a gdal package in pkgsrc-wip.sf.net which you may want to take a l=
ook=20
at.

cheerio Berndt

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.
>
> /bin/sh ../libtool --mode=3Dlink  c++  ogrinfo.o ../libgdal.la -o ogrinfo
> c++ ogrinfo.o -o .libs/ogrinfo  ../.libs/libgdal.so -L/opt/pkg/lib
> /usr/pkg/lib/ libpq.so -L/usr/pkg/lib -lssl -lcrypto -lcrypt -lresolv
> /usr/pkg/lib/libz.so -lr t -lintl -Wl,--rpath -Wl,/usr/pkg/lib
> ../.libs/libgdal.so: undefined reference to `lfind'
> gmake[1]: *** [ogrinfo] Error 1
> gmake[1]: Leaving directory
> `/usr/pkgsrc/geography/gdal/work.enki/gdal-1.3.1/ogr '
> gmake: *** [ogr-apps] Error 2
> *** Error code 2
>
> Stop.
> make: stopped in /usr/pkgsrc/geography/gdal
>
> Thanks
>
> ------------------------------------------------
> # This is a shell archive.  Save it in a file, remove anything before
> # this line, and then unpack it by entering "sh file".  Note, it may
> # create directories; files and directories will be owned by you and
> # have default permissions.
> #
> # This archive contains:
> #
> #	gdal
> #	gdal/Makefile
> #	gdal/PLIST
> #	gdal/distinfo
> #
> echo c - gdal
> mkdir -p gdal > /dev/null 2>&1
> echo x - gdal/Makefile
> sed 's/^X//' >gdal/Makefile << 'END-of-gdal/Makefile'
> X# $NetBSD$
> X#
> X
> XDISTNAME=3D		gdal-1.3.1
> XCATEGORIES=3D		geography
> XMASTER_SITES=3D		http://www.gdal.org/dl/
> X
> XMAINTAINER=3D		INSERT_YOUR_MAIL_ADDRESS_HERE
> XHOMEPAGE=3D		http://www.gdal.org/dl/
> XCOMMENT=3D		Geospatial Data Abstraction Library
> X
> XGNU_CONFIGURE=3D          yes
> XUSE_TOOLS+=3D             gmake
> X
> XMAKEFILE=3D               GNUmakefile
> XMAKE_ENV+=3D              INSTALLED_LIBPQ=3D1
> X
> X.include "../../lang/python/extension.mk"
> X.include "../../math/py-Numeric/buildlink3.mk"
> X.include "../../math/py-numarray/buildlink3.mk"
> X.include "../../mk/pgsql.buildlink3.mk"
> X.include "../../mk/bsd.pkg.mk"
> X
> END-of-gdal/Makefile
> echo x - gdal/PLIST
> sed 's/^X//' >gdal/PLIST << 'END-of-gdal/PLIST'
> X@comment $NetBSD$
> END-of-gdal/PLIST
> echo x - gdal/distinfo
> sed 's/^X//' >gdal/distinfo << 'END-of-gdal/distinfo'
> X$NetBSD$
> X
> XSHA1 (gdal-1.3.1.tar.gz) =3D 2783c4c0d2a83a34f4c5c6a8efe41e816ba396fb
> XRMD160 (gdal-1.3.1.tar.gz) =3D 5967608e6e1c9f0af8698fcffb58eab4dcdd518d
> XSize (gdal-1.3.1.tar.gz) =3D 6856011 bytes
> END-of-gdal/distinfo
> exit

--nextPart11640755.nkPvrANL2m
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (NetBSD)

iD8DBQBD/lGscUIHpeIRpjERAqjWAKDDNgRqNmmrNJpoJ99YoyRgblpQHQCgryPz
UQtGlXwYTGncReRU+lQmOhU=
=Ra9j
-----END PGP SIGNATURE-----

--nextPart11640755.nkPvrANL2m--