Languages and Scripting
Showing results for 
Search instead for 
Do you mean 

gcc compile error. Error Compiling Apache web server

SOLVED
Go to Solution
Highlighted
Contributor

gcc compile error. Error Compiling Apache web server

This is the error I'm getting.
as: "/var/tmp/cc4dJHpa.s", line 14: error 1052: Directive name not recognized -
NSUBSPA
as: "/var/tmp/cc4dJHpa.s", line 37: error 1052: Directive name not recognized -
NSUBSPA

Any Ideas what I'm doing wrong. I get this
even when I'm compiling a simple c program.

1 ACCEPTED SOLUTION
Respected Contributor Respected Contributor

Re: gcc compile error. Error Compiling Apache web server

Hi Bob,

You can download binutil (and gcc) software bundles in depot form from the following link,

http://hpux.cs.utah.edu/hppd/hpux/Gnu/alpha.html

Before you compile apache, make sure

/opt/binutils/bin
/opt/gcc/bin

are on your search path.

Also, set environment variable CC=GCC.

Try again and let us know how things go.

Rgds,
Philip
7 REPLIES
Respected Contributor Respected Contributor

Re: gcc compile error. Error Compiling Apache web server

Are you sure you were using gcc? that is, when you run "./configure" and "make", did you see the gcc compiler was in use?
Honored Contributor Honored Contributor

Re: gcc compile error. Error Compiling Apache web server

Hi Bob,

Make sure you have the GNU binutils installed and in your PATH, as you seem to use HP 'as' instead of GNU 'as'.

Best regards,

Dan
Everybody knows at least one thing worth sharing -- mailto:dan.hetzel@wildcroft.com
Contributor

Re: gcc compile error. Error Compiling Apache web server

According to gcc docs, I needed to export the following:
XFILESEARCH=/usr/lib/X11-app-defaults/%N
INFOPATH=$INFOPATH:/opt/gcc/info

Is this where the GNU(????) info is?

You'll have to help me here, I'm not sure where to look for GNU binutils or what this means.

Re: gcc compile error. Error Compiling Apache web server

Bob,

Save yourself some effort and download the pre-compiled Apache binaries from http://software.hp.com! Its free, and it can be installed with swinstall. Just go to the website, click [Search], type in "Apache", and follow the download and install directions.

Darren Miller
Respected Contributor Respected Contributor

Re: gcc compile error. Error Compiling Apache web server

Hi Bob,

You can download binutil (and gcc) software bundles in depot form from the following link,

http://hpux.cs.utah.edu/hppd/hpux/Gnu/alpha.html

Before you compile apache, make sure

/opt/binutils/bin
/opt/gcc/bin

are on your search path.

Also, set environment variable CC=GCC.

Try again and let us know how things go.

Rgds,
Philip
Contributor

Re: gcc compile error. Error Compiling Apache web server

YAHOO!! The binutils was the trick.
Thanks all for the help.
Now I have to work!!
Honored Contributor Honored Contributor

Re: gcc compile error. Error Compiling Apache web server

All of the stuff mentioned here can be obtained from the porting center (http://gatekeep.cs.utah.edu). All are in depot formats or source code as well. You can choose.

As mentioned previously, the apache can be obtained from this site and in depot format - all that is required is swinstall.