SAMBA 3 - не собирается.
Добавлено: 2007-07-10 9:56:13
samba-3.0.14a
Делаю на freebsd 6.0 release
[9:13 /tmp/samba-3.0.14a/source]# ./configure --enable-cups --with-ldap --with-ldap --with-syslog --with-quotas --with-libsmbclient --with-acl-support --with-winbind
Потом make
и выдает сие...
Compiling smbd/build_options.c
Compiling lib/smbldap.c
lib/smbldap.c: In function `free_attr_list':
lib/smbldap.c:270: warning: passing arg 1 of `free' discards qualifiers from pointer target type
lib/smbldap.c: In function `smbldap_search':
lib/smbldap.c:1069: warning: passing arg 5 of `ldap_search_s' from incompatible pointer type
lib/smbldap.c: In function `smbldap_check_root_dse':
lib/smbldap.c:1474: warning: passing arg 5 of `ldap_search_s' from incompatible pointer type
Compiling smbd/server.c
Linking bin/smbd
/usr/local/lib/libroken.so: undefined reference to `__res_nsearch'
/usr/local/lib/libroken.so: undefined reference to `__res_ninit'
/usr/local/lib/libroken.so: undefined reference to `__res_nclose'
*** Error code 1
Stop in /tmp/samba-3.0.14a/source.
--------------------
То же самое на 3.0.25b !!
Куда рыть?
Обновил gcc до gcc-4.0.2_20050728
В итоге попробовал без ldap и вообще без всего:
делаю
./configure --disable-cups --without-ldap --without-syslog --without-quotas --without-libsmbclient --without-acl-support --with-winbind
далее...
[10:46 /tmp/samba-3.0.25b/source]# make
Using FLAGS = -O -D_SAMBA_BUILD_=3 -I/tmp/samba-3.0.25b/source/iniparser/src -Iinclude -I./include -I. -I. -I./lib/replace -I./lib/talloc -I./tdb/include -I./libaddns -I./librpc -DHAVE_CONFIG_H -I/usr/local/include -I/tmp/samba-3.0.25b/source/lib -D_SAMBA_BUILD_=3
PICFLAG = -fPIC -DPIC
LIBS = -lcrypt -liconv
LDFLAGS = -pie -L/usr/local/lib
DYNEXP = -Wl,--export-dynamic
LDSHFLAGS = -shared -L/usr/local/lib
SHLIBEXT = so
SONAMEFLAG = -Wl,-soname,
Compiling dynconfig.c
In file included from include/includes.h:788,
from /tmp/samba-3.0.25b/source/dynconfig.c:21:
include/proto.h:701: error: syntax error before '*' token
include/proto.h:702: error: syntax error before '*' token
include/proto.h:703: error: syntax error before '*' token
include/proto.h:704: error: syntax error before '*' token
include/proto.h:713: error: syntax error before "LDAPMod"
include/proto.h:714: error: syntax error before "LDAPMod"
include/proto.h:717: error: syntax error before "LDAP_CONST"
include/proto.h:725: error: syntax error before '*' token
include/proto.h:726: error: syntax error before '*' token
include/proto.h:727: error: syntax error before '*' token
include/proto.h:728: error: syntax error before '*' token
include/proto.h:4422: warning: "struct ldapsam_privates" declared inside parameter list
include/proto.h:4422: warning: its scope is only this definition or declaration, which is probably not what you want
The following command failed:
gcc -O -D_SAMBA_BUILD_=3 -I/tmp/samba-3.0.25b/source/iniparser/src -Iinclude -I./include -I. -I. -I./lib/replace -I./lib/talloc -I./tdb/include -I./libaddns -I./librpc -DHAVE_CONFIG_H -I/usr/local/include -I/tmp/samba-3.0.25b/source/lib -D_SAMBA_BUILD_=3 -DCONFIGFILE="/usr/local/samba/lib/smb.conf" -DSBINDIR="/usr/local/samba/sbin" -DBINDIR="/usr/local/samba/bin" -DLMHOSTSFILE="/usr/local/samba/lib/lmhosts" -DSWATDIR="/usr/local/samba/swat" -DLOCKDIR="/usr/local/samba/var/locks" -DPIDDIR="/usr/local/samba/var/locks" -DLIBDIR="/usr/local/samba/lib" -DLOGFILEBASE="/usr/local/samba/var" -DSHLIBEXT="so" -DCONFIGDIR="/usr/local/samba/lib" -DSMB_PASSWD_FILE="/usr/local/samba/private/smbpasswd" -DPRIVATE_DIR="/usr/local/samba/private" -fPIC -DPIC -c /tmp/samba-3.0.25b/source/dynconfig.c -o dynconfig.o
*** Error code 1
Stop in /tmp/samba-3.0.25b/source.
Делаю на freebsd 6.0 release
[9:13 /tmp/samba-3.0.14a/source]# ./configure --enable-cups --with-ldap --with-ldap --with-syslog --with-quotas --with-libsmbclient --with-acl-support --with-winbind
Потом make
и выдает сие...
Compiling smbd/build_options.c
Compiling lib/smbldap.c
lib/smbldap.c: In function `free_attr_list':
lib/smbldap.c:270: warning: passing arg 1 of `free' discards qualifiers from pointer target type
lib/smbldap.c: In function `smbldap_search':
lib/smbldap.c:1069: warning: passing arg 5 of `ldap_search_s' from incompatible pointer type
lib/smbldap.c: In function `smbldap_check_root_dse':
lib/smbldap.c:1474: warning: passing arg 5 of `ldap_search_s' from incompatible pointer type
Compiling smbd/server.c
Linking bin/smbd
/usr/local/lib/libroken.so: undefined reference to `__res_nsearch'
/usr/local/lib/libroken.so: undefined reference to `__res_ninit'
/usr/local/lib/libroken.so: undefined reference to `__res_nclose'
*** Error code 1
Stop in /tmp/samba-3.0.14a/source.
--------------------
То же самое на 3.0.25b !!
Куда рыть?
Обновил gcc до gcc-4.0.2_20050728
В итоге попробовал без ldap и вообще без всего:
делаю
./configure --disable-cups --without-ldap --without-syslog --without-quotas --without-libsmbclient --without-acl-support --with-winbind
далее...
[10:46 /tmp/samba-3.0.25b/source]# make
Using FLAGS = -O -D_SAMBA_BUILD_=3 -I/tmp/samba-3.0.25b/source/iniparser/src -Iinclude -I./include -I. -I. -I./lib/replace -I./lib/talloc -I./tdb/include -I./libaddns -I./librpc -DHAVE_CONFIG_H -I/usr/local/include -I/tmp/samba-3.0.25b/source/lib -D_SAMBA_BUILD_=3
PICFLAG = -fPIC -DPIC
LIBS = -lcrypt -liconv
LDFLAGS = -pie -L/usr/local/lib
DYNEXP = -Wl,--export-dynamic
LDSHFLAGS = -shared -L/usr/local/lib
SHLIBEXT = so
SONAMEFLAG = -Wl,-soname,
Compiling dynconfig.c
In file included from include/includes.h:788,
from /tmp/samba-3.0.25b/source/dynconfig.c:21:
include/proto.h:701: error: syntax error before '*' token
include/proto.h:702: error: syntax error before '*' token
include/proto.h:703: error: syntax error before '*' token
include/proto.h:704: error: syntax error before '*' token
include/proto.h:713: error: syntax error before "LDAPMod"
include/proto.h:714: error: syntax error before "LDAPMod"
include/proto.h:717: error: syntax error before "LDAP_CONST"
include/proto.h:725: error: syntax error before '*' token
include/proto.h:726: error: syntax error before '*' token
include/proto.h:727: error: syntax error before '*' token
include/proto.h:728: error: syntax error before '*' token
include/proto.h:4422: warning: "struct ldapsam_privates" declared inside parameter list
include/proto.h:4422: warning: its scope is only this definition or declaration, which is probably not what you want
The following command failed:
gcc -O -D_SAMBA_BUILD_=3 -I/tmp/samba-3.0.25b/source/iniparser/src -Iinclude -I./include -I. -I. -I./lib/replace -I./lib/talloc -I./tdb/include -I./libaddns -I./librpc -DHAVE_CONFIG_H -I/usr/local/include -I/tmp/samba-3.0.25b/source/lib -D_SAMBA_BUILD_=3 -DCONFIGFILE="/usr/local/samba/lib/smb.conf" -DSBINDIR="/usr/local/samba/sbin" -DBINDIR="/usr/local/samba/bin" -DLMHOSTSFILE="/usr/local/samba/lib/lmhosts" -DSWATDIR="/usr/local/samba/swat" -DLOCKDIR="/usr/local/samba/var/locks" -DPIDDIR="/usr/local/samba/var/locks" -DLIBDIR="/usr/local/samba/lib" -DLOGFILEBASE="/usr/local/samba/var" -DSHLIBEXT="so" -DCONFIGDIR="/usr/local/samba/lib" -DSMB_PASSWD_FILE="/usr/local/samba/private/smbpasswd" -DPRIVATE_DIR="/usr/local/samba/private" -fPIC -DPIC -c /tmp/samba-3.0.25b/source/dynconfig.c -o dynconfig.o
*** Error code 1
Stop in /tmp/samba-3.0.25b/source.