Operating System - HP-UX
1833445 Members
3188 Online
110052 Solutions
New Discussion

gcc compiler error on hp-ux 10.20

 
SOLVED
Go to solution
Mahima Kaushik_2
Frequent Advisor

gcc compiler error on hp-ux 10.20

I am installing apache web server 1.3.20 on HP 9000/735/99 with HP-UX 10.20(1996 June). I already have gcc (2.95.3) installed on my machine. Up to the step for ./configure I am ok but as soon as I enter ???make??? it returns compiling error something like this:

---> src
---> src/regex
gcc -I. -I../OS/unix -I../include -DHPUX10 -DUSE_HSREGEX
-DUSE_EXPAT......................
In file included from /usr/local/lib/gcc-lib/hppa1.0-hp-hpux9.04/2.7.2/include/sys/parm.h:29 ...


It is looking at the gcc version 2.7.2 not the recent one that I have installed. Also when I enter gcc ???v it???s pointing to the 2.7.2 there too. I have uninstalled gcc 2.95.3 several times and reinstalled it back again to see any difference, no luck.
Does any one know any thing about it? I have been stuck to this problem since last 2 days. Any help is appreciated.
Thanks!
Mahima
Aim high!
5 REPLIES 5
harry d brown jr
Honored Contributor

Re: gcc compiler error on hp-ux 10.20

Mahima,

type in "which gcc", then do an ls -l on that to see if it is linked somewhere else. It's probably just a PATH thing.

Locate all of your "gcc's":

find / -type f -name gcc -exec ls -l {} \;

live free or die
harry
Live Free or Die
Mahima Kaushik_2
Frequent Advisor

Re: gcc compiler error on hp-ux 10.20

Hi Harry,
Which gcc returns:
'/opt/softbench/bin/gcc'.

find in other hand returns several dir. like:
/opt/langtools/dde/softbench/newconfig/opt/softbench/config
/compiler_info/gcc

/opt/softbench/bin/gcc

/opt/softbench/config/compiler_info/gcc

/opt/gcc/bin/gcc
etc.
Thnaks!
Aim high!
harry d brown jr
Honored Contributor

Re: gcc compiler error on hp-ux 10.20

Mahima,

do this, to find which is what version:

/opt/langtools/dde/softbench/newconfig/opt/softbench/config/compiler_info/gcc -v

/opt/softbench/bin/gcc -v

/opt/softbench/config/compiler_info/gcc -v

/opt/gcc/bin/gcc -v


when you use gcc, the default, returned by which, is /opt/gcc/bin/gcc.


live free or die
harry
Live Free or Die
Mahima Kaushik_2
Frequent Advisor

Re: gcc compiler error on hp-ux 10.20

Thanks Harry,
You are a big help. I now know that I want /opt/gcc/bin/gcc to be added to my PATH. My other question is that can I simply add this new path or do I have to remove those other once (specially the one with softbench in it).

I really appreciate your help.
Mahima
Aim high!
Sup
Advisor
Solution

Re: gcc compiler error on hp-ux 10.20

Hi,

PATH is scanned from Left to right on unix.
So ADD PATH as

$export PATH=/opt/gcc/bin/:$PATH