libsmbclient.so / OpenBSD

Alain BARBET alian at alianwebserver.com
Thu Feb 28 17:15:18 GMT 2002


Hi,

In order to use libsmbclient.so on OpenBSD....
bash-2.05$ gcc -I../../source/include/ ../../source/bin/libsmbclient.so 
testsmbc.c

Ok it's build

bash-2.05$ gcc -I../../source/include/ -L../../source/bin/ -lsmbclient 
testsmbc.c
/tmp/ccc17004.o: Undefined symbol `_smbc_init' referenced from text segment
....
/tmp/ccc17004.o: Undefined symbol `_smbc_mkdir' referenced from text segment
/tmp/ccc17004.o: Undefined symbol `_smbc_rmdir' referenced from text segment
/tmp/ccc17004.o: Undefined symbol `_smbc_mkdir' referenced from text segment
collect2: ld returned 1 exit status
bash-2.05$ gcc -v
Reading specs from /usr/lib/gcc-lib/i386-unknown-openbsd3.0/2.95.3/specs
gcc version 2.95.3 20010125 (prerelease)

Damm I can't use it as a shared library :-(
Any ideas ?

Regards,
--
Alain BARBET




More information about the samba-technical mailing list