> 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.

Attachment: pgpXY4LgJc36c.pgp
Description: PGP signature

--
Linux-audit mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/linux-audit

Reply via email to