On Sat, 2009-10-17 at 11:23 +0200, Mikael Magnusson wrote: > On Thu, 2009-08-13 at 12:36 +0200, Fredrik Thulin wrote: > > On Thu, 2009-08-13 at 15:53 +0700, Maxim Treskin wrote: > > > Hello, folk > > > > > > Is there any reasons to hard specification of Erlang OTP release > > > version and OTP libraries version in .rel files? > > > Any time when I rebuild YXA, I must fix configure.ac and all .rel > > > files for success compilation. It is not ok. > > > > Hi > > > > Yes, there is a reason. See the mailing list archives to learn about it. > > > > I noticed there is a patch in debians pkg-voip to make checking Erlang > > version optional. I would gladly accept such a patch, if the default was > > to keep the current behavior. > > > > /Fredrik > > I have posted my patches (also in debian pkg-voip) which auto-detects > Erlang ERTS and library versions. They also include the patch from Jakob > Schlyter which makes it possible to skip Erlang/OTP version check with > --disable-erlang-version-check. Refer to the following emails: > > * [PATCH1/2] Autodetect Erlang ERTS version and OTP library version > numbers > * [PATCH2/2] Use auto-detected version numbers
Thanks for the patches. Unfortunately, I have two problems with them : 1) The m4-files are GNU licensed, YXA is BSD licensed. I'm quite ignorant regarding OSS licensing, and have to be convinced (not necessarily by you) that it is not a bad idea to include these files. 2) It doesn't work out of the (my) box. I get errors which I've tried to sort out but m4/autoconf makes my head spin. Any help would be appreciated. YXA trunk, clean check out. Only patch 1/2 applied (also tried with both). This is on Ubuntu Jaunty, which has autoconf 2.63-2ubuntu1. $ ../yxa-trunk/configure ... checking for erlc... /usr/bin/erlc checking for erl... /usr/bin/erl checking for Erlang/OTP library installation base directory... ${exec_prefix}/lib/erlang/lib checking for erl... /usr/bin/erl checking for Erlang/OTP ERTS version... configure: error: in `/home/ft/tmp/build': configure: error: test Erlang program execution failed See `config.log' for more details. Relevant part of config.log : configure:3198: checking for Erlang/OTP ERTS version configure:3233: $ERLC $ERLCFLAGS -b beam conftest.$ac_ext >&5 ; echo "#!/bin/sh" > conftest$ac_exeext ; AS_ECHO(["\"$ERL \" -run conftest start -run init stop -noshell"]) >> conftest $ac_exeext ; chmod +x conftest$ac_exeext ../yxa-trunk/configure: eval: line 3235: syntax error near unexpected token `["\"$ERL\" -run conftest start -run init st op -noshell"]' ../yxa-trunk/configure: eval: line 3235: `$ERLC $ERLCFLAGS -b beam conftest.$ac_ext >&5 ; echo "#!/bin/sh" > conftest$ac _exeext ; AS_ECHO(["\"$ERL\" -run conftest start -run init stop -noshell"]) >> conftest$ac_exeext ; chmod +x conftest$ac _exeext' configure:3237: $? = 1 configure: program exited with status 1 configure: failed program was: | -module(conftest). | -export([start/0]). | | start() -> | Version = erlang:system_info(version), | file:write_file("conftest.out", Version), | ReturnValue = 0, | halt(ReturnValue) | . | /Fredrik _______________________________________________ Yxa-devel mailing list Yxa-devel@lists.su.se https://lists.su.se/mailman/listinfo/yxa-devel