I had ocamlsdl installed, but on a hunch (not much of one, considering the string "ttf" is clearly visible), I recompiled ocamlsdl with "truetype" and that solved it.
However, I am confused as to why this would be required in a situation like mine, running a headless server with no X. If there's no way around it, I suggest making "truetype" an rdep for the ocamlsdl ebuild so that liquidsoap compiles without this error. Then I got a different error: OCAMLOPT -o liquidsoap /usr/lib64/ocaml/gd/libocamlgd.a(gdstubs.o): In function `ml_image_open_png': (.text+0x402): undefined reference to `gdImageCreateFromPng' /usr/lib64/ocaml/gd/libocamlgd.a(gdstubs.o): In function `ml_image_open_jpeg': (.text+0x552): undefined reference to `gdImageCreateFromJpeg' /usr/lib64/ocaml/gd/libocamlgd.a(gdstubs.o): In function `ml_save_png': (.text+0x1cbb): undefined reference to `gdImagePng' /usr/lib64/ocaml/gd/libocamlgd.a(gdstubs.o): In function `ml_save_jpeg': (.text+0x1d19): undefined reference to `gdImageJpeg' /usr/lib64/ocaml/gd/libocamlgd.a(gdstubs.o): In function `ml_dump_png': (.text+0x1d5b): undefined reference to `gdImagePngPtr' /usr/lib64/ocaml/gd/libocamlgd.a(gdstubs.o): In function `ml_dump_jpeg': (.text+0x1da6): undefined reference to `gdImageJpegPtr' collect2: ld returned 1 exit status File "caml_startup", line 1, characters 0-1: Error: Error during linking make[2]: *** [liquidsoap] Error 2 make[2]: Leaving directory `/var/tmp/portage/media-radio/liquidsoap-1.0.0/work/liquidsoap-1.0.0/src' make[1]: *** [all-auto-ocaml-prog] Error 2 make[1]: Leaving directory `/var/tmp/portage/media-radio/liquidsoap-1.0.0/work/liquidsoap-1.0.0/src' make: *** [all-subdirs] Error 2 * ERROR: media-radio/liquidsoap-1.0.0 failed (compile phase): * emake failed I don't know if the ebuild adds -disable-graphics to the configure options if the graphics use flag is not used, but as an experiment, I enabled the graphics use flag, which brought in omake and camlimages, and got rid of this error. However, I got the "unbound module Graphics" error that some of us already know about. When I recompiled camlimages with the jpeg and png use flags, it changed nothing: File "visualization/vis_volume.ml", line 43, characters 4-23: Error: Unbound module Graphics make[2]: *** [visualization/vis_volume.cmx] Error 2 make[2]: *** Waiting for unfinished jobs.... make[2]: Leaving directory `/var/tmp/portage/media-radio/liquidsoap-1.0.0/work/liquidsoap-1.0.0/src' make[1]: *** [all-auto-ocaml-prog] Error 2 make[1]: Leaving directory `/var/tmp/portage/media-radio/liquidsoap-1.0.0/work/liquidsoap-1.0.0/src' make: *** [all-subdirs] Error 2 * ERROR: media-radio/liquidsoap-1.0.0 failed (compile phase): * emake failed What should we change to make this work? I don't need (as far as I know) anything to do with "graphics" while using liquidsoap, although I am willing to accept extra deps and libs for a working liquidsoap ebuild if that is easier. On 06/01/12 07:49, David Baelde wrote: > Do you have ocaml-sdl? Do you have sdlttf.cmi in the directory given > by ocamlfind -query sdl? > -- My music: http://audiodef.com Synthetronica: http://synthetronica.com Male survivors of domestic violence: http://abusedmen.org ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Savonet-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/savonet-users
