php-install Digest 12 Jun 2003 05:12:07 -0000 Issue 1419
Topics (messages 11064 through 11069):
undefined symbol: gdImageStringFTEx
11064 by: zzori
Porting PHP - PEAR problems during 'make install'
11065 by: deckerben
11069 by: Yann Larrivee
help imap.so
11066 by: anna stewart
11067 by: Frédéric Trudeau
PHP files prompt a Download rather than displaying in browser
11068 by: Loren
Administrivia:
To subscribe to the digest, e-mail:
[EMAIL PROTECTED]
To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]
To post to the list, e-mail:
[EMAIL PROTECTED]
----------------------------------------------------------------------
--- Begin Message ---
Operating System: RedHat Linux 7.2
PHP Version: 4.2.3 , 4.3.2
GD [gif patched] : 2.0.12 path /usr/local/gd
GD install
./configure --prefix=/usr/local/gd
make install
it's install all good well
..............
checking for libpng-config... no
checking png.h usability... yes
checking png.h presence... yes
checking for png.h... yes
checking for png_create_read_struct in -lpng... yes
checking for freetype-config... /usr/bin/freetype-config
checking for FT_Init_FreeType in -lfreetype... yes
checking freetype/freetype.h usability... yes
checking freetype/freetype.h presence... yes
checking for freetype/freetype.h... yes
checking whether it's freetype 2... yes
checking for jpeg_set_defaults in -ljpeg... yes
checking for XpmReadFileToXpmImage in -lXpm... no
** Configuration summary for gd 2.0.12:
Support for PNG library: yes
Support for JPEG library: yes
Support for Freetype 2.x library: yes
Support for Xpm library: no
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config/Makefile
config.status: creating config/gdlib-config
config.status: creating test/Makefile
config.status: creating config.h
config.status: executing depfiles commands
[EMAIL PROTECTED] gd]# make install
Making install in config
make[1]: Entering directory `/usr/local/gd/config'
make[2]: Entering directory `/usr/local/gd/config'
.......................
/usr/bin/install -c .libs/gdcmpgif /usr/local/gd/bin/gdcmpgif
/bin/sh ./libtool --mode=install /usr/bin/install -c giftogd2
/usr/local/gd/bin/giftogd2
/usr/bin/install -c .libs/giftogd2 /usr/local/gd/bin/giftogd2
/bin/sh ./libtool --mode=install /usr/bin/install -c pngtogd2
/usr/local/gd/bin/pngtogd2
/usr/bin/install -c .libs/pngtogd2 /usr/local/gd/bin/pngtogd2
/bin/sh ./libtool --mode=install /usr/bin/install -c webpng
/usr/local/gd/bin/webpng
/usr/bin/install -c .libs/webpng /usr/local/gd/bin/webpng
/bin/sh ./config/mkinstalldirs /usr/local/gd/bin
/usr/bin/install -c bdftogd /usr/local/gd/bin/bdftogd
/bin/sh ./config/mkinstalldirs /usr/local/gd/include
mkdir -p -- /usr/local/gd/include
/usr/bin/install -c -m 644 gd.h /usr/local/gd/include/gd.h
/usr/bin/install -c -m 644 gd_io.h /usr/local/gd/include/gd_io.h
/usr/bin/install -c -m 644 gdcache.h /usr/local/gd/include/gdcache.h
/usr/bin/install -c -m 644 gdfontg.h /usr/local/gd/include/gdfontg.h
/usr/bin/install -c -m 644 gdfontl.h /usr/local/gd/include/gdfontl.h
/usr/bin/install -c -m 644 gdfontmb.h /usr/local/gd/include/gdfontmb.h
/usr/bin/install -c -m 644 gdfonts.h /usr/local/gd/include/gdfonts.h
/usr/bin/install -c -m 644 gdfontt.h /usr/local/gd/include/gdfontt.h
make[2]: Leaving directory `/usr/local/gd'
make[1]: Leaving directory `/usr/local/gd'
[EMAIL PROTECTED] gd]#
PHP 4.2.3 install
./configure --with-apxs=/usr/local/apache/bin/apxs \
--with-config-file-path=/usr/local \
--enable-trans-sid \
--enable-track-vars \
--with-zlib-dir=/usr/lib \
--with-zlib \
--enable-ftp \
--enable-calendar \
--enable-exif \
--with-mcrypt \
--with-mysql \
--disable-debug \
--enable-inline-optimization \
--enable-mailparse \
--with-gd=/usr/local/gd \
--with-freetype-dir=/usr/include/freetype2 \
--enable-freetype-4bit-antialias-hack \
--with-ttf=/usr/include/freetype1 \
--with-imap \
--with-imap-ssl \
--with-kerberos \
--with-jpeg-dir=/usr/lib \
--with-png-dir=/usr/lib \
--with-gif-dir=/usr/lib \
--enable-shmop \
--enable-sysvsem \
--enable-sysvshm
make
make install
In file included from gd.c:83:
gd_ctx.c: In function `_php_image_output_ctx':
gd_ctx.c:70: structure has no member named `free'
gd_ctx.c:98: structure has no member named `free'
gd.c: In function `_php_image_type':
gd.c:1014: structure has no member named `free'
gd.c:1017: structure has no member named `free'
gd.c: In function `_php_image_create_from':
gd.c:1209: structure has no member named `free'
make[3]: *** [gd.lo] Error 1
make[3]: Leaving directory `/tmp/php-4.2.3/ext/gd'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/tmp/php-4.2.3/ext/gd'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/php-4.2.3/ext'
make: *** [all-recursive] Error 1
I had the same with 2.0.12 and 4.2.3, 4.3.2 with five occurances of
'structure has no member in free':
In /path/to/src/ext/gd/gd_ctx.c and /path/to/src/ext/gd/gd.c I changed the
five occurences of 'ctx->free' to 'ctx->gd_free'.
After this the make intall wil work but apache didn't start at all
...
checking whether to enable FTP support... yes
checking for GD support... yes
checking whether to enable truetype string function in GD... no
checking for the location of libjpeg... yes
checking for jpeg_read_header in -ljpeg... (cached) yes
checking for the location of libpng... yes
checking for png_write_image in -lpng... (cached) yes
checking for the location of libXpm... no
If configure fails try --with-xpm-dir=<DIR>
checking for freetype(2)... yes
checking for FreeType 1.x support... yes
no - FreeType 2.x is to be used instead
checking for T1lib support... no
checking for gdImageString16 in -lgd... (cached) yes
checking for gdImagePaletteCopy in -lgd... (cached) yes
checking for gdImageCreateFromPng in -lgd... (cached) yes
checking for gdImageCreateFromGif in -lgd... (cached) yes
checking for gdImageGif in -lgd... (cached) yes
checking for gdImageWBMP in -lgd... (cached) yes
checking for gdImageCreateFromJpeg in -lgd... (cached) yes
checking for gdImageCreateFromXpm in -lgd... (cached) yes
checking for gdImageCreateFromGd2 in -lgd... (cached) yes
checking for gdImageCreateTrueColor in -lgd... (cached) yes
checking for gdImageSetTile in -lgd... (cached) yes
checking for gdImageSetBrush in -lgd... (cached) yes
checking for gdImageStringTTF in -lgd... (cached) yes
checking for gdImageStringFT in -lgd... (cached) yes
checking for gdImageStringFTEx in -lgd... (cached) yes <==
checking for gdImageColorClosestHWB in -lgd... (cached) yes
checking for gdImageColorResolve in -lgd... (cached) yes
checking for gdImageGifCtx in -lgd... (cached) yes
checking for GNU gettext support... no
checking for GNU MP support... no
checking for Hyperwave support... no
checking for ICAP support... no
checking for iconv support... no
checking for IMAP support... yes
and install works good^^
[EMAIL PROTECTED] libexec]# apachectl start
Syntax error on line 54 of /usr/local/apache/conf/httpd.conf:
Cannot load /usr/local/apache/libexec/libphp4.so into server:
/usr/local/apache/libexec/libphp4.so: undefined symbol: gdImageStringFTEx
/sbin/apachectl start: httpd could not be started
[EMAIL PROTECTED] libexec]#
what's problem?? -_-;;
--- End Message ---
--- Begin Message ---
Hello,
I am new to PHP (and CGI). As part of my experiment, I ported PHP to DOS
using DJGPP. I may make it available in the next several weeks at
http://members.lycos.co.uk/bdeck. The executable itself is based on DJGPP's
32-bit DPMI libraries, and Wattcp-32 networking technology. This is the same
winning combination that currently powers our DOS port of Python. The
executable 'php.exe' built and seems to return a correct response to stdout.
However, during the 'Make install' process, I recieved several errors:
Installing PHP SAPI module
Installing shared extensions:
/dev/env/DJDIR/lib/extensions/no-debug-non-zts
-20020429/
Installing PEAR environment: /dev/env/DJDIR/lib/php/
Waterloo TCP/IP setup: D:\USR\DJGPP\etc as $(hostname)
[PEAR] Archive_Tar: Unable to open
d:/Project/php-4.3.2/pear/package-Archive_Tar
.xml
[PEAR] Console_Getopt: Unable to open
d:/Project/php-4.3.2/pear/package-Console_
Getopt.xml
[PEAR] PEAR: Unable to open d:/Project/php-4.3.2/pear/package-PEAR.xml
Error setting receiver mode: An invalid receiver mode was specified
Waterloo TCP/IP setup: D:\USR\DJGPP\etc as $(hostname)
[PEAR] DB: unable to unpack d:/Project/php-4.3.2/pear/packages/DB-1.3.tar
[PEAR] HTTP: unable to unpack
d:/Project/php-4.3.2/pear/packages/HTTP-1.2.tar
[PEAR] Mail: unable to unpack
d:/Project/php-4.3.2/pear/packages/Mail-1.0.1.tar
[PEAR] Net_SMTP: unable to unpack
d:/Project/php-4.3.2/pear/packages/Net_SMTP-1.
0.tar
[PEAR] Net_Socket: unable to unpack
d:/Project/php-4.3.2/pear/packages/Net_Socke
t-1.0.1.tar
[PEAR] XML_Parser: unable to unpack
d:/Project/php-4.3.2/pear/packages/XML_Parse
r-1.0.1.tar
[PEAR] XML_RPC: unable to unpack
d:/Project/php-4.3.2/pear/packages/XML_RPC-1.0.
4.tar
Error setting receiver mode: An invalid receiver mode was specified
Installing build environment: /dev/env/DJDIR/lib/php/build/
cp: accessing `/dev/e': No such device or address (ENXIO)
Installing header files: /dev/env/DJDIR/include/php/
Installing helper programs: /dev/env/DJDIR/bin/
program: phpize
program: php-config
program: phpextdist
The line: "Waterloo TCP/IP setup: D:\USR\DJGPP\etc as $(hostname)" comes
from my system... it indicates that Wattcp-32 has been fired up. But I don't
understand the cause of all these fruity errors from PEAR. Can anyone tell
me what to look at to trace the cause of this?
Regards,
Ben
--- End Message ---
--- Begin Message ---
Hi, just to add a not to what Ben said.
I compiled PHP5 php5-200306081730
./configure, make .. works well
But i get a Segmentation Fault at Make Install right when it starts
installing PEAR.
We are looking at a Suse 8.2 Linux, 166mhz, 64 sdram box.
The work around is to compile PHP without PEAR.
There must be a way to desactivate PEAR befor the installation, but i
dont know for windows (linux --without=PEAR)
I hope this helps.
Yann Larrivee
www.phpquebec.org
www.protonicdesign.com
On Thu, 2003-06-12 at 02:42, deckerben wrote:
> Hello,
>
> I am new to PHP (and CGI). As part of my experiment, I ported PHP to DOS
> using DJGPP. I may make it available in the next several weeks at
> http://members.lycos.co.uk/bdeck. The executable itself is based on DJGPP's
> 32-bit DPMI libraries, and Wattcp-32 networking technology. This is the same
> winning combination that currently powers our DOS port of Python. The
> executable 'php.exe' built and seems to return a correct response to stdout.
>
> However, during the 'Make install' process, I recieved several errors:
>
> Installing PHP SAPI module
> Installing shared extensions:
> /dev/env/DJDIR/lib/extensions/no-debug-non-zts
> -20020429/
> Installing PEAR environment: /dev/env/DJDIR/lib/php/
> Waterloo TCP/IP setup: D:\USR\DJGPP\etc as $(hostname)
> [PEAR] Archive_Tar: Unable to open
> d:/Project/php-4.3.2/pear/package-Archive_Tar
> .xml
> [PEAR] Console_Getopt: Unable to open
> d:/Project/php-4.3.2/pear/package-Console_
> Getopt.xml
> [PEAR] PEAR: Unable to open d:/Project/php-4.3.2/pear/package-PEAR.xml
> Error setting receiver mode: An invalid receiver mode was specified
> Waterloo TCP/IP setup: D:\USR\DJGPP\etc as $(hostname)
> [PEAR] DB: unable to unpack d:/Project/php-4.3.2/pear/packages/DB-1.3.tar
> [PEAR] HTTP: unable to unpack
> d:/Project/php-4.3.2/pear/packages/HTTP-1.2.tar
> [PEAR] Mail: unable to unpack
> d:/Project/php-4.3.2/pear/packages/Mail-1.0.1.tar
> [PEAR] Net_SMTP: unable to unpack
> d:/Project/php-4.3.2/pear/packages/Net_SMTP-1.
> 0.tar
> [PEAR] Net_Socket: unable to unpack
> d:/Project/php-4.3.2/pear/packages/Net_Socke
> t-1.0.1.tar
> [PEAR] XML_Parser: unable to unpack
> d:/Project/php-4.3.2/pear/packages/XML_Parse
> r-1.0.1.tar
> [PEAR] XML_RPC: unable to unpack
> d:/Project/php-4.3.2/pear/packages/XML_RPC-1.0.
> 4.tar
> Error setting receiver mode: An invalid receiver mode was specified
> Installing build environment: /dev/env/DJDIR/lib/php/build/
> cp: accessing `/dev/e': No such device or address (ENXIO)
> Installing header files: /dev/env/DJDIR/include/php/
> Installing helper programs: /dev/env/DJDIR/bin/
> program: phpize
> program: php-config
> program: phpextdist
>
> The line: "Waterloo TCP/IP setup: D:\USR\DJGPP\etc as $(hostname)" comes
> from my system... it indicates that Wattcp-32 has been fired up. But I don't
> understand the cause of all these fruity errors from PEAR. Can anyone tell
> me what to look at to trace the cause of this?
>
> Regards,
> Ben
>
>
>
>
>
> --
> PHP Install Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
--- End Message ---
--- Begin Message ---
how do i load the imap extension? i'm tried every thing from reinstalling to saying
"please work you stupid computer". please help me!
--- End Message ---
--- Begin Message ---
As far as I know, your PHP built must simply be configured with imap
support.
----- Original Message -----
From: "anna stewart" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, June 11, 2003 9:39 PM
Subject: [PHP-INST] help imap.so
> how do i load the imap extension? i'm tried every thing from reinstalling
to saying "please work you stupid computer". please help me!
>
> --
> PHP Install Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--- End Message ---
--- Begin Message ---
Since no one has responded so far... I changed the subject line to be
perhaps more appropriate.
See: Apache 1.3 Windows ME -- Trying to Download instead of display.
--- End Message ---