Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
HAL emerge problem.
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on AMD64
View previous topic :: View next topic  
Author Message
bluezone
n00b
n00b


Joined: 26 Apr 2004
Posts: 13
Location: Electric Lady Land

PostPosted: Sun Dec 05, 2004 4:04 pm    Post subject: HAL emerge problem. Reply with quote

Everytime I try to emerge hal, I've been getting the following errors:

/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3/../../../../lib/libcap.a(cap_text.o): relocation R_X86_64_32S against `a local symbol' can not be used when making a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3/../../../../lib/libcap.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[3]: *** [hald] Error 1
make[3]: Leaving directory `/var/tmp/portage/hal-0.4.2/work/hal-0.4.2/hald'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/var/tmp/portage/hal-0.4.2/work/hal-0.4.2/hald'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/hal-0.4.2/work/hal-0.4.2'
make: *** [all] Error 2

!!! ERROR: sys-apps/hal-0.4.2 failed.
!!! Function src_compile, Line 56, Exitcode 2
!!! (no error message)
!!! If you need support, post the topmost build error, NOT this status message.


Does anyone else have this problem or know of a possible solution?
Back to top
View user's profile Send private message
garlicbread
Apprentice
Apprentice


Joined: 06 Mar 2004
Posts: 182

PostPosted: Thu Dec 09, 2004 10:57 am    Post subject: Reply with quote

I've not tried HAL myself yet
but as a temporary work around you could try adding this to the top of the ebuild
CFLAGS="${CFLAGS} -fPIC"

from looking here
https://forums.gentoo.org/viewtopic.php?t=166294&highlight=fpic
it looks as if some packages need to be updated so that they use the -fPIC option in the right place while building on amd64 systems for certain libs
(In other words I think the ideal solution is for one of the package's Makefiles to be updated to use -fPIC in the right place)
I think adding -fPIC to your general use Flags in make.conf is probably a bad idea but the above will limit it to that particular ebuild at least
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on AMD64 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