relocation R_X86_64_PC32 and shared libraries

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I am running Fedora Core 3 (x86_64) with:
gcc (GCC) 3.4.3 20050124 (Red Hat 3.4.3-17)
GNU ld version 2.15.92.0.2 20040927
glibc-devel-2.3.4-2.fc3

When I try and compile Mozilla from CVS, I get the following error:

$ gcc -shared -o libmozjs.so $a_bunch_of_o_files_here

/usr/bin/ld: .libs/jsapi.o: relocation R_X86_64_PC32 against `strncmp@@GLIBC_2.2.5' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: Bad value

It WAS compiled with "-fPIC -DPIC -m64 -O2 -g -pipe" and a bunch of
Mozilla defines.

$ file .libs/jsapi.o
.libs/jsapi.o: ELF 64-bit LSB relocatable, AMD x86-64, version 1 (SYSV), not stripped

Here is the exact command I ran, along with my prior plea for help. :-)

http://groups-beta.google.com/group/netscape.public.mozilla.builds/browse_thread/thread/df8c4bf5a64462c9/af3d0723d08402b1

I tried searching the gcc mailing list archive and did not see an answer
to my question.

  Any help would be greatly appreciated,
  -- /v\atthew

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux