View previous topic :: View next topic |
Author |
Message |
fs1 n00b
Joined: 18 Oct 2005 Posts: 4 Location: Austria | Vienna
|
Posted: Sun Mar 05, 2006 5:13 pm Post subject: apmd-3.2.1_p4 update failed with gcc 3.4.5 [SOLVED] |
|
|
Hi!
I recently updated my gentoo with emerge -auDNv world. Gcc was updated from 3.4.4 to 3.4.5. Later apmd should also get updated, but there occurs an error:
Code: | <snip>
>>> Unpacking source...
>>> Unpacking apmd_3.2.1.orig.tar.gz to /var/tmp/portage/apmd-3.2.1_p4/work
>>> Unpacking apmd_3.2.1-4.diff.gz to /var/tmp/portage/apmd-3.2.1_p4/work
* Applying apmd_3.2.1-4.diff ... [ ok ]
>>> Source unpacked.
libtool --quiet --mode=compile gcc -c -O -g -Wall -pipe -I. -I/usr/src/linux/in clude -I/usr/src/linux-2.2/include -I /usr/src/linux-2.0/include -DVERSION=\"3.2 .1\" -DDEFAULT_PROXY_NAME=\"/etc/apmd_proxy\" apmlib.c
libtool --quiet --mode=link gcc -o libapm.la apmlib.lo -rpath /usr/lib -version- info 1:0
i686-pc-linux-gnu-g++: /usr/lib/gcc/i686-pc-linux-gnu/3.4.4/../../../crti.o: No such file or directory
i686-pc-linux-gnu-g++: /usr/lib/gcc/i686-pc-linux-gnu/3.4.4/crtbeginS.o: No such file or directory
i686-pc-linux-gnu-g++: /usr/lib/gcc/i686-pc-linux-gnu/3.4.4/crtendS.o: No such f ile or directory
i686-pc-linux-gnu-g++: /usr/lib/gcc/i686-pc-linux-gnu/3.4.4/../../../crtn.o: No such file or directory
make: *** [libapm.la] Error 1
!!! ERROR: sys-apps/apmd-3.2.1_p4 failed.
!!! Function src_compile, Line 50, Exitcode 2
!!! emake failed
!!! If you need support, post the topmost build error, NOT this status message.
|
The problem is: The path is not correct, because of the 3.4.4/../ There is no directory with this name (but there exists one 3.4.5!). Here is a little more code, it should represent how I tried to get the reason.
Code: | laptop2 apmd-3.2.1.orig # libtool --mode=link gcc -o libapm.la apmlib.lo --version-info 1:0
rm -fr .libs/libapm.a .libs/libapm.la
i686-pc-linux-gnu-ar cru .libs/libapm.a .libs/apmlib.o
i686-pc-linux-gnu-ranlib .libs/libapm.a
creating libapm.la
(cd .libs && rm -f libapm.la && ln -s ../libapm.la libapm.la)
laptop2 apmd-3.2.1.orig # libtool --mode=link gcc -o libapm.la apmlib.lo -rpath /usr/lib --version-info 1:0
rm -fr .libs/libapm.a .libs/libapm.la
i686-pc-linux-gnu-g++ -shared -nostdlib /usr/lib/gcc/i686-pc-linux-gnu/3.4.4/../../../crti.o /usr/lib/gcc/i686-pc-linux-gnu/3.4.4/crtbeginS.o .libs/apmlib.o -L/usr/lib/gcc/i686-pc-linux-gnu/3.4.4 -L/usr/lib/gcc/i686-pc-linux-gnu/3.4.4/../../../../i686-pc-linux-gnu/lib -L/usr/lib/gcc/i686-pc-linux-gnu/3.4.4/../../.. -lstdc++ -lm -lc -lgcc_s /usr/lib/gcc/i686-pc-linux-gnu/3.4.4/crtendS.o /usr/lib/gcc/i686-pc-linux-gnu/3.4.4/../../../crtn.o -Wl,-soname -Wl,libapm.so.0 -o .libs/libapm.so.0.0.0
i686-pc-linux-gnu-g++: /usr/lib/gcc/i686-pc-linux-gnu/3.4.4/../../../crti.o: No such file or directory
i686-pc-linux-gnu-g++: /usr/lib/gcc/i686-pc-linux-gnu/3.4.4/crtbeginS.o: No such file or directory
i686-pc-linux-gnu-g++: /usr/lib/gcc/i686-pc-linux-gnu/3.4.4/crtendS.o: No such file or directory
i686-pc-linux-gnu-g++: /usr/lib/gcc/i686-pc-linux-gnu/3.4.4/../../../crtn.o: No such file or directory
|
Without -rpath /usr/lib everything is ok. But why not with it?
Once more:
Code: | laptop2 apmd-3.2.1.orig # ls /usr/lib/gcc/i686-pc-linux-gnu/
3.4.5
|
Last edited by fs1 on Sun Mar 05, 2006 8:28 pm; edited 1 time in total |
|
Back to top |
|
|
nesl247 Veteran
Joined: 15 Jun 2004 Posts: 1614 Location: Florida
|
Posted: Sun Mar 05, 2006 7:15 pm Post subject: |
|
|
Code: | # emerge libtool
# fix_libtool_files.sh 3.4.4 | I am not sure that the 3.4.4 is the correct version number, but this should at least give you a start. |
|
Back to top |
|
|
fs1 n00b
Joined: 18 Oct 2005 Posts: 4 Location: Austria | Vienna
|
Posted: Sun Mar 05, 2006 7:48 pm Post subject: |
|
|
Good idea, but I had no success with it.
There occurs the same error again.
Any other hints? |
|
Back to top |
|
|
fs1 n00b
Joined: 18 Oct 2005 Posts: 4 Location: Austria | Vienna
|
Posted: Sun Mar 05, 2006 8:27 pm Post subject: apmd-3.2.1_p4 update failed with gcc 3.4.5 [SOLVED] |
|
|
I am sorry. It was my laziness. I didn't emerged libtool again. I did not see that it is necessary to re-emerge libtool after a gcc update. But why doesn't emerge re-emerge libtool automatically after an gcc update? |
|
Back to top |
|
|
nesl247 Veteran
Joined: 15 Jun 2004 Posts: 1614 Location: Florida
|
Posted: Sun Mar 05, 2006 8:58 pm Post subject: |
|
|
Because I don't think you can have portage automatically re-emerge a package. The most they could do was put an ewarn in. |
|
Back to top |
|
|
fs1 n00b
Joined: 18 Oct 2005 Posts: 4 Location: Austria | Vienna
|
Posted: Sun Mar 05, 2006 9:10 pm Post subject: |
|
|
Isn't it possible to realize it with the dependencies? |
|
Back to top |
|
|
nesl247 Veteran
Joined: 15 Jun 2004 Posts: 1614 Location: Florida
|
Posted: Sun Mar 05, 2006 9:12 pm Post subject: |
|
|
Dependencies are only checked to make sure the package is installed. |
|
Back to top |
|
|
Maedhros Bodhisattva
Joined: 14 Apr 2004 Posts: 5511 Location: Durham, UK
|
|
Back to top |
|
|
|