Operating System - HP-UX
1833796 Members
4431 Online
110063 Solutions
New Discussion

Migration Problemsssssssss

 
Pierre Gits
New Member

Migration Problemsssssssss

Hi *,

We currently migrate a customer application written in Uniface 5.2 / database Oracle 6 and under Unix 8 to Uniface 7.2.06 / database Oracle 8.1.7 HP/Unix 11.

A great part of the application was written in Pro*C.

After very much problems with the 'make', we finally find our way to a running application but we still have a big problem with all the Pro*C!

Every string function seems to be working a different way then on the initial application.
Most of the time, it's a problem with the '/0' end of string, in other cases the data's find by a SQL statement have a lenght problem for further use,and so on.

We already use different switches for compilation('-Ac') but the strings problem is still there.

One possibility we have is to change all the code to insert some string function but ... it's a lot of work.

The question is, does anyone know with switch we could use to avoid the problem.

Thanks in advance.
Regards,

Pierre.
2 REPLIES 2
Ceesjan van Hattum
Esteemed Contributor

Re: Migration Problemsssssssss

I do not know what compiler you are using, but my migration problems were solved by gcc (download from http://dsportal.eservices.hp.com/dspp/tech/tech_TechSoftwareDetailPage_IDX/1,1703,547,00.html).
It's a bit of a wild guess, but it looks like your string problems can be solved by the switches:
-fwritable-strings
-traditional
-traditional-cpp
Contant strings are not always constant, because they are written into writable space. And often the EOS (end of string, normally '\0' is set only at EOL '\n'.
I hope gcc -traditional-cpp will help you to compile on ux-11 with the old precomiler style.
Succes !

H.Merijn Brand (procura
Honored Contributor

Re: Migration Problemsssssssss

That one was unavailable (I was wondering what version they had available there). This one was up just a moment ago:

http://h21007.www2.hp.com/dspp/tech/tech_TechSoftwareDetailPage_IDX/1,1703,547,00.html

[Moderator edit: Removed the broken links. Please refer to https://support.hpe.com]

Enjoy, Have FUN! H.Merijn