configure produced an erl_crash.dump

  • Charles Bradshaw

    I am atempting to install erlgtk on a redhat 9 linux with erlang OTP R10B installed to default locations.

    I am seing some nasty output during the initial:

    make config

    this is just a snippet:
    checking for erl_init in -lerl_interface_st... no
    checking fun erl_interface... gcc: Warning:: No such file or directory
    gcc: variable: No such file or directory
    gcc: 'A1': No such file or directory
    gcc: is: No such file or directory
    gcc: unused: No such file or directory
    then later
    eiconf.c:19: (Each undeclared identifier is reported only once
    eiconf.c:19: for each function it appears in.)
    eiconf.c:19: `term' undeclared (first use in this function)
    sh: line 1: /home/Brad/src/erlgtk-0.9.7/config/eiconf: No such file or directory
    sh: line 1: exec: /home/Brad/src/erlgtk-0.9.7/config/eiconf: cannot execute: No
    such file or directory

    Crash dump was written to: erl_crash.dump
    init terminating in do_boot ()
    no false
    {"init terminating in do_boot",{badarg,[{erlang,port_close,[#Port<0.73>]},{eicon

    sure enough I have the file


    I think the problem is during the execution of:

    erl -noshell -s eiconf fun_ext

    which also crashes when executed from the command line

    I am hopefull of some assistance, although this forum looks very dead ):

    thanks in advance charles bradshaw.

    • Charles Bradshaw

      further to my post, the probles seems to be that eiconf does not compile for some strange reason.

      this is the result:

      gcc -o eiconf eiconf.c -I/usr/local/lib/erlang/lib/erl_interface-3.5.4/include -L/usr/local/lib/erlang/lib/erl_interface-3.5.4/lib
      /tmp/ccYvfj3M.o(.text+0x1b): In function `main':
      : undefined reference to `erl_init'
      /tmp/ccYvfj3M.o(.text+0xf3): In function `main':
      : undefined reference to `ei_decode_version'
      /tmp/ccYvfj3M.o(.text+0x137): In function `main':
      : undefined reference to `ei_decode_term'
      collect2: ld returned 1 exit status

      but the libraries are in place ad seem to be ok. for example nm returns as follows:
      nm /usr/local/lib/erlang/lib/erl_interface-3.5.4/lib/liberl_interface.a | grep erl_init
      00000000 T erl_init
               U erl_init_malloc
               U erl_init_marshal
      00000000 T erl_init_eterm_alloc
               U erl_init_eterm_alloc
      00000000 T erl_init_malloc
      00000000 T erl_init_marshal
      00000020 T erl_init_resolve

      Can anybody throw any light on the subject?

    • Charles Bradshaw

      ok so i'm answering my orn question now (:

      go read and understand autoconf, because you have a typical configuration problem.

      thanks good advice.

      continue ....

    • Charles Bradshaw

      R10B produces lots of:
      ./eiconf.erl:20: Warning: variable 'A1' is unused
      this output, presumably unexpected, breaks the configure script by polluting the script variable EI_DIR with consequent mayhem and desaster ):

      so place -W0 (warning level 0) switch in EI_DIR= line in the script. the correct line looks like this:
      EI_DIR=`$ERLC -W0 eiconf.erl; $ERL -noshell -s eiconf`

      the autoconf info pages make real great christmas reading! trying to debug macro is why IT DOSEN'T WORK! No isolation of layers y'rknow!

      thats it, you all have a good 2006


Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks