On Wed, Jun 23, 2004 at 03:34:59AM +0300, Constantin Gavrilescu wrote:
> 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
HINTHINTHINT! No such file or directory inseamna ca nu gaseste smb.conf
Ca sa vezi unde cauta, incearca strage.
> 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)
Vezi $LD_PRELOAD
> >>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?
Vezi la ./configure la samba.
--
George Cristian Birzan gcbirzan (at) wolfheart (dot) ro
I respect faith, but doubt is what gives you an education.
-- Wilson Mizner
---
Detalii despre listele noastre de mail: http://www.lug.ro/