Subject: help with gdal
To: None <tech-pkg@netbsd.org>
From: MLH <mlh@goathill.org>
List: tech-pkg
Date: 02/23/2006 16:01:18
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=link  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=		gdal-1.3.1
XCATEGORIES=		geography
XMASTER_SITES=		http://www.gdal.org/dl/
X
XMAINTAINER=		INSERT_YOUR_MAIL_ADDRESS_HERE
XHOMEPAGE=		http://www.gdal.org/dl/
XCOMMENT=		Geospatial Data Abstraction Library
X
XGNU_CONFIGURE=          yes
XUSE_TOOLS+=             gmake
X
XMAKEFILE=               GNUmakefile
XMAKE_ENV+=              INSTALLED_LIBPQ=1
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) = 2783c4c0d2a83a34f4c5c6a8efe41e816ba396fb
XRMD160 (gdal-1.3.1.tar.gz) = 5967608e6e1c9f0af8698fcffb58eab4dcdd518d
XSize (gdal-1.3.1.tar.gz) = 6856011 bytes
END-of-gdal/distinfo
exit