On Sat, Jul 12, 2014 at 10:20 AM, Hanno Böck <[email protected]> wrote:
>
> I had a number of compilation problems with packages when linking to
> libressl that I could trace back to the appearance of a "main" symbol
> in libcrypto.so.
>

Hmm, can you please provide a detailed example of one of these?



> I'm far from an expert in dynamic linking and so-files, but afaik
> libraries shouldn't have a main function symbol. It came from
> getentropy_linux.c and wasn't really a function, just a stub of it.
>

The goal is for it to be a reference to the executable's main().  It should
be an undefined symbol in the library that the linker resolves to the
executable's.  So, before just ripping it out (it's there for a reason),
let's get enough info to understand why it's causing "compilation problems"
(that's a pretty generic description...)


Philip Guenther

Reply via email to