[erlang-questions] Compiling erlang on AIX 5.3
Mon Feb 5 00:14:58 CET 2007
"VAUCHER Laurent" <VAUCHER@REDACTED> writes:
> Compilation seems to proceed further, but then
> === Entering application parsetools
> make: Entering directory `/tmp/otp_src_R11B-2/lib/parsetools/src'
> erlc -W +debug_info -I/tmp/otp_src_R11B-2/lib/stdlib/include -o../ebin
> Could not load program
> 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.
Hard to say without seeing the complete build log and "config.log",
but using Google there seem to be two main causes for this on AIX
- Somehow the build put in "-G" or "-shared" on the link line
of the "beam" executable.
- "ld" was used to link the final application "beam", this will not
work on AIX. The "gcc" or "xlc_r" command should be used for
linking, as it "knows things" about runtime library dependencies,
entry points etc that a plain "ld" has no idea about.
The problem with using "ld" is described at page 73 in
Kent Boortz, Senior Software Developer
MySQL AB, www.mysql.com
Office: +46 18 174400 ext. 4450 (VoIP)
Office: +46 19 182931
Mobile: +46 70 2791171
More information about the erlang-questions