Re: cc: acomp failed for /usr/local/build/php-5.4.11_SunOS5.10_sparcv9.001/ext/curl/interface.c
| From: | Dennis Clarke | Date: | Fri, 25 Jan 2013 05:01:37 +0000 |
| Subject: | Re: cc: acomp failed for /usr/local/build/php-5.4.11_SunOS5.10_sparcv9.001/ext/curl/interface.c | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-65155@lists.php.net to get a copy of this message | ||
> On 01/24/2013 10:47 AM, Dennis Clarke wrote:
> > So here I am once again trying to build PHP 5.4.11 on a Solaris 10 server
> > with the following configure options :
>
> > So I think that I should be okay. Do I need to upgrade to curl
> > 7.28.2 and then try building PHP 5.4.11 or am I sort of stuck here
> > at 5.4.9 ?
>
> The ext/curl/interface.c diffs between 5.4.9 and 5.4.11 don't seem
> compiler or libcurl unfriendly. Since the compiler messages don't
> give a clear compile failure, I can't guess what went wrong.
>
> I compiled 5.4.11 with gcc and libcurl 7.21.2 on Solaris 11.1 without
> an issue.
I was going to try to stick with the Oracle Studio compilers and that did bear
fruit quite well, turns out it was a compiler switch throwing me off. I had -Xc
in there as opposed to -Xa. If I was going to be strictly in my own codebase
which is all POSIX strictly conformat and has "#define _XOPEN_SOURCE 600"
as the first line .. then fine. That usually throws a fit when I wander into
opensource land. So once I made the change to -Xa it compiled fine. Well,
fine enough to work and link in with MySQL 5.5.28 and libcurl 7.28.1. I have
it all up and running on Solaris 10 now and the cure phpinfo() page shows
me that all it reasonably well. I even built the latest libidn and that was a
no brainer.
>
> Maybe more regular Solaris users like Johannes or David (aka "dsp". Ex
> Sun, and who wrote
>
> http://blog.experimentalworks.net/2012/05/canonical-way-to-build-php-5-4-on-solaris-11/)
> can guess at the issue.)
>
> If you drop the 5.4.9 ext/curl code into your 5.4.11 directory tree
> what happens? Are you hitting something unrelated in the build
> process?
I was just about to do exactly that ( great minds thing alike ) however a little
voicce in my head said "whoa there .. look for the obvious first".
Worked out well.
Thank you for getting back to me.
Dennis