Error compiling libsmb examples 3.0.26pre1-SVN-build-22419

Henrik Zagerholm henke at mac.se
Fri Apr 20 23:05:13 GMT 2007


Hello list,

I get the following errors when compiling the examples in libsmbclient.
The make && make install of samba itself works but no examples.

Enclosed are the error messages.

cubiq-debian:~/downloads/SAMBA_3_0/examples/libsmbclient# make
gcc -O0 -g -I../../source/include -I/usr/include/gtk-1.2 -I/usr/ 
include/glib-1.2 -I/usr/lib/glib/include -D_LARGEFILE64_SOURCE - 
D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE   -c -o testsmbc.o testsmbc.c
Linking testsmbc
gcc -O0 -g -I../../source/include -I/usr/include/gtk-1.2 -I/usr/ 
include/glib-1.2 -I/usr/lib/glib/include -D_LARGEFILE64_SOURCE - 
D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -L/usr/local/samba/lib -o  
testsmbc testsmbc.o ../../source/bin/libsmbclient.a -ldl -lresolv
../../source/bin/libsmbclient.a(cliconnect.o): In function  
`cli_session_setup_spnego':
cliconnect.c:(.text+0x29b5): undefined reference to `error_message'
cliconnect.c:(.text+0x2ac3): undefined reference to `error_message'
../../source/bin/libsmbclient.a(smb_seal.o): In function  
`common_free_enc_buffer':
smb_seal.c:(.text+0x132): undefined reference to `gss_release_buffer'
../../source/bin/libsmbclient.a(smb_seal.o): In function  
`common_free_encryption_state':
smb_seal.c:(.text+0x1e4): undefined reference to `gss_release_cred'
smb_seal.c:(.text+0x200): undefined reference to  
`gss_delete_sec_context'
../../source/bin/libsmbclient.a(smb_seal.o): In function  
`common_encrypt_buffer':

-------------------------------- SNIP  
--------------------------------------

clikrb5.c:(.text+0x17dc): undefined reference to `error_message'
clikrb5.c:(.text+0x1895): undefined reference to `krb5_set_real_time'
clikrb5.c:(.text+0x18b0): undefined reference to `krb5_cc_get_type'
clikrb5.c:(.text+0x1914): undefined reference to `krb5_cc_get_name'
clikrb5.c:(.text+0x19ec): undefined reference to `krb5_cc_remove_cred'
clikrb5.c:(.text+0x1a33): undefined reference to `error_message'
clikrb5.c:(.text+0x1abd): undefined reference to `krb5_cc_get_name'
clikrb5.c:(.text+0x1adb): undefined reference to `krb5_cc_get_type'
clikrb5.c:(.text+0x1b52): undefined reference to `krb5_mk_req_extended'
clikrb5.c:(.text+0x1b99): undefined reference to `error_message'
clikrb5.c:(.text+0x1bc0): undefined reference to `krb5_free_creds'
clikrb5.c:(.text+0x1bd8): undefined reference to  
`krb5_free_cred_contents'
clikrb5.c:(.text+0x1bed): undefined reference to `krb5_free_principal'
clikrb5.c:(.text+0x1c7a): undefined reference to `krb5_cc_close'
clikrb5.c:(.text+0x1c90): undefined reference to `krb5_auth_con_free'
clikrb5.c:(.text+0x1c9b): undefined reference to `krb5_free_context'
clikrb5.c:(.text+0x1cb2): undefined reference to `krb5_free_principal'
collect2: ld returned 1 exit status
make: *** [testsmbc] Error 1


Regards,
Henrik


More information about the samba-technical mailing list