php-install Digest 21 Nov 2002 02:05:33 -0000 Issue 1126

Topics (messages 9195 through 9203):

Trying to build rpm from src.rpm php4.2.1 (RH 7.2)
        9195 by: Lars

make error with gd
        9196 by: Denis
        9197 by: Pierre-Alain Joye
        9200 by: Denis
        9202 by: Denis

The specified CGI application misbehaved...
        9198 by: Josh Foxson

Re: php_mbstring. Multibyte string functions modules required...]
        9199 by: Marco A. mateos

imap error?
        9201 by: Richard Pijnenburg

Re: php4 compilation problem with hpux 11i
        9203 by: VASAGAN,MANI (HP-Singapore,ex2)

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 --- Can anybody help with this ?

Trying to build rpm php 4.2.1

: rpm -ivh php-4.1.2-7.2.6.src.rpm
cd 'ed to SPECS

edited php.spec

to :

# Shell function to configure and build a PHP tree.
#
build() {
ln -sf ../configure
%configure \
--prefix=%{_prefix} \
--with-config-file-path=%{_sysconfdir} \
--enable-force-cgi-redirect \
--disable-debug \
--enable-pic \
--disable-rpath \
--enable-inline-optimization \
--with-bz2 \
--with-db3 \
--with-curl \
--with-dom=%{_prefix} \
--with-exec-dir=%{_bindir} \
--with-freetype-dir=%{_prefix} \
--with-png-dir=%{_prefix} \
--with-gd \
--enable-gd-native-ttf \
--with-ttf \
--with-gdbm \
--with-gettext \
--with-ncurses \
--with-gmp \
--with-iconv \
--with-jpeg-dir=%{_prefix} \
--with-mm \
--with-openssl \
--with-png \
--with-pspell \
--with-regex=system \
--with-xml \
--with-expat-dir=%{_prefix} \
--with-zlib \
--with-layout=GNU \
--enable-bcmath \
--enable-debugger \
--enable-exif \
--enable-ftp \
--with-pear=/usr/share/pear \
--enable-magic-quotes \
--enable-safe-mode \
--enable-sockets \
--enable-sysvsem \
--enable-sysvshm \
--enable-discard-path \
--enable-track-vars \
--enable-trans-sid \
--enable-yp \
--enable-wddx \
--without-oci8 \
# --with-imap=shared \ ###########
# --with-imap-ssl \ ###########
--with-kerberos=/usr/kerberos \
# --with-ldap=shared \ ###########
--with-mysql=shared,%{_prefix} \
--with-interbase=/opt/interbase \ ############### added
%if %{oracle}
--with-oci8=shared \
%endif
--with-pgsql=shared \
--with-snmp=shared,%{_prefix} \
--with-snmp=shared \
--enable-ucd-snmp-hack \
--with-unixODBC=shared \
--enable-memory-limit \
--enable-bcmath \
--enable-shmop \
--enable-versioning \
--enable-calendar \
--enable-dbx \
--enable-dio \
--enable-mbstring \
--enable-mbstr-enc-trans \
$*


saved and issued: rpm -ba php.spec

Until I get :

creating number.c
creating number.h
creating main/internal_functions.c
+--------------------------------------------------------------------+
| *** WARNING *** |
| |
| You chose to compile PHP with the built-in MySQL support. If you |
| are compiling a server module, and intend to use other server |
| modules that also use MySQL (e.g, mod_auth_mysql, PHP 3.0, |
| mod_perl) you must NOT rely on PHP's built-in MySQL support, and |
| instead build it with your local MySQL support files, by adding |
| --with-mysql=/path/to/mysql to your configure line. |
+--------------------------------------------------------------------+
| License: |
| This software is subject to the PHP License, available in this |
| distribution in the file LICENSE. By continuing this installation |
| process, you are bound by the terms of this license agreement. |
| If you do not agree with the terms of this license, you must abort |
| the installation process at this point. |
+--------------------------------------------------------------------+

Thank you for using PHP.

+ --with-kerberos=/usr/kerberos
/var/tmp/rpm-tmp.19210: --with-kerberos=/usr/kerberos: No such file or directory
error: Bad exit status from /var/tmp/rpm-tmp.19210 (%build)


RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.19210 (%build)



# ls -l /usr/kerberos/
total 24
drwxr-xr-x 2 root root 4096 Sep 11 03:15 bin
drwxr-xr-x 8 root root 4096 Sep 11 03:15 include
drwxr-xr-x 2 root root 4096 Sep 11 03:15 lib
drwxr-xr-x 4 root root 4096 Oct 23 2002 man
drwxr-xr-x 2 root root 4096 Sep 11 03:15 sbin
drwxr-xr-x 3 root root 4096 Oct 23 2002 share

Any help would be greatly appreciated



Lars



--- End Message ---
--- Begin Message ---
Hi,

I don't know how anyone manages it to compile php from source. I tried it
know with the last 3 versions of php and it always fails.
configure goes ok, but when I do make it stops with:

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 `/backup/sources/php-4.2.3/ext/gd'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/backup/sources/php-4.2.3/ext/gd'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/backup/sources/php-4.2.3/ext'
make: *** [all-recursive] Error 1

Maybe someone can help me?
I use RedHat 8.0 but compiled apache 1.3.27 by hand (cause I use Modules
which don't work with apache 2).
To use php I did:

pdflib-4.0.3
----------------------

$ tar -xvzf pdflib-4.0.3.tar.gz
$ cd pdflib-4.0.3
$ ./configure --prefix=/usr --enable-shared-pdflib --enable-cxx
$ make
$ make test
$ make install
$ ldconfig

freetyp (http://www.freetype.org/download.html#stable)

-------------------------
 ./configure --prefix=/usr
make
make install

libpng-1.2.5.tar.gz (http://www.libpng.org/pub/png/)
------------------------

$ mv scripts/makefile.linux ../makefile

edit makefile and change paths

$ make test
$make install


zlib (ftp://ftp.info-zip.org/pub/infozip/zlib/zlib.html)
-----------------------

$ tar ..
$ cd
$ ./configure --prefix=/usr
$ make
$ make test
$ make install

libjpeg (ftp://ftp.uu.net/graphics/jpeg/)
-----------------------------------

./configure --prefix=/usr \
 --sysconfdir=/etc \
 --mandir=/usr/share/man \
 --infodir=/usr/share/info \
 --localstatedir=/var \
 --enable-shared \

make
make install

gd http://www.boutell.com/gd/
----------------

./configure --prefix=/usr
make
make install

bzip2-1.0.2.tar.gz (http://sources.redhat.com/bzip2/#bzip2-doco)
-------------

make
make install

mm
-------------------------
$ tar -xvzf mm-1.2.1.tar.gz
$ cd mm-1.2.1

$ ./configure --prefix=/usr \
 --sysconfdir=/etc \
 --mandir=/usr/share/man \
 --infodir=/usr/share/info \
 --localstatedir=/var \
 --enable-shared \

$ make
$ make test


php-4.2.3
---------------------

$ tar -xvzf php-4.2.3.tar.gz
$ cd php-4.2.3

./configure --with-apxs=/usr/sbin/apxs \
 --prefix=/usr \
 --sysconfdir=/etc \
 --datadir=/usr/share \
 --includedir=/usr/include \
 --localstatedir=/var \
 --mandir=/usr/share/man \
 --infodir=/usr/share/info \
 --with-config-file-path=/etc \
 --enable-force-cgi-redirect \
 --disable-debug \
 --enable-dbg=shared \
 --with-dbg-profiler \
 --enable-pic \
 --disable-rpath \
 --enable-inline-optimization \
 --with-bz2 \
 --with-db3 \
 --with-curl \
 --with-dom=/usr \
 --with-exec-dir=/usr/bin \
 --with-freetype-dir=/usr \
 --with-png-dir=/usr \
 --with-gd \
 --enable-gd-native-ttf \
 --with-ttf \
 --with-gdbm \
 --with-gettext \
 --with-ncurses \
 --with-gmp \
 --with-iconv \
 --with-jpeg-dir=/usr \
 --with-mm \
 --with-openssl \
 --with-png \
 --with-regex=system \
 --with-xml \
 --with-expat-dir=/usr \
 --with-zlib \
 --with-layout=GNU \
 --enable-bcmath \
 --enable-debugger \
 --enable-exif \
 --enable-ftp \
 --enable-magic-quotes \
 --enable-safe-mode \
 --enable-sockets \
 --enable-sysvsem \
 --enable-sysvshm \
 --enable-discard-path \
 --enable-track-vars \
 --enable-trans-sid \
 --enable-yp \
 --enable-wddx \
 --without-oci8 \
 --with-kerberos=/usr/kerberos \
 --with-ldap=shared \
 --with-mysql=shared,/usr \
 --with-snmp=shared,/usr \
 --with-pdflib=shared,/usr \
 --enable-ucd-snmp-hack \
 --with-unixODBC=shared \
 --enable-memory-limit \
 --enable-bcmath \
 --enable-shmop \
 --enable-versioning \
 --enable-calendar \
 --enable-dbx \
 --enable-dio \
 --enable-mcal \
 --enable-mbstring \
 --enable-mbstr-enc-trans \


make


--- End Message ---
--- Begin Message ---
On Wed, 20 Nov 2002 16:19:46 +0100
"Denis" <[EMAIL PROTECTED]> wrote:

> Hi,
> 
> I don't know how anyone manages it to compile php from source. I tried
> it know with the last 3 versions of php and it always fails.
> configure goes ok, but when I do make it stops with:

It seems you use a 2.04+ version of GD ?

To solve your problem, you may downgrade to 2.01 or use the php 4.3.0RC1
or cvs, in cvs or 4.3.0, please note there is a bundled version of GD
from php 4.3.0 which I highly recommend to use.

hth

pa
--- End Message ---
--- Begin Message ---
 "Pierre-Alain Joye" <[EMAIL PROTECTED]> wrote:

>> It seems you use a 2.04+ version of GD ?

Yes I did install gd-2.0.7
What I don't understand is why it says that there is an error in the gd.c
which comes with php?

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'
etc....
make[3]: *** [gd.lo] Error 1
make[3]: Leaving directory `/backup/sources/php-4.2.3/ext/gd'

That's in the php source.
I tried to compile with the latest snapshot of php-4.3 and I still get the
same error.
I'm really close to rm -Rf /*    :-) I'm trying to get php work know for two
days.

greetings

Denis

--- End Message ---
--- Begin Message ---
Well I managed to come pass the gd problem with  php-4.3.0RC1, but  now
compiling hangs at:

In file included from
/backup/sources/php-4.3.0RC1/sapi/apache/sapi_apache.c:24:
/backup/sources/php-4.3.0RC1/sapi/apache/php_apache_http.h:22:19: httpd.h:
No such file or directory
/backup/sources/php-4.3.0RC1/sapi/apache/php_apache_http.h:23:25:
http_config.h: No such file or directory
/backup/sources/php-4.3.0RC1/sapi/apache/php_apache_http.h:33:23:
http_core.h: No such file or directory
/backup/sources/php-4.3.0RC1/sapi/apache/php_apache_http.h:34:23:
http_main.h: No such file or directory
/backup/sources/php-4.3.0RC1/sapi/apache/php_apache_http.h:35:27:
http_protocol.h: No such file or directory
/backup/sources/php-4.3.0RC1/sapi/apache/php_apache_http.h:36:26:
http_request.h: No such file or directory
/backup/sources/php-4.3.0RC1/sapi/apache/php_apache_http.h:37:25:
http_log.h: No such file or directory
/backup/sources/php-4.3.0RC1/sapi/apache/php_apache_http.h:38:25:
util_script.h: No such file or directory
/backup/sources/php-4.3.0RC1/sapi/apache/sapi_apache.c:28: parse error
before '*' token
/backup/sources/php-4.3.0RC1/sapi/apache/sapi_apache.c: In function
`apache_php_module_main':
/backup/sources/php-4.3.0RC1/sapi/apache/sapi_apache.c:39:
`display_source_mode' undeclared (first use in this function)
/backup/sources/php-4.3.0RC1/sapi/apache/sapi_apache.c:39: (Each undeclared
identifier is reported only once
/backup/sources/php-4.3.0RC1/sapi/apache/sapi_apache.c:39: for each function
it appears in.)
/backup/sources/php-4.3.0RC1/sapi/apache/sapi_apache.c:44: `OK' undeclared
(first use in this function)
/backup/sources/php-4.3.0RC1/sapi/apache/sapi_apache.c:46: `NOT_FOUND'
undeclared (first use in this function)
make: *** [sapi/apache/sapi_apache.lo] Error 1


--- End Message ---
--- Begin Message ---
I was getting "The specified CGI application misbehaved by not returning a
complete set of HTTP headers" message so I invesigated.  I checked the
php.exe file via cmd and it works fine.  I am using IIS, and when I check
the box for "check that file exits" the cgi error no longer appears but I
get the page cannot be displayed.  Php is working for other sites so I'm am
relatively confused.  Any thoughts?

-Josh


--- End Message ---
--- Begin Message ---
-- 
Marco A. Mateos
www.lomejordeinternet.net / specka.com
[EMAIL PROTECTED] / ICQ: 172542875
Clave Pública disponible en pgp.rediris.es
--- Begin Message ---
I like use a Krysalis. For this PHP IDE , it's need xml (sablotron) and
especial setup. 

I have compiled PP-4.2.2-8 and modify the php.ini in section [mbstring]:

mbstring.internal_encoding = UTF-8
mbstring.http_input = auto
mbstring.detect_order=UCS-4, UCS-4BE, UCS-4LE, UCS-2, UCS-2BE, UCS-2LE,
UTF-32, UTF-32BE, UTF-32LE, UCS-2LE, UTF-16, UTF-16BE, UTF-16LE, UTF-8,
UTF-7, ASCII,ISO-8859-1, ISO-8859-2, ISO-8859-3, ISO-8859-4, ISO-8859-5,
ISO-8859-6, ISO-8859-7, ISO-8859-8, ISO-8859-9, ISO-8859-10,
ISO-8859-13, ISO-8859-14, ISO-8859-15, BASE64, EUC-JP, SJIS, eucJP-win,
SJIS-win, ISO-2022-JP, JIS
mbstring.substitute_character=none

But this don't work... this error message show:

Multibyte string functions module (php_mbstring) Multibyte string
functions module required

I've a Redhat 8.0 with UTF-8 for locale (es_ES:UTF-8) adn Apache
2.0.40-8.


-- 
Marco A. Mateos
www.lomejordeinternet.net / specka.com
[EMAIL PROTECTED] / ICQ: 172542875
Clave Pública disponible en pgp.rediris.es

Attachment: signature.asc
Description: Esta parte del mensaje esta firmada digitalmente

--- End Message ---

Attachment: signature.asc
Description: Esta parte del mensaje esta firmada digitalmente

--- End Message ---
--- Begin Message ---
Dear list,
 
I've installed php-4.2.3 with imap.
But when I try to start apache I'm getting the following error.
 
/usr/local/apache/bin/apachectl start
/usr/local/apache/bin/apachectl: line 184: 18573 Segmentation fault
$HTTPD
/usr/local/apache/bin/apachectl start: httpd could not be started
 
 
I think it's a php error, because when I don't configure imap with my
php I don't get the error.
 
I've installed imap with the following 'howto' :
http://www.php.net/manual/en/ref.imap.php
 
If some one has a better way of installing imap support for php please
let me know.
 
I hope some one can help me.
 
Thanks in advance.
 
Richard Pijnenburg
 
 
--- End Message ---
--- Begin Message ---
I managed to resolve the problem by updating the ld and it's libraries. The
problem
is due to ipv6 support on hpux11i. 

Installed 2 patches, PHSS_26560 and PHCO_27434.


Regards,

Mani

-----Original Message-----
From: VASAGAN,MANI (HP-Singapore,ex2) 
Sent: Tuesday, November 19, 2002 2:12 PM
To: [EMAIL PROTECTED]
Subject: php4 compilation problem with hpux 11i


I am trying to compile php 4.2.3 with apache 1.3.27 on hpux 11i using gnu
gcc 3.0.4, gmake 3.79.1.
Also installed are binutils, flex, bison.

When I try to configure php (./configure --with-apache=../apache-1.3.27 ,
gmake, gmake install) it
did without errors. 

But when i compile apache, (./configure
--activate-module=src/modules/php4/libphp4.a --enable-module=php4)
configure passes ok. But gmake fails when it reaches php4 with the following
error:

/usr/ccs/bin/ld: (Warning) At least one PA 2.0 object file (stub.o) was
detected. The linked output may not run on a PA 1.x system.
/usr/ccs/bin/ld: Unsatisfied symbols:
   freeaddrinfo (code)
   getaddrinfo (code)

I tried many combinations, php4.2.1, php4.2.2, apache1.3.26 - all gives the
same problem/error message.
Then i tried to compile only apache (and with ssl) it did fine. 

I tried compile only php (./configure; gmake).
It gives the same error on php4.2.3 compile, which is:

/bin/sh /mnt/dev/build/php-4.2.3/libtool --silent --mode=link cc -I.
-I/mnt/dev/build/php-4.2.3/ -I/mnt/dev/build/php-4.2.3/main
-I/mnt/dev/build/php-4.2.3 -I/mnt/dev/build/php-4.2.3/Zend
-I/mnt/dev/build/php-4.2.3/ext/mysql/libmysql
-I/mnt/dev/build/php-4.2.3/ext/xml/expat  -I/mnt/dev/build/php-4.2.3/TSRM
-Aa -D_HPUX_SOURCE +e   -o php -export-dynamic       stub.lo libphp4.la
/usr/ccs/bin/ld: (Warning) At least one PA 2.0 object file (stub.o) was
detected. The linked output may not run on a PA 1.x system.
/usr/ccs/bin/ld: Unsatisfied symbols:
   freeaddrinfo (code)
   getaddrinfo (code)
gmake[1]: *** [php] Error 1
gmake[1]: Leaving directory `/mnt/dev/build/php-4.2.3'
gmake: *** [all-recursive] Error 1


I built apache 1.3.26/php 4.2.1 successfully on hpux10.20 box about few
months back. Only problem i had 
was ANSI C, -fPIC need to be used instead of -Z. SO i guess i should try on
some other version. I am going 
to try on hpux 11.00 box, but wonder if any answer. 

Thanks in advance,

Regards,
Mani Vasagan

"My grandfather once told me that there are two kinds of people: those
who work and those who take the credit. He told me to try to be in the
first group; there was less competition there."
     - Indira Gandhi

--- End Message ---

Reply via email to