From owner-freebsd-ports Thu Jun 1 7:23:56 2000 Delivered-To: freebsd-ports@freebsd.org Received: from emmi.physik.TU-Berlin.DE (emmi.physik.TU-Berlin.DE [130.149.160.103]) by hub.freebsd.org (Postfix) with ESMTP id 06C5F37BA9D; Thu, 1 Jun 2000 07:23:43 -0700 (PDT) (envelope-from ibex@emmi.physik.TU-Berlin.DE) Received: (from ibex@localhost) by emmi.physik.TU-Berlin.DE (8.9.3/8.9.3) id QAA97813; Thu, 1 Jun 2000 16:23:18 +0200 (CEST) (envelope-from ibex) Date: Thu, 1 Jun 2000 16:23:17 +0200 From: Dirk Froemberg To: "Scot W. Hetzel" Cc: Danny Wong , freebsd-questions@FreeBSD.ORG, freebsd-ports@FreeBSD.ORG Subject: Re: problme on mod_php4 Message-ID: <20000601162317.A96905@physik.TU-Berlin.DE> References: <007801bfcab1$386c3160$a800000a@001.mis.penatlpha.com.hk> <010501bfcb6c$c200c4c0$8dfee0d1@westbend.net> <20000601123132.A92492@physik.TU-Berlin.DE> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i In-Reply-To: <20000601123132.A92492@physik.TU-Berlin.DE>; from dirk@FreeBSD.org on Thu, Jun 01, 2000 at 12:31:32PM +0200 Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hi again! On Thu, Jun 01, 2000 at 12:31:32PM +0200, Dirk Froemberg wrote: > On Wed, May 31, 2000 at 08:57:35PM -0500, Scot W. Hetzel wrote: > > From: "Danny Wong" > > > When I try to install the port mod_php4, I got the following error. How > > can > > > I fix it? > > > I am running on FreeBSD 4.0 stable. > > > > > > Thanks! > > > Danny > > > > > > configure:1686: cc -o conftest -O -pipe > > > conftest.c -lkrb -ldes -L/usr/local/li > > > /usr/lib/libkrb.so: undefined reference to `init_error_table' > > > /usr/lib/libkrb.so: undefined reference to `initialize_error_table_r' > > > configure: failed program was: > > > > > > #line 1681 "configure" > > > #include "confdefs.h" > > > > > > main(){return(0);} > > > (end of "config.log") > > > *** Error code 1 > > > > > > Stop in /usr/ports/www/mod_php4. > > > *** Error code 1 > > > > > It looks like you are trying to install mod_php4 with OpenLDAP support. > > You'll need to remove the line that says "CONFIGURE_ENV+= > > LIBS='-lkrb -ldes -L\${PREFIX}/lib'" from the Makefile.inc. > > > > This is what is causing the build to fail. > > > > This needs to be removed from the scripts/configure.php for OpenLDAP > > support: > > > > if [ -f /usr/lib/libkrb.a -a -f /usr/lib/libdes.a ]; then > > echo "CONFIGURE_ENV+= LIBS='-lkrb -ldes -L\${PREFIX}/lib'" > > fi > > On FreeBSD-4.0-STABLE there shouldn't be a file /usr/lib/libdes.a > (it's a symlink to libcrypto.a). So "[ -f /usr/lib/libkrb.a -a -f > /usr/lib/libdes.a ]" should be false and thus "-lkrb -ldes" > shouldn't be added to LIBS. Strange... > > Adding this if-clause helped some users. So simply removing it > might break the build on their machines. But it seems that the > if clause doesn't cover all setups. I'm going to build KERBEROS4 > on my machine to see what's going on... Ok, make world finished, now... The problem is that "test -f" evaluated to true even on a symlink (so does test -L). I added a test if /usr/lib/libdes.a is _not_ a symlink so it builds on 4.0-STABLE, now. Regards Dirk -- Dirk Froemberg FreeBSD: The Power to Serve! http://www.FreeBSD.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message