Project Home
Project Home
Source Code
Source Code
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - PHP 5.4 and 5.5 with pkgsrc: (8 Items)
   
PHP 5.4 and 5.5 with pkgsrc  
It seems like it's been about 5 years since I've tried to wrestle with pkgsrc.  Is there any community enthusiasm 
anymore?  

Well anyway, I'm trying to get the old QAMP recompiled so I can upgrade my server to QNX 6.5.0.  
There are only 2 PHP's in the HEAD_650 tree and both fail to bmake with the same error.

After building a few dependent modules including glib, PHP stops in its tracks with a message

configure: error: Glib must be build(sic) with -march=i486 or later.

This was a little confusing at first until I figured out that -march= is a gcc parameter and that -march=i386 is 
probably the default.

So I went into the work/glib* directory and updated configure so that -march=i486 would be used for every gcc compile.  
 I observed this happening as the package was built and installed.

But then when did a re-bmake in PHP54 I got the same !@#$% message.   I also tried PHP 5.3 and the same problem occurred
.   It's hard to imagine that no-one else is interested in PHP running QNX 6.5.0.   

I'll report back if I find anything else.
Re: PHP 5.4 and 5.5 with pkgsrc  
So it's a little more complicated.  The message about glib not being compiled with -march=i486 was coming from a 
dependent called pkg-config.   I looked into it, and it is clear that the error message is a red herring.  It doesn't 
have to have anything to do with the -march= stuff.   I couldn't figure out what to do about it, so instead I downloaded
 pkg-config from the NetBSD pre-compiled site.   This seems to be working so far.
Re: PHP 5.4 and 5.5 with pkgsrc  
There's some traffic in this project but not as much as when the 'open'
kick was on.

I'll try 5.5 and see what I see.

> It seems like it's been about 5 years since I've tried to wrestle with pkgsrc.
>   Is there any community enthusiasm anymore?  
> 
> Well anyway, I'm trying to get the old QAMP recompiled so I can upgrade my 
> server to QNX 6.5.0.  
> There are only 2 PHP's in the HEAD_650 tree and both fail to bmake with the 
> same error.
> 
> After building a few dependent modules including glib, PHP stops in its tracks
>  with a message
> 
> configure: error: Glib must be build(sic) with -march=i486 or later.
> 
> This was a little confusing at first until I figured out that -march= is a gcc
>  parameter and that -march=i386 is probably the default.
> 
> So I went into the work/glib* directory and updated configure so that -march=
> i486 would be used for every gcc compile.   I observed this happening as the 
> package was built and installed.
> 
> But then when did a re-bmake in PHP54 I got the same !@#$% message.   I also 
> tried PHP 5.3 and the same problem occurred.   It's hard to imagine that no-
> one else is interested in PHP running QNX 6.5.0.   
> 
> I'll report back if I find anything else.


Re: PHP 5.4 and 5.5 with pkgsrc  
pkg-config and php54 now build for me.  There's some errors
in 'bmake test' if you want to dig in (community enthusiasm and all :)).

> 
> There's some traffic in this project but not as much as when the 'open'
> kick was on.
> 
> I'll try 5.5 and see what I see.
> 
> > It seems like it's been about 5 years since I've tried to wrestle with 
> pkgsrc.
> >   Is there any community enthusiasm anymore?  
> > 
> > Well anyway, I'm trying to get the old QAMP recompiled so I can upgrade my 
> > server to QNX 6.5.0.  
> > There are only 2 PHP's in the HEAD_650 tree and both fail to bmake with the 
> 
> > same error.
> > 
> > After building a few dependent modules including glib, PHP stops in its 
> tracks
> >  with a message
> > 
> > configure: error: Glib must be build(sic) with -march=i486 or later.
> > 
> > This was a little confusing at first until I figured out that -march= is a 
> gcc
> >  parameter and that -march=i386 is probably the default.
> > 
> > So I went into the work/glib* directory and updated configure so that -march
> =
> > i486 would be used for every gcc compile.   I observed this happening as the
>  
> > package was built and installed.
> > 
> > But then when did a re-bmake in PHP54 I got the same !@#$% message.   I also
>  
> > tried PHP 5.3 and the same problem occurred.   It's hard to imagine that no-
> 
> > one else is interested in PHP running QNX 6.5.0.   
> > 
> > I'll report back if I find anything else.
> 
> 


