Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
apmd-3.2.1_p4 update failed with gcc 3.4.5 [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Duplicate Threads
View previous topic :: View next topic  
Author Message
fs1
n00b
n00b


Joined: 18 Oct 2005
Posts: 4
Location: Austria | Vienna

PostPosted: Sun Mar 05, 2006 5:13 pm    Post subject: apmd-3.2.1_p4 update failed with gcc 3.4.5 [SOLVED] Reply with quote

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
View user's profile Send private message
nesl247
Veteran
Veteran


Joined: 15 Jun 2004
Posts: 1614
Location: Florida

PostPosted: Sun Mar 05, 2006 7:15 pm    Post subject: Reply with quote

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
View user's profile Send private message
fs1
n00b
n00b


Joined: 18 Oct 2005
Posts: 4
Location: Austria | Vienna

PostPosted: Sun Mar 05, 2006 7:48 pm    Post subject: Reply with quote

Good idea, but I had no success with it.
There occurs the same error again.
Any other hints?
Back to top
View user's profile Send private message
fs1
n00b
n00b


Joined: 18 Oct 2005
Posts: 4
Location: Austria | Vienna

PostPosted: Sun Mar 05, 2006 8:27 pm    Post subject: apmd-3.2.1_p4 update failed with gcc 3.4.5 [SOLVED] Reply with quote

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
View user's profile Send private message
nesl247
Veteran
Veteran


Joined: 15 Jun 2004
Posts: 1614
Location: Florida

PostPosted: Sun Mar 05, 2006 8:58 pm    Post subject: Reply with quote

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
View user's profile Send private message
fs1
n00b
n00b


Joined: 18 Oct 2005
Posts: 4
Location: Austria | Vienna

PostPosted: Sun Mar 05, 2006 9:10 pm    Post subject: Reply with quote

Isn't it possible to realize it with the dependencies?
Back to top
View user's profile Send private message
nesl247
Veteran
Veteran


Joined: 15 Jun 2004
Posts: 1614
Location: Florida

PostPosted: Sun Mar 05, 2006 9:12 pm    Post subject: Reply with quote

Dependencies are only checked to make sure the package is installed.
Back to top
View user's profile Send private message
Maedhros
Bodhisattva
Bodhisattva


Joined: 14 Apr 2004
Posts: 5511
Location: Durham, UK

PostPosted: Mon Apr 17, 2006 11:35 am    Post subject: Reply with quote

Moved from Portage & Programming to Duplicate Threads in favour of jpeg-6b-r4 fails to compile, fix_libtool_files.sh is no help.
_________________
No-one's more important than the earthworm.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Duplicate Threads All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum