php-install Digest 26 Mar 2003 17:34:36 -0000 Issue 1307

Topics (messages 10421 through 10426):

HP11.00,  php 4.3 and mysql
        10421 by: Madhu
        10423 by: Jim Thome
        10424 by: Michael Mauch
        10426 by: Madhu

Re: Problem on Solaris 8
        10422 by: Michael Mauch

PHP 4.1.2 extension problem
        10425 by: Vit Jonas

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 ---
I am facing heavy challenges trying to compile php as a DSO module into
apache.
I have a HP 11.00 OS (B2600) system with gcc 3.1 installed. I don't have
installed any new patch bundles on this system.
I am having apache 1.3.26 for HP 11.00 downloaded from HP
Mysql 4.0.12 binary downloaded from mysql (I was not sucessful in compiling
mysql source on this m/c)

The configure options I gave are as follows
$
./configure --with-mysql=/usr/local/mysql  --with-zlib-dir=/usr/local/lib --
with-apxs=/usr/local/apache/bin/apxs

(If I try without zlib path, the configure will complain about -lz option in
gcc)
The configure script fails after displaying this error message

checking for MySQL support... yes
checking for specified location of the MySQL UNIX socket... yes
checking for MySQL UNIX socket location... no
checking size of char... 1
checking size of int... (cached) 4
checking size of long... (cached) 4
checking size of long long... 8
checking for size_t... (cached) yes
checking whether time.h and sys/time.h may both be included... yes
checking for uid_t in sys/types.h... (cached) yes
checking for type ulong... no
checking for type uchar... no
checking for type uint... yes
checking for type ushort... yes
checking for int8... no
checking base type of last arg to accept... int
checking return type of qsort... void
checking for mysql_close in -lmysqlclient... no
checking for mysql_error in -lmysqlclient... no
configure: error: mysql configure failed. Please check config.log for more
information.

I am attaching the config.log portion also.
$ tail config.log
#line 48110 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char mysql_error();

int main() {
mysql_error()
; return 0; }
$ tail -20 config.log
int main() {
mysql_close()
; return 0; }
configure:48102: checking for mysql_error in -lmysqlclient
configure:48121: gcc -o
conftest -g -O2  -DHPUX11 -D_HPUX_SOURCE -DUSE_HSREGEX -DUSE_EXPAT
        -L/usr/local/lib -L/usr/local/mysql/lib
        -L/usr/local/lib -L/usr/local/lib -L/usr/local -L/usr/local
conftest.c -lmysqlclient  -lz -lz -lcrypt -lm -lnsl  -lcrypt 1>&5
/usr/ccs/bin/ld: /usr/local/mysql/lib/libmysqlclient.a: Not a valid library
(invalid magic number). Possibly a 64-bit PA archive library (Mismatched
ABI).
collect2: ld returned 1 exit status
configure: failed program was:
#line 48110 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char mysql_error();

int main() {
mysql_error()
; return 0; }


Any tips
Madhu



--- End Message ---
--- Begin Message ---
Drop the '--with-mysql=/usr/local/mysql' switch.  

PHP has built-in MySQL support and you only need to specify the path to
the MySQL client libraries if you run other applications that use MySQL
(like auth-mysql).  Even so, you will have problems on HPUX if you try
to compile PHP against the libraries that come with MySQL.

--
Jim

>>> "Madhu" <[EMAIL PROTECTED]> 03/25/03 06:09PM >>>
I am facing heavy challenges trying to compile php as a DSO module
into
apache.
I have a HP 11.00 OS (B2600) system with gcc 3.1 installed. I don't
have
installed any new patch bundles on this system.
I am having apache 1.3.26 for HP 11.00 downloaded from HP
Mysql 4.0.12 binary downloaded from mysql (I was not sucessful in
compiling
mysql source on this m/c)

The configure options I gave are as follows
$
./configure --with-mysql=/usr/local/mysql 
--with-zlib-dir=/usr/local/lib --
with-apxs=/usr/local/apache/bin/apxs

(If I try without zlib path, the configure will complain about -lz
option in
gcc)
The configure script fails after displaying this error message

checking for MySQL support... yes
checking for specified location of the MySQL UNIX socket... yes
checking for MySQL UNIX socket location... no
checking size of char... 1
checking size of int... (cached) 4
checking size of long... (cached) 4
checking size of long long... 8
checking for size_t... (cached) yes
checking whether time.h and sys/time.h may both be included... yes
checking for uid_t in sys/types.h... (cached) yes
checking for type ulong... no
checking for type uchar... no
checking for type uint... yes
checking for type ushort... yes
checking for int8... no
checking base type of last arg to accept... int
checking return type of qsort... void
checking for mysql_close in -lmysqlclient... no
checking for mysql_error in -lmysqlclient... no
configure: error: mysql configure failed. Please check config.log for
more
information.

I am attaching the config.log portion also.
$ tail config.log
#line 48110 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char mysql_error();

int main() {
mysql_error()
; return 0; }
$ tail -20 config.log
int main() {
mysql_close()
; return 0; }
configure:48102: checking for mysql_error in -lmysqlclient
configure:48121: gcc -o
conftest -g -O2  -DHPUX11 -D_HPUX_SOURCE -DUSE_HSREGEX -DUSE_EXPAT
        -L/usr/local/lib -L/usr/local/mysql/lib
        -L/usr/local/lib -L/usr/local/lib -L/usr/local -L/usr/local
