Summary: | sys-libs/zlib-1.2.4: ./configure disables shared libs building when gcc issues warnings | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Jan-Erik Skata <jeskata> |
Component: | [OLD] Library | Assignee: | Gentoo's Team for Core System packages <base-system> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | eva |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | x86 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | archive of tmpdir for zlib-1.2.4 build failure |
Description
Jan-Erik Skata
2010-03-21 16:28:39 UTC
Try FEATURES="-distcc" emerge -1 zlib because a user had this same problem today, and it helped him; ./configure disabled shared libs building with distcc. Also, attach full build.log. After hitting this for a couple of weeks, I finally took some time to check what was going on. It seems that ccache and distcc are getting in the way of detection script of zlib, working in $WORKDIR after a build failure, here is what happens: # export PATH=/usr/lib/ccache/bin:/usr/lib/portage/bin/ebuild-helpers:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/usr/i686-pc-linux-gnu/gcc-bin/4.4.3 # LC_ALL="C" ./configure --shared --prefix=/usr --libdir=/usr/lib Checking for shared library support... Tested i686-pc-linux-gnu-gcc -w -c -O2 -march=pentium2 -fomit-frame-pointer -pipe ztest24475.c ccache: failed to create /home/eva/.ccache (No such file or directory) Tested cc -shared -O2 -march=pentium2 -fomit-frame-pointer -pipe -o ztest24475.so ztest24475.o gcc: ztest24475.o: No such file or directory gcc: no input files No shared library support; try without defining CC and CFLAGS Building static library libz.a version 1.2.4 with i686-pc-linux-gnu-gcc. # export PATH=/usr/lib/distcc/bin:/usr/lib/portage/bin/ebuild-helpers:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/usr/i686-pc-linux-gnu/gcc-bin/4.4.3 # LC_ALL="C" ./configure --shared --prefix=/usr --libdir=/usr/libChecking for shared library support... Tested i686-pc-linux-gnu-gcc -w -c -O2 -march=pentium2 -fomit-frame-pointer -pipe -fPIC ztest27026.c distcc[27142] Warning: INCLUDE_SERVER_PORT not set - did you forget to run under 'pump'? distcc[27142] (dcc_build_somewhere) Warning: failed to get includes from include server, preprocessing locally Tested i686-pc-linux-gnu-gcc -shared -Wl,-soname,libz.so.1,--version-script,zlib.map -O2 -march=pentium2 -fomit-frame-pointer -pipe -fPIC -o ztest27026.so ztest27026.o No shared library support; try without defining CC and CFLAGS Building static library libz.a version 1.2.4 with i686-pc-linux-gnu-gcc. setting both obvsiouly fails as well. Building like this: # FEATURES="-ccache -distcc" emerge -1v zlib is a nice success. Created attachment 227531 [details]
archive of tmpdir for zlib-1.2.4 build failure
should be fixed now, thanks http://sources.gentoo.org/sys-libs/zlib/zlib-1.2.4.ebuild?r1=1.3&r2=1.4 |