Operating System - HP-UX
1827842 Members
1304 Online
109969 Solutions
New Discussion

Re: syntax error at line 2 : '<' unexpected

 
H S Z
Regular Advisor

syntax error at line 2 : '<' unexpected

Hello Gurus.

U have to save my life.
Am migrating a system from AIX 4.3.3 to HP-UX 11.23 on itanium rx4640.
On the AIX, i have a payroll software which was compiled 20 years ago with micro focus C language.
I took the compiled file and tried to run it on the HP-UX 11.23. please see error below:

/sigprod/txa020/exec [9]$ RTSGIP

/sigprod/txa020/exec/RTSGIP: syntax error at line 2 : '<' unexpected


Please what do u undertsand from that error?

Hope to hear from you soon as usual.


BR
Horace

14 REPLIES 14
Patrick Wallek
Honored Contributor

Re: syntax error at line 2 : '<' unexpected

You are going to have to find the source code and re-compile it on HP-UX.

Software compiled for AIX will NOT run on HP-UX.
Torsten.
Acclaimed Contributor

Re: syntax error at line 2 : '<' unexpected

Hi Horace,

I don't know anything about micro focus, but I really can't imagine that binaries compiled on AIX 20 ago may run on HP-UX 11.23.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Geoff Wild
Honored Contributor

Re: syntax error at line 2 : '<' unexpected

There is almost a 100% guarantee that you will not get any pre-compiled binaries ion any Aix version to work on any HP-UX version.

It's just not going to happen...

You need the source and you will need to re-compile.


Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Bill Hassell
Honored Contributor

Re: syntax error at line 2 : '<' unexpected

You are sdimply out of luck. There is absolutely nothing in common between AIX compiled programs and any other computer system, just as there nothing in common with HP-UX compiled programs and any other computer system. Actually, something that old may not even run on a newer version of AIX. Compiled programs are executable only on the platform and revision of the OS where they were created. You need all the source code, a copy of the latets Micro Focus COBOL compiler and a *lot* of time to debug the code since it probably won't compile cleanly.


Bill Hassell, sysadmin
Florian Heigl (new acc)
Honored Contributor

Re: syntax error at line 2 : '<' unexpected

Can You do a
file /sigprod/txa020/exec/RTSGIP

(please don't misunderstand me - i think this is a shell script, but the rest of the posts still applies, You *NEED* a recompile)
yesterday I stood at the edge. Today I'm one step ahead.
H S Z
Regular Advisor

Re: syntax error at line 2 : '<' unexpected

ok guys,
thanks for ur replies.
ok, in this case, once the hp server is bought already, i need to get a solution.
Can we go with an emulator, if yes please advice...


waiting ur replies
Bill Hassell
Honored Contributor

Re: syntax error at line 2 : '<' unexpected

I know of no AIX emulator that runs on any platform. AS mentioned, the RTSGIP file might be a script but you'll have to post the first few lines, something like this:

cat -v /sigprod/txa020/exec/RTSGIP | head -20

But I would be really concerned about expecting 20 year old software to run without extensive work to modernize and make compatible with your new machine.


Bill Hassell, sysadmin
H S Z
Regular Advisor

Re: syntax error at line 2 : '<' unexpected

Dear Bill

RTSGIP is the compiled file. i have a script that i run to it or else i run it directly.

waiting for replies....
TwoProc
Honored Contributor

Re: syntax error at line 2 : '<' unexpected

Horace, sorry man (because it sounds like you're really stuck) - but you'll need source code to move that application. Not any other way to do it. No emulators, no simulators, no compat libraries...
We are the people our parents warned us about --Jimmy Buffett
Patrick Wallek
Honored Contributor

Re: syntax error at line 2 : '<' unexpected

This sounds like a serious lack of proper planning on someones part. Buying a new HP-UX machine and expecting 20 year old AIX compiled programs to run on the new machine is obsurd.

Unless you have the source code, you are seriously out of luck.
Florian Heigl (new acc)
Honored Contributor

Re: syntax error at line 2 : '<' unexpected

Horace,

I'll try to say it as short and clear as possible:

two options:
- get the source code and a very experienced c programmer to port it to hp-ux
(more reasonable in the long term as You're dead in the water without it anyway)
- get a entry-level rs/6000
(entry level means 1.6GHz and 1GB nowadays)

Sorry to be that pessimistic, but this is as impossible as it gets.

(Oh, and yes, You could get some russian cracker to dissasemble and recompile it. or fly to the moon on my bike)

yesterday I stood at the edge. Today I'm one step ahead.
H S Z
Regular Advisor

Re: syntax error at line 2 : '<' unexpected

does anyone know where i can find AIX emulator?
my aim is to get one AIX emulator for linux

waiting replies....
Doug O'Leary
Honored Contributor

Re: syntax error at line 2 : '<' unexpected

>>does anyone know where i can find AIX emulator? my aim is to get one AIX emulator for linux

I don't believe there is such a beast. As hard as it is to accept, the other posters have the right answer. Just because your management doesn't want to accept it doesn't mean it's not correct.

Doug

------
Senior UNIX Admin
O'Leary Computers Inc
linkedin: http://www.linkedin.com/dkoleary
Resume: http://www.olearycomputers.com/resume.html
Florian Heigl (new acc)
Honored Contributor

Re: syntax error at line 2 : '<' unexpected

AIX above 5.1 can run linux applications (if compiled for powerpc!), but linux *cannot* run AIX applications.
yesterday I stood at the edge. Today I'm one step ahead.