[asterisk-users] Installing LUA
John A. Sullivan III
jsullivan at opensourcedevel.com
Wed Jun 17 11:12:17 CDT 2009
On Wed, 2009-06-17 at 11:42 -0400, Sean Bright wrote:
> John A. Sullivan III wrote:
> > Argh! alas it did not fix it:
>
> Looks like a problem with how the various distros are packaging and installing
> it. I've created a patch to configure that should find it on your system, give
> it a whirl:
>
> $ cd path/to/asterisk-src/
> $ wget -O - "http://pastebin.ca/raw/1463560" | patch -p0
> $ ./configure
> $ make menuselect
>
> Let me know if that works for you.
>
Wow! Definitely a non-trivial patch. Alas, it does not work but the
errors are different:
[compuser at pbx01 asterisk-1.6.1.1]$ grep -i lua config.log
configure:42697: checking for luaL_newstate in -llua5.1
configure:42732: gcc -o conftest -g -O2 conftest.c -llua5.1 >&5
/usr/bin/ld: cannot find -llua5.1
| char luaL_newstate ();
| return luaL_newstate ();
configure:42960: checking for luaL_newstate in -llua-5.1
configure:42995: gcc -o conftest -g -O2 conftest.c -llua-5.1 >&5
/usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64/liblua-5.1.so:
undefined reference to `sqrt'
/usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64/liblua-5.1.so:
undefined reference to `floor'
/usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64/liblua-5.1.so:
undefined reference to `ceil'
/usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64/liblua-5.1.so:
undefined reference to `cosh'
/usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64/liblua-5.1.so:
undefined reference to `tan'
/usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64/liblua-5.1.so:
undefined reference to `tanh'
/usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64/liblua-5.1.so:
undefined reference to `asin'
/usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64/liblua-5.1.so:
undefined reference to `log'
/usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64/liblua-5.1.so:
undefined reference to `atan'
/usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64/liblua-5.1.so:
undefined reference to `sinh'
/usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64/liblua-5.1.so:
undefined reference to `fmod'
/usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64/liblua-5.1.so:
undefined reference to `acos'
/usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64/liblua-5.1.so:
undefined reference to `exp'
/usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64/liblua-5.1.so:
undefined reference to `sin'
/usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64/liblua-5.1.so:
undefined reference to `pow'
/usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64/liblua-5.1.so:
undefined reference to `atan2'
/usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64/liblua-5.1.so:
undefined reference to `cos'
/usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64/liblua-5.1.so:
undefined reference to `log10'
| char luaL_newstate ();
| return luaL_newstate ();
ac_cv_lib_lua5_1_luaL_newstate=no
ac_cv_lib_lua_5_1_luaL_newstate=no
LUA_DIR=''
LUA_INCLUDE=''
LUA_LIB=''
PBX_LUA='0'
I'm guessing there are differences in the API between what CentOS has
installed (well actually the testing RPM I found to upgrade to 5.1 from
5.0) and what * expects. Given that, I would imagine it is not safe to
manually edit makeopts.
Thoughts? Comments? Insults? Thanks - John
--
John A. Sullivan III
Open Source Development Corporation
+1 207-985-7880
jsullivan at opensourcedevel.com
http://www.spiritualoutreach.com
Making Christianity intelligible to secular society
More information about the asterisk-users
mailing list