Psycotic
14-02-2005, 10:33
Salve avevo gia' aperto un'altra discussione.. Pero' adesso e' meglio cambiargli il titolo..
Quindi ho una solaris 9 e devo compilare samba 3.0.11..
Ho dovuto installare il kerberos MIT su /opt perche' quello incluso in solaris nn ha gli header..
Questo e' come ho fatto il configure..
CPPFLAGS="-I/opt/mit/include -I/opt/include" LDFLAGS="-L/opt/lib -L/opt/mit/lib" ./configure --prefix=/opt/samba --with-ads=yes --with-pam=yes --with-pam_smbpass=yes --with-acl-support=yes --with-krb5=/opt/mit
Ma sul make mi da quest'errore..
make
Using FLAGS = -I/opt/mit/include -O -Iinclude -I/opt/src/samba-3.0.11/source/include -I/opt/src/samba-3.0.11/source/ubiqx-I/opt/src/samba-3.0.11/source/smbwrapper -I. -I/opt/mit/include -I/opt/mit/include -I/opt/include -D_LARGEFILE_SOURCE -D_REENTRANT -D_FILE_OFFSET_BITS=64 -I/opt/src/samba-3.0.11/source
LIBS = -lsendfile -lsec -lgen -lresolv -lsocket -lnsl -ldl -liconv
LDSHFLAGS = -G -L/opt/mit/lib -R/opt/mit/lib -L/opt/lib -L/opt/mit/lib -lthread
LDFLAGS = -L/opt/mit/lib -R/opt/mit/lib -L/opt/lib -L/opt/mit/lib -lthread
Compiling dynconfig.c
Compiling smbd/vfs.c
Compiling passdb/pdb_interface.c
Compiling lib/iconv.c
lib/iconv.c: In function `sys_iconv':
lib/iconv.c:139: warning: passing arg 2 of `libiconv' from incompatible pointer type
Compiling auth/auth.c
Compiling smbd/build_options.c
Compiling smbd/server.c
Linking bin/smbd
Linking bin/nmbd
Linking bin/swat
Compiling sam/idmap.c
Linking bin/winbindd
Compiling client/clitar.c
client/clitar.c:91: error: parse error before '*' token
client/clitar.c:91: warning: data definition has no type or storage class
client/clitar.c: In function `tar_parseargs':
client/clitar.c:1754: error: `regex_t' undeclared (first use in this function)
client/clitar.c:1754: error: (Each undeclared identifier is reported only once
client/clitar.c:1754: error: for each function it appears in.)
client/clitar.c:1754: error: parse error before ')' token
client/clitar.c:1760: error: `errcode' undeclared (first use in this function)
client/clitar.c:1760: error: `REG_EXTENDED' undeclared (first use in this function)
client/clitar.c: At top level:
client/clitar.c:1775: error: parse error before "if"
client/clitar.c:1797: error: redefinition of `dry_run'
client/clitar.c:94: error: `dry_run' previously defined here
client/clitar.c:1797: warning: data definition has no type or storage class
client/clitar.c:1798: error: parse error before '}' token
client/clitar.c:1799: error: conflicting declarations of `tarhandle'
client/clitar.c:118: error: `tarhandle' previously declared here
client/clitar.c:1799: warning: data definition has no type or storage class
client/clitar.c:1800: error: parse error before '}' token
make: *** [client/clitar.o] Error 1
Qualcuno ha idea???
Quindi ho una solaris 9 e devo compilare samba 3.0.11..
Ho dovuto installare il kerberos MIT su /opt perche' quello incluso in solaris nn ha gli header..
Questo e' come ho fatto il configure..
CPPFLAGS="-I/opt/mit/include -I/opt/include" LDFLAGS="-L/opt/lib -L/opt/mit/lib" ./configure --prefix=/opt/samba --with-ads=yes --with-pam=yes --with-pam_smbpass=yes --with-acl-support=yes --with-krb5=/opt/mit
Ma sul make mi da quest'errore..
make
Using FLAGS = -I/opt/mit/include -O -Iinclude -I/opt/src/samba-3.0.11/source/include -I/opt/src/samba-3.0.11/source/ubiqx-I/opt/src/samba-3.0.11/source/smbwrapper -I. -I/opt/mit/include -I/opt/mit/include -I/opt/include -D_LARGEFILE_SOURCE -D_REENTRANT -D_FILE_OFFSET_BITS=64 -I/opt/src/samba-3.0.11/source
LIBS = -lsendfile -lsec -lgen -lresolv -lsocket -lnsl -ldl -liconv
LDSHFLAGS = -G -L/opt/mit/lib -R/opt/mit/lib -L/opt/lib -L/opt/mit/lib -lthread
LDFLAGS = -L/opt/mit/lib -R/opt/mit/lib -L/opt/lib -L/opt/mit/lib -lthread
Compiling dynconfig.c
Compiling smbd/vfs.c
Compiling passdb/pdb_interface.c
Compiling lib/iconv.c
lib/iconv.c: In function `sys_iconv':
lib/iconv.c:139: warning: passing arg 2 of `libiconv' from incompatible pointer type
Compiling auth/auth.c
Compiling smbd/build_options.c
Compiling smbd/server.c
Linking bin/smbd
Linking bin/nmbd
Linking bin/swat
Compiling sam/idmap.c
Linking bin/winbindd
Compiling client/clitar.c
client/clitar.c:91: error: parse error before '*' token
client/clitar.c:91: warning: data definition has no type or storage class
client/clitar.c: In function `tar_parseargs':
client/clitar.c:1754: error: `regex_t' undeclared (first use in this function)
client/clitar.c:1754: error: (Each undeclared identifier is reported only once
client/clitar.c:1754: error: for each function it appears in.)
client/clitar.c:1754: error: parse error before ')' token
client/clitar.c:1760: error: `errcode' undeclared (first use in this function)
client/clitar.c:1760: error: `REG_EXTENDED' undeclared (first use in this function)
client/clitar.c: At top level:
client/clitar.c:1775: error: parse error before "if"
client/clitar.c:1797: error: redefinition of `dry_run'
client/clitar.c:94: error: `dry_run' previously defined here
client/clitar.c:1797: warning: data definition has no type or storage class
client/clitar.c:1798: error: parse error before '}' token
client/clitar.c:1799: error: conflicting declarations of `tarhandle'
client/clitar.c:118: error: `tarhandle' previously declared here
client/clitar.c:1799: warning: data definition has no type or storage class
client/clitar.c:1800: error: parse error before '}' token
make: *** [client/clitar.o] Error 1
Qualcuno ha idea???