From owner-freebsd-ports Sun Oct 22 6:37: 8 2000 Delivered-To: freebsd-ports@freebsd.org Received: from point.osg.gov.bc.ca (point.osg.gov.bc.ca [142.32.102.44]) by hub.freebsd.org (Postfix) with ESMTP id 2236837B4C5 for ; Sun, 22 Oct 2000 06:37:03 -0700 (PDT) Received: (from daemon@localhost) by point.osg.gov.bc.ca (8.8.7/8.8.8) id GAA04354; Sun, 22 Oct 2000 06:36:16 -0700 Received: from passer.osg.gov.bc.ca(142.32.110.29) via SMTP by point.osg.gov.bc.ca, id smtpda04352; Sun Oct 22 06:36:14 2000 Received: (from uucp@localhost) by passer.osg.gov.bc.ca (8.11.0/8.9.1) id e9MDaE718471; Sun, 22 Oct 2000 06:36:14 -0700 (PDT) Received: from cwsys9.cwsent.com(10.2.2.1), claiming to be "cwsys.cwsent.com" via SMTP by passer9.cwsent.com, id smtpdb18467; Sun Oct 22 06:35:43 2000 Received: (from uucp@localhost) by cwsys.cwsent.com (8.11.1/8.9.1) id e9MDQR801966; Sun, 22 Oct 2000 06:26:27 -0700 (PDT) Message-Id: <200010221326.e9MDQR801966@cwsys.cwsent.com> Received: from localhost.cwsent.com(127.0.0.1), claiming to be "cwsys" via SMTP by localhost.cwsent.com, id smtpdQc1958; Sun Oct 22 06:25:57 2000 X-Mailer: exmh version 2.2 06/23/2000 with nmh-1.0.4 Reply-To: Cy Schubert - ITSD Open Systems Group From: Cy Schubert - ITSD Open Systems Group X-OS: FreeBSD 4.1.1-RELEASE X-Sender: cy To: Info Cc: "'freebsd-ports@freebsd.org'" Subject: Re: Is Tripwire 1.3.1 port broke??? It doesn't install on 4.1 stable and 4.1.1 stable ..... In-reply-to: Your message of "Sun, 22 Oct 2000 11:24:01 +0200." Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sun, 22 Oct 2000 06:25:57 -0700 Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org In message , Inf o writes: > Hi all, > > i tried to install Tripwire on a 4.1 stable system today and got the > following error (ports from today via cvsup) > > ... > gcc -O -ldl byteorder.c -o byteorder > byteorder.c: In function 'main.c': > byteorder.c:36: warning: left shift count >= width of type > byteorder.c:25: warning: returntype of 'main' is not 'int' > /usr/libexec/elf/ld: cannot find -ldl > *** Error code 1 > > Stop in /usr/ports/security/tripwire-131/work/tw_ASR_1.3.1_src/util. > *** Error code 1 > ... > > > I don't understand this, because in the file ../files/patch-ae it says > > -#LDFLAGS= -static > -LDFLAGS= -ldl > +LDFLAGS= -static > +#LDFLAGS= -ldl > > This does mean that the LDFLAGS option changes from "-ldl" to "-static", > right??? > Can anyone tell me why the port doesn't patch (????) and how I can fix > this???? > > I tried to fix this by manualy change the ../work/tw_ASR_1.3.1_src/Makefile > but then make won't > install because he couldn't find the man path, so this wasn't patched right. > > A month ago I installed this version of Tripwire flawless on a 3.4 stable > machine .... Just tested it on one of my FreeBSD systems at home and on my desktop system at work. It compiled cleanly in both cases. This is with ports CVSupped on Oct 21 @ 07:20 PDT on 4.1.1-RELEASE systems. In your case it appears that work/tw_ASR_1.3.1_src/Makefile did not get patched. Is your /usr/ports/Mk directory up to date? Refresh your copy of ports using cvsup and try building tripwire again. Under Solaris libdl is the dynamic link library. The functions in Solaris' libdl are in FreeBSD libc, so we don't need to specify -ldl under FreeBSD. The reason for specifying -static is that a dynamic linking tripwire would be vulnerable to rootkits that alter shared libraries. Regards, Phone: (250)387-8437 Cy Schubert Fax: (250)387-5766 Team Leader, Sun/DEC Team Internet: Cy.Schubert@osg.gov.bc.ca Open Systems Group, ITSD, ISTA Province of BC To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message