libgnomeprint build fails on alpha with the following error: ations -o .libs/generate generate.o -Wl,--export-dynamic ../libgnomeprint/.libs/libgnomeprint-2.so /usr/lib/libart_lgpl_2.so /usr/lib/libpango-1.0.so /usr/lib/libbonobo-2.so /usr/lib/libORBitCosNaming-2.so /usr/lib/libbonobo-activation.so /usr/lib/libORBit-2.so /usr/lib/libxml2.so -lm /usr/lib/liblinc.so -lssl -lcrypto /usr/lib/libgmodule-2.0.so -ldl /usr/lib/libgobject-2.0.so /usr/lib/libgthread-2.0.so -lpthread /usr/lib/libglib-2.0.so /usr/lib/libfreetype.so /usr/lib/libpopt.so ../libgnomeprint/.libs/libgnomeprint-2.so: undefined reference to `deflate' ../libgnomeprint/.libs/libgnomeprint-2.so: undefined reference to `deflateInit_' ../libgnomeprint/.libs/libgnomeprint-2.so: undefined reference to `deflateEnd' collect2: ld returned 1 exit status make[2]: *** [generate] Error 1 make[2]: Leaving directory `/var/tmp/portage/libgnomeprint-1.116.0/work/libgnomeprint-1.116.0/tests' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/libgnomeprint-1.116.0/work/libgnomeprint-1.116.0' make: *** [all-recursive-am] Error 2 !!! ERROR: gnome-base/libgnomeprint-1.116.0 failed. !!! Function src_compile, Line 33, Exitcode 2 !!! compile failure
Looks like a missing libz link (-lz) to me. Why this pop ups so sudden is a bit of a mystery to me. What libpng are you using ?
I'm using libpng 1.2.4. It is the one that built from inside libgnomeprint.
I have been getting these undefined references to zlib functiosn alot lately too... to fix this one i edited /usr/lib/pkgconfig/libxml-2.0.pc and added a -lz like: Libs: -L${libdir} -lxml2 -lm -lz mabey the libxml2 ebuild needs to be patched? im using gentoo 1.4?? with /etc/make.profile -> ../usr/portage/profiles/default-1.0
This is affecting the x86 architecture as well. Patching libxml-2.0.pc seems to work, though..
So has libxml2 been patched? If it has I'll try and re-emerge this.
A workaround is to set CFLAGS="$CFLAGS -lz". This compiled fine for me after I did that.
*** Bug 11786 has been marked as a duplicate of this bug. ***
Same error on a PPC604/Gentoo1.4 Patching /usr/lib/pkgconfig/libxml-2.0.pc as in comment #3 fixed bug.
This is an old bug...it's fixed as I can now build Gnome 2.2 on alpha. Please mark resolved.
Great. Sorry I didn't see this earlier (it was assigned to bjb, I should really look through his bugs).