Early warning: link failure on Solaris --with-smbrapper

David Collier-Brown davecb at canada.sun.com
Fri Dec 14 05:38:02 GMT 2001


Jeremy Allison wrote:
> 
> On Thu, Dec 13, 2001 at 11:54:41AM -0500, David Collier-Brown wrote:
> >   After sucessfully linking with the configure fix for the
> > Solaris linker (used by default even with GCC), I went on
> > to --with-smbrapper, and got a linker failure:
> >
> > Linking shared library bin/smbwrapper.so
> > ld: illegal option -- W
> >
> > This was on the comand:
> >   ld -Wl,-h,bin/smbwrapper.so.so -G -o bin/smbwrapper.so [...]
> > which is the right options for the gnu linker, of course...
> > The workaround is
> >   LD=gcc make -e
> > which allows the build to run to completion.
> 
Jeremy Allison wrote:
> Can you send a patch for the configure.in or Makefile.in ?

	Ok, for configure.in it's
elsbeth> diff -u configure.in configure.in.amended
--- configure.in        Fri Dec 14 08:31:03 2001
+++ configure.in.amended        Fri Dec 14 08:26:28 2001
@@ -766,7 +766,8 @@
                        ;;
                *solaris*) AC_DEFINE(SUNOS5)
                        BLDSHARED="true"
-                       LDSHFLAGS="-Wl,-h,\$@.so -G"
+                       #LDSHFLAGS="-Wl,-h,\$@.so -G"
+                       LDSHFLAGS="-h \$@ -G"
                        if test "${ac_cv_prog_CC}" = "gcc"; then
                                PICFLAG="-fPIC"
                        else


...which also seems to remove the redundant .so.so

--dave
-- 
David Collier-Brown,           | Always do right. This will gratify 
Americas Customer Engineering, | some people and astonish the rest.
SunPS Integration Services.    |                      -- Mark Twain
(905) 415-2849                 | davecb at canada.sun.com




More information about the samba-technical mailing list