Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 1 Jun 2000 16:23:17 +0200
From:      Dirk Froemberg <dirk@FreeBSD.ORG>
To:        "Scot W. Hetzel" <hetzels@westbend.net>
Cc:        Danny Wong <danny@pentalpha.com.hk>, freebsd-questions@FreeBSD.ORG, freebsd-ports@FreeBSD.ORG
Subject:   Re: problme on mod_php4
Message-ID:  <20000601162317.A96905@physik.TU-Berlin.DE>
In-Reply-To: <20000601123132.A92492@physik.TU-Berlin.DE>; from dirk@FreeBSD.org on Thu, Jun 01, 2000 at 12:31:32PM %2B0200
References:  <007801bfcab1$386c3160$a800000a@001.mis.penatlpha.com.hk> <010501bfcb6c$c200c4c0$8dfee0d1@westbend.net> <20000601123132.A92492@physik.TU-Berlin.DE>

next in thread | previous in thread | raw e-mail | index | archive | help
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" <danny@pentalpha.com.hk>
> > > 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000601162317.A96905>