Operating System - HP-UX
1830213 Members
1460 Online
109999 Solutions
New Discussion

problem compiling samba 2.2.4

 
Rainer von Bongartz
Honored Contributor

problem compiling samba 2.2.4


when compiling samba i get the following error messages:


Linking nsswitch/pam_winbind.so

/usr/bin/ld: DP relative code in file /var/tmp/ccu93vhb.o - shared library mustbe position independent. Use +z or +Z to recompile.

what to recompile and where to specify +z or +Z ???





He's a real UNIX Man, sitting in his UNIX LAN making all his UNIX plans for nobody ...
1 REPLY 1
Olav Baadsvik
Esteemed Contributor

Re: problem compiling samba 2.2.4

Hi,

All objects that make up a shared library
must be compiled to be "position independant"
When you use an HP compiler, the option to
use is +z (or in some cases you will have
to use +Z).
It is the linker /usr/bin/ld that finds
that one of the objects you try to put into a
shared lib is not compiled to be "position independant". The error-message says it is
ccu93vhb.o. This means that you will have
to find out (in your make-file) where it is
compiled and add the +z option to the compilecommand.

Regards
Olav