[Samba] PLEASE HELP - MAC NEWBIE - MAC OS X 10.4.8 (Intel)
compiling errors of Samba 3.0.23.c
Dan
samba at the-rusty-nail.com
Wed Oct 11 17:17:56 GMT 2006
Ok, I checked out the latest source using subversion and the command was
as follows:
/usr/local/bin/svn co svn://svnanon.samba.org/samba/branches/SAMBA_3_0
samba-3_0
I then rsynced the latest source into the 3.0.23c tree to get all the
changes, but after a successful configure I get the following error when
I run make. I am probably doing something wrong but I am not sure what
as I am not used to dealing with the source tree that doesn't have the
configure script in it. Any ideas?
intelimac:/Users/dan/samba-3.0.23c/source root# make
Using FLAGS = -O -D_SAMBA_BUILD_
-I/Users/dan/samba-3.0.23c/source/popt
-I/Users/dan/samba-3.0.23c/source/iniparser/src @SAMBA_CPPFLAGS@
-DHAVE_CONFIG_H -I/sw/include -DLDAP_DEPRECATED
-I/Users/dan/samba-3.0.23c/source/lib -D_SAMBA_BUILD_=3
PICFLAG = @PICFLAG@
LIBS = -lresolv -ldl -liconv
LDFLAGS = -pie -Wl,-search_paths_first -L/sw/lib
DYNEXP =
LDSHFLAGS = -bundle -flat_namespace -undefined suppress
-Wl,-search_paths_first -L/sw/lib
SHLIBEXT = dylib
SONAMEFLAG = #
Generating smbd/build_options.c
Building include/proto.h
creating /Users/dan/samba-3.0.23c/source/include/proto.h
Building include/build_env.h
creating /Users/dan/samba-3.0.23c/source/nsswitch/winbindd_proto.h
creating /Users/dan/samba-3.0.23c/source/web/swat_proto.h
creating /Users/dan/samba-3.0.23c/source/client/client_proto.h
creating /Users/dan/samba-3.0.23c/source/utils/net_proto.h
creating /Users/dan/samba-3.0.23c/source/utils/ntlm_auth_proto.h
Compiling dynconfig.c
i686-apple-darwin8-gcc-4.0.1: @SAMBA_CPPFLAGS@: No such file or directory
i686-apple-darwin8-gcc-4.0.1: @PICFLAG@: No such file or directory
<command line>:1:1: warning: "_SAMBA_BUILD_" redefined
<command line>:1:1: warning: this is the location of the previous definition
/Users/dan/samba-3.0.23c/source/dynconfig.c:21:22: error: includes.h: No
such file or directory
/Users/dan/samba-3.0.23c/source/dynconfig.c:47: error: parse error
before 'dyn_CONFIGFILE'
/Users/dan/samba-3.0.23c/source/dynconfig.c:47: warning: initialization
makes integer from pointer without a cast
/Users/dan/samba-3.0.23c/source/dynconfig.c:47: warning: data definition
has no type or storage class
/Users/dan/samba-3.0.23c/source/dynconfig.c:50: error: parse error
before 'dyn_LOGFILEBASE'
/Users/dan/samba-3.0.23c/source/dynconfig.c:50: warning: initialization
makes integer from pointer without a cast
/Users/dan/samba-3.0.23c/source/dynconfig.c:50: warning: data definition
has no type or storage class
/Users/dan/samba-3.0.23c/source/dynconfig.c:53: error: parse error
before 'dyn_LMHOSTSFILE'
/Users/dan/samba-3.0.23c/source/dynconfig.c:53: warning: initialization
makes integer from pointer without a cast
/Users/dan/samba-3.0.23c/source/dynconfig.c:53: warning: data definition
has no type or storage class
/Users/dan/samba-3.0.23c/source/dynconfig.c:60: error: parse error
before 'dyn_LIBDIR'
/Users/dan/samba-3.0.23c/source/dynconfig.c:60: warning: initialization
makes integer from pointer without a cast
/Users/dan/samba-3.0.23c/source/dynconfig.c:60: warning: data definition
has no type or storage class
/Users/dan/samba-3.0.23c/source/dynconfig.c:61: error: parse error
before 'dyn_SHLIBEXT'
/Users/dan/samba-3.0.23c/source/dynconfig.c:61: warning: initialization
makes integer from pointer without a cast
/Users/dan/samba-3.0.23c/source/dynconfig.c:61: warning: data definition
has no type or storage class
/Users/dan/samba-3.0.23c/source/dynconfig.c:68: error: parse error
before 'dyn_LOCKDIR'
/Users/dan/samba-3.0.23c/source/dynconfig.c:68: warning: initialization
makes integer from pointer without a cast
/Users/dan/samba-3.0.23c/source/dynconfig.c:68: warning: data definition
has no type or storage class
/Users/dan/samba-3.0.23c/source/dynconfig.c:69: error: parse error
before 'dyn_PIDDIR'
/Users/dan/samba-3.0.23c/source/dynconfig.c:69: warning: initialization
makes integer from pointer without a cast
/Users/dan/samba-3.0.23c/source/dynconfig.c:69: warning: data definition
has no type or storage class
/Users/dan/samba-3.0.23c/source/dynconfig.c:71: error: parse error
before 'dyn_SMB_PASSWD_FILE'
/Users/dan/samba-3.0.23c/source/dynconfig.c:71: warning: initialization
makes integer from pointer without a cast
/Users/dan/samba-3.0.23c/source/dynconfig.c:71: warning: data definition
has no type or storage class
/Users/dan/samba-3.0.23c/source/dynconfig.c:72: error: parse error
before 'dyn_PRIVATE_DIR'
/Users/dan/samba-3.0.23c/source/dynconfig.c:72: warning: initialization
makes integer from pointer without a cast
/Users/dan/samba-3.0.23c/source/dynconfig.c:72: warning: data definition
has no type or storage class
The following command failed:
gcc -O -D_SAMBA_BUILD_ -I/Users/dan/samba-3.0.23c/source/popt
-I/Users/dan/samba-3.0.23c/source/iniparser/src @SAMBA_CPPFLAGS@
-DHAVE_CONFIG_H -I/sw/include -DLDAP_DEPRECATED
-I/Users/dan/samba-3.0.23c/source/lib -D_SAMBA_BUILD_=3
-DCONFIGFILE="/etc/smb.conf" -DSBINDIR="/usr/local/samba/sbin"
-DBINDIR="/usr/local/samba/bin" -DLMHOSTSFILE="/etc/lmhosts"
-DSWATDIR="/usr/local/samba/swat"
-DLOCKDIR="/usr/local/samba/var/locks" -DPIDDIR="/private/var/run"
-DLIBDIR="/usr/local/samba/lib" -DLOGFILEBASE="/var/log"
-DSHLIBEXT="dylib" -DCONFIGDIR="/etc"
-DSMB_PASSWD_FILE="/usr/local/samba/private/smbpasswd"
-DPRIVATE_DIR="/usr/local/samba/private" @PICFLAG@ -c
/Users/dan/samba-3.0.23c/source/dynconfig.c -o dynconfig.o
James Peach wrote:
> On 11/10/06, Dan <samba at the-rusty-nail.com> wrote:
>> Hello,
>> I am trying to compile the latest samba 3.0.23c on MAC Intel OS X
>> 10.4.8 and I am getting errors with the krb5 stuff. I have searched the
>> net and found other people with the same error but didn't see any
>> solution. Has anyone successfully compiled it on 10.4.8 Intel? Any
>> help would be greatly appreciated as I am new to the mac platform but
>> have lots of linux experience. The errors are below:
>>
>> Compiling libsmb/clikrb5.c
>> libsmb/clikrb5.c: In function 'krb5_locate_kdc':
>> libsmb/clikrb5.c:378: error: 'krb5_krbhst_handle' undeclared (first use
>> in this function)
>> libsmb/clikrb5.c:378: error: (Each undeclared identifier is reported
>> only once
>> libsmb/clikrb5.c:378: error: for each function it appears in.)
>> libsmb/clikrb5.c:378: error: parse error before 'hnd'
>> libsmb/clikrb5.c:379: error: 'krb5_krbhst_info' undeclared (first use in
>> this function)
>> libsmb/clikrb5.c:379: error: 'hinfo' undeclared (first use in this
>> function)
>> libsmb/clikrb5.c:388: error: 'KRB5_KRBHST_KDC' undeclared (first use in
>> this function)
>> libsmb/clikrb5.c:388: error: 'hnd' undeclared (first use in this
>> function)
>> libsmb/clikrb5.c:917:2: error: #error UNKNOWN_KRB5_AP_REQ_FREE_FUNCTION
>> libsmb/clikrb5.c:959:2: error: #error
>> UNKOWN_KRB5_AP_REQ_DECODING_FUNCTION
>> make: *** [libsmb/clikrb5.o] Error 1
>
> metze just checked in a change to fix this. If you try the latest code
> from the
> subversion repository, it should build.
>
More information about the samba
mailing list