zeromq / erlzmq

Erlang bindings for ZeroMQ messaging
Erlang ZeroMQ Bindings
Other
49 stars 15 forks source link

./configure fails on SUSE Linux 11.2 #20

Open ikolomiets opened 13 years ago

ikolomiets commented 13 years ago

The system has latest Erlang installed (R14B01) and 0mq built from the current zeromq2 sources (as of Feb. 21, 2011) and installed in /usr/local/lib

After running ./bootstrap script,

./configure --with-zeromq=/usr/local/lib/

fails with the following error: .... checking for Erlang/OTP 'kernel' library subdirectory... configure: error: in /home/gosha/work/erlzmq': configure: error: test Erlang program execution failed Seeconfig.log' for more details.

config.log has this:

configure:3609: checking for Erlang/OTP 'kernel' library subdirectory configure:3649: $ERLC $ERLCFLAGS -b beam conftest.$ac_ext >&5 ; echo "#!/bin/sh" > conft est$ac_exeext ; AS_ECHO(["\"$ERL\" -run conftest start -run init stop -noshell"]) >> con ftest$ac_exeext ; chmod +x conftest$ac_exeext ./configure: eval: line 3651: syntax error near unexpected token ["\"$ERL\" -run confte st start -run init stop -noshell"]' ./configure: eval: line 3651:$ERLC $ERLCFLAGS -b beam conftest.$ac_ext >&5 ; echo "#!/ bin/sh" > conftest$ac_exeext ; AS_ECHO(["\"$ERL\" -run conftest start -run init stop -no shell"]) >> conftest$ac_exeext ; chmod +x conftest$ac_exeext' configure:3653: $? = 1 configure: program exited with status 1 configure: failed program was: -module(conftest). -export([start/0]).
start() ->
ReturnValue = case code:lib_dir("kernel") of
{error, bad_name} ->
file:write_file("conftest.out", "not found\n"),
1;
LibDir ->
file:write_file("conftest.out", LibDir),
0
end,
halt(ReturnValue)
.

configure:3673: error: in `/home/gosha/work/erlzmq': configure:3676: error: test Erlang program execution failed

csrl commented 13 years ago

probably unrelated, but normally, for the path to 0mq, you want: ./configure --with-zeromq=/usr/local

ikolomiets commented 13 years ago

Thank you! Good to know. You're right - it's unrelated - I still get the same error.

dhammika commented 13 years ago

Looks like AC_ERLANG_CHECK_LIB macro is missing, what's your autoconf version? Were you able to run it before?

ikolomiets commented 13 years ago

autoconf is version 2.63

I compile lots of software on my workstation and never had problems related to autoconf before.

ikolomiets commented 13 years ago

I got latest erlang.m4 from autoconf distro. This solved everything with exception of
./bootstrap that complains now about:

/usr/share/aclocal/erlang.m4:102: error: m4_copy: won't overwrite defined macro: AC_LANG_CONFTEST(Erlang) /usr/share/aclocal/erlang.m4:102: the top level autom4te: /usr/bin/m4 failed with exit status: 1 aclocal: /usr/bin/autom4te failed with exit status: 1 autoreconf: aclocal failed with exit status: 1

but it doesn't prevent ./configure & make from running successfully.

dhammika commented 13 years ago

erlzmq includes m4/erlang.m4, may be there's a conflict.

Fang-Li commented 8 years ago

I encountered the same problem, how can we solve