Porting of PHP

I’d like to get PHP to run on my RTP machine but I am a novice when it comes
to building source code into a runnable binary.

Can someone more experienced give me a little guidance as to what the steps
are (and software/compiler requirements are) to build and install software
such as PHP from downloading the source code?

thanks heaps

andrew

!
<(©¿©)>
~-~

These are some real quick guidelines. Unix porting is an art. :slight_smile:

For many apps, you can grab Autoconf, Automake, BinUtils, and Perl. These
packages are used to generate correct correct makefiles. Try ‘autoconf’,
‘automake’, ‘./configure’ and read the README’s INSTALL’s and HOWTO’s that
come with each software package. Most maintainers include porting notes.

I’m also assuming that you’ve used the package manager to install the GNU
Compiler Collection set. This will get you gcc and many additional tools.
Bear in mind that if you’re porting a C++ application, you’ll need to get
the C++ library packages as well.

-William Bull
bbull @ qnx.com

“Andrew” <NOastuart@mira.netSPAM> wrote in message
news:8r79ua$agf$1@inn.qnx.com

I’d like to get PHP to run on my RTP machine but I am a novice when it
comes
to building source code into a runnable binary.

Can someone more experienced give me a little guidance as to what the
steps
are (and software/compiler requirements are) to build and install software
such as PHP from downloading the source code?

thanks heaps

andrew

!
(©¿©)
~-~

William Bull <bbull@qnx.com> wrote:

For many apps, you can grab Autoconf, Automake, BinUtils, and Perl. These
packages are used to generate correct correct makefiles. Try ‘autoconf’,
‘automake’, ‘./configure’ and read the README’s INSTALL’s and HOWTO’s that
come with each software package. Most maintainers include porting notes.

And make sure you get the lastest config.sub and config.guess if you
do use ./configure, ftp://ftp.gnu.org/gnu/config. Most apps are not
using the most current one and will not recognize the system.

chris

\

cdm@qnx.com > “The faster I go, the behinder I get.”

Chris McKillop – Lewis Carroll –
Software Engineer, QSSL
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

thanks guys for the help.

cheers

andrew

“Chris McKillop” <cdm@qnx.com> wrote in message
news:8rabgb$p8g$2@nntp.qnx.com

William Bull <> bbull@qnx.com> > wrote:

For many apps, you can grab Autoconf, Automake, BinUtils, and Perl.
These
packages are used to generate correct correct makefiles. Try ‘autoconf’,
‘automake’, ‘./configure’ and read the README’s INSTALL’s and HOWTO’s
that
come with each software package. Most maintainers include porting notes.


And make sure you get the lastest config.sub and config.guess if you
do use ./configure, > ftp://ftp.gnu.org/gnu/config> . Most apps are not
using the most current one and will not recognize the system.

chris

\

cdm@qnx.com > “The faster I go, the behinder I get.”
Chris McKillop – Lewis Carroll –
Software Engineer, QSSL

Andrew,
PHP4 and PHP3 both run just fine on QNX. I’m also running both with
Sybase SQL Anywhere and a number of other modules linked in. At the
moment I’m still running them as CGI’s since I didn’t want to break
Apache the day I started playing and haven’t gotten back around to
it.

That said there are some issues with both (4.0.2, 3.0.16) that fall
in the catagory of “unix porting is an art” because they deal with
some wrong guesses that autoconf makes and some HAS_* defines
that should be used that aren’t.

This is from my 3.0.16 notes but the same applies to 4.0.2 on
what you need to change after autoconf - config.h on 3.0.16
and php_config.h on 4.0.2. Search for the define names.

#define PHP3_MD5_CRYPT 1 /* No MD5 but ONE MUST BE SET */
#define HAVE_GETRUSAGE 0
#define HAVE_STATFS 0
#undef HAVE_SYS_RESOURCE H

After these fixes I believe it compiles clean… A thanks in here to
Igor whose notes on 3.0.16 got me going in the right direction on
4.0.2.

Jay Hogg
Sr Engineer
T-Netix, Inc


Andrew wrote in message <8r79ua$agf$1@inn.qnx.com>…

I’d like to get PHP to run on my RTP machine but I am a novice when it
comes
to building source code into a runnable binary.

Can someone more experienced give me a little guidance as to what the steps
are (and software/compiler requirements are) to build and install software
such as PHP from downloading the source code?

thanks heaps

andrew

!
(©¿©)
~-~