Skip to main content

Eclipse IDE/Enterprise developer 2.3 Update 1 generated .gnt .int files not compatible on linux platform

  • November 21, 2017
  • 7 replies
  • 0 views

I am using "COBOL for Eclipse IDE/Enterprise developer 2.3 Update 1" to create a cobol project on windows to generate .gnt and .int files. Once these files are generated I deploy these on my Linux machine where Enterprise developer 23u1 is installed. But when I try to run programs compiled through eclipse gives load error. However programs compiled on Linux machine will run successfully.

Could anyone advise whether .gnt and .int files generated through eclipse are compatible in linux platform ?


#EnterpriseDeveloper

7 replies

  • 0 replies
  • November 21, 2017

I am using "COBOL for Eclipse IDE/Enterprise developer 2.3 Update 1" to create a cobol project on windows to generate .gnt and .int files. Once these files are generated I deploy these on my Linux machine where Enterprise developer 23u1 is installed. But when I try to run programs compiled through eclipse gives load error. However programs compiled on Linux machine will run successfully.

Could anyone advise whether .gnt and .int files generated through eclipse are compatible in linux platform ?


#EnterpriseDeveloper
you will need to create .so files to run in Linux. In order to do this, you must create a remote project from Eclipse and build the project on the Linux platform.

  • Author
  • Rocketeer
  • 19312 replies
  • November 21, 2017

I am using "COBOL for Eclipse IDE/Enterprise developer 2.3 Update 1" to create a cobol project on windows to generate .gnt and .int files. Once these files are generated I deploy these on my Linux machine where Enterprise developer 23u1 is installed. But when I try to run programs compiled through eclipse gives load error. However programs compiled on Linux machine will run successfully.

Could anyone advise whether .gnt and .int files generated through eclipse are compatible in linux platform ?


#EnterpriseDeveloper
The .int files should be portable. .gnt files are not. You could do as dpswind advises, although you are not required to build .so’s you could build gnt’s or even executables in Linux
Also you could move the .int’s from windows to Linux and then use them to create .gnts or .so’s or executables on Linux. Beware if you are using Windows specific features you have no chance of running those programs on Linux

  • Author
  • Rocketeer
  • 19312 replies
  • September 20, 2018

I am using "COBOL for Eclipse IDE/Enterprise developer 2.3 Update 1" to create a cobol project on windows to generate .gnt and .int files. Once these files are generated I deploy these on my Linux machine where Enterprise developer 23u1 is installed. But when I try to run programs compiled through eclipse gives load error. However programs compiled on Linux machine will run successfully.

Could anyone advise whether .gnt and .int files generated through eclipse are compatible in linux platform ?


#EnterpriseDeveloper
At a high level - INT code, is interpreted by the Micro Focus runtime, should be compatible across Micro Focus environments running on any platform as long as the versions are the same or reasonable close. GNT code , Generated code is highly optimized code for the chipset it was built on, I believe it would be portable to another environment with the same chipset, but will try to test.

But you leave out a huge number of details which makes helping you difficult.

What does the program do - is it simple file i/o or does it access databases? Is it running in JCL or via script?
What is the exact error you are getting on Linux?
What variant of Linux?
On Linux you are not running under Enterprise Developer as it does not exist on Linux, the Visual COBOL IDE does but not Enterprise Developer. Do you mean Enterprise Server or COBOL Server?
Did you run cobsetenv script to ensure the COBOL environment was set up or is this done by default in your linux profile?
How did you deploy to Linux - copy over NFS or SAMBA , or FTP or another method?
Why aren't you using remote project in Eclipse so everything you do is actually occuring on the Linx box while you develop on Eclipse on Windows?'
Why have you chosen INT/GNT as the build target? With remote projects you can go to native Linux shared objects

if you can provide some details I'm sure we can get this sorted out.

  • Author
  • Rocketeer
  • 19312 replies
  • September 20, 2018

I am using "COBOL for Eclipse IDE/Enterprise developer 2.3 Update 1" to create a cobol project on windows to generate .gnt and .int files. Once these files are generated I deploy these on my Linux machine where Enterprise developer 23u1 is installed. But when I try to run programs compiled through eclipse gives load error. However programs compiled on Linux machine will run successfully.

Could anyone advise whether .gnt and .int files generated through eclipse are compatible in linux platform ?


#EnterpriseDeveloper
Did some additional research and testing. GNT code is portable on the same chipset, but not across OS. So you can't build GNT Code on Windows and Deploy to Linux.. INT code does work. Be aware of the target platform. If you build on Windows as 32 bit, the default and deploy to Linux 64 bit you get a 211 Load error. You need to build for the OS bit level

  • Author
  • Rocketeer
  • 19312 replies
  • October 23, 2018

I am using "COBOL for Eclipse IDE/Enterprise developer 2.3 Update 1" to create a cobol project on windows to generate .gnt and .int files. Once these files are generated I deploy these on my Linux machine where Enterprise developer 23u1 is installed. But when I try to run programs compiled through eclipse gives load error. However programs compiled on Linux machine will run successfully.

Could anyone advise whether .gnt and .int files generated through eclipse are compatible in linux platform ?


#EnterpriseDeveloper
Micro Focus .gnt produced by the compiler are optimized for a given platform. And so are NOT portable between different OS. Only .int executed under the Micro Focus run-time environment (run/cobrun) are multi platforms compatible.
Nevertheless note that included third party components (e.g. Oracle pre-compiler and others ...) may restrict this compatibility.

  • Author
  • Rocketeer
  • 19312 replies
  • October 28, 2018

I am using "COBOL for Eclipse IDE/Enterprise developer 2.3 Update 1" to create a cobol project on windows to generate .gnt and .int files. Once these files are generated I deploy these on my Linux machine where Enterprise developer 23u1 is installed. But when I try to run programs compiled through eclipse gives load error. However programs compiled on Linux machine will run successfully.

Could anyone advise whether .gnt and .int files generated through eclipse are compatible in linux platform ?


#EnterpriseDeveloper
[deleted]

  • 0 replies
  • October 29, 2018

I am using "COBOL for Eclipse IDE/Enterprise developer 2.3 Update 1" to create a cobol project on windows to generate .gnt and .int files. Once these files are generated I deploy these on my Linux machine where Enterprise developer 23u1 is installed. But when I try to run programs compiled through eclipse gives load error. However programs compiled on Linux machine will run successfully.

Could anyone advise whether .gnt and .int files generated through eclipse are compatible in linux platform ?


#EnterpriseDeveloper
My understanding is that the Eclipse IDE is for Windows. To resolve your issue (compile on linux), you must use the Windows Eclipse IDE to create a remote project on Linux. The Linux server requires Enterprise Developer for this to work.