Undefined symbol: .__magic4 linking 4GL object files

Technote (troubleshooting)

Problem(Abstract)

Attempting to link a number of 4GL object files using cc encounters an undefined symbol.

Symptom

The symptom of the problem is the following error message:

ld: 0711-317 ERROR: Undefined symbol: .__magic4

Cause

This can be caused by using an older version of the C compiler.

Environment

Unix

Diagnosing the problem

Check the Release Notes for the product, specifically the MACHINENOTES under $INFORMIXDIR/release/en_us/0333. These release notes typically indicate which version of the C compiler was used to build the product and which versions of the C compiler have been certified to work.

Resolving the problem

Upgrade to the appropriate C compiler version mentioned in the Release Notes.