[Samba] HELP: configure fails for latest cvs samba 3.x

David Shapiro David.Edward.Shapiro at bti.com
Wed Oct 30 19:13:00 GMT 2002

Please help me get samba compiled.  I used cvs to download lastest samba-3.x
and configure is failing.

I have: solaris 7 (32-bit mode kernel), binutils-2.11.2, automake-1.7.1,
autoconf-2.54, and libtool-1.4.

I used the below script:

cd /usr/local/samba/source
/usr/local/bin/gmake realclean
/usr/bin/rm config.cache ltmain.sh configure
libtoolize --force

cd /usr/local/samba/source
env CFLAGS="-Wall -m32 -g" ./configure --with-winbind
--without-sendfile-support --with-included-popt --with-smbwrapper

Summary of errors:
It always whines about aclocal.m4
Tells me to add AC_PROG_LIBTOOL (how do you do this?)
Crashes at a configure line 2800

make: *** No rule to make target `realclean'.  Stop.
config.cache: No such file or directory
configure: No such file or directory
Remember to add `AC_PROG_LIBTOOL' to `configure.in'.
You should update your `aclocal.m4' by running aclocal.

autoheader: `include/config.h.in' is updated
configure.in:216: error: possibly undefined macro: AC_ADD_INCLUDE
      If this token and others are legitimate, please use m4_pattern_allow.
      See the Autoconf documentation.
configure.in:220: error: possibly undefined macro:
configure.in:232: error: possibly undefined macro: AC_PROG_CC_FLAG
configure.in:482: error: possibly undefined macro: AC_DIRENT_D_OFF
configure.in:582: error: possibly undefined macro: AC_HAVE_DECL
configure.in:830: error: possibly undefined macro: AC_LIBTESTFUNC
checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for a BSD-compatible install... ./install-sh -c
checking for gawk... no
checking for mawk... no
checking for nawk... nawk
checking if the linker (ld) is GNU ld... yes
checking for library containing strerror... none required
checking whether gcc and cc understand -c and -o together... yes
checking that the C compiler understands volatile... yes
checking build system type... sparc-sun-solaris2.7
checking host system type... sparc-sun-solaris2.7
checking target system type... sparc-sun-solaris2.7
./configure[2799]: syntax error at line 2800 : `(' unexpected

More information about the samba mailing list