[Samba] Problems Compiling Samba 3.0.2a on SLES8 SP3

Diego Julian Remolina dijuremo at math.gatech.edu
Tue Mar 16 17:48:33 GMT 2004


I know this from problems with kerberos header files.

You have the header file statfs.h (maybe others as well) duplicated and it
has different variable definitions.  You can try chmod 000 statfs.h on all
the copies of the same header file but leave one readable during configure
and make.

Find all the files with:

find / -name statfs.h
and then see which one is the one you should be using and chmod 000 the
rest.  After configure and make chmod the file back to whatever it was.

Diego

On Tue, 16 Mar 2004, Samba wrote:

> I'm trying to get Samba to compile on SLES8 SP3 (Linux under z/VM) and I'm
> getting the following error.  Configure ran fine with "./configure
> --with-ads --with-winbind --with-krb5", but when I run make I get the
> following output and error.
>
> Using FLAGS =  -O -I/usr/local/include -I./popt -Iinclude
> -I/usr/local/downloads/samba-3.0.2a/source/include
> -I/usr/local/downloads/samba-3.0.2a/source/ubiqx
> -I/usr/local/downloads/samba-3.0.2a/source/smbwrapper  -I.
> -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE
> -I/usr/local/include -I/usr/local/downloads/samba-3.0.2a/source
>       LIBS = -lcrypt -lresolv -lnsl -ldl
>       LDSHFLAGS = -shared
>       LDFLAGS =
> Generating smbd/build_options.c
> Building include/proto.h
> creating /usr/local/downloads/samba-3.0.2a/source/include/proto.h
> Building include/wrepld_proto.h
> creating /usr/local/downloads/samba-3.0.2a/source/include/wrepld_proto.h
> Building include/build_env.h
> creating /usr/local/downloads/samba-3.0.2a/source/nsswitch/winbindd_proto.h
> creating /usr/local/downloads/samba-3.0.2a/source/web/swat_proto.h
> creating /usr/local/downloads/samba-3.0.2a/source/client/client_proto.h
> creating /usr/local/downloads/samba-3.0.2a/source/utils/net_proto.h
> Compiling dynconfig.c
> cc1: warning: changing search order for system directory
> "/usr/local/include"
> cc1: warning:   as it has already been specified as a non-system directory
> In file included from /usr/include/asm/statfs.h:6,
>                  from /usr/include/linux/vfs.h:4,
>                  from /usr/include/linux/fs.h:13,
>                  from /usr/include/linux/capability.h:17,
>                  from /usr/include/sys/capability.h:24,
>                  from include/includes.h:355,
>                  from dynconfig.c:21:
> /usr/include/asm-s390/statfs.h:20: redefinition of `struct statfs'
> make: *** [dynconfig.o] Error 1
>
> Any suggestions are appreciated.
>
>
>
> Josh Konkol, CNE MCSE
> Technical Research Specialist
>  .~.	GuideOne Insurance
>  /V\
> /( )\
> ^^-^^	samba at guidemail.com
>
>
>
> This message and accompanying documents are covered by the Electronic
> Communications Privacy Act, 18 U.S.C. §§ 2510-2521, and contains information
> intended for the specified individual(s) only. This information is
> confidential. If you are not the intended recipient or an agent responsible
> for delivering it to the intended recipient, you are hereby notified that
> you have received this document in error and that any review, dissemination,
> copying, or the taking of any action based on the contents of this
> information is strictly prohibited. If you have received this communication
> in error, please notify us immediately by e-mail, and delete the original
> message.
> --
> To unsubscribe from this list go to the following URL and read the
> instructions:  http://lists.samba.org/mailman/listinfo/samba
>


More information about the samba mailing list