Redhat 9 troubles.

Kent Boortz kent@REDACTED
Thu May 1 22:30:18 CEST 2003


Jeff Einhorn <jeinhorn@REDACTED> writes:
> I'm having some trouble compiling erlang R9B-1 on Redhat 9.  I have
> exported the LANG=en_US variable so that I can avoid the perl problems,
> but I should also get the following error later in the compile.
> 
> /usr/local/src/otp_src_R9B-1/erts/obj.instr.beam/i686-pc-linux-gnu/sys.o(.text+0x2564): In function `sys_preloaded':
> sys/unix/sys.c:3236: undefined reference to `pre_loaded'
> collect2: ld returned 1 exit status
> make[2]: ***
> [/usr/local/src/otp_src_R9B-1/bin/i686-pc-linux-gnu/beam.instr] Error 1
> make[2]: Leaving directory `/usr/local/src/otp_src_R9B-1/erts/emulator'
> make[1]: *** [instr] Error 2
> make[1]: Leaving directory `/usr/local/src/otp_src_R9B-1/erts/emulator'
> make: *** [emulator.instr] Error 2

Did you do this in a new clean unpacked source tree? If not one suggestion
sent to the Wings3D list was to do (in bash)

  % export LANG=C
  % rm configure.cache
  % make clean
  % ./configure
  % make
  % make install

You can find a suggestion that includes editing "make_preload" at

  http://www.erlang-projects.org/Public/documentation/tutorials/building_r9b-0_on_li/view

Yet another suggestion is to upgrade the Perl version

  http://www.erlang.org/ml-archive/erlang-questions/200302/msg00357.html

Maybe it would be easier if someone good at Perl and the Perl unicode
changes could help us by pointing out the few lines in the Perl
scripts that are not compatible with different language versions and
what to do about it.  Changing to "use bytes" is not the way to go,
this will break the build on lots of systems with older Perl
installations. We could of course let configure find out if the Perl
version supports "use bytes" or not and preprocess the Perl scripts,

kent



More information about the erlang-questions mailing list