conftest.c -lmysqlclient  -lz -lz -lcrypt -lm -lnsl  -lcrypt 1>&5
/usr/ccs/bin/ld: /usr/local/mysql/lib/libmysqlclient.a: Not a valid
library
(invalid magic number). Possibly a 64-bit PA archive library
(Mismatched
ABI).
collect2: ld returned 1 exit status
configure: failed program was:
#line 48110 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char mysql_error();

int main() {
mysql_error()
; return 0; }


Any tips
Madhu



-- 
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php 


--- End Message ---
--- Begin Message ---
Madhu <[EMAIL PROTECTED]> wrote:

> I am facing heavy challenges trying to compile php as a DSO module into
> apache.
> I have a HP 11.00 OS (B2600) system with gcc 3.1 installed. I don't have
> installed any new patch bundles on this system.
> I am having apache 1.3.26 for HP 11.00 downloaded from HP
> Mysql 4.0.12 binary downloaded from mysql (I was not sucessful in compiling
> mysql source on this m/c)

They only seem to have binaries for HP-UX 11.11. I don't know anything
about HP-UX, but you do probably - is this version mismatch no problem?
 
> The configure options I gave are as follows
> $
> ./configure --with-mysql=/usr/local/mysql  --with-zlib-dir=/usr/local/lib --
> with-apxs=/usr/local/apache/bin/apxs

> conftest -g -O2  -DHPUX11 -D_HPUX_SOURCE -DUSE_HSREGEX -DUSE_EXPAT
>        -L/usr/local/lib -L/usr/local/mysql/lib
>        -L/usr/local/lib -L/usr/local/lib -L/usr/local -L/usr/local
> conftest.c -lmysqlclient  -lz -lz -lcrypt -lm -lnsl  -lcrypt 1>&5
> /usr/ccs/bin/ld: /usr/local/mysql/lib/libmysqlclient.a: Not a valid library
> (invalid magic number). Possibly a 64-bit PA archive library (Mismatched
> ABI).

So did you install the 64-bit version or the 32-bit version of MySQL?
And which sort does your gcc build by default?

<http://groups.google.de/groups?hl=de&lr=&ie=UTF-8&threadm=3c5acb6b.866421%40news.tamu.edu&rnum=13&prev=/groups%3Fq%3DPHP%2Bmysql%2BHP/UX%2B64-bit%26hl%3Dde%26lr%3D%26ie%3DUTF-8%26scoring%3Dd%26start%3D10%26sa%3DN>
might be interesting if you don't know much about HP/UX (perhaps you
were just told to install PHP on that machine that you never saw before).

Also you might find the user notes on
<http://www.php.net/manual/en/install.hpux.php> interesting, although I
didn't find anything related to your current problem.

Regards (from a colleague @t-mobile.de)...
                                                Michael

--- End Message ---
--- Begin Message ---
"Michael Mauch" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Madhu <[EMAIL PROTECTED]> wrote:
>
> > I am facing heavy challenges trying to compile php as a DSO module into
> > apache.
> > I have a HP 11.00 OS (B2600) system with gcc 3.1 installed. I don't have
> > installed any new patch bundles on this system.
> > I am having apache 1.3.26 for HP 11.00 downloaded from HP
> > Mysql 4.0.12 binary downloaded from mysql (I was not sucessful in
compiling
> > mysql source on this m/c)
>
> They only seem to have binaries for HP-UX 11.11. I don't know anything
> about HP-UX, but you do probably - is this version mismatch no problem?

I could find only a binary verison of HP UX 11.11 at mysql.com and my OS
version is 11.00. Could this be a problem ?
I installed 64 bit version of mysql and my OS is 64 bit

Since I have latest Mysql version on my system (4.0.12), I don't know if php
will talk to the mysql if I don't configure PHP with --with-mysql option and
depend on build in PHP mysql support



--- End Message ---
--- Begin Message ---
Guillermo Guill?n Angel wrote:

> root en zeus# make install
> Installing PHP CLI binary: /usr/local/bin/
> Installing PHP SAPI module
> Installing shared extensions: 
> /usr/local/lib/php/extensions/no-debug-non-zts-20020429/
> Installing PEAR environment: /usr/local/lib/php/
> ld.so.1: /usr/local/php-4.3.0/sapi/cli/php: fatal: libucb.so.1: open 
> failed: No such file or directory
> *** Error code 137

> I checked and there is no missing file.
> all the files listed in this message exists
> what can I do?

Does this libucb.so.1 also exist somewhere where your linker can find it
(e.g. in /usr/ucblib/)? I'm not a Solaris expert; maybe you need to
install some package with this library. bugs.php.net only has some old
reports about libucb.so.1, nothing for PHP 4.3.0/4.3.1.

<http://www.unidata.ucar.edu/projects/coohl/mhonarc/MailArchives/wxp/msg00248.html>
suggests that you could append /usr/ucblib to the end of your
LD_LIBRARY_PATH, but that message is from 1997, so I don't know if that
still applies to your version of Solaris.

Perhaps somebody else in the group/mailing list has a better answer.

Regards...
                Michael

P.S.: You posted and mailed your article; of course the mail copy
arrived before the news article, so now I had to go back to my mail
program and post the mail here, too. Please don't post and mail without
saying so.

--- End Message ---
--- Begin Message --- Hello
I need to compile mysql extension for PHP 4.1.2 as a dynamic loaded library (.so file) on Linux. For PHP versions 4.2.x and above is enough to use: ./configure --with-mysql=shared.
But 4.1.2 does not create .so file. Only .a and .la files are created.


Can somebody help me?

Vit Jonas


--- End Message ---

Reply via email to