From owner-freebsd-isp Mon Feb 24 14:39:52 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id OAA24973 for isp-outgoing; Mon, 24 Feb 1997 14:39:52 -0800 (PST) Received: from infowest.com (infowest.com [204.17.177.10]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id OAA24930; Mon, 24 Feb 1997 14:39:39 -0800 (PST) Received: from orchestra (Garibaldi.infowest.com [204.17.177.119]) by infowest.com (8.8.5/8.8.5) with SMTP id PAA15098; Mon, 24 Feb 1997 15:39:54 -0701 (MST) Message-Id: <3.0.1.32.19970224153932.00d801b0@infowest.com> X-Sender: agifford@infowest.com X-Mailer: Windows Eudora Light Version 3.0.1 beta 12 (32) Date: Mon, 24 Feb 1997 15:39:32 -0700 To: freebsd-isp@freebsd.org, questions@freebsd.org, freebsd-stable@freebsd.org From: "Aaron D. Gifford" Subject: SOLVED: 2.1.7 and Tripwire ftruncate() fun Cc: Craig Shrimpton In-Reply-To: References: <3.0.1.32.19970224125654.00d5f0a0@infowest.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Sender: owner-isp@freebsd.org X-Loop: FreeBSD.org Precedence: bulk At 04:28 PM 2/24/97 -0500, Craig Shrimpton wrote: >I'm running Tripwire with no problems. I do remember that I had to >compile the program with #define STDLIBH in the conf-bsd.h file. Without >that it will not process symlinks. > > >Craig Thank you Craig Shrimpton for pointing me at the solution. I really thought I had defined STDLIBH. In my earlier search through the archives, I noticed a message mentioning that certain header files need to be included for ftruncate to correctly work. I then looked at the Tripwire sources and noticed that STDLIBH must be defined for the file(s) to be correctly included. I then defined STDLIBH in the Makefile as a compiler command-line "-DSTDLIBH" so I thought STDLIBH was defined. I was mistaken. I didn't even bother to check the Tripwire configs/conf-bsd.h (which I was using) at all. There was a nifty little "#undef STDLIBH" line in there defeating my command-line definition. Thanks to craigs@os.com's message for pointing me to the conf-bsd.h file! Here's what I did to get Tripwire working on my 2.1.7 system. In Tripwire's configs subdirectory, I copied conf-bsd.h, creating a conf-freebsd.h file. I edited it and changed it so that STDLIBH and DIRENT were both #defined instead of #undef'd. I then edited Tripwire's include/config.h file so that it included the new conf-freebsd.h file. That was all. Simple, is it not? Upon rebuilding Tripwire and reinstalling it, all appears to be working well! Thanks for all the responses, and thanks especially to Craig Shrimpton. I was very confused, barking up the wrong tree. Sincerely, Aaron Gifford