From owner-freebsd-questions Thu Jun 1 3:33: 5 2000 Delivered-To: freebsd-questions@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 A4AEB37B947; Thu, 1 Jun 2000 03:32:14 -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 MAA92913; Thu, 1 Jun 2000 12:31:32 +0200 (CEST) (envelope-from ibex) Date: Thu, 1 Jun 2000 12:31:32 +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: <20000601123132.A92492@physik.TU-Berlin.DE> References: <007801bfcab1$386c3160$a800000a@001.mis.penatlpha.com.hk> <010501bfcb6c$c200c4c0$8dfee0d1@westbend.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i In-Reply-To: <010501bfcb6c$c200c4c0$8dfee0d1@westbend.net>; from hetzels@westbend.net on Wed, May 31, 2000 at 08:57:35PM -0500 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi! 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... Regards Dirk -- Dirk Froemberg FreeBSD: The Power to Serve! http://www.FreeBSD.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message