Auparse library event...............

Valdis.Kletnieks at vt.edu Valdis.Kletnieks at vt.edu
Fri Jan 18 11:03:00 UTC 2008


> I tried the above program for but after compilation its giving following
> linking error.
> 
> /tmp/ccMo3ClJ.o: In function `main':
> parselib.c:(.text+0x21): undefined reference to `auparse_init'
> parselib.c:(.text+0x61): undefined reference to `ausearch_set_param'
> parselib.c:(.text+0x84): undefined reference to `auparse_find_field'
> parselib.c:(.text+0x93): undefined reference to `auparse_interpret_field'
> parselib.c:(.text+0xae): undefined reference to `ausearch_next_event'
> parselib.c:(.text+0xbd): undefined reference to `auparse_destroy'
> collect2: ld returned 1 exit status

Smells suspiciously like you forgot to pass "-laudit" when linking.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 226 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/linux-audit/attachments/20080118/4406a963/attachment.sig>


More information about the Linux-audit mailing list