Dear ocamlsdl and camlimages developers, Your libraries cannot be linked together because both define the "list_length" symbol (more precisely, it is ci_gif in camlimages):
/usr/lib/ocaml/3.10.2/sdl/libsdlstub.a(common.o): In function `list_length': (.text+0x0): multiple definition of `list_length' /usr/lib/ocaml/3.10.2/camlimages/libci_gif.a(gifwrite.o):(.text+0x0): first defined here collect2: ld returned 1 exit status It would be nice if you could either declare this function as static so that it is not exported (it does not seem to be needed from outside) or prefix its name (ie rename it to caml_sdl_list_length for example). A few other symbols seem to be too generic in both libraries and could lead to similar clashes. For example, ocamlsdl exports functions such as getpixel, putpixel, Val_some, cons, etc. It would be nice if these functions could be either declared as static or renamed. The list of exported symbols can be found with "objdump -T" on the generated .so files. Thanks! Cheers, Samuel. ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Savonet-devl mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/savonet-devl
