Linux compile problems - (help)

Randy A. Katz <>
Tue Sep 7 08:25:50 CEST 1999


Hello,

I was able to successfully compile Erlang under FreeBSD using the port. But
under RedHat Linux 6.0, kernel 2.2.5-15, I get the following messages after
a ./configure, make:

make[3]: Entering directory
`/usr/src/eddy/erlang-47.4.1/erts/system/erl_interface/src'
make -f i586-unknown-linux/Makefile TYPE=opt
make[4]: Entering directory
`/usr/src/eddy/erlang-47.4.1/erts/system/erl_interface/src'
gcc -g -O2 -I/usr/src/eddy/erlang-47.4.1/erts/autoconf/i586-unknown-linux
-I. -I/usr/src/eddy/erlang-47.4.1/erts/system/emulator/runtime
-DHAVE_CONFIG_H    -DUSE_DNS -DERLANG_DAEMON_PORT=4369
-L/usr/src/eddy/erlang-47.4.1/erts/obj/i586-unknown-linux -o
/usr/src/eddy/erlang-47.4.1/erts/bin/i586-unknown-linux/erl_call erl_call.c
-lerl_interface -lei -lcurses -lresolv -ldl -lm 
/tmp/ccghYwCd.o: In function `get_hostent':
/usr/src/eddy/erlang-47.4.1/erts/system/erl_interface/src/erl_call.c:198:
undefined reference to `erl_gethostbyaddr'
/usr/src/eddy/erlang-47.4.1/erts/system/erl_interface/src/erl_call.c:201:
undefined reference to `erl_gethostbyname'
/tmp/ccghYwCd.o: In function `do_connect':
/usr/src/eddy/erlang-47.4.1/erts/system/erl_interface/src/erl_call.c:221:
undefined reference to `erl_connect'
/usr/src/eddy/erlang-47.4.1/erts/system/erl_interface/src/erl_call.c:239:
undefined reference to `erl_gethostbyname'
/usr/src/eddy/erlang-47.4.1/erts/system/erl_interface/src/erl_call.c:242:
undefined reference to `erl_start_sys'
/usr/src/eddy/erlang-47.4.1/erts/system/erl_interface/src/erl_call.c:243:
undefined reference to `erl_err_quit'
/usr/src/eddy/erlang-47.4.1/erts/system/erl_interface/src/erl_call.c:246:
undefined reference to `erl_connect'
/usr/src/eddy/erlang-47.4.1/erts/system/erl_interface/src/erl_call.c:255:
undefined reference to `erl_err_quit'
/usr/src/eddy/erlang-47.4.1/erts/system/erl_interface/src/erl_call.c:258:
undefined reference to `erl_err_quit'
/usr/src/eddy/erlang-47.4.1/erts/system/erl_interface/src/erl_call.c:261:
undefined reference to `erl_err_quit'
/usr/src/eddy/erlang-47.4.1/erts/system/erl_interface/src/erl_call.c:264:
undefined reference to `erl_err_quit'
/usr/src/eddy/erlang-47.4.1/erts/system/erl_interface/src/erl_call.c:267:
undefined reference to `erl_err_quit'
/tmp/ccghYwCd.o:/usr/src/eddy/erlang-47.4.1/erts/system/erl_interface/src/er
l_call.c:291: more undefined references to `erl_err_quit' follow
/tmp/ccghYwCd.o: In function `read_stdin':
/usr/src/eddy/erlang-47.4.1/erts/system/erl_interface/src/erl_call.c:339:
undefined reference to `erl_err_sys'
/tmp/ccghYwCd.o: In function `main':
/usr/src/eddy/erlang-47.4.1/erts/system/erl_interface/src/erl_call.c:607:
undefined reference to `erl_init_nothreads'
/usr/src/eddy/erlang-47.4.1/erts/system/erl_interface/src/erl_call.c:638:
undefined reference to `erl_gethostbyname'
/usr/src/eddy/erlang-47.4.1/erts/system/erl_interface/src/erl_call.c:639:
undefined reference to `erl_err_quit'
/usr/src/eddy/erlang-47.4.1/erts/system/erl_interface/src/erl_call.c:648:
undefined reference to `erl_connect_xinit'
/usr/src/eddy/erlang-47.4.1/erts/system/erl_interface/src/erl_call.c:650:
undefined reference to `erl_err_quit'
/usr/src/eddy/erlang-47.4.1/erts/system/erl_interface/src/erl_call.c:653:
undefined reference to `erl_thishostname'
/usr/src/eddy/erlang-47.4.1/erts/system/erl_interface/src/erl_call.c:665:
undefined reference to `erl_err_quit'
/usr/src/eddy/erlang-47.4.1/erts/system/erl_interface/src/erl_call.c:679:
undefined reference to `erl_connect'
/usr/src/eddy/erlang-47.4.1/erts/system/erl_interface/src/erl_call.c:684:
undefined reference to `erl_err_quit'
/usr/src/eddy/erlang-47.4.1/erts/system/erl_interface/src/erl_call.c:689:
undefined reference to `erl_format'
/usr/src/eddy/erlang-47.4.1/erts/system/erl_interface/src/erl_call.c:689:
undefined reference to `erl_rpc'
/usr/src/eddy/erlang-47.4.1/erts/system/erl_interface/src/erl_call.c:705:
undefined reference to `erl_mk_binary'
/usr/src/eddy/erlang-47.4.1/erts/system/erl_interface/src/erl_call.c:705:
undefined reference to `erl_format'
/usr/src/eddy/erlang-47.4.1/erts/system/erl_interface/src/erl_call.c:705:
undefined reference to `erl_rpc'
/usr/src/eddy/erlang-47.4.1/erts/system/erl_interface/src/erl_call.c:708:
undefined reference to `erl_err_msg'
/usr/src/eddy/erlang-47.4.1/erts/system/erl_interface/src/erl_call.c:710:
undefined reference to `erl_format'
/usr/src/eddy/erlang-47.4.1/erts/system/erl_interface/src/erl_call.c:710:
undefined reference to `erl_rpc'
/usr/src/eddy/erlang-47.4.1/erts/system/erl_interface/src/erl_call.c:711:
undefined reference to `erl_err_msg'
/usr/src/eddy/erlang-47.4.1/erts/system/erl_interface/src/erl_call.c:713:
undefined reference to `erl_format'
/usr/src/eddy/erlang-47.4.1/erts/system/erl_interface/src/erl_call.c:713:
undefined reference to `erl_match'
/usr/src/eddy/erlang-47.4.1/erts/system/erl_interface/src/erl_call.c:714:
undefined reference to `erl_err_msg'
/usr/src/eddy/erlang-47.4.1/erts/system/erl_interface/src/erl_call.c:724:
undefined reference to `erl_mk_binary'
/usr/src/eddy/erlang-47.4.1/erts/system/erl_interface/src/erl_call.c:724:
undefined reference to `erl_format'
/usr/src/eddy/erlang-47.4.1/erts/system/erl_interface/src/erl_call.c:724:
undefined reference to `erl_rpc'
/usr/src/eddy/erlang-47.4.1/erts/system/erl_interface/src/erl_call.c:726:
undefined reference to `erl_err_msg'
/usr/src/eddy/erlang-47.4.1/erts/system/erl_interface/src/erl_call.c:728:
undefined reference to `erl_print_term'
/usr/src/eddy/erlang-47.4.1/erts/system/erl_interface/src/erl_call.c:741:
undefined reference to `erl_format'
/usr/src/eddy/erlang-47.4.1/erts/system/erl_interface/src/erl_call.c:744:
undefined reference to `erl_rpc'
/usr/src/eddy/erlang-47.4.1/erts/system/erl_interface/src/erl_call.c:747:
undefined reference to `erl_print_term'
collect2: ld returned 1 exit status
make[4]: ***
[/usr/src/eddy/erlang-47.4.1/erts/bin/i586-unknown-linux/erl_call] Error 1
make[4]: Leaving directory
`/usr/src/eddy/erlang-47.4.1/erts/system/erl_interface/src'
make[3]: *** [opt] Error 2
make[3]: Leaving directory
`/usr/src/eddy/erlang-47.4.1/erts/system/erl_interface/src'
make[2]: *** [opt] Error 2
make[2]: Leaving directory
`/usr/src/eddy/erlang-47.4.1/erts/system/erl_interface'
make[1]: *** [opt] Error 2
make[1]: Leaving directory `/usr/src/eddy/erlang-47.4.1/erts/system'
make: *** [emulator] Error 2
[ erlang-47.4.1]# 

-------

What can I do to get this to compile under Linux? Do I need different
libraries? Should I use a different distribution?

Thank you,
Randy Katz



More information about the erlang-questions mailing list