Operating System - HP-UX
1752725 Members
5555 Online
108789 Solutions
New Discussion юеВ

Re: Compile PHP-5.3.2 on HP-UX 11.23

 
Dennis Handly
Acclaimed Contributor

Re: Compile PHP-5.3.2 on HP-UX 11.23

>Could these unsatisfied symbols have anything to do with the error that appears just above them?
>(Bundled) cc: warning 922: "-b" is unsupported in the bundled compiler, ignored.

Most likely. You need to purchase the ANSI C compiler or use gcc.
fotoshack
Occasional Advisor

Re: Compile PHP-5.3.2 on HP-UX 11.23

I was afraid you were going to say that.

I installed gcc, but when I attempt to use it, I get this:

checking for gcc... gcc
checking whether the C compiler (gcc +DD64 -I/usr/local/include -L/usr/local/lib/hpux64) works... no
configure: error: installation or configuration problem: C compiler cannot create executables.

Am I not invoking it correctly? I simply changed 'env CC=cc' to 'env CC=gcc'
James R. Ferguson
Acclaimed Contributor

Re: Compile PHP-5.3.2 on HP-UX 11.23

Hi (again):

> I installed gcc, but when I attempt to use it, I get this...

Did you install all of the run-time dependencies for 'gcc'?

Regards!

...JRF...
fotoshack
Occasional Advisor

Re: Compile PHP-5.3.2 on HP-UX 11.23

Yes. All the dependencies are there.

gcc 4.2.3 gcc
gettext 0.17 gettext
libiconv 1.12 libiconv
libxml2 2.6.31 libxml2
zlib 1.2.3 zlib
Shinji Teragaito_1
Respected Contributor

Re: Compile PHP-5.3.2 on HP-UX 11.23

Hi :-)

Can you try out CC=gcc CFLAGS="-mlp64 -I/usr/local/include" ?
You don't need to change other parameters.
Steven Schweda
Honored Contributor

Re: Compile PHP-5.3.2 on HP-UX 11.23

> I installed gcc, [...]

How, exactly, did you install what, exactly?

> [...] but when I attempt to use it, [...]

When you "attempt to use it" how, exactly?

> I get this:
> [...]

Did you try your new GCC on anything (simple)
before throwing this big thing at it?

> configure: error: installation or
> configuration problem: C compiler cannot
> create executables.

I'd start by trying to compile any simple
program using gcc. (You could try looking
through the log files produced by whatever
you actually did, but that's probably harder
than doing a simple "gcc hello-world.c"
test.)
Vajith V
HPE Pro
Moved:

Re: Compile PHP-5.3.2 on HP-UX 11.23