[Lognorm] Liblognorm from git on Ubuntu 11.10 # 2

Pierre Chifflier pollux at debian.org
Fri Mar 23 21:57:33 CET 2012


On Tue, Mar 20, 2012 at 04:40:06PM -0400, Champ Clark III wrote:
> I use to have Sagan only link with -llognorm,  but it appears I now
> need to link with -lestr, -lee and -llognorm.
> 
> Is this due to the API change,  or have I been missing something.

Hi,

This is caused by changes in DSO linking for indirect links. Here, sagan
is linked to liblognorm, and liblognorm is linked to other libs (libee,
which in turn is linked to libestr).
You now have to list all (direct and indirect) libraries when runningld.
This avoids problems when indirect libs changes.

Some details here:
http://fedoraproject.org/wiki/UnderstandingDSOLinkChange

Cheers,
Pierre

> 
> 
> On 3/20/12 4:34 PM, Champ Clark III wrote:
> > 
> > Rainer!
> > 
> > Have you every seen this on?  Happens on Ubuntu 11.10 as well:
> > 
> > 
> > gcc  -g -O2   -o sagan sagan.o sagan-classifications.o
> > sagan-config.o sagan-lockfile.o sagan-references.o sagan-rules.o
> > sagan-signal.o sagan-key.o sagan-stats.o sagan-strlcat.o
> > sagan-strlcpy.o sagan-usage.o sagan-util.o sagan-plog.o
> > sagan-output.o sagan-processor.o parse-ip.o parse-port.o
> > sagan-alert.o sagan-snort.o sagan-esmtp.o sagan-external.o
> > sagan-prelude.o sagan-unified2.o sagan-twofish.o sagan-snortsam.o
> > -llognorm -lm -lpthread -lpcre /usr/bin/ld: sagan.o: undefined
> > reference to symbol 'ee_initCtx' /usr/bin/ld: note: 'ee_initCtx' is
> > defined in DSO /usr/lib/libee.so.0 so try adding it to the linker
> > command line /usr/lib/libee.so.0: could not read symbols: Invalid
> > operation
> > 
> > Is it something to do with the API change?
> > 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.adiscon.net/pipermail/lognorm/attachments/20120323/d76c8383/attachment.pgp>


More information about the Lognorm mailing list