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

> 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?

> Deci nu se linkeaza cu libsmbclient din /usr/local/samba... asta sa fie 
> singura problema? Cum sa o rezolv?

Din motive de ld. man ld ldconfig


-- 
George Cristian Birzan                  gcbirzan (at) wolfheart (dot) ro
Always acknowledge a fault. This will throw those in authority off their
guard and give you an opportunity to commit more.
                -- Mark Twain

--- 
Detalii despre listele noastre de mail: http://www.lug.ro/


Raspunde prin e-mail lui