From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id UAA06040; Tue, 14 Oct 2003 20:37:52 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id UAA29116 for ; Tue, 14 Oct 2003 20:37:51 +0200 (MET DST) Received: from mailhost.ens-lyon.fr (pluvier.ens-lyon.fr [140.77.167.5]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id h9EIbo111757 for ; Tue, 14 Oct 2003 20:37:50 +0200 (MET DST) Received: by mailhost.ens-lyon.fr with scanned-ok (Exim 3.35 #1 (Debian)) id 1A9U3J-0004G4-00 for ; Tue, 14 Oct 2003 20:37:49 +0200 Received: from mailhost.ens-lyon.fr ([127.0.0.1]) by localhost (pluvier [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 15674-03 for ; Tue, 14 Oct 2003 20:37:49 +0200 (CEST) Received: from korolev ([140.77.128.157]) by mailhost.ens-lyon.fr with smtp (Exim 3.35 #1 (Debian)) id 1A9U3I-0004Af-00 for ; Tue, 14 Oct 2003 20:37:48 +0200 Message-ID: <004801c39282$42ee1990$9d804d8c@Korolev> From: =?iso-8859-1?Q?Richard_Ga=E9tan?= To: Subject: [Caml-list] Problem to link Date: Tue, 14 Oct 2003 20:37:43 +0200 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0045_01C39293.04A86B20" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 X-Virus-Scanned: by amavisd-new-20030616-p5 (Debian) at ens-lyon.fr X-Loop: caml-list@inria.fr X-Spam: no; 0.00; ens-lyon:01 compiles:01 ocamlc:01 ocamlc:01 compiles:01 roman:98 roman:98 cmo:01 cmo:01 bindings:01 bindings:01 ocaml:01 ocaml:01 -custom:01 -custom:01 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk This is a multi-part message in MIME format. ------=_NextPart_000_0045_01C39293.04A86B20 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hello, I am currently working on OCaml bindings for the samba library and I = have encountered the following problem: The library (written in C) I need to include (smbclient) in my program = uses a fonction nammed string_set and so has Ocaml. I don't need this = function in my code but it is used inside the library. I have two files in my library: the C one compiles to smbclient.o and = the OCaml one to smbclient.cmo. I can compile the program without warning by doing : ocamlc -cclib lsmbclient -custom smbclient.o smbclient.cmo But during the link phase Ocamlc links string_set to his own function , = resulting a segmentation fault in the program. Does anyone know how I can compile my program in order that every call = at string_set in the smbclient library use the function string_set = located in that library ? Thanks, Ga=E9tan ------=_NextPart_000_0045_01C39293.04A86B20 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hello,

I=20 am currently working on OCaml bindings for the samba library and I = have=20 encountered the following problem:

The library (written in C) I = need to=20 include (smbclient) in my program uses a fonction nammed string_set = and so=20 has Ocaml. I don't need this function in
my code but it is used = inside the=20 library.

I have two files in my library: the C one compiles to=20 smbclient.o and the OCaml one to smbclient.cmo.

I can=20 compile the program without warning by doing :
ocamlc -cclib = lsmbclient=20 -custom smbclient.o smbclient.cmo

But during the link phase = Ocamlc links=20 string_set to his own function , resulting a segmentation fault in the=20 program.

 Does anyone know how I can compile my program in = order=20 that every call at string_set in the smbclient library use the function=20 string_set located in that library=20 ?

Thanks,

Ga=E9tan

------=_NextPart_000_0045_01C39293.04A86B20-- ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners