« php_mod4: Found saved configuration | Main | HOWTO Make Firefox Faster »

December 30, 2004

RE: mod_php4 and portupgrade

Ok, so, apparently I'm a miserable failure... I changed my MAKEARGS
section accordingly:
'lang/php4' => 'BATCH=YES WITH_CTYPE=yes WITH_CURL=yes WITH_EXIF=yes
WITH_FTP=yes WITH_GD=yes WITH_MYSQL=yes WITH_OPENSSL
=yes WITH_OVERLOAD=yes WITH_PCRE=yes WITH_POSIX=yes WITH_POSTGRESQL=yes
WITH_SESSION=yes WITH_TOKENIZER=yes WITH_XML=yes WITH_ZLIB=yes',

However, after running "portinstall php4", this comes up:
In file included from
/usr/ports/lang/php4/work/php-4.3.4/ext/gd/libgd/gdft.c:63:
/usr/local/include/freetype2/freetype/freetype.h:20: #error
"`ft2build.h' hasn't been included yet!"
/usr/local/include/freetype2/freetype/freetype.h:21: #error "Please
always use macros to include FreeType header files."
/usr/local/include/freetype2/freetype/freetype.h:22: #error "Example:"
/usr/local/include/freetype2/freetype/freetype.h:23: #error " #include
"
/usr/local/include/freetype2/freetype/freetype.h:24: #error " #include
FT_FREETYPE_H"
*** Error code 1

Stop in /usr/ports/lang/php4/work/php-4.3.4.
*** Error code 1

Stop in /usr/ports/lang/php4.
*** Error code 1

Stop in /usr/ports/lang/php4.
** Command failed [exit code 1]: /usr/bin/script -qa
/tmp/portinstall70434.0 make BATCH=YES WITH_CTYPE=yes WITH_CURL=yes
WITH_EXIF=yes WITH_FTP=yes WITH_GD=yes WITH_MYSQL=yes WITH_OPENSSL=yes
WITH_OVERLOAD=yes WITH_PCRE=yes WITH_POSIX=yes WITH_POSTGRESQL=yes
WITH_SESSION=yes WITH_TOKENIZER=yes WITH_XML=yes WITH_ZLIB=yes
** Fix the problem and try again.
** The following packages were not installed or upgraded (*:skipped /
!:failed)
! lang/php4 (unknown build error)


I assume if I take out GD support it would work, however, for my online
picture gallery, I need this support. I even tried a couple other
things: "portinstall mod_php4" with lang/php4 in pkgtools.conf, and also
tried both with www/mod_php4 in pkgtools.conf... neither worked. This
seems very odd to me that I'm having all these problems soon as I try to
futz with it, especially since I've never run into problems with the
mod_php4 port... Oh well. Any ideas?

-Kyle Mott


-----Original Message-----
From: Jared ''Danger'' Earle [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 17, 2004 4:20 PM
To: kyle
Cc: [EMAIL PROTECTED]
Subject: Re: mod_php4 and portupgrade

On 17 Mar 2004, at 22:37, kyle wrote:
> Ok. When I do "portinstall mod_php4" (or make install/make
> reinstall/portupgrade), it still comes up with that gui for me to
> choose
> which options I want... I don't want this gui to come up... I want to
> be
> able to use make install/reinstall, portinstall/portupgrade w/o having
> to always specify which options I want to use. Isn't there a way to do
> this? I believe I was closer before, in setting up pkgtools.conf...
Any
> ideas?

Set 'BATCH=YES' in /usr/local/etc/pkgtools.conf to remove the GUI
thing. Oh, and use lang/php4 and not mod_php4 these days. The port of
www/mod_php4 is a placeholder for lang/php4.

[EMAIL PROTECTED] grep lang /usr/ports/www/mod_php4/Makefile
# Makefile of the master port (lang/php4).
MASTERDIR= ${.CURDIR}/../../lang/php4

[EMAIL PROTECTED] grep -A10 'lang/php4' /usr/local/etc/pkgtools.conf
'lang/php4' => 'WITH_APACHE2=YES BATCH=YES WITH_GD=YES
WITH_ZLIB=YES WITH_BZIP2=YES WITH_MCRYPT=YES WITH_MHASH=YES
WITH_PDFLIB=YES WITH_IMAP=YES WITH_MYSQL=YES WITH_XML=YES
WITH_XMLRPC=YES WITH_XSLT=YES WITH_WDDX=YES WITH_DOMXML=YES
WITH_FTP=YES WITH_CURL=YES WITH_GETTEXT=YES WITH_ICONV=YES
WITH_PSPELL=YES WITH_MIME=YES WITH_MBSTRING=YES WITH_YP=YES
WITH_BCMATH=YES WITH_HYPERWAVE=YES WITH_MCVE=YES WITH_MING=YES
WITH_MCAL=YES WITH_SOCKETS=YES WITH_SYSVSEM=YES
WITH_SYSVSHM=YES
WITH_ZIP=YES WITH_DOMXSLT=YES WITH_CTYPE=YES WITH_DOMXML=YES
WITH_CALENDAR=YES WITH_SESSION=YES
WITH_PCRE=YES WITH_POSIX=YES WITH_TOKENIZER=YES',

I hope this helps.

--
Jared Earle, Nightfall Games, [EMAIL PROTECTED] - http://www.23x.net
"Watashi-wa shin no SUPORUKU desu"

Posted by 0xFF3300 at December 30, 2004 12:48 PM

Trackback Pings

TrackBack URL for this entry:
http://www.dudeforce.net/cgi-bin/mt-tb.cgi/124

Listed below are links to weblogs that reference RE: mod_php4 and portupgrade:

Comments

Post a comment

Thanks for signing in, . Now you can comment. (sign out)

(If you haven't left a comment here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)


Remember me?