libsmbclient.so / OpenBSD

Alain BARBET alb at albert-inc.com
Sat Mar 2 05:45:02 GMT 2002


> Hmmm, it works on FreeBSD 4.3.
Yep, and on Solaris & NetBSD too. Ok I found the problem:

> Have the .so been copied to the place where shared libs go? 

Not needed for compile time with -L flag

> Do you need to do something like ldconfig under OpenBSD?

Yes but ...
bash-2.05# ldconfig -v -s /home/alian/workplace/samba-2.2.2/source/bin
Totals: entries 0, buckets 0, string size 45
cc -I../../source/include/ -L../../source/bin/ -lsmbclient testsmbc.c
/tmp/ccPa4890.o: Undefined symbol `_smbc_init' referenced from text segment
....
/tmp/ccPa4890.o: Undefined symbol `_smbc_mkdir' referenced from text segment
collect2: ld returned 1 exit status

bash-2.05# ln -s libsmbclient.so libsmbclient.so.0
bash-2.05# ldconfig -v -s /home/alian/workplace/samba-2.2.2/source/bin
Adding /home/alian/workplace/samba-2.2.2/source/bin/libsmbclient.so.0
Totals: entries 1, buckets 1, string size 118
bash-2.05$ cc -I../../source/include/ -L../../source/bin/ -lsmbclient 
testsmbc.c
bash-2.05$ ./a.out
Initializing the smbclient library ...:
Ok It's work !

I need to make symlink on libsmbclient to put a no version, then ldconfig can 
found it. Usually this is done at install stage no ?(when you use libtool 
;-)? 
But seems that make install doesn't deal with libsmbclient ?

Regards,
--
Alain BARBET





More information about the samba-technical mailing list