Summary: | dev-libs/fcgi-2.4.0-r1 emerge fails | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Botykai Zsolt <zsolt.botykai> |
Component: | Current packages | Assignee: | Hans de Graaff <graaff> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | a.nielsen, flameeyes, idler921 |
Priority: | High | ||
Version: | 2006.1 | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 302477 | ||
Attachments: |
fcgi full emerge log
log of fcgi install |
Description
Botykai Zsolt
2006-12-11 05:07:35 UTC
Created attachment 103795 [details]
fcgi full emerge log
(In reply to comment #0) > Just wanted to play with rails & fcgi. But emergeing rails fails on fcgi, so I > had tried to emerge fcgi only: > > botykaizs ~ # emerge -uDv fcgi > Calculating dependencies... done! > > >>> Emerging (1 of 1) dev-libs/fcgi-2.4.0-r1 to / > ... > i686-pc-linux-gnu-gcc -march=prescott -O2 -pipe -Wall -o .libs/log-dump > log-dump.o ../libfcgi/.libs/libfcgi.so -lm -lnsl > creating log-dump > i686-pc-linux-gnu-g++ -march=prescott -O2 -pipe -o .libs/echo-cpp echo-cpp.o > ../libfcgi/.libs/libfcgi++.so -lfcgi > /var/tmp/portage/dev-libs/fcgi-2.4.0-r1/work/fcgi-2.4.0/libfcgi/.libs/libfcgi.so > -lnsl > /usr/lib/gcc/i686-pc-linux-gnu/4.1.1/../../../../i686-pc-linux-gnu/bin/ld: > cannot find -lfcgi > collect2: ld returned 1 exit status > make[2]: *** [echo-cpp] Error 1 > make[2]: Leaving directory > `/var/tmp/portage/dev-libs/fcgi-2.4.0-r1/work/fcgi-2.4.0/examples' > make[1]: *** [all-recursive] Error 1 > make[1]: Leaving directory > `/var/tmp/portage/dev-libs/fcgi-2.4.0-r1/work/fcgi-2.4.0' > make: *** [all] Error 2 > > !!! ERROR: dev-libs/fcgi-2.4.0-r1 failed. > > # emerge --info > Portage 2.1.2_rc3-r2 (default-linux/x86/2006.1/desktop, gcc-4.1.1, > glibc-2.5-r0, 2.6.18-gentoo-r2 i686) > ================================================================= > System uname: 2.6.18-gentoo-r2 i686 Intel(R) Pentium(R) D CPU 3.00GHz > Gentoo Base System version 1.12.6 > Last Sync: Mon, 11 Dec 2006 01:47:01 +0000 > ccache version 2.4 [enabled] > dev-java/java-config: 1.3.7, 2.0.30 > dev-lang/python: 2.4.4 > dev-python/pycrypto: 2.0.1-r5 > dev-util/ccache: 2.4-r6 > dev-util/confcache: 0.4.2-r1 > sys-apps/sandbox: 1.2.18.1 > sys-devel/autoconf: 2.13, 2.61 > sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10 > sys-devel/binutils: 2.17 > sys-devel/gcc-config: 1.3.14 > sys-devel/libtool: 1.5.22 > virtual/os-headers: 2.6.17-r2 > ACCEPT_KEYWORDS="x86 ~x86" > ARCH="x86" > AUTOCLEAN="yes" > CAMERAS="canon" > CBUILD="i686-pc-linux-gnu" > CCACHE_SIZE="512M" > CFLAGS="-march=prescott -O2 -pipe" > CHOST="i686-pc-linux-gnu" Could you please try to disable ccache and report back ? Yes, but only on wednesday. Created attachment 106326 [details]
log of fcgi install
Not successed, and I did a revdep-rebuild before. New log attached. OK, I just commited an updated ebuild (fcgi-2.4.0-r2) to the tree, hopefully that will fix your issues. Please wait up the usual time (~45mins) and then try to remerge it. Thaqnks, it works now! I get the same error as above, with dev-libs/fcgi-2.4.1_pre0311112127. Disabling parallel build with MAKEOPTS=-j1 makes it work. (In reply to comment #8) > I get the same error as above, with dev-libs/fcgi-2.4.1_pre0311112127. > Disabling parallel build with MAKEOPTS=-j1 makes it work. > I can't seem to reproduce this even with very high -j settings, so I'm not sure what is going on here. It might be useful to see the build log, so could you please include that? Hey Hans, I just hit this and I have a solution for you :) Check out libfcgi/Makefile.am, -lfcgi is linked in libfcgi++.la through _LDFLAGS: libfcgi___la_LDFLAGS = -lfcgi -rpath @libdir@ which is totally bogus for an automake/libtool-based build system. Replace the line above with libfcgi___la_LIBADD = libfcgi.la and the problem will disappear! By the way the libfcgi++ library does not get installed but just built to build the examples, since I don't think you install the examples either you could also just disable the examples directory from the main Makefile.am SUBDIRS variable and it won't even be built (even better). HTH! @Diego: nope, that won't work: The "-rpath" is needed otherwise the installation of libfcgi++.la fails (which gets installed with fcgi-2.4.1_pre...). Just hit this problem myself. MAKEOPTS=-j1 fixed it for me. I don't understand this bug at all. It hit me twice in a row with MAKEOPTS=-j4, then worked with MAKEOPTS=-j1 now it works fine with MAKEOPTS=-j4 again. *** Bug 289143 has been marked as a duplicate of this bug. *** rpath is not used to install libfcgi++… Hans, may I just go on and fix the hell out of this? Thanks. (In reply to comment #11) > @Diego: nope, that won't work: The "-rpath" is needed otherwise the > installation of libfcgi++.la fails (which gets installed with > fcgi-2.4.1_pre...). Does it get installed _at all_? It's still an EXTRA_LTLIBRARIES target in 2.4.1_pre0910052249 … And EXTRA_LTLIBRARIES don't get installed… Oh god they double-declare it… Okay fixed, the double-declaration causes libfcgi++ to fail install, so I've dropped that also and now it works. |