When I try to compile net/samba33 after installing krb5, I get the following error when it getsto libsmb.clikrb5.c: libsmb/clikrb5.c: In function 'krb5_set_real_time': libsmb/clikrb5.c:132: error: dereferencing pointer to incomplete type libsmb/clikrb5.c:133: error: dereferencing pointer to incomplete type libsmb/clikrb5.c: In function 'create_kerberos_key_from_string_direct': libsmb/clikrb5.c:244: error: 'krb5_salt' undeclared (first use in this function) libsmb/clikrb5.c:244: error: (Each undeclared identifier is reported only once libsmb/clikrb5.c:244: error: for each function it appears in.) libsmb/clikrb5.c:244: error: expected ';' before 'salt' libsmb/clikrb5.c:246: error: 'salt' undeclared (first use in this function) libsmb/clikrb5.c: In function 'smb_krb5_renew_ticket': libsmb/clikrb5.c:1301: error: 'krb5_kdc_flags' undeclared (first use in this function) libsmb/clikrb5.c:1301: error: expected ';' before 'flags' libsmb/clikrb5.c:1302: error: 'krb5_realm' undeclared (first use in this function) libsmb/clikrb5.c:1302: error: 'client_realm' undeclared (first use in this function) libsmb/clikrb5.c:1327: error: 'flags' undeclared (first use in this function) The following command failed: cc -I. -I/usr/ports/net/samba33/work/samba-3.3.7/source -I/usr/ports/net/samba33/work/samba-3.3.7/source/iniparser/src -Iinclude -I./include -I. -I. -I./lib/replace -I./lib/talloc -I./lib/tdb/include -I./libaddns -I./librpc -DHAVE_CONFIG_H -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -I/usr/local/include/avahi-compat-libdns_sd/ -Iinclude -I./include -I. -I. -I./lib/replace -I./lib/talloc -I./lib/tdb/include -I./libaddns -I./librpc -I./popt -I/usr/local/include -DLDAP_DEPRECATED -O2 -fno-strict-aliasing -pipe -DLDAP_DEPRECATED -O -D_SAMBA_BUILD_=3 -I/usr/ports/net/samba33/work/samba-3.3.7/source/lib -D_SAMBA_BUILD_=3 -fPIC -DPIC -c libsmb/clikrb5.c -o libsmb/clikrb5.o gmake: *** [libsmb/clikrb5.o] Error 1 *** Error code 1 Stop in /usr/ports/net/samba33. *** Error code 1 Stop in /usr/ports/net/samba33. ** Command failed [exit code 1]: /usr/bin/script -qa /tmp/portinstall20090819-72636-14hu4m5-0 env make ** Fix the problem and try again. ** Listing the failed packages (-:ignored / *:skipped / !:failed) ! net/samba33 (compiler error) I have already tried removing krb5 and installing heimdal, but no luck.
I forgot to mention that this is on FreeBSD 7.2-RELEASE
UPDATE: I removed krb5 and installed heimdal instead. This got rid of the 'salt' errors. I am still getting "dereferencing pointer to incomplete type" in the 'krb5_set_real_time' function in libsmb/clikrb5.c
ok, installing samba via the freebsd port was the problem. I did a clean install of krb5 and a clean make of samba specifying KRB5_HOME=/usr/local and that worked. I will file this bug with the freebsd site.