[Nix-dev] nix - libtool interactions?

Bryce L Nordgren bnordgren at gmail.com
Fri Feb 10 19:02:07 CET 2012


I'm currently trying to get postgis 2.0.0 alpha 4 (w/raster and topology
support) packaged on nix. I'm hitting something about libtool's behavior
that I just don't understand, and it seems pretty nix specific.  I'm
posting here to see if there's a "well known" libtool/nix quirk that will
short-circuit some debugging. The failing command looks like this on the
output (note how "libtool" adds a bunch of stuff to the input command line;
also note that the -L option it adds for the jpeg library is missing the
final .../lib part of the path):

/bin/sh ../../libtool --mode=link gcc -g -O2  -fPIC -DPIC  -Wall
-Wmissing-prototypes -I../rt_core
-I/tmp/nix-build-l7ngkb3xc63pz0h5i5faawmmkgjb4756-postgis-2.0.0alpha4.drv-0/postgis-2.0.0alpha4/liblwgeom
-I/nix/store/0m3hxnk515yw2bnrqb69aqw0hikl51l9-gdal-1.9.0/include
-I/nix/store/rwpz194cnjlwpgq7cqv8510krrv0gy3b-geos-3.3.2/include
raster2pgsql.o ../rt_core/librtcore.a ../rt_core/librtcore.a
../../liblwgeom/liblwgeom.la-L/nix/store/0m3hxnk515yw2bnrqb69aqw0hikl51l9-gdal-1.9.0/lib
-lgdal
-L/nix/store/rwpz194cnjlwpgq7cqv8510krrv0gy3b-geos-3.3.2/lib -lgeos_c -lm
-o raster2pgsql
libtool: link: gcc -g -O2 -fPIC -DPIC -Wall -Wmissing-prototypes
-I../rt_core
-I/tmp/nix-build-l7ngkb3xc63pz0h5i5faawmmkgjb4756-postgis-2.0.0alpha4.drv-0/postgis-2.0.0alpha4/liblwgeom
-I/nix/store/0m3hxnk515yw2bnrqb69aqw0hikl51l9-gdal-1.9.0/include
-I/nix/store/rwpz194cnjlwpgq7cqv8510krrv0gy3b-geos-3.3.2/include
raster2pgsql.o -o .libs/raster2pgsql  ../rt_core/librtcore.a
../../liblwgeom/.libs/liblwgeom.so
-L/nix/store/rwpz194cnjlwpgq7cqv8510krrv0gy3b-geos-3.3.2/lib -lproj
-L/nix/store/0m3hxnk515yw2bnrqb69aqw0hikl51l9-gdal-1.9.0/lib
/nix/store/0m3hxnk515yw2bnrqb69aqw0hikl51l9-gdal-1.9.0/lib/libgdal.so
-L/nix/store/q9dpk0kdyfql0m72bp4bcmccbh5mgifg-libjpeg-8c
-L/nix/store/7lp85113g806y94gwi1zs2n8lgv8v92d-libgeotiff-1.2.4/lib
-L/nix/store/ywf340c821pmiz4aqjhgn9s36ynnmswz-libtiff-3.9.4/lib
-L/nix/store/lr40r8rgvnf18zbfpwz9r6i02q3p1ghy-postgresql-9.0.5/lib
-L/nix/store/pv49msy9ylg9zhhf35fa9lkssgb8d5qx-zlib-1.2.5
-L/nix/store/pv49msy9ylg9zhhf35fa9lkssgb8d5qx-zlib-1.2.5/lib
-L/nix/store/1nrrsszgpgwv16m5ki879wn18vx0ksas-mysql-5.1.54/lib/mysql
-L/nix/store/lyp9mjsaamp7qsrnl115j75zhwm712xp-openssl-1.0.0e/lib/ -lgeotiff
/nix/store/ywf340c821pmiz4aqjhgn9s36ynnmswz-libtiff-3.9.4/lib/libtiff.so
-lc -ljpeg
/nix/store/q9dpk0kdyfql0m72bp4bcmccbh5mgifg-libjpeg-8c/lib/libjpeg.so -lpq
-lpthread -lrt -ldl
/nix/store/1nrrsszgpgwv16m5ki879wn18vx0ksas-mysql-5.1.54/lib/mysql/libmysqlclient.so
-lz -lcrypt -lnsl -lssl -lcrypto
/nix/store/rwpz194cnjlwpgq7cqv8510krrv0gy3b-geos-3.3.2/lib/libgeos_c.so
/nix/store/rwpz194cnjlwpgq7cqv8510krrv0gy3b-geos-3.3.2/lib/libgeos.so
/nix/store/3r8kfi33y3lbrsvlx8vzwm74h8178y35-gcc-4.5.1/lib/../lib64/libstdc++.so
-lm -Wl,-rpath
-Wl,/nix/store/23la8n18479vkrg6ybd90gaw2z9d62yj-postgis-2.0.0alpha4/lib
-Wl,-rpath -Wl,/nix/store/0m3hxnk515yw2bnrqb69aqw0hikl51l9-gdal-1.9.0/lib
-Wl,-rpath
-Wl,/nix/store/ywf340c821pmiz4aqjhgn9s36ynnmswz-libtiff-3.9.4/lib
-Wl,-rpath -Wl,/nix/store/q9dpk0kdyfql0m72bp4bcmccbh5mgifg-libjpeg-8c/lib
-Wl,-rpath
-Wl,/nix/store/1nrrsszgpgwv16m5ki879wn18vx0ksas-mysql-5.1.54/lib/mysql
-Wl,-rpath -Wl,/nix/store/rwpz194cnjlwpgq7cqv8510krrv0gy3b-geos-3.3.2/lib
-Wl,-rpath
-Wl,/nix/store/3r8kfi33y3lbrsvlx8vzwm74h8178y35-gcc-4.5.1/lib/../lib64
/nix/store/9b3q62czfh5zld9zg2p8sbk65hkbvpzi-binutils-2.21/bin/ld: cannot
find -ljpeg


The jpeg library is actually a dependency for gdal, not a direct dependency
of postgis.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.science.uu.nl/pipermail/nix-dev/attachments/20120210/a70e626d/attachment.html 


More information about the nix-dev mailing list