php-install Digest 27 Apr 2001 11:07:58 -0000 Issue 281

Topics (messages 2897 through 2920):

Re: RH7.1, PHP4, and ucd-snmp
        2897 by: Nicholas Ritter
        2898 by: Rasmus Lerdorf
        2905 by: Nicholas Ritter

AIX
        2899 by: Jacob Steinberger
        2900 by: Andi Gutmans
        2901 by: Steve Brazill
        2902 by: Jacob Steinberger
        2903 by: Steve Brazill
        2904 by: Jacob Steinberger
        2906 by: Andi Gutmans
        2907 by: Jacob Steinberger
        2908 by: Andi Gutmans
        2909 by: Jacob Steinberger
        2910 by: Andi Gutmans
        2911 by: Jacob Steinberger
        2913 by: Krznaric Michael
        2914 by: Jacob Steinberger
        2915 by: Jacob Steinberger
        2916 by: Andi Gutmans
        2917 by: Jacob Steinberger
        2918 by: Jacob Steinberger

Baffled on installing cURL extension to PHP
        2912 by: Mark Brotherton

PHP an Apache in WIN NT (Not Running)(Help)
        2919 by: Nicolas Machado

Can build database module and PHP module separately?
        2920 by: dino

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]


----------------------------------------------------------------------


Rasmus-


I made the changes you mentioned, and the configure script ran without error
this time. When I started apache with the newly compiled php module
installed, it started up with the same symbol error.

Nicholas




on 4/26/01 12:14 PM, Rasmus Lerdorf at [EMAIL PROTECTED] wrote:

