php-install Digest 8 Aug 2002 22:09:13 -0000 Issue 970

Topics (messages 8046 through 8057):

error starting apache after php-compile (undefined symbol: pg_encoding_to_char)
        8046 by: Patrick Meisel
        8047 by: Patrick Meisel

PHP with IMAP
        8048 by: Ana Paula Sabelli

--with-imap on OS X
        8049 by: Michael Geary

Where is .../bin/php?
        8050 by: Vicki Brown

RH7.3 + PHP-4.2.2 : make install -- [install-sapi] Error 1
        8051 by: Doug Smith
        8052 by: Bob Lockie
        8054 by: Doug Smith

zif_imap_getquota
        8053 by: Ana Paula Sabelli

Weird problem with php 4.2.x and Oracle 8i (8.1.6)
        8055 by: Hanser, Kevin
        8056 by: Hanser, Kevin

Installation problems
        8057 by: Pierre Cousineau

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 ---
Hi,

I just compiled apache 1.3.26 , postgres 7.2.1 and then php 4.2.2
There havenīt been any error messages during the build, but when I want 
to start apache I get:

"Cannot load /usr/local/apache_2/libexec/libphp4.so into server: 
/usr/local/apache_2/libexec/libphp4.so: undefined symbol: 
pg_encoding_to_char"

My configure options for php were:
"./configure --with-apxs=/usr/local/apache_2/bin/apxs 
--with-config-file-path=/etc/apache_2/conf/ --with-mysql=/usr/ 
--with-pgsql=/usr/local/pgsql"

I did have a postgres 7.1.3 from rpms on my system before (read 
somewhere that this might be an issue) but it was installed in another path.

Does anybody have a clue on how I can get rid of this problem?

Many Thanks in advance!

Patrick


--- End Message ---
--- Begin Message ---
Hello,

just found it out myself:

Apparently you need to compile postgres with "--enable-multibyte" to 
make it work with php 4.2.2.
This was not necessary with php 4.0.6 - donīt know about the versions in 
between.

Thanks for listening :-)

Patrick


Patrick Meisel wrote:

> Hi,
>
> I just compiled apache 1.3.26 , postgres 7.2.1 and then php 4.2.2
> There havenīt been any error messages during the build, but when I 
> want to start apache I get:
>
> "Cannot load /usr/local/apache_2/libexec/libphp4.so into server: 
> /usr/local/apache_2/libexec/libphp4.so: undefined symbol: 
> pg_encoding_to_char"
>
> My configure options for php were:
> "./configure --with-apxs=/usr/local/apache_2/bin/apxs 
> --with-config-file-path=/etc/apache_2/conf/ --with-mysql=/usr/ 
> --with-pgsql=/usr/local/pgsql"
>
> I did have a postgres 7.1.3 from rpms on my system before (read 
> somewhere that this might be an issue) but it was installed in another 
> path.
>
> Does anybody have a clue on how I can get rid of this problem?
>
> Many Thanks in advance!
>
> Patrick
>
>
>


-- 
com.plete networx

Karlshof 10a55
64287 Darmstadt
tel  06151 / 716496
fax  06151 / 716497
mail [EMAIL PROTECTED]
web  http://com.plete.net
---------------------------


--- End Message ---
--- Begin Message ---

Hello, this is my first message to the list. I have a Linux 6.2  with kernel 
2.2.14-5.0.
I have installed IMAP-2002.RC2 and PHP 4.2.2
I configured PHP like this:
./configure --with-mysql --with-apxs=/usr/local/apache/bin/apxs --with-gettext 
--with-xml --with-mcrypt=/usr/local --with-imap=/home/aps/imap-2002.RC2 --with-kerberos

when I restart the Apache 1.3.26, it doesnīt work.
The error is: " Cannot load /usr/local/apache/libexec/libphp4.so into server:
                    /usr/local/apache/libexec/libphp4.so: undefined symbol: 
imap_setacl"


Can you help me?

TIA
--- End Message ---
--- Begin Message ---
Hi folks,

