Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 1 Jul 1998 01:29:11 +0200
From:      "Stefan Herrmann" <sh@webaffairs.de>
To:        <daniel@vailsys.com>
Cc:        <ports@FreeBSD.ORG>, <andreas@FreeBSD.ORG>
Subject:   RE: FreeBSD Port: apache-1.2.6-php3.0
Message-ID:  <002501bda47e$e3078f80$030aa8c0@obelix.webaffairs.net>
In-Reply-To: <35995176.775F195F@vailsys.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?002501bda47e$e3078f80$030aa8c0>