Operating System - HP-UX
1753893 Members
7629 Online
108809 Solutions
New Discussion юеВ

Error while porting C code from Sun to HP

 
SOLVED
Go to solution
Ajay Nair
Occasional Advisor

Error while porting C code from Sun to HP

Hi,

I'm facing the following error when I compile my C program on HP UX 11i:
cc: "storeirm_funcs.c", line 3: error 1000: Unexpected symbol: "*".

Also, it gives me a series of warnings of the type :
cpp: "/usr/include/time.h", line 18: warning 2018: #ident directive is ignored.

I have already tried compiling with the -Ae option but it gives me the same error. The compiler I'm using is
LINT B.11.11.02 CXREF B.11.11.02
HP92453-01 B.11.11.02 HP C Compiler
$ Sep 8 2000 23:13:51 $

I've attached the C program storeirm_funcs.c in which I'm getting the error.

Please respond as soon as possible.

Thanks,
Ajay
2 REPLIES 2
A. Clay Stephenson
Acclaimed Contributor
Solution

Re: Error while porting C code from Sun to HP

You forgot to mention that this is embedded C SQL code. I think you will need to move your embedded C source to HP and then run the ESQL/C compiler on it.
If it ain't broke, I can fix that.
Ajay Nair
Occasional Advisor

Re: Error while porting C code from Sun to HP

Hi,

Thanks for the response.

However now I'm facing a linking problem. The error message displayed is :

cc: Entering Link editor.
/usr/ccs/bin/ld: (Warning) At least one PA 2.0 object file (main.o) was detected
. The linked output may not run on a PA 1.x system.
/usr/ccs/bin/ld: /opt/informix/9.30.FC1/lib/esql/libixsql.sl: Mismatched ABI. 64
-bit PA shared library found in 32-bit link.
*** Error exit code 1


Thanks,
Ajay