Hi,2013/8/22 Daniel James <[email protected]>
>
> Hi all,
>
> When building Liquidsoap from source for Debian/Ubuntu systems, are
> Debian's stub library packages needed on the production system? Such as
> these:
>
> libao-ocaml
> libmad-ocaml
> libtaglib-ocaml
>
> If I run ldd on the resulting Liquidsoap binaries, I get a dependency on
> libmad.so.0 for example, not the library provided by the libmad-ocaml
> package:
>
> /usr/lib/ocaml/stublibs/dllmad_stubs.so
>
> I'm guessing these stub libraries are related to the way Debian packages
> binary Liquidsoap plugins, as they are dependencies of the plugin
> packages, e.g:
>
> http://packages.debian.org/wheezy/liquidsoap-plugin-mad
>
> When using our own source build of Liquidsoap, I can remove libmad-ocaml
> from a Debian wheezy system and then run the following command:
>
> liquidsoap 'output.pulseaudio(playlist("playlist.pls"),fallible=true)'
>
> where playlist.pls is a list of MP3 files, and they play fine.
OCaml stubs libraries are for programs built in bytecode and no custom mode
enabled.
Plain bytecode programs (i.e. no custom mode) do not ship the small binary
glue used by OCaml bindings to support external libraries' API. They thus
have to be load that glue when the program starts, using some kind of
dlopen technique.
Bytecode programs compiled in custom mode contain this binary data in one
of the sections provided by the ELF format. However, these binaries are
somewhat not standard and can for instance be broken by stripping programs.
Up until a couple of years ago, bytecode programs in Debian were mostly in
custom mode. It took a long time, a lot of energy and a rather complex
dependency system to have plain bytecode programs instead. While this work
was a great piece of software engineering, I wouldn't recommend plain
bytecode builds to anybody.
As a matter of fact, I wouldn't recommend compiling a bytecode liquidsoap
at all. Unless, of course, you are compiling for an architecture that does
not have a native compiler.
And, of course, binary builds of liquidsoap do not need stub libraries at
all, which is probably the true answer to your question here :-)
Romain
------------------------------------------------------------------------------
Introducing Performance Central, a new site from SourceForge and
AppDynamics. Performance Central is your source for news, insights,
analysis and resources for efficient Application Performance Management.
Visit us today!
http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users