Errors in 3.0alpha24 compilation

satadru at umich.edu satadru at umich.edu
Mon May 19 15:33:56 GMT 2003


I'm getting some fatal errors in compiling samba 3.0alpha24.  I was able to 
successfully compile (and use) samba 3.0alpha23.  Any assistance in 
figuring out what is going wrong would be appreciated.

The compile is on MacOS X - 10.2.6 with a modified Makefile, one apple uses 
to compile samba on its systems:

<http://www.opensource.apple.com/darwinsource/10.2.6/samba/Makefile>

I have made the following changes:
Added to Extra_Configure_Flags:
                        --with-ldapsam \
                        --without-ads \
                        --disable-cups \
                         --with-tdbsam \


I've patched the source with the patch at  	

https://bugzilla.samba.org/show_bug.cgi?id=83

because the source dir is different from the build dir.

The compile fails with this error:

Compiling utils/net_groupmap.c
Linking bin/net
ld: warning multiple definitions of symbol _snprintf
lib/snprintf.o definition of _snprintf in section (__TEXT,__text)
/usr/lib/libSystem.dylib(snprintf.So) definition of _snprintf
ld: warning multiple definitions of symbol _vsnprintf
lib/snprintf.o definition of _vsnprintf in section (__TEXT,__text)
/usr/lib/libSystem.dylib(vsnprintf.So) definition of _vsnprintf
ld: Undefined symbols:
_ldap_domain2hostlist
_mysql_error
_mysql_fetch_row
_mysql_free_result
_mysql_init
_mysql_num_fields
_mysql_num_rows
_mysql_query
_mysql_real_connect
_mysql_real_escape_string
_mysql_store_result
_ber_free
_ldap_add_s
_ldap_count_entries
_ldap_delete_s
_ldap_err2string
_ldap_first_attribute
_ldap_first_entry
_ldap_get_dn
_ldap_get_option
_ldap_get_values
_ldap_initialize
_ldap_memfree
_ldap_modify_s
_ldap_mods_free
_ldap_msgfree
_ldap_next_attribute
_ldap_next_entry
_ldap_search_s
_ldap_set_option
_ldap_set_rebind_proc
_ldap_simple_bind_s
_ldap_start_tls_s
_ldap_unbind_ext
_ldap_value_free
_ber_alloc_t
_ber_bvdup
_ber_bvfree
_ber_flatten
_ber_init
_ber_printf
_ber_scanf
_ldap_add_result_entry
_ldap_controls_free
_ldap_delete
_ldap_get_values_len
_ldap_modify_ext_s
_ldap_open
_ldap_parse_result
_ldap_search_ext_s
_ldap_value_free_len
_ldap_sasl_bind_s
_ldap_unbind
make[1]: *** [bin/net] Error 1
make: *** [build] Error 2
	

If I don't have the "--without-ads" in Extra_Configure_Flags, compilation 
dies earlier with this error (which also was a problem with the 3.0alpha23 
build)

Compiling libsmb/clikrb5.c
/Users/admin/newsamba/samba-3.0alpha24/source/libsmb/clikrb5.c: In
function `krb5_set_real_time':
/Users/admin/newsamba/samba-3.0alpha24/source/libsmb/clikrb5.c:49:
dereferencing pointer to incomplete type
/Users/admin/newsamba/samba-3.0alpha24/source/libsmb/clikrb5.c:50:
dereferencing pointer to incomplete type
/Users/admin/newsamba/samba-3.0alpha24/source/libsmb/clikrb5.c:137:2:
#error UNKNOWN_GET_ENCTYPES_FUNCTIONS
/Users/admin/newsamba/samba-3.0alpha24/source/libsmb/clikrb5.c: At top
level:
/Users/admin/newsamba/samba-3.0alpha24/source/libsmb/clikrb5.c:140:
syntax error before "void"
/Users/admin/newsamba/samba-3.0alpha24/source/libsmb/clikrb5.c: In
function `krb5_locate_kdc':
/Users/admin/newsamba/samba-3.0alpha24/source/libsmb/clikrb5.c:186:
`krb5_krbhst_handle' undeclared (first use in this function)
/Users/admin/newsamba/samba-3.0alpha24/source/libsmb/clikrb5.c:186:
(Each undeclared identifier is reported only once
/Users/admin/newsamba/samba-3.0alpha24/source/libsmb/clikrb5.c:186: for
each function it appears in.)
/Users/admin/newsamba/samba-3.0alpha24/source/libsmb/clikrb5.c:186:
parse error before "hnd"
/Users/admin/newsamba/samba-3.0alpha24/source/libsmb/clikrb5.c:187:
`krb5_krbhst_info' undeclared (first use in this function)
/Users/admin/newsamba/samba-3.0alpha24/source/libsmb/clikrb5.c:187:
`hinfo' undeclared (first use in this function)
/Users/admin/newsamba/samba-3.0alpha24/source/libsmb/clikrb5.c:195:
`KRB5_KRBHST_KDC' undeclared (first use in this function)
/Users/admin/newsamba/samba-3.0alpha24/source/libsmb/clikrb5.c:195:
`hnd' undeclared (first use in this function)
make[1]: *** [libsmb/clikrb5.o] Error 1
make: *** [build] Error 2





More information about the samba-technical mailing list