Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

./configure fails on SUSE Linux 11.2 #20

Open
ikolomiets opened this issue Feb 22, 2011 · 7 comments
Open

./configure fails on SUSE Linux 11.2 #20

ikolomiets opened this issue Feb 22, 2011 · 7 comments

Comments

@ikolomiets
Copy link

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
Copy link

csrl commented Feb 22, 2011

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

@ikolomiets
Copy link
Author

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

@dhammika
Copy link

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

@ikolomiets
Copy link
Author

autoconf is version 2.63

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

@ikolomiets
Copy link
Author

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
Copy link

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

@Fang-Li
Copy link

Fang-Li commented May 28, 2016

I encountered the same problem, how can we solve

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants