Operating System - HP-UX
1752795 Members
6230 Online
108789 Solutions
New Discussion юеВ

gcc compile error. Error Compiling Apache web server

 
SOLVED
Go to solution
Bob Fohl
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.

7 REPLIES 7
Philip Chan_1
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?
Dan Hetzel
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
Bob Fohl
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.
Darren Miller
Advisor

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
Philip Chan_1
Respected Contributor
Solution

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
Bob Fohl
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!!
Rick Garland
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.