Bug 6645 - cannot build v3.3.7 on freebsd-7.2
Summary: cannot build v3.3.7 on freebsd-7.2
Status: RESOLVED FIXED
Alias: None
Product: Samba 3.3
Classification: Unclassified
Component: Build environment (show other bugs)
Version: 3.3.7
Hardware: x86 FreeBSD
: P3 regression
Target Milestone: ---
Assignee: Björn Jacke
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-08-18 19:06 UTC by Guillermo Gutierrez
Modified: 2009-08-19 15:19 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Guillermo Gutierrez 2009-08-18 19:06:19 UTC
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.
Comment 1 Guillermo Gutierrez 2009-08-18 19:07:21 UTC
I forgot to mention that this is on FreeBSD 7.2-RELEASE
Comment 2 Guillermo Gutierrez 2009-08-19 14:57:03 UTC
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
Comment 3 Guillermo Gutierrez 2009-08-19 15:19:46 UTC
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.