Summary: | gnustep-base/gnustep-base-1.10.2_pre20041203 failed to find libffi | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Cedric Godin <cedric.godin> |
Component: | Current packages | Assignee: | Gentoo Gnustep project <gnustep> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | High | ||
Version: | unspecified | ||
Hardware: | x86 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Cedric Godin
2004-12-05 08:21:57 UTC
What is the ouput of `emerge -pv gnustep-base`? Actually, disregard that: You have "gcc-libffi" in your USE flags. Remove it -- this is not a bug. You're "libffi" is from the seperate package "dev-libs/libffi". If you want to use gcc-libffi, you need to emerge gcc with the gcj USE flag or >=gcc-3.4.3-r1 with the objc USE flag (or gcj), but this ebuild is still in testing, so I wouldn't. You can just continue to not use the gcc-libffi use flag and everything should work fine. Sorry, but I tried with this use flag after a first error. I tried it thinking that i should solve my problem. I retried without it and still have the error. the emerge gnustep-base -pv gives : endymion root # emerge gnustep-base -pv These are the packages that I would merge, in order: Calculating dependencies ...done! [ebuild N ] gnustep-base/gnustep-base-1.10.2_pre20041203 -debug +doc -gcc-libffi -profile 0 kB of course all the dep are built (and libffi was a dep). should i reopen the bug ? If dev-libs/libffi was installed, at worst, you may have to 'env-update', 'source /etc/profile' and try to emerge again. Please let me know if that works. ... and an `ldconfig` couldn't hurt, but shouldn't necessarily be needed. already did it but retried with same result. Hrm. Well, there are a couple more things we can try. First, clean out temp files: 'rm -Rf /var/tmp/portage/*', then try again (Making sure the gcc-libffi is off). Second, if dev-libs/libffi is installed, what is the output of: `ls /usr/include/libffi` and `ls /usr/lib/libffi` Third, what does /etc/ld.so.conf looks like? Fourth, when you did the 'env-update' and 'source /etc/profile', did you try to do the emerge in the same terminal as the one you executed those commands, or no? 1st I checked in the configure.log and found configure:13864: checking "FFI library usage" configure:13891: gcc -o conftest -mcpu=athlon-xp -Os -pipe -fgnu-runtime -I/usr/GNUstep/System/Library/Headers -Wl,-O1 -L/usr/GNUstep/System/Library/Libraries/gnu-gnu -gnu -L/usr/GNUstep/System/Library/Libraries conftest.c -lffi -ldl -lz >&5 `-mcpu=' is deprecated. Use `-mtune=' or '-march=' instead. cc1: warning: command line option "-fgnu-runtime" is valid for ObjC/ObjC++ but not for C /usr/lib/gcc/i686-pc-linux-gnu/3.4.1/../../../../i686-pc-linux-gnu/bin/ld: cannot find -lffi collect2: ld returned 1 exit status (after a `ldconfig, env-update, source /etc/profile`,I tried `gcc -lffi` and same error) then I rm /var/tmp/portage/* and tried again a `gcc -lffi` and same result. 2nd ls /usr/lib/libffi /usr/lib/libffi /usr/lib/libffi/libffi.a /usr/lib/libffi/libffi.la /usr/lib/libffi/libffi.so.3.0.0 /usr/lib/libffi/libffi.so /usr/lib/libffi/libffi.so.3 ls /usr/include/libffi ffi.h ffitarget.h 3rd /etc/ld.so.conf : /usr/local/lib /usr/lib/gcc-lib/i686-pc-linux-gnu/3.4.1 /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4 /usr/lib/opengl/nvidia/lib /usr/lib/MozillaFirefox /usr/X11R6/lib64 /usr/X11R6/lib /opt/blackdown-jdk-1.4.2.01/jre/lib/i386/ /opt/blackdown-jdk-1.4.2.01/jre/lib/i386/native_threads/ /opt/blackdown-jdk-1.4.2.01/jre/lib/i386/classic/ /usr/qt/3/lib /usr/kde/3.3/lib /usr/games/lib /usr/lib/libffi /usr/lib/libstdc++-v3/ 4th : Once yes, twice not ;-) Once in a screen terminal, once in a normal one. OK I tried smthing and it worked : i just ln -s the /usr/lib/libffi/libffi.so* in /usr/lib/ So I think the bug is related to gcc (ld) and not gnustep or libffi that need to create those symlinks. fixed |