>> I have a PIII 850 box running RH7.1 and have encountered a problem with
>> adding snmp support to php4. I hope that someone has a suggestion as to how
>> to fix this....here are the details:
>> 
>> 
>> RPMs installed:
>> (I am using the stock rpms from the RH7.1 distro for apache, mysql,  and
>> ucd-snmp)
>> apache-1.3.19-5  (and it's devel rpm)
>> mysql-3.23.36-1  (and it's devel rpm, server and client rpms)
>> ucd-snmp-4.2-12  (and it's devel and utils rpms)
>> 
>> 
>> PHP compiles fine, but apache won't startup due to a symbol error:
>> 
>> Cannot load libphp4.so into server: /usr/lib/libsnmp-0.4.2.so: undefined
>> symbol: EVP_DigestInit
> 
> Try editing your ext/snmp/config.m4 file.  Add the two lines indicated by
> + here:
> 
> if test "$ac_cv_header_default_store_h" = "yes"; then
> dnl UCD SNMP 4.1.x
> +        AC_CHECK_LIB(crypto, CRYPTO_free, SNMP_LIBS=-lcrypto)
> +        LIBS="$LIBS $SNMP_LIBS"
> AC_TRY_RUN([
> 
> 
> Then run ./buildconf and try again and let me know if it fixes it.  Looks
> to me like the TRY_RUN is attempted without -lcrypto being added which is
> going to make that check for OPENSSL fail.  Don't quite see how this could
> ever have worked unless some other extension is adding -lcrypto.
> 
> -Rasmus
> 





> I made the changes you mentioned, and the configure script ran without error
> this time. When I started apache with the newly compiled php module
> installed, it started up with the same symbol error.

What does this command give you?

  /sbin/ldconfig -p | grep crypto

-Rasmus





on 4/26/01 2:12 PM, Rasmus Lerdorf at [EMAIL PROTECTED] wrote:

>> I made the changes you mentioned, and the configure script ran without error
>> this time. When I started apache with the newly compiled php module
>> installed, it started up with the same symbol error.
> 
> What does this command give you?
> 
> /sbin/ldconfig -p | grep crypto
> 
> -Rasmus
> 


Here is the readout:

libk5crypto.so.3 (libc6) => /usr/kerberos/lib/libk5crypto.so.3
libcrypto.so.1 (libc6) => /usr/lib/libcrypto.so.1
libcrypto.so (libc6) => /usr/lib/libcrypto.so


NOTE: I copied libcrypto.so.1 to libcrypto.so recently to fix a netsiant
0.0.7b3 issue with www checking.

Nicholas





Slowly but surely I was able to install PHP4, Apache, and MySql. All of 
which work, just not together. MySql is working fine, PHP4+Apache works, 
though when I try and have PHP access MySql I get:

Fatal error: Call to undefined function: mysql_pconnect() in 
/usr/local/share/apache/htdocs/mainfile.php on line 17

Most of the sites I find this error on say that my PHP doesn't have support 
for MySql compiled in. Though, under phpinfo, I find this:

--with-mysql=shared,/usr/local

I've found numerous sites that have Linux RPMs that have a PHP4-MySql 
Package. Obviously, I can't make use of this because I'm running on AIX.

I'm just curious if anyone knows what is correct? Do I need an added 
package to run PHP with MySQL? Or is the configuration of PHP with the 
MySql switch enough?

Oy!

Thanks...

Jacob





The MySQL client library comes with the latest versions of PHP 4 so you are 
probably best off configuring your PHP installation without specifying 
anything about MySQL in the ./configure line. And if you really want to or 
have to use the libraries under /usr/local use --with-mysql=/usr/local 
(nuke the shared,)

Andi

At 03:08 PM 4/26/2001 -0500, Jacob Steinberger wrote:
>Slowly but surely I was able to install PHP4, Apache, and MySql. All of 
>which work, just not together. MySql is working fine, PHP4+Apache works, 
>though when I try and have PHP access MySql I get:
>
>Fatal error: Call to undefined function: mysql_pconnect() in 
>/usr/local/share/apache/htdocs/mainfile.php on line 17
>
>Most of the sites I find this error on say that my PHP doesn't have 
>support for MySql compiled in. Though, under phpinfo, I find this:
>
>--with-mysql=shared,/usr/local
>
>I've found numerous sites that have Linux RPMs that have a PHP4-MySql 
>Package. Obviously, I can't make use of this because I'm running on AIX.
>
>I'm just curious if anyone knows what is correct? Do I need an added 
>package to run PHP with MySQL? Or is the configuration of PHP with the 
>MySql switch enough?
>
>Oy!
>
>Thanks...
>
>Jacob
>
>
>--
>PHP Install Mailing List (http://www.php.net/)
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>To contact the list administrators, e-mail: [EMAIL PROTECTED]





What version of MySQL did you install,  and what version does "phpinfo" say is
installed ?? (remember,  PHP comes with an old 'generic' version pre-builtin)

Also, did you install MySQL using RPM's ?  If you used the 'source' method (as
I did) the line from "phpinfo" might say something like
"--with-mysql=/usr/local/mysql"

Jacob Steinberger wrote:

> Slowly but surely I was able to install PHP4, Apache, and MySql. All of
> which work, just not together. MySql is working fine, PHP4+Apache works,
> though when I try and have PHP access MySql I get:
>
> Fatal error: Call to undefined function: mysql_pconnect() in
> /usr/local/share/apache/htdocs/mainfile.php on line 17
>
> Most of the sites I find this error on say that my PHP doesn't have support
> for MySql compiled in. Though, under phpinfo, I find this:
>
> --with-mysql=shared,/usr/local
>
> I've found numerous sites that have Linux RPMs that have a PHP4-MySql
> Package. Obviously, I can't make use of this because I'm running on AIX.
>
> I'm just curious if anyone knows what is correct? Do I need an added
> package to run PHP with MySQL? Or is the configuration of PHP with the
> MySql switch enough?
>
> Oy!
>
> Thanks...
>
> Jacob
>
> --
> PHP Install Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]





Andi, Steve. I should have added that everything I have managed to get 
installed are pre-compiled binaries. I haven't been able to get PHP to 
compile, so I had to use pre-compiled Apache that has built in support for 
PHP. The MySql client wouldn't even work correctly.

Apache 1.3.19
PHP4.0.4pl1
MySql client is 9.27 3.22.14b-gamma, for ibm-aix4.1.5.0 (As the only other 
pre-compiled version was for 4.3.3 which wouldn't work, I am running 4.3.2)
MySql server is 3.23.37 on NT (the pre-compiled version for AIX is going to 
take a bit of time to hammer out)

I'll take any suggestions at this point =)

Thanks for the replys.

Jacob

At 01:15 PM 4/26/01 -0700, Steve Brazill wrote:
>What version of MySQL did you install,  and what version does "phpinfo" say is
>installed ?? (remember,  PHP comes with an old 'generic' version pre-builtin)
>
>Also, did you install MySQL using RPM's ?  If you used the 'source' method (as
>I did) the line from "phpinfo" might say something like
>"--with-mysql=/usr/local/mysql"
>
>Jacob Steinberger wrote:
>
> > Slowly but surely I was able to install PHP4, Apache, and MySql. All of
> > which work, just not together. MySql is working fine, PHP4+Apache works,
> > though when I try and have PHP access MySql I get:
> >
> > Fatal error: Call to undefined function: mysql_pconnect() in
> > /usr/local/share/apache/htdocs/mainfile.php on line 17
> >
> > Most of the sites I find this error on say that my PHP doesn't have support
> > for MySql compiled in. Though, under phpinfo, I find this:
> >
> > --with-mysql=shared,/usr/local
> >
> > I've found numerous sites that have Linux RPMs that have a PHP4-MySql
> > Package. Obviously, I can't make use of this because I'm running on AIX.
> >
> > I'm just curious if anyone knows what is correct? Do I need an added
> > package to run PHP with MySQL? Or is the configuration of PHP with the
> > MySql switch enough?
> >
> > Oy!
> >
> > Thanks...
> >
> > Jacob
> >
> > --
> > PHP Install Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > To contact the list administrators, e-mail: [EMAIL PROTECTED]





IF,  you are indeed using the MySQL server version 3.23.37,  and the client
version of 3.22.whatever,  I would suspect that it won't work...  (you'd need a
3.23.xx client)

Jacob Steinberger wrote:

> Andi, Steve. I should have added that everything I have managed to get
> installed are pre-compiled binaries. I haven't been able to get PHP to
> compile, so I had to use pre-compiled Apache that has built in support for
> PHP. The MySql client wouldn't even work correctly.
>
> Apache 1.3.19
> PHP4.0.4pl1
> MySql client is 9.27 3.22.14b-gamma, for ibm-aix4.1.5.0 (As the only other
> pre-compiled version was for 4.3.3 which wouldn't work, I am running 4.3.2)
> MySql server is 3.23.37 on NT (the pre-compiled version for AIX is going to
> take a bit of time to hammer out)
>
> I'll take any suggestions at this point =)
>
> Thanks for the replys.
>
> Jacob
>
> At 01:15 PM 4/26/01 -0700, Steve Brazill wrote:
> >What version of MySQL did you install,  and what version does "phpinfo" say is
> >installed ?? (remember,  PHP comes with an old 'generic' version pre-builtin)
> >
> >Also, did you install MySQL using RPM's ?  If you used the 'source' method (as
> >I did) the line from "phpinfo" might say something like
> >"--with-mysql=/usr/local/mysql"
> >
> >Jacob Steinberger wrote:
> >
> > > Slowly but surely I was able to install PHP4, Apache, and MySql. All of
> > > which work, just not together. MySql is working fine, PHP4+Apache works,
> > > though when I try and have PHP access MySql I get:
> > >
> > > Fatal error: Call to undefined function: mysql_pconnect() in
> > > /usr/local/share/apache/htdocs/mainfile.php on line 17
> > >
> > > Most of the sites I find this error on say that my PHP doesn't have support
> > > for MySql compiled in. Though, under phpinfo, I find this:
> > >
> > > --with-mysql=shared,/usr/local
> > >
> > > I've found numerous sites that have Linux RPMs that have a PHP4-MySql
> > > Package. Obviously, I can't make use of this because I'm running on AIX.
> > >
> > > I'm just curious if anyone knows what is correct? Do I need an added
> > > package to run PHP with MySQL? Or is the configuration of PHP with the
> > > MySql switch enough?
> > >
> > > Oy!
> > >
> > > Thanks...
> > >
> > > Jacob
> > >
>





The client can connect to the SQL server without a problem, I can create 
tables, manipulate data, etc.

The error seems to have something to do with PHP and it trying to call 
mysql_pconnect. I just don't know how to fix that problem without finding 
someone that can change the C on the files my install stops at.

Back to the drawing board for me, thanks for the help.

At 01:49 PM 4/26/01 -0700, Steve Brazill wrote:
>IF,  you are indeed using the MySQL server version 3.23.37,  and the client
>version of 3.22.whatever,  I would suspect that it won't work...  (you'd 
>need a
>3.23.xx client)
>
>Jacob Steinberger wrote:
>
> > Andi, Steve. I should have added that everything I have managed to get
> > installed are pre-compiled binaries. I haven't been able to get PHP to
> > compile, so I had to use pre-compiled Apache that has built in support for
> > PHP. The MySql client wouldn't even work correctly.
> >
> > Apache 1.3.19
> > PHP4.0.4pl1
> > MySql client is 9.27 3.22.14b-gamma, for ibm-aix4.1.5.0 (As the only other
> > pre-compiled version was for 4.3.3 which wouldn't work, I am running 4.3.2)
> > MySql server is 3.23.37 on NT (the pre-compiled version for AIX is going to
> > take a bit of time to hammer out)
> >
> > I'll take any suggestions at this point =)
> >
> > Thanks for the replys.
> >
> > Jacob
> >
> > At 01:15 PM 4/26/01 -0700, Steve Brazill wrote:
> > >What version of MySQL did you install,  and what version does 
> "phpinfo" say is
> > >installed ?? (remember,  PHP comes with an old 'generic' version 
> pre-builtin)
> > >
> > >Also, did you install MySQL using RPM's ?  If you used the 'source' 
> method (as
> > >I did) the line from "phpinfo" might say something like
> > >"--with-mysql=/usr/local/mysql"
> > >
> > >Jacob Steinberger wrote:
> > >
> > > > Slowly but surely I was able to install PHP4, Apache, and MySql. All of
> > > > which work, just not together. MySql is working fine, PHP4+Apache 
> works,
> > > > though when I try and have PHP access MySql I get:
> > > >
> > > > Fatal error: Call to undefined function: mysql_pconnect() in
> > > > /usr/local/share/apache/htdocs/mainfile.php on line 17
> > > >
> > > > Most of the sites I find this error on say that my PHP doesn't have 
> support
> > > > for MySql compiled in. Though, under phpinfo, I find this:
> > > >
> > > > --with-mysql=shared,/usr/local
> > > >
> > > > I've found numerous sites that have Linux RPMs that have a PHP4-MySql
> > > > Package. Obviously, I can't make use of this because I'm running on 
> AIX.
> > > >
> > > > I'm just curious if anyone knows what is correct? Do I need an added
> > > > package to run PHP with MySQL? Or is the configuration of PHP with the
> > > > MySql switch enough?
> > > >
> > > > Oy!
> > > >
> > > > Thanks...
> > > >
> > > > Jacob
> > > >
> >





Try and see if your pre-compiled binaries include a file called php_mysql.so.
If so you could load it via your php.ini.

Andi

At 03:29 PM 4/26/2001 -0500, Jacob Steinberger wrote:
>Andi, Steve. I should have added that everything I have managed to get 
>installed are pre-compiled binaries. I haven't been able to get PHP to 
>compile, so I had to use pre-compiled Apache that has built in support for 
>PHP. The MySql client wouldn't even work correctly.
>
>Apache 1.3.19
>PHP4.0.4pl1
>MySql client is 9.27 3.22.14b-gamma, for ibm-aix4.1.5.0 (As the only other 
>pre-compiled version was for 4.3.3 which wouldn't work, I am running 4.3.2)
>MySql server is 3.23.37 on NT (the pre-compiled version for AIX is going 
>to take a bit of time to hammer out)
>
>I'll take any suggestions at this point =)
>
>Thanks for the replys.
>
>Jacob
>
>At 01:15 PM 4/26/01 -0700, Steve Brazill wrote:
>>What version of MySQL did you install,  and what version does "phpinfo" 
>>say is
>>installed ?? (remember,  PHP comes with an old 'generic' version pre-builtin)
>>
>>Also, did you install MySQL using RPM's ?  If you used the 'source' 
>>method (as
>>I did) the line from "phpinfo" might say something like
>>"--with-mysql=/usr/local/mysql"
>>
>>Jacob Steinberger wrote:
>>
>> > Slowly but surely I was able to install PHP4, Apache, and MySql. All of
>> > which work, just not together. MySql is working fine, PHP4+Apache works,
>> > though when I try and have PHP access MySql I get:
>> >
>> > Fatal error: Call to undefined function: mysql_pconnect() in
>> > /usr/local/share/apache/htdocs/mainfile.php on line 17
>> >
>> > Most of the sites I find this error on say that my PHP doesn't have 
>> support
>> > for MySql compiled in. Though, under phpinfo, I find this:
>> >
>> > --with-mysql=shared,/usr/local
>> >
>> > I've found numerous sites that have Linux RPMs that have a PHP4-MySql
>> > Package. Obviously, I can't make use of this because I'm running on AIX.
>> >
>> > I'm just curious if anyone knows what is correct? Do I need an added
>> > package to run PHP with MySQL? Or is the configuration of PHP with the
>> > MySql switch enough?
>> >
>> > Oy!
>> >
>> > Thanks...
>> >
>> > Jacob
>> >
>> > --
>> > PHP Install Mailing List (http://www.php.net/)
>> > To unsubscribe, e-mail: [EMAIL PROTECTED]
>> > For additional commands, e-mail: [EMAIL PROTECTED]
>> > To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>
>--
>PHP Install Mailing List (http://www.php.net/)
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>To contact the list administrators, e-mail: [EMAIL PROTECTED]





Alas, I do not have this file.

Thanks for the idea though.

At 12:18 AM 4/27/01 +0200, Andi Gutmans wrote:
>Try and see if your pre-compiled binaries include a file called php_mysql.so.
>If so you could load it via your php.ini.
>
>Andi
>
>At 03:29 PM 4/26/2001 -0500, Jacob Steinberger wrote:
>>Andi, Steve. I should have added that everything I have managed to get 
>>installed are pre-compiled binaries. I haven't been able to get PHP to 
>>compile, so I had to use pre-compiled Apache that has built in support 
>>for PHP. The MySql client wouldn't even work correctly.
>>
>>Apache 1.3.19
>>PHP4.0.4pl1
>>MySql client is 9.27 3.22.14b-gamma, for ibm-aix4.1.5.0 (As the only 
>>other pre-compiled version was for 4.3.3 which wouldn't work, I am 
>>running 4.3.2)
>>MySql server is 3.23.37 on NT (the pre-compiled version for AIX is going 
>>to take a bit of time to hammer out)
>>
>>I'll take any suggestions at this point =)
>>
>>Thanks for the replys.
>>
>>Jacob
>>
>>At 01:15 PM 4/26/01 -0700, Steve Brazill wrote:
>>>What version of MySQL did you install,  and what version does "phpinfo" 
>>>say is
>>>installed ?? (remember,  PHP comes with an old 'generic' version 
>>>pre-builtin)
>>>
>>>Also, did you install MySQL using RPM's ?  If you used the 'source' 
>>>method (as
>>>I did) the line from "phpinfo" might say something like
>>>"--with-mysql=/usr/local/mysql"
>>>
>>>Jacob Steinberger wrote:
>>>
>>> > Slowly but surely I was able to install PHP4, Apache, and MySql. All of
>>> > which work, just not together. MySql is working fine, PHP4+Apache works,
>>> > though when I try and have PHP access MySql I get:
>>> >
>>> > Fatal error: Call to undefined function: mysql_pconnect() in
>>> > /usr/local/share/apache/htdocs/mainfile.php on line 17
>>> >
>>> > Most of the sites I find this error on say that my PHP doesn't have 
>>> support
>>> > for MySql compiled in. Though, under phpinfo, I find this:
>>> >
>>> > --with-mysql=shared,/usr/local
>>> >
>>> > I've found numerous sites that have Linux RPMs that have a PHP4-MySql
>>> > Package. Obviously, I can't make use of this because I'm running on AIX.
>>> >
>>> > I'm just curious if anyone knows what is correct? Do I need an added
>>> > package to run PHP with MySQL? Or is the configuration of PHP with the
>>> > MySql switch enough?
>>> >
>>> > Oy!
>>> >
>>> > Thanks...
>>> >
>>> > Jacob
>>> >
>>> > --
>>> > PHP Install Mailing List (http://www.php.net/)
>>> > To unsubscribe, e-mail: [EMAIL PROTECTED]
>>> > For additional commands, e-mail: [EMAIL PROTECTED]
>>> > To contact the list administrators, e-mail: [EMAIL PROTECTED]
>>
>>
>>--
>>PHP Install Mailing List (http://www.php.net/)
>>To unsubscribe, e-mail: [EMAIL PROTECTED]
>>For additional commands, e-mail: [EMAIL PROTECTED]
>>To contact the list administrators, e-mail: [EMAIL PROTECTED]





What error messages did you get when trying to compile PHP?

Andi

At 04:25 PM 4/26/2001 -0500, Jacob Steinberger wrote:
>Alas, I do not have this file.
>
>Thanks for the idea though.
>
>At 12:18 AM 4/27/01 +0200, Andi Gutmans wrote:
>>Try and see if your pre-compiled binaries include a file called php_mysql.so.
>>If so you could load it via your php.ini.
>>
>>Andi
>>
>>At 03:29 PM 4/26/2001 -0500, Jacob Steinberger wrote:
>>>Andi, Steve. I should have added that everything I have managed to get 
>>>installed are pre-compiled binaries. I haven't been able to get PHP to 
>>>compile, so I had to use pre-compiled Apache that has built in support 
>>>for PHP. The MySql client wouldn't even work correctly.
>>>
>>>Apache 1.3.19
>>>PHP4.0.4pl1
>>>MySql client is 9.27 3.22.14b-gamma, for ibm-aix4.1.5.0 (As the only 
>>>other pre-compiled version was for 4.3.3 which wouldn't work, I am 
>>>running 4.3.2)
>>>MySql server is 3.23.37 on NT (the pre-compiled version for AIX is going 
>>>to take a bit of time to hammer out)
>>>
>>>I'll take any suggestions at this point =)
>>>
>>>Thanks for the replys.
>>>
>>>Jacob
>>>
>>>At 01:15 PM 4/26/01 -0700, Steve Brazill wrote:
>>>>What version of MySQL did you install,  and what version does "phpinfo" 
>>>>say is
>>>>installed ?? (remember,  PHP comes with an old 'generic' version 
>>>>pre-builtin)
>>>>
>>>>Also, did you install MySQL using RPM's ?  If you used the 'source' 
>>>>method (as
>>>>I did) the line from "phpinfo" might say something like
>>>>"--with-mysql=/usr/local/mysql"
>>>>
>>>>Jacob Steinberger wrote:
>>>>
>>>> > Slowly but surely I was able to install PHP4, Apache, and MySql. All of
>>>> > which work, just not together. MySql is working fine, PHP4+Apache works,
>>>> > though when I try and have PHP access MySql I get:
>>>> >
>>>> > Fatal error: Call to undefined function: mysql_pconnect() in
>>>> > /usr/local/share/apache/htdocs/mainfile.php on line 17
>>>> >
>>>> > Most of the sites I find this error on say that my PHP doesn't have 
>>>> support
>>>> > for MySql compiled in. Though, under phpinfo, I find this:
>>>> >
>>>> > --with-mysql=shared,/usr/local
>>>> >
>>>> > I've found numerous sites that have Linux RPMs that have a PHP4-MySql
>>>> > Package. Obviously, I can't make use of this because I'm running on AIX.
>>>> >
>>>> > I'm just curious if anyone knows what is correct? Do I need an added
>>>> > package to run PHP with MySQL? Or is the configuration of PHP with the
>>>> > MySql switch enough?
>>>> >
>>>> > Oy!
>>>> >
>>>> > Thanks...
>>>> >
>>>> > Jacob
>>>> >
>>>> > --
>>>> > PHP Install Mailing List (http://www.php.net/)
>>>> > To unsubscribe, e-mail: [EMAIL PROTECTED]
>>>> > For additional commands, e-mail: [EMAIL PROTECTED]
>>>> > To contact the list administrators, e-mail: [EMAIL PROTECTED]
>>>
>>>
>>>--
>>>PHP Install Mailing List (http://www.php.net/)
>>>To unsubscribe, e-mail: [EMAIL PROTECTED]
>>>For additional commands, e-mail: [EMAIL PROTECTED]
>>>To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>
>--
>PHP Install Mailing List (http://www.php.net/)
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>To contact the list administrators, e-mail: [EMAIL PROTECTED]





I was getting the following, though I've since remove it, it would be easy 
for me to unzip again..

libmysql.c: In function 'connect2':
libmysql.c:179: warning: passing arg 5 of 'getsockopt' from incompatible 
pointer type
make: 1254-004 The error code from the last command is 1.

Line 179 is the following:

if (getsockopt(s, SOL_SOCKET, SO_ERROR, (char*) &s_err, &s_err_size) != 0)

I was also getting a few errors about int8,16,32 but the make at least it 
got past those. This is were it died.

Jacob

At 12:25 AM 4/27/01 +0200, Andi Gutmans wrote:
>What error messages did you get when trying to compile PHP?
>
>Andi
>
>At 04:25 PM 4/26/2001 -0500, Jacob Steinberger wrote:
>>Alas, I do not have this file.
>>
>>Thanks for the idea though.
>>
>>At 12:18 AM 4/27/01 +0200, Andi Gutmans wrote:
>>>Try and see if your pre-compiled binaries include a file called 
>>>php_mysql.so.
>>>If so you could load it via your php.ini.
>>>
>>>Andi
>>>
>>>At 03:29 PM 4/26/2001 -0500, Jacob Steinberger wrote:
>>>>Andi, Steve. I should have added that everything I have managed to get 
>>>>installed are pre-compiled binaries. I haven't been able to get PHP to 
>>>>compile, so I had to use pre-compiled Apache that has built in support 
>>>>for PHP. The MySql client wouldn't even work correctly.
>>>>
>>>>Apache 1.3.19
>>>>PHP4.0.4pl1
>>>>MySql client is 9.27 3.22.14b-gamma, for ibm-aix4.1.5.0 (As the only 
>>>>other pre-compiled version was for 4.3.3 which wouldn't work, I am 
>>>>running 4.3.2)
>>>>MySql server is 3.23.37 on NT (the pre-compiled version for AIX is 
>>>>going to take a bit of time to hammer out)
>>>>
>>>>I'll take any suggestions at this point =)
>>>>
>>>>Thanks for the replys.
>>>>
>>>>Jacob
>>>>
>>>>At 01:15 PM 4/26/01 -0700, Steve Brazill wrote:
>>>>>What version of MySQL did you install,  and what version does 
>>>>>"phpinfo" say is
>>>>>installed ?? (remember,  PHP comes with an old 'generic' version 
>>>>>pre-builtin)
>>>>>
>>>>>Also, did you install MySQL using RPM's ?  If you used the 'source' 
>>>>>method (as
>>>>>I did) the line from "phpinfo" might say something like
>>>>>"--with-mysql=/usr/local/mysql"
>>>>>
>>>>>Jacob Steinberger wrote:
>>>>>
>>>>> > Slowly but surely I was able to install PHP4, Apache, and MySql. All of
>>>>> > which work, just not together. MySql is working fine, PHP4+Apache 
>>>>> works,
>>>>> > though when I try and have PHP access MySql I get:
>>>>> >
>>>>> > Fatal error: Call to undefined function: mysql_pconnect() in
>>>>> > /usr/local/share/apache/htdocs/mainfile.php on line 17
>>>>> >
>>>>> > Most of the sites I find this error on say that my PHP doesn't have 
>>>>> support
>>>>> > for MySql compiled in. Though, under phpinfo, I find this:
>>>>> >
>>>>> > --with-mysql=shared,/usr/local
>>>>> >
>>>>> > I've found numerous sites that have Linux RPMs that have a PHP4-MySql
>>>>> > Package. Obviously, I can't make use of this because I'm running on 
>>>>> AIX.
>>>>> >
>>>>> > I'm just curious if anyone knows what is correct? Do I need an added
>>>>> > package to run PHP with MySQL? Or is the configuration of PHP with the
>>>>> > MySql switch enough?
>>>>> >
>>>>> > Oy!
>>>>> >
>>>>> > Thanks...
>>>>> >
>>>>> > Jacob
>>>>> >
>>>>> > --
>>>>> > PHP Install Mailing List (http://www.php.net/)
>>>>> > To unsubscribe, e-mail: [EMAIL PROTECTED]
>>>>> > For additional commands, e-mail: [EMAIL PROTECTED]
>>>>> > To contact the list administrators, e-mail: 
>>>>> [EMAIL PROTECTED]
>>>>
>>>>
>>>>--
>>>>PHP Install Mailing List (http://www.php.net/)
>>>>To unsubscribe, e-mail: [EMAIL PROTECTED]
>>>>For additional commands, e-mail: [EMAIL PROTECTED]
>>>>To contact the list administrators, e-mail: [EMAIL PROTECTED]
>>
>>
>>--
>>PHP Install Mailing List (http://www.php.net/)
>>To unsubscribe, e-mail: [EMAIL PROTECTED]
>>For additional commands, e-mail: [EMAIL PROTECTED]
>>To contact the list administrators, e-mail: [EMAIL PROTECTED]





At 04:31 PM 4/26/2001 -0500, Jacob Steinberger wrote:
>I was getting the following, though I've since remove it, it would be easy 
>for me to unzip again..
>
>libmysql.c: In function 'connect2':
>libmysql.c:179: warning: passing arg 5 of 'getsockopt' from incompatible 
>pointer type
>make: 1254-004 The error code from the last command is 1.
>
>Line 179 is the following:
>
>if (getsockopt(s, SOL_SOCKET, SO_ERROR, (char*) &s_err, &s_err_size) != 0)
>
>I was also getting a few errors about int8,16,32 but the make at least it 
>got past those. This is were it died.

Weird, it shouldn't die on a warning. Do you have gmake on that system (GNU 
make)?

Andi






>Weird, it shouldn't die on a warning. Do you have gmake on that system 
>(GNU make)?
>
>Andi

I do not (unless gnu make is default on AIX, which I doubt), I'll go ahead 
and pull it off Bull and give it a go.

Jacob





What's BULL?

Mike

-----Original Message-----
From: Jacob Steinberger [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 26, 2001 5:40 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP-INST] AIX



>Weird, it shouldn't die on a warning. Do you have gmake on that system 
>(GNU make)?
>
>Andi

I do not (unless gnu make is default on AIX, which I doubt), I'll go ahead 
and pull it off Bull and give it a go.

Jacob


-- 
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




http://freeware.bull.net

Haven't really had a problem with anything they've had. Well, besides php 
with SQL and apache all working -together-.

At 05:49 PM 4/26/01 -0400, Krznaric Michael wrote:
>What's BULL?
>
>Mike
>
>-----Original Message-----
>From: Jacob Steinberger [mailto:[EMAIL PROTECTED]]
>Sent: Thursday, April 26, 2001 5:40 PM
>To: [EMAIL PROTECTED]
>Subject: Re: [PHP-INST] AIX
>
>
>
> >Weird, it shouldn't die on a warning. Do you have gmake on that system
> >(GNU make)?
> >
> >Andi
>
>I do not (unless gnu make is default on AIX, which I doubt), I'll go ahead
>and pull it off Bull and give it a go.
>
>Jacob
>
>
>--
>PHP Install Mailing List (http://www.php.net/)
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>To contact the list administrators, e-mail: [EMAIL PROTECTED]





Apache Configured with generic. Though I don't think that matters just yet.

PHP Configured with:

./configure --with-mysql --with-apache=/tmp/AIX/apache_1.3.19 
--enable-track-vars

I did not specify a path for MySql as I'm not sure if its happy with just 
the client libs or if it wants the server.

I'm still getting the same error with Gnu Make. The error is from the 
"Making all in libmysql".

In file included from libmysql.c:9:
global.h:525: conflicting types for 'int8'
/usr/include/sys/inttypes.h:622: previous delaration of 'int8'
global.h:526: warning: redefinition of 'int16'
/usr/include/sys/inttypes.h:623: warning: 'int16' previously declared here
global.h:536: warning: redefinition of 'int32'
/usr/include/sys/inttypes.h:624: warning: 'int32' previously declared here
libmysql.c: In function 'connect2':
libmysql.c:179: warning: passing arg 5 of 'getsockopt' from incompatible 
pointer type

After this, it just errors out and reports leaving directories.

Oy!

Jacob





A temporary hack which might work is editing ext/mysql/libmysql/global.h 
and change all occurances of:
#ifndef HAVE_INT_8_16_32
to:
#if 0

Andi


At 05:22 PM 4/26/2001 -0500, Jacob Steinberger wrote:
>Apache Configured with generic. Though I don't think that matters just yet.
>
>PHP Configured with:
>
>./configure --with-mysql --with-apache=/tmp/AIX/apache_1.3.19 
>--enable-track-vars
>
>I did not specify a path for MySql as I'm not sure if its happy with just 
>the client libs or if it wants the server.
>
>I'm still getting the same error with Gnu Make. The error is from the 
>"Making all in libmysql".
>
>In file included from libmysql.c:9:
>global.h:525: conflicting types for 'int8'
>/usr/include/sys/inttypes.h:622: previous delaration of 'int8'
>global.h:526: warning: redefinition of 'int16'
>/usr/include/sys/inttypes.h:623: warning: 'int16' previously declared here
>global.h:536: warning: redefinition of 'int32'
>/usr/include/sys/inttypes.h:624: warning: 'int32' previously declared here
>libmysql.c: In function 'connect2':
>libmysql.c:179: warning: passing arg 5 of 'getsockopt' from incompatible 
>pointer type
>
>After this, it just errors out and reports leaving directories.
>
>Oy!
>
>Jacob
>
>
>--
>PHP Install Mailing List (http://www.php.net/)
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>To contact the list administrators, e-mail: [EMAIL PROTECTED]





Excellent! It still generated the warning about the getsockopt, but it went 
right through. I'll let you know how it goes.

Many thanks!

At 01:27 AM 4/27/01 +0200, Andi Gutmans wrote:
>A temporary hack which might work is editing ext/mysql/libmysql/global.h 
>and change all occurances of:
>#ifndef HAVE_INT_8_16_32
>to:
>#if 0
>
>Andi
>
>
>At 05:22 PM 4/26/2001 -0500, Jacob Steinberger wrote:
>>Apache Configured with generic. Though I don't think that matters just yet.
>>
>>PHP Configured with:
>>
>>./configure --with-mysql --with-apache=/tmp/AIX/apache_1.3.19 
>>--enable-track-vars
>>
>>I did not specify a path for MySql as I'm not sure if its happy with just 
>>the client libs or if it wants the server.
>>
>>I'm still getting the same error with Gnu Make. The error is from the 
>>"Making all in libmysql".
>>
>>In file included from libmysql.c:9:
>>global.h:525: conflicting types for 'int8'
>>/usr/include/sys/inttypes.h:622: previous delaration of 'int8'
>>global.h:526: warning: redefinition of 'int16'
>>/usr/include/sys/inttypes.h:623: warning: 'int16' previously declared here
>>global.h:536: warning: redefinition of 'int32'
>>/usr/include/sys/inttypes.h:624: warning: 'int32' previously declared here
>>libmysql.c: In function 'connect2':
>>libmysql.c:179: warning: passing arg 5 of 'getsockopt' from incompatible 
>>pointer type
>>
>>After this, it just errors out and reports leaving directories.
>>
>>Oy!
>>
>>Jacob
>>
>>
>>--
>>PHP Install Mailing List (http://www.php.net/)
>>To unsubscribe, e-mail: [EMAIL PROTECTED]
>>For additional commands, e-mail: [EMAIL PROTECTED]
>>To contact the list administrators, e-mail: [EMAIL PROTECTED]





Looks like that fixed everything. Now I'm just dealing with user/pass 
issues so at least its making it to the SQL DB. Simple enough things that I 
can handle myself. =)

Many thanks Andi!

At 01:27 AM 4/27/01 +0200, Andi Gutmans wrote:
>A temporary hack which might work is editing ext/mysql/libmysql/global.h 
>and change all occurances of:
>#ifndef HAVE_INT_8_16_32
>to:
>#if 0
>
>Andi
>
>
>At 05:22 PM 4/26/2001 -0500, Jacob Steinberger wrote:
>>Apache Configured with generic. Though I don't think that matters just yet.
>>
>>PHP Configured with:
>>
>>./configure --with-mysql --with-apache=/tmp/AIX/apache_1.3.19 
>>--enable-track-vars
>>
>>I did not specify a path for MySql as I'm not sure if its happy with just 
>>the client libs or if it wants the server.
>>
>>I'm still getting the same error with Gnu Make. The error is from the 
>>"Making all in libmysql".
>>
>>In file included from libmysql.c:9:
>>global.h:525: conflicting types for 'int8'
>>/usr/include/sys/inttypes.h:622: previous delaration of 'int8'
>>global.h:526: warning: redefinition of 'int16'
>>/usr/include/sys/inttypes.h:623: warning: 'int16' previously declared here
>>global.h:536: warning: redefinition of 'int32'
>>/usr/include/sys/inttypes.h:624: warning: 'int32' previously declared here
>>libmysql.c: In function 'connect2':
>>libmysql.c:179: warning: passing arg 5 of 'getsockopt' from incompatible 
>>pointer type
>>
>>After this, it just errors out and reports leaving directories.
>>
>>Oy!
>>
>>Jacob
>>
>>
>>--
>>PHP Install Mailing List (http://www.php.net/)
>>To unsubscribe, e-mail: [EMAIL PROTECTED]
>>For additional commands, e-mail: [EMAIL PROTECTED]
>>To contact the list administrators, e-mail: [EMAIL PROTECTED]





Need help...

Installed openssl-0.9.6a, cURL-7.7.2, recompiled
php-4.0.4pl1, phpized libcurl.la, installed it to the
stronghold php extensions, and it refuses to load. The
failed php.ini directive reads:

PHP Warning:  Unable to load dynamic library
'/usr/local/php/lib/php/extensions/no-debug-non-zts-20001214/curl.so'
- libcurl.so.2: cannot open shared object file: No
such file or directory in Unknown on line 0

But both curl and a symbolic link I created to
libcurl.so.2 exist in that directory.

Any clues?

Much obliged,

embry0


__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/




Hello, I installed Apache on a NT box and I use the por 88 because I'm
using IIS3.0 also.

Afortunatelly Apache Work Fine, even with our Web pages.
But I create a test files called test.php, with te famous Hello Worl
inside.
I install PHP 4.0.4 with every tool that I foun, and manualy too, but it
doesen't work.

Except for one issue, if I include in the first line this:
#!/php/php

It work's, but show me , in the browser, the first line, if I erase it I
get the error 500.

I didn't what if wrong, if it's something in Apache or in PHP.

Thank's and sorry for my english, I'm Argentinian, and I spoke in
Spanish.
Best Regards






Hi

    Because I always met problem when building the PHP, with
informix support. I used the steps to do this

Apache
(1)./configure --enable-module=so
make ; make install

PHP
(2)
./configure --with-informox=/opt/informix --with-apxs=/usr/local/apache/bin/
apxs
(3)make ; make install

But I can't pass (2), cause there are error occured in ext/informix, I
wonder
if I can skip this module first, and build php module first?
If yes, how can I re-build the informix module later?
possible? Thanks






Reply via email to