[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Issue to build libmlpcap-ocaml-dev examples on Debian Etch



On 16-04-2008, David MENTRE <dmentre@linux-france.org> wrote:
> Hello,
>
> I'm trying to build /usr/share/doc/libmlpcap-ocaml-dev/examples/ on
> Debian Etch 4.0. It does not compile when doing a "make":
>
> $ make
> [...]
> ocamlfind ocamlc -package pcap -linkpkg -o misc misc.cmo
> /usr/bin/ld: cannot find -lcallback
> collect2: ld returned 1 exit status
> Error while building custom runtime system
> make: *** [misc] Error 2
>
> On my system, the only libcallback I have is "/usr/lib/libcallback.so.0.0.0".
>
> I tried to add /usr/lib/ path for libraries but it does not help:
>
> $ ocamlfind ocamlc -verbose -ccopt -L/usr/lib/ -package pcap -linkpkg
> -o misc misc.cmo
> Effective set of compiler predicates: pkg_pcap,autolink,byte
> + ocamlc.opt -verbose -ccopt -L/usr/lib/ -o misc -I
> /usr/lib/ocaml/3.09.2/pcap -ccopt -I/usr/lib/ocaml/3.09.2/pcap -ccopt
> -L/usr/lib/ocaml/3.09.2/pcap /usr/lib/ocaml/3.09.2/pcap/pcap.cma
> misc.cmo
> + gcc -Wl,-E -o 'misc' -I'/usr/lib/ocaml/3.09.2' -L/usr/lib/
> -I/usr/lib/ocaml/3.09.2/pcap -L/usr/lib/ocaml/3.09.2/pcap
> /tmp/camlprimcb0920.c  '-L/usr/lib/ocaml/3.09.2/pcap'
> '-L/usr/lib/ocaml/3.09.2' '-lpcap_stubs' '-lcallback' '-lpcap'
> '-lcamlidl' -lcamlrun -lm  -ldl -lcurses -lpthread
> /usr/bin/ld: cannot find -lcallback
> collect2: ld returned 1 exit status
> Error while building custom runtime system
> ocamlc.opt returned with exit code 2
>
>
> Any idea of what I'm doing wrong?
>

I think that -lcallback can only be solved using libcallback.so. 

Check that libffcall1-dev is installed. 

This should be a dependency of libmlpcap-ocaml-dev (if it is not, this
is a bug, and you should submit it to the BTS).

Regards,
Sylvain Le Gall


Reply to: