The configure-zos script sets some common values and performs some basic checks to identify the headers and functions available on your system.
Because of variations in z/OS system configurations, the ./configure-zos script might run without errors but you might see the following errors when you run the ./build-zos script.
-1: EDC5083I An error occurred attempting to load a module into storage.
This error indicates that a required dynamic library cannot be loaded by the compiler.
Rerun the ./build-zos command. If the command fails again, contact your system administrator for assistance in locating the required library.
FSUM3052 The data definition name C8961 cannot be resolved. The data set was not found. Ensure that data set name CEE.SCEEOBJ is specified correctly.
This error indicates that the linker was unable to locate a system library that it needs to complete the compilation. Run the commands:
% export _C89_LSYSLIB=SYS1.SCEELKED:SYS1.SCEELKEX
% export _C89_PSYSLIB=SYS1.SCEEOBJ
Rerun the ./build-zos command. If the command fails again, contact your system administrator for assistance in locating the required libraries.
The unresolved symbol errors indicate that the build expected a symbol to be defined by your system C library that is not actually there. In most cases, this is a symbol that is often missing from other systems too, and there will be a setting in config.h to work around the problem.
For example, your system might not define the unsetenv function. The configure-zos script should normally detect this; if it does not, edit the config.h file that is provided with the agent source pack, as follows:
Change #define HAVE_UNSETENV 1 to #undef HAVE_UNSETENV.
Rerun the ./build-zos command to correct the problem.