[Samba] The problem with compiling samba

Алексей Класников klasnikov at mail.ru
Thu Apr 24 10:45:27 GMT 2008

Hello. I have such a problem.
I would like to join the freebsd(6.3) computer to existing Windows Domain.
(managed by Windows Server 2003 R2)

0)I have working windows domain and working freebsd computer.

1)Firstly I've compiled and installed heimdal 1.0.1 
/usr/ports/security/heimdal/ on freebsd
It's ok
I've editted krb5.conf.

kinit gets a ticket from the REALM and 
klist says its valid... it seems kerberos working...

2)Then I set next options in samba compilation
3)make in  /usr/ports/net/samba3  fails with error
Compiling libsmb/clifile.c
Compiling libsmb/clikrb5.c
libsmb/clikrb5.c: In function `krb5_set_real_time':
libsmb/clikrb5.c:128: error: dereferencing pointer to incomplete type
libsmb/clikrb5.c:129: error: dereferencing pointer to incomplete type
The following command failed:
cc -I. -I/usr/ports/net/samba3/work/samba-3.0.28/source  -O -pipe -march=pentium4 -D_SAMBA_BUILD_=3  -I/usr/ports/net/samba3/work/samba-3.0.28/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 -DLDAP_DEPRECATED    -I/usr/ports/net/samba3/work/samba-3.0.28/source/lib -D_SAMBA_BUILD_=3 -fPIC -DPIC -c libsmb/clikrb5.c -o libsmb/clikrb5.o
*** Error code 1

Stop in /usr/ports/net/samba3/work/samba-3.0.28/source.
*** Error code 1

Stop in /usr/ports/net/samba3.
*** Error code 1

Stop in /usr/ports/net/samba3.

1) I don't know what to do. Could anyone helps?
2) Am I right that I've installed heimdal package before samba?
   Is it nessesary?

Thanks in advance, Alexei

More information about the samba mailing list