How to compile 4GL source code using the gcc compiler on AIX

Technote (troubleshooting)


Problem(Abstract)

Errors are encountered during runtime after using the gcc compiler instead of the XL C/C++ compiler on AIX.

Symptom

Running a 4GL program compiled with gcc throws the following error:

Could not load program ./test.4ge:

The program does not have an entry point or

the o_snentry field in the auxiliary header is invalid.

Examine file headers with the 'dump -ohv' command.


Cause

The cause of the problem is because the c4gl script is written to utilize the AIX XL C/C++ compiler. This is the only compiler that the MACHINENOTES indicate IBM Informix 4GL is certified with. There are certain compile flags in the c4gl script that do not pertain to the gcc compiler.

Environment

AIX

Resolving the problem

To resolve the problem, you can backup the c4gl script and then modify it to utilize the gcc compile flags in place of the XL C/C++ compile flags:

XLC GCC
-----------------------------------
-qchars=signed -fsigned-char
-q64 -maix64
-brtl -Wl,-brtl

Rate this page:

(0 users)Average rating

Add comments

Document information


More support for:

Informix Tools
Informix 4GL

Software version:

7.5

Operating system(s):

AIX

Reference #:

1648670

Modified date:

2013-08-30

Translate my page

Machine Translation

Content navigation