On Thu, Apr 18, 2002 at 08:34:19AM -0400, Michael Sweet wrote:
> Devilbiss, Jennifer L. wrote:
> > I ran ./configure and then ran make.  I got the following error:
> > 
> > Using LIBS = -lgen  -ldl
> > Linking nsswitch/libnss_winbind.so
> > ld32: FATAL   12 : Expecting n32 objects: nsswitch/winbind_nss.po is o32.
> > *** Error code 4 (bu21)
> > 
> > Has anyone tried to compile on IRIX?
> 
> Hmm, looks like libtool is broken (surprise, surprise) and is
> forcing -o32 mode.  Try setting the CFLAGS environment variable
> to "-n32" before you run configure, e.g.:
> 
>      setenv CFLAGS -n32
>      ./configure ... options ...
> 
> or:
> 
>      CFLAGS="-n32" ./configure ... options ...

Samba does not use libtool so it's not at fault. We use the following
patch.

-- 
albert chin ([EMAIL PROTECTED])

-- snip snip
--- source/Makefile.in.orig     Fri Apr  5 00:06:26 2002
+++ source/Makefile.in  Fri Apr  5 00:06:50 2002
@@ -474,8 +474,8 @@
 .c.po32: 
        @if (: >> $@ || : > $@) >/dev/null 2>&1; then rm -f $@; else \
          dir=`echo $@ | sed 's,/[^/]*$$,,;s,^$$,.,'` $(MAKEDIR); fi
-       @echo Compiling $*.c with @PICFLAG@ and -32
-       @$(CC) -32 -I. -I$(srcdir) $(FLAGS32) @PICFLAG@ -c $< \
+       @echo Compiling $*.c with @PICFLAG@
+       @$(CC) -I. -I$(srcdir) $(FLAGS32) @PICFLAG@ -c $< \
          -o $*.po32.o 
 @BROKEN_CC@    -mv `echo $@ | sed -e 's%^.*/%%g' -e 's%\.po32$$%.o%'` [email protected]
        @mv $*.po32.o $@
@@ -612,7 +612,7 @@
 
 bin/smbwrapper.32.@SHLIBEXT@: $(PICOBJS32)
        @echo Linking shared library $@
-       @$(SHLD) -32 @LDSHFLAGS@ -o $@ $(PICOBJS32) $(LIBS)
+       @$(SHLD) @LDSHFLAGS@ -o $@ $(PICOBJS32) $(LIBS)
 
 libsmbclient: $(LIBSMBCLIENT_PICOBJS)
        @echo Linking libsmbclient shared library bin/$@.@SHLIBEXT@

Reply via email to