Re: gcc compile error. Error Compiling Apache web server (275 Views)
Reply
Contributor
Bob Fohl
Posts: 14
Registered: ‎11-04-1996
Message 1 of 8 (275 Views)
Accepted Solution

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.

Respected Contributor
Philip Chan_1
Posts: 360
Registered: ‎07-12-2000
Message 2 of 8 (275 Views)

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
Dan Hetzel
Posts: 926
Registered: ‎07-25-2000
Message 3 of 8 (275 Views)

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
Bob Fohl
Posts: 14
Registered: ‎11-04-1996
Message 4 of 8 (275 Views)

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.
Advisor
Darren Miller
Posts: 14
Registered: ‎04-17-2000
Message 5 of 8 (275 Views)

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
Philip Chan_1
Posts: 360
Registered: ‎07-12-2000
Message 6 of 8 (275 Views)

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
Bob Fohl
Posts: 14
Registered: ‎11-04-1996
Message 7 of 8 (275 Views)

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
Rick Garland
Posts: 4,470
Registered: ‎06-25-1997
Message 8 of 8 (275 Views)

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.
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.