I am trying to get a web-based mail system set up on my OS X machine. I 
have successfully compiled and installed Apache, Postfix, UW-IMAP, 
MySQL, and a version of PHP 4.2.2 _without_ imap support.

However, it seems that for a web mail client to work, I need to have 
imap support built in to PHP. Has anyone done this for OS X? I have 
looked everywhere, and can't find a next step. Like I said, I have 
UW-IMAP installed, and it is working correctly. Additionally, I have 
followed the instructions from PHP.NET, where it says to copy certain 
files from the c-client directory to my /usr/local/include directory. 
However, I always get errors when I "make".

Please, would someone be willing to offer detailed instructions? If I 
get this thing working, I'd be more than willing to post or mail my 
notes so that others can enjoy the fun.

Thanks in advance,

michael geary

--- End Message ---
--- Begin Message ---
Building php 4.2.2; I plan to install under my home directory to 
test (I don't want to clobber the existing files in /usr/local 
and besides, I don't have root access :).  I also want to be 
sure to build the command-line version of php.

This is what I did:
            configure --with-nsapi=/usr/prop/netscape/server4/  \
                         --with-
mysql=/usr/local/mysql                     \
                         --prefix=$HOME -enable-cli
           make
           make -i install    # -i to ignore permissions errors 
with the web server directories

I don't get a $HOME/bin/php.  I expect one.
I am using the --enable-cli option.  My research indicates this 
will cause a php binary to be built which will work on the 
command line. It doesn't seem to.

Can someone tell me what am I doing wrong?

Please Cc: me with any pertinent responses; I am subscribed to 
the digest to control mail flow.
- Vicki
--- End Message ---
--- Begin Message ---
well, i'm trying to re-compile PHP to get IBM DB2 to work, buuut...
seemingly regardless of my --with-stuff options i'm getting this error on
#make install:

anyways... i've tried this with these 2 configure options


#./configure
i386-redhat-linux --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbind
ir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/includ
e --libdir=/usr/lib --sysconfdir=/etc --with-apxs=/usr/sbin/apxs --with-ibm-
db2
#make clean
#make install

(errors out, here's the last couple lines)
__________________________________
make[1]: Entering directory `/home/doug/php-4.2.2'
/bin/sh /home/doug/php-4.2.2/libtool --silent --mode=compile
gcc  -I. -I/home/do
ug/php-4.2.2/ -I/home/doug/php-4.2.2/main -I/home/doug/php-4.2.2 -I/usr/incl
ude/
apache -I/home/doug/php-4.2.2/Zend -I/home/doug/php-4.2.2/ext/mysql/libmysql
 -I/
home/db2inst1/sqllib/include -I/home/doug/php-4.2.2/ext/xml/expat  -DLINUX=2
2 -D
EAPI -DEAPI_MM -DEAPI_MM_CORE_PATH=/var/run/httpd.mm -I/home/doug/php-4.2.2/
TSRM
 -g -O2 -prefer-pic  -c stub.c
/bin/sh /home/doug/php-4.2.2/libtool --silent --mode=link
gcc  -I. -I/home/doug/
php-4.2.2/ -I/home/doug/php-4.2.2/main -I/home/doug/php-4.2.2 -I/usr/include
/apa
che -I/home/doug/php-4.2.2/Zend -I/home/doug/php-4.2.2/ext/mysql/libmysql -I
/hom
e/db2inst1/sqllib/include -I/home/doug/php-4.2.2/ext/xml/expat  -DLINUX=22 -
DEAP
I -DEAPI_MM -DEAPI_MM_CORE_PATH=/var/run/httpd.mm -I/home/doug/php-4.2.2/TSR
M -g
 -O2 -prefer-pic   -o libphp4.la -rpath
/home/doug/php-4.2.2/libs -avoid-version
   stub.lo  Zend/libZend.la sapi/apache/libsapi.la main/libmain.la
regex/librege
x.la /home/doug/php-4.2.2/ext/ctype/libctype.la
/home/doug/php-4.2.2/ext/mysql/l
ibmysql.la /home/doug/php-4.2.2/ext/odbc/libodbc.la
/home/doug/php-4.2.2/ext/pcr
e/libpcre.la /home/doug/php-4.2.2/ext/posix/libposix.la
/home/doug/php-4.2.2/ext
/session/libsession.la /home/doug/php-4.2.2/ext/standard/libstandard.la
/home/do
ug/php-4.2.2/ext/xml/libxml.la
TSRM/libtsrm.la -L/home/db2inst1/sqllib/lib -ldb2
 -lpam -lcrypt -lresolv -lm -ldl -lnsl -lresolv -lcrypt -ldl
make[1]: *** [install-sapi] Error 1
make[1]: Leaving directory `/home/doug/php-4.2.2'
make: *** [install-recursive] Error 1
___________________________________

so i tried it this way....

#./configure
#make clean
#make install

(which errors out as well, with a similar error....)
____________________________________
make[1]: Entering directory `/home/doug/php-4.2.2'
gcc -I. -I/home/doug/php-4.2.2/ -I/home/doug/php-4.2.2/main -I/home/doug/php
-4.2
.2 -I/home/doug/php-4.2.2/Zend -I/home/doug/php-4.2.2/ext/mysql/libmysql -I/
home
/doug/php-4.2.2/ext/xml/expat  -I/home/doug/php-4.2.2/TSRM -g -O2  -c stub.c
&&
touch stub.lo
/bin/sh /home/doug/php-4.2.2/libtool --silent --mode=link
gcc  -I. -I/home/doug/
php-4.2.2/ -I/home/doug/php-4.2.2/main -I/home/doug/php-4.2.2 -I/home/doug/p
hp-4
.2.2/Zend -I/home/doug/php-4.2.2/ext/mysql/libmysql -I/home/doug/php-4.2.2/e
xt/x
ml/expat  -I/home/doug/php-4.2.2/TSRM -g -O2 -prefer-non-pic -static   -o
libphp
4.la -rpath /home/doug/php-4.2.2/libs    stub.lo  Zend/libZend.la
sapi/cgi/libsa
pi.la main/libmain.la regex/libregex.la
/home/doug/php-4.2.2/ext/ctype/libctype.
la /home/doug/php-4.2.2/ext/mysql/libmysql.la
/home/doug/php-4.2.2/ext/pcre/libp
cre.la /home/doug/php-4.2.2/ext/posix/libposix.la
/home/doug/php-4.2.2/ext/sessi
on/libsession.la /home/doug/php-4.2.2/ext/standard/libstandard.la
/home/doug/php
-4.2.2/ext/xml/libxml.la
TSRM/libtsrm.la -lpam -lcrypt -lresolv -lm -ldl -lnsl -
lresolv -lcrypt -ldl
/bin/sh /home/doug/php-4.2.2/libtool --silent --mode=link
gcc -I. -I/home/doug/p
hp-4.2.2/ -I/home/doug/php-4.2.2/main -I/home/doug/php-4.2.2 -I/home/doug/ph
p-4.
2.2/Zend -I/home/doug/php-4.2.2/ext/mysql/libmysql -I/home/doug/php-4.2.2/ex
t/xm
l/expat  -I/home/doug/php-4.2.2/TSRM -g -O2   -o php -export-dynamic
stub.lo
 libphp4.la
make[1]: *** [install-sapi] Error 1
make[1]: Leaving directory `/home/doug/php-4.2.2'
make: *** [install-recursive] Error 1
_______________________________________


Thanks for any ideas, they'll be appreciated!

        -Doug


--- End Message ---
--- Begin Message ---

Run 'rm config.cache' and 'make clean' before each compile.


>well, i'm trying to re-compile PHP to get IBM DB2 to work, buuut...
>seemingly regardless of my --with-stuff options i'm getting this error on
>#make install:
>
>anyways... i've tried this with these 2 configure options
>
>
>#./configure
>i386-redhat-linux --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbind
>ir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/includ
>e --libdir=/usr/lib --sysconfdir=/etc --with-apxs=/usr/sbin/apxs --with-ibm-
>db2
>#make clean
>#make install
>
>(errors out, here's the last couple lines)
>__________________________________
>make[1]: Entering directory `/home/doug/php-4.2.2'
>/bin/sh /home/doug/php-4.2.2/libtool --silent --mode=compile
>gcc  -I. -I/home/do
>ug/php-4.2.2/ -I/home/doug/php-4.2.2/main -I/home/doug/php-4.2.2 -I/usr/incl
>ude/
>apache -I/home/doug/php-4.2.2/Zend -I/home/doug/php-4.2.2/ext/mysql/libmysql
> -I/
>home/db2inst1/sqllib/include -I/home/doug/php-4.2.2/ext/xml/expat  -DLINUX=2
>2 -D
>EAPI -DEAPI_MM -DEAPI_MM_CORE_PATH=/var/run/httpd.mm -I/home/doug/php-4.2.2/
>TSRM
> -g -O2 -prefer-pic  -c stub.c
>/bin/sh /home/doug/php-4.2.2/libtool --silent --mode=link
>gcc  -I. -I/home/doug/
>php-4.2.2/ -I/home/doug/php-4.2.2/main -I/home/doug/php-4.2.2 -I/usr/include
>/apa
>che -I/home/doug/php-4.2.2/Zend -I/home/doug/php-4.2.2/ext/mysql/libmysql -I
>/hom
>e/db2inst1/sqllib/include -I/home/doug/php-4.2.2/ext/xml/expat  -DLINUX=22 -
>DEAP
>I -DEAPI_MM -DEAPI_MM_CORE_PATH=/var/run/httpd.mm -I/home/doug/php-4.2.2/TSR
>M -g
> -O2 -prefer-pic   -o libphp4.la -rpath
>/home/doug/php-4.2.2/libs -avoid-version
>   stub.lo  Zend/libZend.la sapi/apache/libsapi.la main/libmain.la
>regex/librege
>x.la /home/doug/php-4.2.2/ext/ctype/libctype.la
>/home/doug/php-4.2.2/ext/mysql/l
>ibmysql.la /home/doug/php-4.2.2/ext/odbc/libodbc.la
>/home/doug/php-4.2.2/ext/pcr
>e/libpcre.la /home/doug/php-4.2.2/ext/posix/libposix.la
>/home/doug/php-4.2.2/ext
>/session/libsession.la /home/doug/php-4.2.2/ext/standard/libstandard.la
>/home/do
>ug/php-4.2.2/ext/xml/libxml.la
>TSRM/libtsrm.la -L/home/db2inst1/sqllib/lib -ldb2
> -lpam -lcrypt -lresolv -lm -ldl -lnsl -lresolv -lcrypt -ldl
>make[1]: *** [install-sapi] Error 1
>make[1]: Leaving directory `/home/doug/php-4.2.2'
>make: *** [install-recursive] Error 1
>___________________________________
>
>so i tried it this way....
>
>#./configure
>#make clean
>#make install
>
>(which errors out as well, with a similar error....)
>____________________________________
>make[1]: Entering directory `/home/doug/php-4.2.2'
>gcc -I. -I/home/doug/php-4.2.2/ -I/home/doug/php-4.2.2/main -I/home/doug/php
>-4.2
>.2 -I/home/doug/php-4.2.2/Zend -I/home/doug/php-4.2.2/ext/mysql/libmysql -I/
>home
>/doug/php-4.2.2/ext/xml/expat  -I/home/doug/php-4.2.2/TSRM -g -O2  -c stub.c
>&&
>touch stub.lo
>/bin/sh /home/doug/php-4.2.2/libtool --silent --mode=link
>gcc  -I. -I/home/doug/
>php-4.2.2/ -I/home/doug/php-4.2.2/main -I/home/doug/php-4.2.2 -I/home/doug/p
>hp-4
>.2.2/Zend -I/home/doug/php-4.2.2/ext/mysql/libmysql -I/home/doug/php-4.2.2/e
>xt/x
>ml/expat  -I/home/doug/php-4.2.2/TSRM -g -O2 -prefer-non-pic -static   -o
>libphp
>4.la -rpath /home/doug/php-4.2.2/libs    stub.lo  Zend/libZend.la
>sapi/cgi/libsa
>pi.la main/libmain.la regex/libregex.la
>/home/doug/php-4.2.2/ext/ctype/libctype.
>la /home/doug/php-4.2.2/ext/mysql/libmysql.la
>/home/doug/php-4.2.2/ext/pcre/libp
>cre.la /home/doug/php-4.2.2/ext/posix/libposix.la
>/home/doug/php-4.2.2/ext/sessi
>on/libsession.la /home/doug/php-4.2.2/ext/standard/libstandard.la
>/home/doug/php
>-4.2.2/ext/xml/libxml.la
>TSRM/libtsrm.la -lpam -lcrypt -lresolv -lm -ldl -lnsl -
>lresolv -lcrypt -ldl
>/bin/sh /home/doug/php-4.2.2/libtool --silent --mode=link
>gcc -I. -I/home/doug/p
>hp-4.2.2/ -I/home/doug/php-4.2.2/main -I/home/doug/php-4.2.2 -I/home/doug/ph
>p-4.
>2.2/Zend -I/home/doug/php-4.2.2/ext/mysql/libmysql -I/home/doug/php-4.2.2/ex
>t/xm
>l/expat  -I/home/doug/php-4.2.2/TSRM -g -O2   -o php -export-dynamic
>stub.lo
> libphp4.la
>make[1]: *** [install-sapi] Error 1
>make[1]: Leaving directory `/home/doug/php-4.2.2'
>make: *** [install-recursive] Error 1
>_______________________________________
>
>
>Thanks for any ideas, they'll be appreciated!
>
>        -Doug
>
>
>
>-- 
>PHP Install Mailing List (http://www.php.net/)
>To unsubscribe, visit: http://www.php.net/unsub.php
>



--- End Message ---
--- Begin Message ---
bob,

    you're the man, worked like a charm --- thanks!

        -doug

"Bob Lockie" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]...
>
> Run 'rm config.cache' and 'make clean' before each compile.
>
>
> >well, i'm trying to re-compile PHP to get IBM DB2 to work, buuut...
> >seemingly regardless of my --with-stuff options i'm getting this error on
> >#make install:
> >
> >anyways... i've tried this with these 2 configure options
> >
> >
> >#./configure
>
>i386-redhat-linux --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbin
d
>
>ir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/inclu
d
>
>e --libdir=/usr/lib --sysconfdir=/etc --with-apxs=/usr/sbin/apxs --with-ibm
-
> >db2
> >#make clean
> >#make install
> >
> >(errors out, here's the last couple lines)
> >__________________________________
> >make[1]: Entering directory `/home/doug/php-4.2.2'
> >/bin/sh /home/doug/php-4.2.2/libtool --silent --mode=compile
> >gcc  -I. -I/home/do
>
>ug/php-4.2.2/ -I/home/doug/php-4.2.2/main -I/home/doug/php-4.2.2 -I/usr/inc
l
> >ude/
>
>apache -I/home/doug/php-4.2.2/Zend -I/home/doug/php-4.2.2/ext/mysql/libmysq
l
> > -I/
>
home/db2inst1/sqllib/include -I/home/doug/php-4.2.2/ext/xml/expat  -DLINUX=2
> >2 -D
>
>EAPI -DEAPI_MM -DEAPI_MM_CORE_PATH=/var/run/httpd.mm -I/home/doug/php-4.2.2
/
> >TSRM
> > -g -O2 -prefer-pic  -c stub.c
> >/bin/sh /home/doug/php-4.2.2/libtool --silent --mode=link
> >gcc  -I. -I/home/doug/
>
>php-4.2.2/ -I/home/doug/php-4.2.2/main -I/home/doug/php-4.2.2 -I/usr/includ
e
> >/apa
>
>che -I/home/doug/php-4.2.2/Zend -I/home/doug/php-4.2.2/ext/mysql/libmysql -
I
> >/hom
>
e/db2inst1/sqllib/include -I/home/doug/php-4.2.2/ext/xml/expat  -DLINUX=22 -
> >DEAP
>
>I -DEAPI_MM -DEAPI_MM_CORE_PATH=/var/run/httpd.mm -I/home/doug/php-4.2.2/TS
R
> >M -g
> > -O2 -prefer-pic   -o libphp4.la -rpath
> >/home/doug/php-4.2.2/libs -avoid-version
> >   stub.lo  Zend/libZend.la sapi/apache/libsapi.la main/libmain.la
> >regex/librege
> >x.la /home/doug/php-4.2.2/ext/ctype/libctype.la
> >/home/doug/php-4.2.2/ext/mysql/l
> >ibmysql.la /home/doug/php-4.2.2/ext/odbc/libodbc.la
> >/home/doug/php-4.2.2/ext/pcr
> >e/libpcre.la /home/doug/php-4.2.2/ext/posix/libposix.la
> >/home/doug/php-4.2.2/ext
> >/session/libsession.la /home/doug/php-4.2.2/ext/standard/libstandard.la
> >/home/do
> >ug/php-4.2.2/ext/xml/libxml.la
> >TSRM/libtsrm.la -L/home/db2inst1/sqllib/lib -ldb2
> > -lpam -lcrypt -lresolv -lm -ldl -lnsl -lresolv -lcrypt -ldl
> >make[1]: *** [install-sapi] Error 1
> >make[1]: Leaving directory `/home/doug/php-4.2.2'
> >make: *** [install-recursive] Error 1
> >___________________________________
> >
> >so i tried it this way....
> >
> >#./configure
> >#make clean
> >#make install
> >
> >(which errors out as well, with a similar error....)
> >____________________________________
> >make[1]: Entering directory `/home/doug/php-4.2.2'
>
>gcc -I. -I/home/doug/php-4.2.2/ -I/home/doug/php-4.2.2/main -I/home/doug/ph
p
> >-4.2
>
>.2 -I/home/doug/php-4.2.2/Zend -I/home/doug/php-4.2.2/ext/mysql/libmysql -I
/
> >home
> >/doug/php-4.2.2/ext/xml/expat  -I/home/doug/php-4.2.2/TSRM -g -O2  -c
stub.c
> >&&
> >touch stub.lo
> >/bin/sh /home/doug/php-4.2.2/libtool --silent --mode=link
> >gcc  -I. -I/home/doug/
>
>php-4.2.2/ -I/home/doug/php-4.2.2/main -I/home/doug/php-4.2.2 -I/home/doug/
p
> >hp-4
>
>.2.2/Zend -I/home/doug/php-4.2.2/ext/mysql/libmysql -I/home/doug/php-4.2.2/
e
> >xt/x
> >ml/expat  -I/home/doug/php-4.2.2/TSRM -g -O2 -prefer-non-pic -static   -o
> >libphp
> >4.la -rpath /home/doug/php-4.2.2/libs    stub.lo  Zend/libZend.la
> >sapi/cgi/libsa
> >pi.la main/libmain.la regex/libregex.la
> >/home/doug/php-4.2.2/ext/ctype/libctype.
> >la /home/doug/php-4.2.2/ext/mysql/libmysql.la
> >/home/doug/php-4.2.2/ext/pcre/libp
> >cre.la /home/doug/php-4.2.2/ext/posix/libposix.la
> >/home/doug/php-4.2.2/ext/sessi
> >on/libsession.la /home/doug/php-4.2.2/ext/standard/libstandard.la
> >/home/doug/php
> >-4.2.2/ext/xml/libxml.la
> >TSRM/libtsrm.la -lpam -lcrypt -lresolv -lm -ldl -lnsl -
> >lresolv -lcrypt -ldl
> >/bin/sh /home/doug/php-4.2.2/libtool --silent --mode=link
> >gcc -I. -I/home/doug/p
>
>hp-4.2.2/ -I/home/doug/php-4.2.2/main -I/home/doug/php-4.2.2 -I/home/doug/p
h
> >p-4.
>
>2.2/Zend -I/home/doug/php-4.2.2/ext/mysql/libmysql -I/home/doug/php-4.2.2/e
x
> >t/xm
> >l/expat  -I/home/doug/php-4.2.2/TSRM -g -O2   -o php -export-dynamic
> >stub.lo
> > libphp4.la
> >make[1]: *** [install-sapi] Error 1
> >make[1]: Leaving directory `/home/doug/php-4.2.2'
> >make: *** [install-recursive] Error 1
> >_______________________________________
> >
> >
> >Thanks for any ideas, they'll be appreciated!
> >
> >        -Doug
> >
> >
> >
> >--
> >PHP Install Mailing List (http://www.php.net/)
> >To unsubscribe, visit: http://www.php.net/unsub.php
> >
>
>
>


--- End Message ---
--- Begin Message ---
Someone knows what it is?

I have a Linux 6.2  with kernel 2.2.14-5.0.
I have installed IMAP-2001a and PHP 4.2.2
I configured PHP like this:
./configure --with-mysql --with-apxs=/usr/local/apache/bin/apxs --with-gettext 
--with-xml --with-mcrypt=/usr/local --with-imap --with-kerberos

when I restart the Apache 1.3.26, it doesnīt work.
The error is: " Cannot load /usr/local/apache/libexec/libphp4.so into server:
                    /usr/local/apache/libexec/libphp4.so: undefined symbol: 
zif_imap_setquota"

The problem is that zif_imap_setquota doesnīt exists in any file!!

TIA

Ana Paula



--- End Message ---
--- Begin Message ---
I'm having a really _weird_ problem with PHP 4.2.x and Oracle 8i (8.1.6).

I recently decided it was time to update php on our development server, in
preparation of updating the production server.  Currently, they are both
running 4.0.3pl1.

I downloaded, compiled and installed 4.2.2 on the dev server, as a static
module.  (for some reason, i've never been able to get php to compile as a
DSO with oracle support...)
The install seemed to go ok, everything seemed to be working.  phpinfo()
works, reports all kinds of nifty information about the system.

However, in the course of testing, I noticed that some of our web pages were
returning incomplete data sets, or no data at all.  

For example, I have one page that displays all the work requests for the
logged in user, and it suddenly wasn't displaying anything at all.  I
modified the page to print out the exact sql code it was going to use to
retrieve the data, and then ran that sql on the server myself (thru
sqlplus).  It worked fine, and returned the correct data.  The php page,
however, returns nothing....

On another page that we use to administer users to the system, it is
supposed to retrieve all the user names from a table and display them in a
select box.  With 4.03pl1, it works properly, and displays all the user
names.  With 4.2.2 (or 4.2.1..), the list of users is incomplete.  And it's
not just missing some off the end either, there are just some of the users
"missing" from the list at various points...  Again, I took the exact sql
from the page, tried it out in sqlplus, and the correct data was returned.

This just seems extremely strange to me... Has anybody else had a similar
problem with oracle 8i and the newer versions of php?

Here's some info about the dev system:

PIII-600
RedHat 6.1 (kernel 2.4.17)
Apache 1.3.26
PHP 4.2.2 (currently php 4.03pl1 though.. :)
Oracle 8i (8.1.6)

The configure command I'm using for php is:

./configure --with-apache=../../apache_1.3.26 --enable-ftp
--with-oracle=/u01/app/oracle/product/8.1.6
--with-oci8=/u01/app/oracle/product/8.1.6

the configure command for apache is:
./configure --prefix=/usr/local/apache
--activate-module=src/modules/php4/libphp4.a --enable-shared=max
--enable-module=all


Does php make a log when you run a make?  Maybe there's something that's not
quite compiling properly or something....  If anyone needs additional
information, just let me know and I'll be happy to provide it.  I'd really
like to be able to get our servers up to a newer version of PHP.

Thanx!

Kevin Hanser
System Administrator
Merchant Internet Group, Inc.
ShopsForMe.com
[EMAIL PROTECTED]
[EMAIL PROTECTED]

--- End Message ---
--- Begin Message ---
I believe I found the problem.

right after I posted the original message, I began to work on the chagnes to
the page which made me aware of this error in the first place.

Not being the original writer of the page, I looked over the code to get a
li'l feel for it and whatnot... I noticed that this page was using the
OCIFetchStatement function, whereas I usually just do a while
(ocifetchinto... etc.  I checked the other page that was also giving me
problems, and sure enough, it was using the OCIFetchStatement function.

So I rewrote the page to use while (ocifetchinto instead, recompiled
PHP4.2.2, tried again, and voila!  The page worked now.

Not completely satisfied, I looked a little further, and found this in the
user contributed notes for OCIFetchStatement:

In 4.2.1 additional parameters were added, but are apparently undocumented:

OCIFetchStatement($stmt, $results, $return, $skip, $format);

$return - the number of rows returned
$skip - the number of rows to skip (great for paging through long tables -
its very efficient)
$format - one of OCI_FETCHSTATEMENT_BY_ROW and
OCI_FETCHSTATEMENT_BY_COLUMN


And the pages that were having problems were written like this:
OCIFetchStatement($stmt, $Result_Array, OCI_ASSOC+OCI_RETURN_NULLS).
Looks like the original writer of the page put the
OCI_ASSOC+OCI_RETURN_NULLS constants on, despite the fact that I can't find
any documentation as to whether these were ever supported by
OCIFetchStatement (I use them on ocifetchinto all the time...).  So anyway,
judging by the user notes about OCIFetchStatement and the new parameters
that were added, it looks like that's what was causing my problems...

I'm now recompiling 4.2.2 again, w/out the --with-oracle parameter, and then
I guess I'm going to have to search thru all our pages to see if there are
any other incorrectly written OCIFetchStatement commands like this :)

thx!

k

> -----Original Message-----
> From: Jim Thome [mailto:[EMAIL PROTECTED]]
> 
> Recompile without the line: 
> --with-oracle=/u01/app/oracle/product/8.1.6
> 
> and see what happens.
> 
> "--with-oracle" is for Oracle-oci7 support.
> 
> Jim
> 
> >>> "Hanser, Kevin" <[EMAIL PROTECTED]> 
> 08/08/02 14:11 PM >>>
> I'm having a really _weird_ problem with PHP 4.2.x and Oracle 
> 8i (8.1.6).
> 
> I recently decided it was time to update php on our 
> development server, in
> preparation of updating the production server.  Currently, 
> they are both
> running 4.0.3pl1.
> 

<snip>

> 
> However, in the course of testing, I noticed that some of our 
> web pages were
> returning incomplete data sets, or no data at all.  
> 
--- End Message ---
--- Begin Message ---
Title: kerosene Stationery
I have installed on my workstation the following:
 
Window XP
MySQL 3.23.51
PHP 4.2.2-win32
Apache 1.3.26-win32.
 
The Apache Server seems to work fine because when I call http://localhost or http://127.0.0.1 I get the Apache screen which seems to tell me that the server is working.
My problem is when I try to open a PHP file, I do get a blank sceen in my browser and when I do a view source I still see my commands in PHP. It looks like the web server did not send the script to php for interpretation.
 
In my HTTPD.conf
I have added the following:
 
LoadModule php4_module c:/php/sapi/php4apache.dll (At the first line of the file)
AddModule mod_php4.c (On line 242 at the end of the AddModule list)
AddType application/x-httpd-php .php (Line 816 under AddType application/x-tar .tgz)
 
Thanks for your help
 
 
 
Pierre Cousineau


Associé Principal
Ventes et Marketing
[EMAIL PROTECTED]
TEL: 613-632-1133
FAX: 613-632-9175

 
--- End Message ---

Reply via email to