From mboxrd@z Thu Jan 1 00:00:00 1970 From: Valdis.Kletnieks@vt.edu Subject: Re: Auparse library event............... Date: Fri, 18 Jan 2008 06:03:00 -0500 Message-ID: <24716.1200654180@turing-police.cc.vt.edu> References: <770716a30801180058h4fedb392tce3c27a89e479d27@mail.gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0160717119==" Return-path: Received: from mx3.redhat.com (mx3.redhat.com [172.16.48.32]) by int-mx1.corp.redhat.com (8.13.1/8.13.1) with ESMTP id m0IB3LO6014622 for ; Fri, 18 Jan 2008 06:03:21 -0500 Received: from turing-police.cc.vt.edu (turing-police.cc.vt.edu [128.173.14.107]) by mx3.redhat.com (8.13.1/8.13.1) with ESMTP id m0IB31QJ024161 for ; Fri, 18 Jan 2008 06:03:01 -0500 In-Reply-To: Your message of "Fri, 18 Jan 2008 14:28:10 +0530." <770716a30801180058h4fedb392tce3c27a89e479d27@mail.gmail.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-audit-bounces@redhat.com Errors-To: linux-audit-bounces@redhat.com To: kunal chandarana Cc: linux-audit@redhat.com List-Id: linux-audit@redhat.com --===============0160717119== Content-Type: multipart/signed; boundary="==_Exmh_1200654180_2998P"; micalg=pgp-sha1; protocol="application/pgp-signature" Content-Transfer-Encoding: 7bit --==_Exmh_1200654180_2998P Content-Type: text/plain; charset=us-ascii > 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. --==_Exmh_1200654180_2998P Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.8 (GNU/Linux) Comment: Exmh version 2.5 07/13/2001 iD8DBQFHkIdkcC3lWbTT17ARAgfgAKCpTld2XPat4DjpKkdisJx63AB0rwCgp0lI 8dG0r/NfR5MN3LduRUS44Qg= =zumV -----END PGP SIGNATURE----- --==_Exmh_1200654180_2998P-- --===============0160717119== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline --===============0160717119==--