pam_smbpass linking on Solaris 7
vorlon at netexpress.net
Sun Sep 2 20:49:28 GMT 2001
On Thu, 30 Aug 2001, Justin Akehurst wrote:
> I'm trying to compile Samba 2.2.1a on Solaris 7 sparc, using GNU gcc and
> Solaris ld.
> When it gets to trying to link bin/pam_smbpass, it fails because of the
> -symbolic switch passed to ld. Replacing this switch with -B symbolic or
> -Bsymbolic does not seem to work either. Has this part of code been
> hardcoded to work only with GNU ld? Any workarounds for Solaris at this
> time? Should the configure script figure out which ld the system has and
> adjust accordingly?
Actually, if gcc is your compiler, the correct thing to do is to use gcc as
the linker instead of calling ld directly. This is an issue I've known about
for some time. Frankly, I've been hoping that someone would come up with a
good solution for one of the other libraries in the Samba tree that I could
generalize and apply to the pam_smbpass build.
In the meantime, it should be sufficient to remove the -symbolic option from
the commandline. I think this is actually an option that was deprecated when
I wasn't looking, because even though it's still mentioned in the GNU
manpages, neither gcc nor GNU ld know what to do with it.
I would have guessed that -Bsymbolic is the appropriate substitution here when
calling ld directly, but you say that also doesn't work. Does the
documentation for Solaris ld suggest an equivalent alternative?
More information about the samba-technical