Operating System - HP-UX
1824957 Members
4162 Online
109678 Solutions
New Discussion юеВ

Re: Error compiling 9.04 Pro*C programs in 10.20

 
David Ng_2
New Member

Error compiling 9.04 Pro*C programs in 10.20

I'm trying to re-compile some Pro*C programs written in HP-UX 9.04/Oracle 7.1.6 in HP-UX 10.20/Oracle 7.3.4 but is facing some errors as below:

(Bundled) cc: "TRFlib.c", line 435: error 1000: Unexpected symbol: "i".
(Bundled) cc: "TRFlib.c", line 2: error 1000: Unexpected symbol: "e".
(Bundled) cc: "TRFlib.c", line 2: error 1004: Unexpected end of line.
(Bundled) cc: "TRFlib.c", line 250: error 1716: Automatic aggregate initialization is an ANSI feature.
(Bundled) cc: "TRFlib.c", line 251: error 1716: Automatic aggregate initialization is an ANSI feature.
(Bundled) cc: "TRFlib.c", line 709: error 1716: Automatic aggregate initialization is an ANSI feature.
(Bundled) cc: "TRFlib.c", line 710: error 1716: Automatic aggregate initialization is an ANSI feature.
(Bundled) cc: "TRFlib.c", line 1285: error 1716: Automatic aggregate initialization is an ANSI feature.
(Bundled) cc: "TRFlib.c", line 1652: error 1716: Automatic aggregate initialization is an ANSI feature.
(Bundled) cc: "TRFlib.c", line 1788: error 1716: Automatic aggregate initialization is an ANSI feature.
(Bundled) cc: "TRFlib.c", line 2214: error 1716: Automatic aggregate initialization is an ANSI feature.
*** Error exit code 1

Anyone can help??
2 REPLIES 2
Steven Sim Kok Leong
Honored Contributor

Re: Error compiling 9.04 Pro*C programs in 10.20

Hi,

From the errors, it looks like your TRFlib.c requires the Ansi C compiler ie. HP C/ANSI C Developer's Bundle for HP-UX 10.20.

Hope this helps. Regards.

Steven Sim Kok Leong
Brainbench MVP for Unix Admin
http://www.brainbench.com
Steven Sim Kok Leong
Honored Contributor

Re: Error compiling 9.04 Pro*C programs in 10.20

Hi,

To check whether it has been installed in your system, you can either execute:

# swlist -l bundle |grep -i ansi

Or:

# ls -ld /opt/ansic

Note that if you wish to use the Ansi C compiler as your default compiler, you must soft-link your ansic compiler to cc ie. change the softlink from

/usr/bin/cc -> /usr/ccs/bin/cc

to

/usr/bin/cc -> /opt/ansic/bin/cc

Hope this helps. Regards.

Steven Sim Kok Leong
Brainbench MVP for Unix Admin
http://www.brainbench.com