Re: PHP 5.4 and 5.5 with pkgsrc  
Did you make any changes to Makefile.php?   It compiled the first time without changes.   As soon as I tried -with-apxs=
...   everything went haywire.   At the very least I need this to work so I can use it with Apache2.
Re: PHP 5.4 and 5.5 with pkgsrc  
Well I've made some progress in understanding the problem.   Here's what I did.
I started over fresh with PHP 5.3.
I did a bmake and verified that it compiled.
I added the directive --with-axps2=/usr/pkg/bin/apxs

I ran bmake and got a number of errors related to .h files not being found.
I copied and pasted the attempted command into a file.
I ran the file as a script and it compiled????????

This is a very clear indicator of what the problem is, the QNX overrides.   They simply do not work.
Previously I saw a number of very strange results, eg. libraries not being found, although they were were they were 
supposed to be and being pointed to.

I do not have the knowledge to fix this, and I suspect I will have to throw out the baby with with the bath water.
Re: PHP 5.4 and 5.5 with pkgsrc  
Last one I tried was lang/php54. Does that work?


Sent from my BlackBerry 10 smartphone on the Rogers network.
From: Mitchell Schoenbrun
Sent: Friday, April 12, 2013 6:25 PM
To: pkginfo-pkgsrc
Reply To: pkginfo-pkgsrc@community.qnx.com
Subject: Re: PHP 5.4 and 5.5 with pkgsrc


Well I've made some progress in understanding the problem. Here's what I did.
I started over fresh with PHP 5.3.
I did a bmake and verified that it compiled.
I added the directive --with-axps2=/usr/pkg/bin/apxs

I ran bmake and got a number of errors related to .h files not being found.
I copied and pasted the attempted command into a file.
I ran the file as a script and it compiled????????

This is a very clear indicator of what the problem is, the QNX overrides. They simply do not work.
Previously I saw a number of very strange results, eg. libraries not being found, although they were were they were 
supposed to be and being pointed to.

I do not have the knowledge to fix this, and I suspect I will have to throw out the baby with with the bath water.



_______________________________________________

PkgInfo
http://community.qnx.com/sf/go/post100546
To cancel your subscription to this discussion, please e-mail pkginfo-pkgsrc-unsubscribe@community.qnx.com
Attachment: HTML sf-attachment-mime11521 3.31 KB
Re: PHP 5.4 and 5.5 with pkgsrc  
You want to build www/ap-php.  You shouldn't need to change
any configuration.

The default php version is 5.3 which should work.  You can change
this by setting PHP_VERSION_DEFAULT=54 in your $PREFIX/etc/mk.conf.
I didn't actually build with 54 default but it should work.

svn up first as there were a few small fixes to www/apache22

On Fri, Apr 12, 2013 at 06:25:47PM -0400, Mitchell Schoenbrun wrote:
> Well I've made some progress in understanding the problem.   Here's what I did.
> I started over fresh with PHP 5.3.
> I did a bmake and verified that it compiled.
> I added the directive --with-axps2=/usr/pkg/bin/apxs
> 
> I ran bmake and got a number of errors related to .h files not being found.
> I copied and pasted the attempted command into a file.
> I ran the file as a script and it compiled????????
> 
> This is a very clear indicator of what the problem is, the QNX overrides.   They simply do not work.
> Previously I saw a number of very strange results, eg. libraries not being found, although they were were they were 
supposed to be and being pointed to.
> 
> I do not have the knowledge to fix this, and I suspect I will have to throw out the baby with with the bath water.
> 
> 
> 
> _______________________________________________
> 
> PkgInfo
> http://community.qnx.com/sf/go/post100546
> To cancel your subscription to this discussion, please e-mail pkginfo-pkgsrc-unsubscribe@community.qnx.com