* Re: Shared library linking problem.
1997-10-28 17:57 ` H.J. Lu
@ 1997-10-28 18:29 ` Marc Lehmann
1997-10-28 18:44 ` H.J. Lu
1997-10-28 19:00 ` Rob Browning
` (2 subsequent siblings)
3 siblings, 1 reply; 11+ messages in thread
From: Marc Lehmann @ 1997-10-28 18:29 UTC (permalink / raw)
To: egcs
>
>I heard this once with Qt. Which glibc 2 are you using? I have
>no problem with the slightly older glibc 2.1 on x86 and glibc
>2.0.5c on alpha.
I had this with qt, too, but now I have this with qt, kde, and many other
shared libs..
The reason is a R_386_PLT32 relocation record in the shared library, which
is caused by a PLT reference (like _._Array@PLT) in the code (maybe
it wasn'T resolved on linking or whatever).
I've tracked it down, but I have no idea why this is happening..
maybe you can enlighten me? In any case, this is very disgusting,
since you have no chance of finding out which entry caused
the bug, unless you heavily modify ld.so
glibc-2.0.5c on x86, btw..
-----==-
----==-- _
---==---(_)__ __ ____ __ Marc Lehmann
--==---/ / _ \/ // /\ \/ / pcg@goof.com
-=====/_/_//_/\_,_/ /_/\_\
The choice of a GNU generation
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Shared library linking problem.
1997-10-28 18:29 ` Marc Lehmann
@ 1997-10-28 18:44 ` H.J. Lu
0 siblings, 0 replies; 11+ messages in thread
From: H.J. Lu @ 1997-10-28 18:44 UTC (permalink / raw)
To: Marc Lehmann; +Cc: egcs
>
> >
> >I heard this once with Qt. Which glibc 2 are you using? I have
> >no problem with the slightly older glibc 2.1 on x86 and glibc
> >2.0.5c on alpha.
>
> I had this with qt, too, but now I have this with qt, kde, and many other
> shared libs..
>
> The reason is a R_386_PLT32 relocation record in the shared library, which
> is caused by a PLT reference (like _._Array@PLT) in the code (maybe
> it wasn'T resolved on linking or whatever).
>
Can you tell me how I can reproduce it?
H.J.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Shared library linking problem.
1997-10-28 17:57 ` H.J. Lu
1997-10-28 18:29 ` Marc Lehmann
@ 1997-10-28 19:00 ` Rob Browning
1997-10-28 19:00 ` Ulrich Drepper
1997-10-29 5:13 ` Neal Becker
3 siblings, 0 replies; 11+ messages in thread
From: Rob Browning @ 1997-10-28 19:00 UTC (permalink / raw)
To: H.J. Lu; +Cc: egcs, Ulrich Drepper
hjl@lucon.org (H.J. Lu) writes:
> I heard this once with Qt. Which glibc 2 are you using? I have
> no problem with the slightly older glibc 2.1 on x86 and glibc
> 2.0.5c on alpha.
Apologies all around, the problem's solved. It turned out someone
here had accidentally deleted -fPIC in a dark corner of our bloated
Makefile.
Sorry for the false alarm.
--
Rob Browning <rlb@cs.utexas.edu>
PGP fingerprint = E8 0E 0D 04 F5 21 A0 94 53 2B 97 F5 D6 4E 39 30
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Shared library linking problem.
1997-10-28 17:57 ` H.J. Lu
1997-10-28 18:29 ` Marc Lehmann
1997-10-28 19:00 ` Rob Browning
@ 1997-10-28 19:00 ` Ulrich Drepper
1997-10-29 5:13 ` Neal Becker
1997-10-29 5:13 ` Neal Becker
3 siblings, 1 reply; 11+ messages in thread
From: Ulrich Drepper @ 1997-10-28 19:00 UTC (permalink / raw)
To: H.J. Lu; +Cc: Rob Browning, egcs
hjl@lucon.org (H.J. Lu) writes:
> I heard this once with Qt. Which glibc 2 are you using? I have
> no problem with the slightly older glibc 2.1 on x86 and glibc
> 2.0.5c on alpha.
I guess it's a binutils problem. The last report showed an illegal
the in the section table.
Try to use 'readelf' or 'elfdump' to see what's the content of the
ELF headers.
-- Uli
---------------. drepper at gnu.org ,-. Rubensstrasse 5
Ulrich Drepper \ ,-------------------' \ 76149 Karlsruhe/Germany
Cygnus Solutions `--' drepper at cygnus.com `------------------------
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Shared library linking problem.
1997-10-28 17:57 ` H.J. Lu
` (2 preceding siblings ...)
1997-10-28 19:00 ` Ulrich Drepper
@ 1997-10-29 5:13 ` Neal Becker
1997-10-29 16:16 ` H.J. Lu
3 siblings, 1 reply; 11+ messages in thread
From: Neal Becker @ 1997-10-29 5:13 UTC (permalink / raw)
To: H.J. Lu; +Cc: Rob Browning, egcs, Ulrich Drepper
I just encountered the same problem. I used egcs-971023,
binutils-2.8.1.0.1, glibc-2.0.5, qt-1.31, linux-586.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Shared library linking problem.
1997-10-29 5:13 ` Neal Becker
@ 1997-10-29 16:16 ` H.J. Lu
1997-10-29 19:23 ` Neal Becker
0 siblings, 1 reply; 11+ messages in thread
From: H.J. Lu @ 1997-10-29 16:16 UTC (permalink / raw)
To: Neal Becker; +Cc: egcs
>
> I just encountered the same problem. I used egcs-971023,
> binutils-2.8.1.0.1, glibc-2.0.5, qt-1.31, linux-586.
>
I have got qt-1.31. I need to know exactly how to reproduce the
bug.
--
H.J. Lu (hjl@gnu.ai.mit.edu)
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Shared library linking problem.
1997-10-29 16:16 ` H.J. Lu
@ 1997-10-29 19:23 ` Neal Becker
1997-10-30 20:10 ` H.J. Lu
0 siblings, 1 reply; 11+ messages in thread
From: Neal Becker @ 1997-10-29 19:23 UTC (permalink / raw)
To: H.J. Lu; +Cc: egcs
All I did was build qt-1.31 out of the box. I believe all I did was
say
make linux-gcc-shared.
In Makefile (qt-1.31 top level):
CFLAGS=-O2 -Wall -W -I/usr/X11R6/include
LIBCFLAGS=-fPIC
Those are perhaps the only things I edited in the qt-1.31 dir.
I used egcs-971023, binutils-2.8.1.0.1, glibc-2.0.5 on linux-i586.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Shared library linking problem.
1997-10-29 19:23 ` Neal Becker
@ 1997-10-30 20:10 ` H.J. Lu
0 siblings, 0 replies; 11+ messages in thread
From: H.J. Lu @ 1997-10-30 20:10 UTC (permalink / raw)
To: Neal Becker; +Cc: egcs
>
> All I did was build qt-1.31 out of the box. I believe all I did was
> say
> make linux-gcc-shared.
>
> In Makefile (qt-1.31 top level):
> CFLAGS=-O2 -Wall -W -I/usr/X11R6/include
> LIBCFLAGS=-fPIC
>
> Those are perhaps the only things I edited in the qt-1.31 dir.
>
> I used egcs-971023, binutils-2.8.1.0.1, glibc-2.0.5 on linux-i586.
>
I have no problem with qt 1.31 on linux/glibc 2.0.5c, linux/glibc 2.1
and linux/libc 5. I am using egcs-971023 and binutils 2.8.1.0.15.
I need more info to verify the bug. Please first try binutils
2.8.1.0.15.
--
H.J. Lu (hjl@gnu.ai.mit.edu)
^ permalink raw reply [flat|nested] 11+ messages in thread