From owner-freebsd-ports Tue Jun 30 16:33:13 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id QAA00530 for freebsd-ports-outgoing; Tue, 30 Jun 1998 16:33:13 -0700 (PDT) (envelope-from owner-freebsd-ports@FreeBSD.ORG) Received: from asterix.webaffairs.net (pp47.bonn.germanynet.de [151.189.67.47]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id QAA00477; Tue, 30 Jun 1998 16:32:51 -0700 (PDT) (envelope-from sh@webaffairs.de) Received: from obelix (obelix.webaffairs.net [192.168.10.3]) by asterix.webaffairs.net (8.8.7/8.8.7) with SMTP id BAA16080; Wed, 1 Jul 1998 01:33:30 +0200 (CEST) (envelope-from sh@webaffairs.de) From: "Stefan Herrmann" To: Cc: , Subject: RE: FreeBSD Port: apache-1.2.6-php3.0 Date: Wed, 1 Jul 1998 01:29:11 +0200 Message-ID: <002501bda47e$e3078f80$030aa8c0@obelix.webaffairs.net> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook 8.5, Build 4.71.2173.0 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2106.4 In-Reply-To: <35995176.775F195F@vailsys.com> Importance: Normal Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hi, > I had someone else take a look at this and it is indeed configure > brokeness, his thoughts: > > Ultimately, the problem is that PHP failed to link in libgd, > that is to say, there's no -lgd in the link command below: > ... OK, found the problematic area in the Makefile, but can't get arround it. What I had in the Makefile, when I first built apache1.3.0 with PHP3 manually using the apache-1.3.0 port as a basis, and what worked was: CONFIGURE_ENV= \ EXTRA_LIBS='-L/usr/local/lib/mysql -lmysqlclient -lm -L/usr/local/gd/lib -lgd' \ OPTIM='-DBUFFERED_LOGS -DDOCUMENT_LOCATION=\\"'${PREFIX}'/www/data/\\" \ -DDEFAULT_PATH=\\"/bin:/usr/bin:'${PREFIX}'/bin\\"' I just added the second line (EXTRA_LIBS). This worked. Now Things are a little more complex. I have to put this line in the CONFIGURE_ENV later after PHP3 has been built in section "pre-configure": First: CONFIGURE_ENV= \ OPTIM='-DBUFFERED_LOGS -DDOCUMENT_LOCATION=\\"'${PREFIX}'/www/data/\\" \ -DDEFAULT_PATH=\\"/bin:/usr/bin:'${PREFIX}'/bin\\"' then later in "pre-configure": .if ... ... .elif defined(PHP3_DBTYPE) && ${PHP3_DBTYPE} == mysql CONFIGURE_ENV+= EXTRA_LIBS='-L${PREFIX}/lib/mysql -L${PREFIX}/lib -lmysqlclient -lm -lgd' ... .endif This does not work, I get the error: [...] cp libmodphp3.a mod_php3.* php_version.h /opt/ports/apache-php/work/apache_1.3.0/src/modules/php3; cp apMakefile.tmpl /opt/ports/apache-php/work/apache_1.3.0/src/modules/php3/Makefile.tmpl; cp apMakefile.libdir /opt/ports/apache-php/work/apache_1.3.0/src/modules/php3/Makefile.libdir; cp libphp3.module /opt/ports/apache-php/work/apache_1.3.0/src/modules/php3 CONFIGURE_ENV+= EXTRA_LIBS='-L/usr/local/lib/mysql -L/usr/local/lib -lmysqlclient -lm -lgd' CONFIGURE_ENV+=: not found *** Error code 127 Stop. Any hints ? Ciao Stefan -- --- Communications powered by FreeBSD --- >> WebAffairs InternetDienstleistungen << http://www.webaffairs.de/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message