Operating System - HP-UX
1826039 Members
2998 Online
109690 Solutions
New Discussion

need help making gcc-3.3.1 on 11i

 
SOLVED
Go to solution
Ross Minkov
Esteemed Contributor

need help making gcc-3.3.1 on 11i


Using GNU Make 3.80 on 11i system trying to make the latest version of gcc (gcc-3.3.1) I got the following errors. Configure completed successfully.


....
(Bundled) cc: "jartool.c", line 1259: error 1705: Function prototypes are an ANSI feature.
(Bundled) cc: "jartool.c", line 1282: warning 563: Argument #1 is not the correct type.
(Bundled) cc: "jartool.c", line 1292: warning 563: Argument #1 is not the correct type.
(Bundled) cc: "jartool.c", line 1306: warning 563: Argument #1 is not the correct type.
(Bundled) cc: "jartool.c", line 1318: warning 563: Argument #1 is not the correct type.
(Bundled) cc: "jartool.c", line 1364: warning 563: Argument #1 is not the correct type.
(Bundled) cc: "jartool.c", line 1476: warning 563: Argument #1 is not the correct type.
(Bundled) cc: "jartool.c", line 1490: warning 563: Argument #1 is not the correct type.
(Bundled) cc: "jartool.c", line 1514: warning 563: Argument #1 is not the correct type.
(Bundled) cc: "jartool.c", line 1547: error 1705: Function prototypes are an ANSI feature.
(Bundled) cc: "jartool.c", line 1706: warning 563: Argument #1 is not the correct type.
(Bundled) cc: "jartool.c", line 1711: warning 563: Argument #1 is not the correct type.
(Bundled) cc: "jartool.c", line 1726: warning 563: Argument #1 is not the correct type.
(Bundled) cc: "jartool.c", line 1740: warning 563: Argument #1 is not the correct type.
(Bundled) cc: "jartool.c", line 1790: warning 563: Argument #1 is not the correct type.
(Bundled) cc: "jartool.c", line 1807: warning 563: Argument #1 is not the correct type.
(Bundled) cc: "jartool.c", line 1844: error 1000: Unexpected symbol: "*".
(Bundled) cc: "jartool.c", line 1844: error 1705: Function prototypes are an ANSI feature.
(Bundled) cc: "jartool.c", line 1844: error 1573: Type of "pbf" is undefined due to an illegal declaration.
(Bundled) cc: "jartool.c", line 1854: error 1532: Reference through a non-pointer.
(Bundled) cc: "jartool.c", line 1854: error 1527: Incompatible types in cast: Must cast from scalar to scalar or to void type.
(Bundled) cc: "jartool.c", line 1855: warning 563: Argument #1 is not the correct type.
(Bundled) cc: "jartool.c", line 1855: warning 563: Argument #2 is not the correct type.
(Bundled) cc: "jartool.c", line 1855: warning 527: Integral value implicitly converted to pointer in assignment.
(Bundled) cc: "jartool.c", line 1855: warning 563: Argument #3 is not the correct type.
(Bundled) cc: "jartool.c", line 1857: error 1532: Reference through a non-pointer.
(Bundled) cc: "jartool.c", line 1857: error 1532: Reference through a non-pointer.
(Bundled) cc: "jartool.c", line 1858: warning 563: Argument #1 is not the correct type.
(Bundled) cc: "jartool.c", line 1858: warning 563: Argument #2 is not the correct type.
(Bundled) cc: "jartool.c", line 1858: error 1532: Reference through a non-pointer.
(Bundled) cc: "jartool.c", line 1858: warning 563: Argument #3 is not the correct type.
(Bundled) cc: "jartool.c", line 1862: warning 563: Argument #1 is not the correct type.
(Bundled) cc: "jartool.c", line 1862: warning 563: Argument #2 is not the correct type.
(Bundled) cc: "jartool.c", line 1862: warning 527: Integral value implicitly converted to pointer in assignment.
(Bundled) cc: "jartool.c", line 1862: warning 563: Argument #3 is not the correct type.
(Bundled) cc: "jartool.c", line 1876: error 1705: Function prototypes are an ANSI feature.
(Bundled) cc: "jartool.c", line 1892: error 1705: Function prototypes are an ANSI feature.
(Bundled) cc: "jartool.c", line 1947: error 1705: Function prototypes are an ANSI feature.
make[1]: *** [jartool.o] Error 1
make[1]: Leaving directory `/usr/projects/kits/gcc/gcc-3.3.1/fastjar'
make: *** [all-fastjar] Error 2


TIA,
Ross
5 REPLIES 5
Brian Bergstrand
Honored Contributor
Solution

Re: need help making gcc-3.3.1 on 11i

Those errors are indictive of trying to use the default cc compiler. The only thing that is good for compiling is the kernel and maybe "Hello World" You will need to get a binary version of gcc, and then do the following:

cd gcc-3.3.1
CC=/usr/local/bin/gcc make bootstrap

A binary of gcc is included in HP's Linux porting kit. You can download it from here http://devrsrc1.external.hp.com/LPK/

HTH.
Umapathy S
Honored Contributor

Re: need help making gcc-3.3.1 on 11i

Ross,
Adding to what said previously, (Bundled) refers to the /usr/ccs/bin/cc which is mainly used to rebuild kernels. You need to use a full fledged compiler (HP ANSI C or gcc prebuilt binary) to compile the same.

gcc is also available at

http://hpux.connect.org.uk/hppd/hpux/Gnu/gcc-3.2/

But this is 3.2

HTH,
Umapathy

Arise Awake and Stop NOT till the goal is Reached!
H.Merijn Brand (procura
Honored Contributor

Re: need help making gcc-3.3.1 on 11i

Even more recent ports available on https://www.beepz.com/personal/merijn/ or http://www.cmve.net/~merijn/ :)
It also includes script to rebuild gcc from scratch using the binary gcc included.

Enjoy, have FUN! H.Merijn
Enjoy, Have FUN! H.Merijn
H.Merijn Brand (procura
Honored Contributor

Re: need help making gcc-3.3.1 on 11i

3.3.1 for 11.11 now available at http://hpux.connect.org.uk/hppd/hpux/Gnu/gcc-3.3.1/

Enjoy, have FUN! H.Merijn
Enjoy, Have FUN! H.Merijn
Ross Minkov
Esteemed Contributor

Re: need help making gcc-3.3.1 on 11i

thanks for your help