Project Home
Project Home
Source Code
Source Code
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - A new thought on php5 problems: (6 Items)
   
A new thought on php5 problems  
I have a new idea on what the php5 build problems are, but first an example of something I've done to track down a 
problem.

I run bmake, and the configure script exits with an error message indicating a problem, see config.log.

I look in config.log and see the error message from cc, which is that -lgd is not found.  config.log also records the 
conftest.c program that was being compiled, and the cc command that was executed.

I strip out the file and command, recreating conftest.c, and a shell script with the complete command.

I run the shell script.   It executes, and the compile works perfectly.

OK, what does this sound like?
I think that there's something wrong with the shell, and that it might be truncating the end of the command off, when 
run against the entire ./configure script, but not with my small script.

I recall that there was a similar problem having to do with enviorment variables?

Does this sound possible?
 
Re: A new thought on php5 problems  
What's the status of PHP5 for Neutrino? Does it work now? I've a customer who's highly interested in it.
Re: A new thought on php5 problems  
Malte,

  Quite a while ago I did a port of php5.   It was a little tedious,
finding and compiling all the needed packages.   The biggest problem
was getting mod_php5 linked.

   Then the package src project started.   At the beginning I had
time to work on it, and my goal was to get Apache2, and PHP5 both
functional separately and together.   I ran into a number of problems
that seemed related to the pkgsrc base, not the Apache2 or PHP5
source.  I ran out of time, and I never saw the problems resolved.   I
was told that they were going to switch over to using gcc instead of
cc which might help.  I don't think that has happened, and the last
time I downloaded pkgsrc fresh, I could not get things going at all.

   I personally think it is important to get at least those two
projects functional.   It is very hard to  use Apache and PHP5 if you
can't reconfigure them yourself.   Over the past couple of years, the
features I've needed in PHP5 have increased, and with my old source it
was only a little harder than re-running configure.

   If it would be useful, I have a compiled version of Apache2 and
PHP5 running on my server.   The downside is that there is no source
to go back to if there is a problem.   I let go of most of the 2ndary
packages when I started working with pkgsrc.   Also, if you need some
feature that I don't have already compiled in, it is useless.

   I hope to get back to this in June when school ends (I'm teaching
right now) and set it right.
It's quite amazing that the whole structure works at all, given all
the layers and archane software technologies that have to function
together.

Let me know if what I have running will help and I'll send it over.
I'm pretty sure my server is running 6.3.2.

Re: A new thought on php5 problems  
On Thu, Feb 07, 2008 at 10:58:12AM -0500, Malte Mundt wrote:
> What's the status of PHP5 for Neutrino? Does it work now? I've a customer who's highly interested in it.

It built for me once upon a time.  I'll try again soon
and let you know how it goes.

-seanb
Re: A new thought on php5 problems  
On Thu, Feb 07, 2008 at 10:58:12AM -0500, Malte Mundt wrote:
> What's the status of PHP5 for Neutrino? Does it work now? I've a customer who's highly interested in it.

OK.  I updated to php 5.2.5 and fixed an issue that
prevented all the test from running.  There's still a few
failures (98.7% pass rate) but it's mostly working.  My
environment is currently a hybrid of 6.3.2 / 6.4.0 and gcc
4.2.1 but it's definitely doable.

apache 2.2.6 is also building for me.

-seanb
Re: A new thought on php5 problems  
Thank you Mitchell and Sean, this all sounds very promising. My customer has a big project in the works now, and when 
it's finished, he wants to start with his work on QNX. He has PHP5-based compile scripts. Interesting, I think. I'm glad
 to hear that you got it working and I will point him to this place once he starts.

Thank you very much, again.

Cheers,


Malte