libz fails to link to program

torsten torsten at inetw.net
Wed Feb 5 06:29:47 PST 2003


Hello,

I'm trying to build the word metafile backend for cups.
libwmf

With lfs 4.0, gcc-3.2, everything is default (per LFS book).

The error is "undefined reference to `gzputs'".  It appears to
fail linking in zlib.

grep gzputs /lib/libz.so
Binary file /lib/libz.so matches
toshy:root:/usr/local/src/sources/tmp/libwmf-0.2.8#  ldconfig -p | grep
libz
        libz.so.1.1.4 (libc6) => /lib/libz.so.1.1.4
        libz.so.1 (libc6) => /lib/libz.so.1
        libz.so (libc6) => /lib/libz.so
        libz.so (libc6) => /usr/lib/libz.so
toshy:root:/usr/local/src/sources/tmp/libwmf-0.2.8# 


Torsten


-----------

make[1]: Entering directory `/usr/local/src/sources/tmp/libwmf-0.2.8'
Making all in .
make[2]: Entering directory `/usr/local/src/sources/tmp/libwmf-0.2.8'
make[2]: Leaving directory `/usr/local/src/sources/tmp/libwmf-0.2.8'
Making all in src
make[2]: Entering directory
`/usr/local/src/sources/tmp/libwmf-0.2.8/src'
Making all in extra
make[3]: Entering directory
`/usr/local/src/sources/tmp/libwmf-0.2.8/src/extra'
Making all in trio
make[4]: Entering directory
`/usr/local/src/sources/tmp/libwmf-0.2.8/src/extra/trio'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory
`/usr/local/src/sources/tmp/libwmf-0.2.8/src/extra/trio'
Making all in gd
make[4]: Entering directory
`/usr/local/src/sources/tmp/libwmf-0.2.8/src/extra/gd'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory
`/usr/local/src/sources/tmp/libwmf-0.2.8/src/extra/gd'
make[4]: Entering directory
`/usr/local/src/sources/tmp/libwmf-0.2.8/src/extra'
make[4]: Nothing to be done for `all-am'.
make[4]: Leaving directory
`/usr/local/src/sources/tmp/libwmf-0.2.8/src/extra'
make[3]: Leaving directory
`/usr/local/src/sources/tmp/libwmf-0.2.8/src/extra'
Making all in ipa
make[3]: Entering directory
`/usr/local/src/sources/tmp/libwmf-0.2.8/src/ipa'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory
`/usr/local/src/sources/tmp/libwmf-0.2.8/src/ipa'
Making all in .
make[3]: Entering directory
`/usr/local/src/sources/tmp/libwmf-0.2.8/src'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory `/usr/local/src/sources/tmp/libwmf-0.2.8/src'
Making all in convert
make[3]: Entering directory
`/usr/local/src/sources/tmp/libwmf-0.2.8/src/convert'
/bin/sh ../../libtool --mode=link gcc  -g -O2 -I/usr/local/include
-I/usr/local/include/freetype2  -I/usr/X11R6/include      
-L../../src/.libs   -L/usr/local/lib -lfreetype  -L/usr/X11R6/lib  -lSM
-lICE -lX11  -lexpat -ljpeg -lpng -lz -lm  -o wmf2eps  wmf2eps.o
../libwmf.la ../libwmflite.la 
gcc -g -O2 -I/usr/local/include -I/usr/local/include/freetype2
-I/usr/X11R6/include -o .libs/wmf2eps wmf2eps.o 
-L/usr/local/src/sources/tmp/libwmf-0.2.8/src/.libs -L/usr/local/lib
-L/usr/X11R6/lib ../.libs/libwmf.so
/usr/local/src/sources/tmp/libwmf-0.2.8/src/.libs/libwmflite.so
/usr/local/lib/libfreetype.so -lSM -lICE -lX11
/usr/local/lib/libexpat.so /usr/local/lib/libjpeg.so -lpng -lz
../.libs/libwmflite.so -lm -Wl,--rpath -Wl,/usr/local/lib
../.libs/libwmf.so: undefined reference to `gzputs'
collect2: ld returned 1 exit status
make[3]: *** [wmf2eps] Error 1
make[3]: Leaving directory
`/usr/local/src/sources/tmp/libwmf-0.2.8/src/convert'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/local/src/sources/tmp/libwmf-0.2.8/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/src/sources/tmp/libwmf-0.2.8'
make: *** [all-recursive-am] Error 2
toshy:root:/usr/local/src/sources/tmp/libwmf-0.2.8# grep gzputs
/lib/libz.so
Binary file /lib/libz.so matches
toshy:root:/usr/local/src/sources/tmp/libwmf-0.2.8# 
-- 
Unsubscribe: send email to listar at linuxfromscratch.org
and put 'unsubscribe lfs-dev' in the subject header of the message



More information about the lfs-dev mailing list