I am migrating a project and we need to migrate ESQL/C source files from HP-UX to Red Hat Linux.
What may be the incompatibilities while moving these ESQL/C files to Linux?
I am migrating a project and we need to migrate ESQL/C source files from HP-UX to Red Hat Linux.
What may be the incompatibilities while moving these ESQL/C files to Linux?
There are two parts to the answer:
For the most part, unless you've gone out of your way to write system-specific SQL code, I would expect to transfer the ESQL/C source direct from HP-UX to Red Hat Linux with no more than a recompile. While you probably can write code that is not portable between the systems, I'm not really sure how you'd achieve that as long as you've accounted for 32-bit vs 64-bit code (if that is in fact necessary). I've multiple major programs that port between Linux and HP-UX (or AIX or Solaris or Mac OS X) with no changes to the embedded SQL code.
The porting problems here are independent of the ESQL/C code. There are differences between the shared library handling, for example, or function calls that are specific to HP-UX that are not available in Linux (or, worse, the same function is available on both but behaves differently). These problems should be attributed to the correct cause — which is the C code around the ESQL/C and not the ESQL/C per se.