cheerjo / google-breakpad

Automatically exported from code.google.com/p/google-breakpad
0 stars 0 forks source link

Linux 64 bit has an -fPIC error in convert_UTF.c #530

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.Compile a 64 bit google-breakpad
2.Use it to build a user defined 64 bit shared library
3. Observe failure to link.

What is the expected output?
A good link. 
What do you see instead?
/usr/bin/ld: error: 
/home/nicky/kokua-3.5.2-newbuild/build-linux-x86_64/packages/lib/release/libbrea
kpad_client.a(convert_UTF.o): requires unsupported dynamic reloc; recompile 
with -fPIC

What version of the product are you using? r1099
On what operating system?
Debian squeeze amd64.
gcc (Debian 4.4.5-8) 4.4.5

Please provide any additional information below.
Extract the produced static.
Recompile convert_UTF.c with -fPIC
Make a shared lib using the recompiled object.
Then link against the shared. This clears the problem.
This seems hackish. 

Where in the breakpad build system can -fPIC be added the compile of 
convert_UTF.c so that the static version of the library behaves when linking 
with what will become a users shared library?

Original issue reported on code.google.com by nickyper...@gmail.com on 6 May 2013 at 11:42

GoogleCodeExporter commented 9 years ago
Modified the Makefile and Linux 64 bit to built correctly. Patch attached. Have 
not tried this on Linux 32 bit. So, there may be breakage there. Also, this is 
a converted to mercurial repository that my upstream supplied.

Original comment by nickyper...@gmail.com on 7 May 2013 at 2:33

Attachments:

GoogleCodeExporter commented 9 years ago
Can you attach a minimal test case for step 2? I can help you test on 32-bit 
Linux if you'd like.

The Makefile is generated through ./configure. Any changes should be in 
Makefile.in and Makefile.am. If you want to submit a proper patch, do so 
through https://breakpad.appspot.com.

Original comment by thestig@chromium.org on 7 May 2013 at 10:50

GoogleCodeExporter commented 9 years ago
I think I'll defer to someone more familiar with breakpad to formulate a patch. 
I have my immediate problem solved and just need to move on with my 
contributions my regular project. Thank you for the comment and I will use 
Makefile.in and Makefile.am the next time I venture (  get reluctantly dragged 
) into google-breakpad.

Original comment by nickyper...@gmail.com on 8 May 2013 at 12:41

GoogleCodeExporter commented 9 years ago

Original comment by thestig@chromium.org on 18 Dec 2013 at 2:10