Operating System - HP-UX
1834094 Members
2302 Online
110063 Solutions
New Discussion

probLems when configuring apache on HP-UX11.11

 
yue
Occasional Advisor

probLems when configuring apache on HP-UX11.11

Hi
I'm very glad to find your mail on php.net, where you post a thread on
configuring php on hp-ux.
I meet a headache while confirguring Apache, the error is as follows:

# ./configure --prefix=/usr/apache
Configuring for Apache, Version 1.3.27
+ using installation path layout: Apache (config.layout)
Creating Makefile
Creating Configuration.apaci in src
Creating Makefile in src
+ configured for HP-UX 11 platform
+ setting C compiler to cc
+ setting C pre-processor to cc -E
+ checking for system header files
+ adding selected modules
+ using builtin Expat
+ checking sizeof various data types
+ doing sanity check on compiler and options
** A test compilation with your Makefile configuration
** failed. The below error output from the compilation
** test will give you an idea what is failing. Note that
** Apache requires an ANSI C Compiler, such as gcc.

======== Error Output for sanity check ========
cd ..; cc -DHPUX11 -Aa -Ae -D_HPUX_SOURCE -DUSE_HSREGEX -DUSE_EXPAT -I.
/lib/expat-lite -DNO_DL_NEEDED `./apaci` -o helpers/dummy helpers/dummy.c
-lm -lpthread
(Bundled) cc: warning 480: The -A option is available only with the C/ANSI
C pro
duct; ignored.
(Bundled) cc: warning 480: The -A option is available only with the C/ANSI
C pro
duct; ignored.
(Bundled) cc: "helpers/dummy.c", line 3: warning 5: "const" will become a
keywor
d.
(Bundled) cc: "helpers/dummy.c", line 3: error 1000: Unexpected symbol:
"char".
(Bundled) cc: "helpers/dummy.c", line 4: warning 5: "const" will become a
keywor
d.
(Bundled) cc: error 2017: Cannot recover from earlier errors, terminating.
*** Error exit code 1

Stop.
============= End of Error Report =============

Aborting!

My system environments are HP-UX11.11, apache 1.3.12 for unix, php4.1.2,
mysql3.2.53.depot

i follow the manual php.net provides:
http://www.php.net/manual/en/install.hpux.php ,i have installed the patches
as the manual said,but i didn't know how to use the patches in the right
path

could you give me a complete solution?

I have installed gcc 3.1 for hp_ux11.0, is it helpful to these errors? but
,after installation ,i don't know how to use gcc,is it necessary to edit
some apache files?

If this disturbs you, i have to express my regret.
Thanks.
3 REPLIES 3
U.SivaKumar_2
Honored Contributor

Re: probLems when configuring apache on HP-UX11.11

Hi,

Edit Makefile and configure files under apache directory and see the path of the gcc command. If it meets your setup leave it as it is and run configure command again.

As you have installed gcc apache installation should be sucessful now.

regards,
U.SivaKumar
Innovations are made when conventions are broken
U.SivaKumar_2
Honored Contributor

Re: probLems when configuring apache on HP-UX11.11

Hi,

Simply download the hp-ux apache software depot and install using swinstall command.

http://www.software.hp.com/ISS_products_list.html

regards,
U.SivaKumar

Innovations are made when conventions are broken
benoit Bruckert
Honored Contributor

Re: probLems when configuring apache on HP-UX11.11

Hi,
From the error report, I can say that you don't use gcc to compile but the K&R HP c compiler (bundle one), that 's why it doesn't work !
you have installed gcc 3.1? then it should be installed in /opt/gcc or /usr/local/bin
To make you compilation OK,
You just have to change PATH :
and add /opt/gcc/bin or /usr/local/bin !!
hth
Benoit
-- Une application mal pans??e aboutit ?? une usine ?? gaze (GHG) --
Une application mal pansée aboutit à une usine à gaze (GHG)