[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freebsd-ports
Subject:    RE: FreeBSD Port: apache-1.2.6-php3.0
From:       "Stefan Herrmann" <sh () webaffairs ! de>
Date:       1998-06-30 23:29:11
[Download RAW message or body]

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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic