Cam pe la 06/23/2004 02:53 AM, George Cristian Birzan scrise:
>On Wed, Jun 23, 2004 at 02:37:01AM +0300, Constantin Gavrilescu wrote:
>
>
>>De compilat se compileaza, se si linkeaza (cica) dar cind il rulez, nu
>>gaseste biblioteca smbclient:
>>
>>$ ./testsmbc
>>Initializing the smbclient library ...: No such file or directory
>>
>>Problema la la inceput.... la bucata asta de cod:
>> err = smbc_init(auth_fn, 10); /* Initialize things */
>> if (err < 0) {
>> fprintf(stderr, "Initializing the smbclient library ...: %s\n",
>>strerror(errno));
>> }
>>
>>
>
>Unde scrie ca "nu gaseste biblioteca smbclient"? Scrie ca nu a putut sa
>o initializeze. Un Google scurt, si avem:
>http://beboer.oek.dk/kimhanse/libsmbclient/libsmbclient_8h.html#a16
>
>
Am mai umblat la el.. si am reusit sa scot segmentation fault:
(gdb) run
Starting program:
/home/costi/downloads/samba-3.0.4/examples/libsmbclient/testsmbc
Error initializing the smbclient library ...: No such file or directory
Need password for //costi/public
Enter username: [] guest
Enter password: []
Program received signal SIGSEGV, Segmentation fault.
0x40052d72 in unicode_to_unix_char () from /usr/lib/libsmbclient.so.0
Cum sa-l fac sa linkeze cu cea din /usr/local/samba?
Am adaugat in /etc/ld.so.conf linia /usr/local/samba/lib si apoi am
rulat ldconfig -v si la sfarsit a zis:
/usr/local/samba/lib:
libsmbclient.so.0 -> libsmbclient.so (changed)
>>Daca vreau sa-l linkez static, nu vrea:
>>[EMAIL PROTECTED] libsmbclient]$ make testsmbc-static
>>Linking testsmbc
>>/usr//bin/ld: cannot find -lsmbclient
>>collect2: ld returned 1 exit status
>>make: *** [testsmbc-static] Error 1
>>
>>
>
>Ai biblioteca compilata static?
>
>
Ce inseamna asta? Cum se face?
--
Ce nu te omoara ti-o intareste.
---
Detalii despre listele noastre de mail: http://www.lug.ro/