1846755 Members
4641 Online
110256 Solutions
New Discussion

Problem linking module

 
Paul Orwig
Occasional Contributor

Problem linking module

I am having a problem linking a module compiled with gcc 3.0.1.
I get the following message from ld when it goes to link the modules into a shared module, even though gcc ran with the -fpic (position independant code flag):

/usr/ccs/bin/ld: DP relative code in file /var/tmp/cc4O1aRb.o - shared library must be position
independent. Use +z or +Z to recompile.
collect2: ld returned 1 exit status
*** Error exit code 1

Stop.

I am not sure where to look from here.
Is this a problem with word boundaries???

HELP!!!