php on QNX

Hello,

I download PHP 4.3.4 (tar.gz) from PHP.net for compilation and
installation on QNX 6.2.1. When I run “make” I get errors in the PHP
source files. For example, I ran “./configure --prefix=/usr/local/php4
–with-empress=/home/empress/v8.62”, then “make”.

The error produced was …

-±±±±+
/usr/local/php-4.3.4/ext/mysql/php_mysql.c: In function OnMySQLPort': /usr/local/php-4.3.4/ext/mysql/php_mysql.c:324: ushort’ undeclared
(first use in this function)
/usr/local/php-4.3.4/ext/mysql/php_mysql.c:324: (Each undeclared
identifier is reported only once
/usr/local/php-4.3.4/ext/mysql/php_mysql.c:324: for each function it
appears in.)
/usr/local/php-4.3.4/ext/mysql/php_mysql.c:324: parse error before
`serv_ptr’
make: *** [ext/mysql/php_mysql.lo] Error 1
-±±±±±+

I have not been able to compile PHP. I have found an Apache/PHP build
which installed fine, but won’t meet my requirements. The reason being
that I have to compile PHP with a number of configure options. The build
doesn’t build with all the modules I need.

Has anybody been able to compile PHP on this operating system? I would
appreciate any suggestions or comments. Thank you.

Regards,
Virgilio Carneiro

“Virgilio” <v@net.com> wrote in message news:3FCCAB1C.8060400@net.com

Hello,

I download PHP 4.3.4 (tar.gz) from PHP.net for compilation and
installation on QNX 6.2.1. When I run “make” I get errors in the PHP
source files. For example, I ran “./configure --prefix=/usr/local/php4
–with-empress=/home/empress/v8.62”, then “make”.

The error produced was …

-±±±±+
/usr/local/php-4.3.4/ext/mysql/php_mysql.c: In function OnMySQLPort': /usr/local/php-4.3.4/ext/mysql/php_mysql.c:324: ushort’ undeclared
(first use in this function)
/usr/local/php-4.3.4/ext/mysql/php_mysql.c:324: (Each undeclared
identifier is reported only once
/usr/local/php-4.3.4/ext/mysql/php_mysql.c:324: for each function it
appears in.)
/usr/local/php-4.3.4/ext/mysql/php_mysql.c:324: parse error before
`serv_ptr’
make: *** [ext/mysql/php_mysql.lo] Error 1
-±±±±±+

That means type ‘ushort’ is unknown. You can #define it or typedef it in
some global header. But since you apparently want to use PHP with Empress,
why do you even need to compile php_mysql.c?

I have not been able to compile PHP. I have found an Apache/PHP build
which installed fine, but won’t meet my requirements. The reason being
that I have to compile PHP with a number of configure options. The build
doesn’t build with all the modules I need.

The build has dynamic loading enabled (and working) in both Apache and PHP.
Why don’t you just load your modules?

Has anybody been able to compile PHP on this operating system? I would
appreciate any suggestions or comments. Thank you.

If you wan to go about porting stuff yourself, you better not be afraid of
fixing trivial compile errors like above. If that’s too scary, you’re better
off using prebuilt stuff. Or hire a consultant :wink:

– igor