From owner-freebsd-security Tue Jun 25 0: 2:50 2002 Delivered-To: freebsd-security@freebsd.org Received: from kilgore.blindfaith.org (adsl-64-163-155-3.dsl.snfc21.pacbell.net [64.163.155.3]) by hub.freebsd.org (Postfix) with ESMTP id A496137BA9A for ; Tue, 25 Jun 2002 00:00:18 -0700 (PDT) Received: from kilgore.blindfaith.org (localhost.blindfaith.org [127.0.0.1]) by kilgore.blindfaith.org (8.12.2/8.12.2) with ESMTP id g5P70FAE026821; Tue, 25 Jun 2002 00:00:15 -0700 (PDT) (envelope-from blyon@blindfaith.org) Received: from localhost (blyon@localhost) by kilgore.blindfaith.org (8.12.2/8.12.2/Submit) with ESMTP id g5P70FKn026818; Tue, 25 Jun 2002 00:00:15 -0700 (PDT) (envelope-from blyon@blindfaith.org) X-Authentication-Warning: kilgore.blindfaith.org: blyon owned process doing -bs Date: Tue, 25 Jun 2002 00:00:15 -0700 (PDT) From: Ben Lyon To: Michael Sharp Cc: behanna@zbzoom.net, freebsd-security@FreeBSD.ORG Subject: RE: libparanoia In-Reply-To: <2002.66.56.232.240.1024968758.squirrel@webmail.probsd.ws> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-security@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org From the GCC manpage: The directories searched include several standard system directories plus any that you specify with `-L'. Normally the files found this way are library files--archive files whose members are object files. The linker handles an archive file by scan- ning through it for members which define symbols that have so far been referenced but not defined. However, if the linker finds an ordinary object file rather than a library, the object file is linked in the usual fashion. The only difference between using an `-l' option and specifying a file name is that `-l' surrounds library with `lib' and `.a' and searches several directories. hence either order should work, as well as: -L/usr/local/lib/libparanoia.so --Ben -------------------------------------------------------------------- Ben Lyon blyon@blindfaith.org (415)286-0896 On Mon, 24 Jun 2002, Michael Sharp wrote: > Thx Chris, yea, I see now that it is backwards, but thats how the author > had it documented. I'll compile apache now with the LDFLAGS argument and > run ldd `which httpd` to see if it build libparanoia in. If not, I guess I > could use apxs to install the libparanoia object file. > > Again, thx > michael > > Chris BeHanna said: > > On Mon, 24 Jun 2002, Michael Sharp wrote: > > > >> So, if I install libparanoia.. I would then add to any Makefile's > >> CFLAGS arguments -lparanoia -L/usr/local/lib ? > > > > That looks backwards. "-L/usr/local/lib -lparanoia" looks more > > sensible. > > > >> Example: /usr/ports/www/apache13/Makefile > >> > >> change: CFLAGS+= -O6 -fomit-frame-pointer > >> > >> to: CFLAGS+= -O6 -fomit-frame-pointer -lparanoia > >> -L/usr/local/lib > >> > >> and apache13 would be built using /usr/local/lib/libparanoia.so ? > > > > No. You want to alter LDFLAGS, not CFLAGS. > > > > At some point in the not-too-distant past (i.e., around the time > > of the publication of the zlib double-free bug), the merits and > > caveats of using libparanoia were discussed. I suggest you search the > > list archives. > > > > -- > > Chris BeHanna > > Software Engineer (Remove "bogus" before responding.) > > behanna@bogus.zbzoom.net > > Turning coffee into software since 1990. > > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > > with "unsubscribe freebsd-security" in the body of the message > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-security" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-security" in the body of the message