Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Programming/Scripts

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 13th April 2010, 20:55
bigbull bigbull is offline
Junior Member
 
Join Date: Apr 2010
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default relocation R_X86_64_32S against `a local symbol

Hello All,

I am trying to port my 32-bit apps on 64-bit Centos 5.4.

I am compiling my encoder app and getting below mentioned error:

ld -shared -Bsymbolic -soname libvsofts.so --retain-symbols-file ./libvsofts.def -soname libvsofts.so.1 -o libvsofts.so.1.0 -lc obj/low_level_opt.o obj/api_impl.o obj/lanczos_filters.o obj/resize.o obj/low_level_ref.o
ld: obj/api_impl.o: relocation R_X86_64_32S against `a local symbol' can not be used when making a shared object; recompile with -fPIC
obj/api_impl.o: could not read symbols: Bad value
make: *** [libvsofts.so] Error 1


I was wondering what is the meaning of "relocation R_X86_64_32S against `a local symbol' can not be used when making a shared object"?

Can anyone help me out???

Thanks,
Reply With Quote
Sponsored Links
  #2  
Old 13th May 2010, 18:26
codedr codedr is offline
Junior Member
 
Join Date: May 2010
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default recompile with -fPIC

You need to recompile your obj/*.o with -fPIC option
to the compiler.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How cai remove amavis from postfix ? gabrix Server Operation 16 2nd October 2012 09:58
Exim Gateway with mailwatch (Unable to receive emails) siul0_0 HOWTO-Related Questions 10 8th May 2009 23:00
localhost postfix/master: fatal: bind 127.0.0.1 port 125: Permission denied g18c Installation/Configuration 4 24th March 2009 17:39
[Postfix] Quota doesn't work krzysiek HOWTO-Related Questions 8 2nd March 2009 15:57
I Fail at installing ispconfig where did I go wrong? stocker741 Installation/Configuration 14 30th October 2008 14:12


All times are GMT +2. The time now is 23:53.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.