This widget could not be displayed.
Operating System - HP-UX
1859573 Members
6920 Online
110403 Solutions
This widget could not be displayed.
This widget could not be displayed.
This widget could not be displayed.
This widget could not be displayed.
This widget could not be displayed.
This widget could not be displayed.
This widget could not be displayed.
This widget could not be displayed.
This widget could not be displayed.

Re: Position independent code linking problem.

 
Paul Orwig
Occasional Contributor

Position independent code linking problem.

I am working on compiling the latest version of samba and have an error stating that the modules being linked need to be compiled with either -z or -Z for a shared library.
I am using gcc and both modules are compiled with the -fpic flag which I believe is the same as the -z flags.
Is there a linker flag that I am missing or is there some other flag that would interfere with the position independence?

Thanks.
Paul Orwig
Pacific Life
2 REPLIES 2
Tech Support_1
Occasional Advisor

Re: Position independent code linking problem.

I know this may sound trivial, but the flag seems to be case-sensitive; try -fPIC on a hp-ux system
Apathy is ..................
Paul Orwig
Occasional Contributor

Re: Position independent code linking problem.

That didn't make any difference.
I managed to link by manually running the ld command and setting the -b and -z flags.
I'll work on what needs to be done to the Makefile