Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 15th December 2009, 12:41
gopinath511 gopinath511 is offline
Junior Member
 
Join Date: Dec 2009
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default relocation R_X86_64_32S can not be used when making a shared object; recompile with

Hi Linux geeks,

I am trying to create a .so file using GCC. When i try to run make file i am getting the below error

"relocation R_X86_64_32S can not be used when making a shared object;
recompile with -fPIC"

What is the reason for this error ? As it said to recompile with -fpic, i did but the error is same. What is the solution for this error. What is the reason for this type of error.

Below are the flags which i have set.
the compiler options.
-m64 -fexceptions -Wall -O2 -Dunix -DLinux

linker options
-s -o$(TARGET) -Wl,-shared

Note: this machine is a 64 bit machine
gcc version :
Reading specs from /usr/lib/gcc-lib/x86_64-redhat-linux/3.2.3/specs
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --disable-checking --with-system-zlib --enable-__cxa_atexit --host=x86_64-redhat-linux
Thread model: posix
gcc version 3.2.3 20030502 (Red Hat Linux 3.2.3-42)

Thanks in advance

Gopi
Reply With Quote
Sponsored Links
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
Webmail problems with only one domain? compner Installation/Configuration 14 16th February 2010 17:59
libWand.so.10 error Taxick Installation/Configuration 8 3rd May 2009 02:27
can't help ispconfig to install please help steve51184 Installation/Configuration 17 20th February 2009 11:37
dovecot problem sojic Server Operation 21 23rd March 2008 19:22
Howto suggestion suse PhP ver 4 + Ver 5 wwparrish Suggest HOWTO 11 7th August 2006 14:29


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


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