[Nix-dev] libtool + linking

Armijn Hemel armijn at uulug.nl
Sun Mar 27 23:27:11 CEST 2005


hi,

I'm trying to make a Nix-expression for RPM. RPM needs zlib, so I have
zlib as one of the buildInputs. The configure script for RPM finds zlib,
but during linking it fails:

gcc -g -O2 -fPIC -DPIC -D_GNU_SOURCE -D_REENTRANT -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wno-char-subscripts -D_GNU_SOURCE -D_REENTRANT -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wno-char-subscripts -o file -static file.o  ./.libs/libfmagic.a -lz
/nix/store/d50ef8fb6b99a53b9e3b800f3f7eba84-binutils-2.15/bin/ld: cannot find -lz
make[5]: Leaving directory `/tmp/nix-24915-0/rpm-4.3.2/file/src'
make[4]: *** [all] Error 2

etc.

I'm sure someone has encountered this before and has a solution.

thanks in advance!

armijn

-- 
 ---------------------------------------------------------------------------
  armijn at uulug.nl | http://www.uulug.nl/ | UULug: Utrecht Linux Users Group
 ---------------------------------------------------------------------------



More information about the nix-dev mailing list