Operating System - HP-UX
1752806 Members
6013 Online
108789 Solutions
New Discussion

Errors compiling apache with gcc on HP-UX 10.20

 
Denime
Occasional Visitor

Errors compiling apache with gcc on HP-UX 10.20

Hello,

I'm trying to use the gcc compiler downloaded from the website (http://ftp.nluug.nl/os/HPUX/itrc/gcc-4.2.2-10.20.sd.bz) on a HP-UX10.20 machine.
 
Every source code I try to compile I get errors like:
Apache:
Davinci:root> ./Configure
Using config file: Configuration
Creating Makefile
 + configured for HP-UX 10 platform
 + setting C compiler to /usr/local/pa11_32/bin/gcc
 + setting C pre-processor to NOT-AVAILABLE
 + checking for system header files
 + adding selected modules
 + checking sizeof various data types
 + doing sanity check on compiler and options
** A test compilation with your Makefile configuration
** failed. This is most likely because your C compiler
** is not ANSI. Apache requires an ANSI C Compiler, such
** as gcc. The above error message from your compiler
** will also provide a clue.
 Aborting!
 
nano
Davinci:root> ./configure
loading cache ./config.cache
checking for a BSD compatible install... ./install-sh -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... yes
checking for working aclocal... missing
checking for working autoconf... missing
checking for working automake... missing
checking for working autoheader... missing
checking for working makeinfo... missing
checking for gcc... /usr/local/pa11_32/bin/gcc
checking whether the C compiler (/usr/local/pa11_32/bin/gcc  ) works... no
configure: error: installation or configuration problem: C compiler cannot create executables.
 
 
The output of my export command:
Davinci:root> export
declare -x CC="/usr/local/pa11_32/bin/gcc"
declare -x EDITOR="vi"
declare -x ERASE="^H"
declare -x HOME="/"
declare -x LOGNAME="root"
declare -x MAIL="/var/mail/root"
declare -x MANPATH="/usr/share/man/%L:/usr/share/man:/usr/contrib/man/%L:/usr/contrib/man:/usr/local/man/%L:/usr/local/man"
declare -x OLDPWD="/tmp/apache_1.3.9/src"
declare -x PATH="/usr/sbin:/usr/bin:/usr/ccs/bin:/usr/contrib/bin:/usr/local/bin:/usr/local/pa11_32/bin:/sbin:/home/root"
declare -x PWD="/tmp/apache_1.3.9"
declare -x SHELL="/usr/local/bin/bash"
declare -x SHLVL="1"
declare -x SSH_CLIENT="192.168.20.134 60975 22"
declare -x SSH_CONNECTION="192.168.20.134 60975 192.168.20.100 22"
declare -x SSH_TTY="/dev/pts/0"
declare -x TERM="xterm"
declare -x TZ="PWT0PST"
declare -x USER="root"
 
GCC
Davinci:root> gcc -v
Using built-in specs.
Target: hppa1.1-hp-hpux10.20
Configured with: ../src/configure --enable-languages=c,c++ --prefix=/usr/local/pa11_32 --with-local-prefix=/usr/local/pa11_32 --with-gnu-as --with-as=/usr/local/pa11_32/bin/as --with-ld=/usr/ccs/bin/ld --disable-shared --disable-nls --host=hppa1.1-hp-hpux10.20
Thread model: single
gcc version 4.2.2
 
Do you have any clue why it is not working?
 
Thank you,
Flavio Costa
1 REPLY 1
Steven Schweda
Honored Contributor

Re: Errors compiling apache with gcc on HP-UX 10.20

> Do you have any clue why it is not working?

   I have the same clues that you have:

> ** A test compilation with your Makefile configuration
> ** failed. [...]

> checking whether the C compiler (/usr/local/pa11_32/bin/gcc ) works... no
> configure: error: installation or configuration problem: C compiler cannot create executables.

   Other than you, no one seems to believe that your C compiler works.

   Rather than diving into some major thing like an Apache build, I'd
try compiling something simple, like, say, a "Hello world" program.  If
that fails (with some useful error messages), then I'd try to determine
why.  Otherwise, I'd look into what these "make" files are actually
doing.  A description like "A test compilation" or "checking whether the
C compiler [...] works..." is nice if the compiler works, but it doesn't
tell you very much if it fails.