> > > Wow! Definitely a non-trivial patch. Alas, it does not work but the > errors are different: > > [compu...@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/liblu > a-5.1.so: > undefined reference to `sqrt' > /usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64/liblu > a-5.1.so: > undefined reference to `floor' > /usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64/liblu > a-5.1.so: > undefined reference to `ceil' > /usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64/liblu > a-5.1.so: > undefined reference to `cosh' > /usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64/liblu > a-5.1.so: > undefined reference to `tan' > /usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64/liblu > a-5.1.so: > undefined reference to `tanh' > /usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64/liblu > a-5.1.so: > undefined reference to `asin' > /usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64/liblu > a-5.1.so: > undefined reference to `log' > /usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64/liblu > a-5.1.so: > undefined reference to `atan' > /usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64/liblu > a-5.1.so: > undefined reference to `sinh' > /usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64/liblu > a-5.1.so: > undefined reference to `fmod' > /usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64/liblu > a-5.1.so: > undefined reference to `acos' > /usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64/liblu > a-5.1.so: > undefined reference to `exp' > /usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64/liblu > a-5.1.so: > undefined reference to `sin' > /usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64/liblu > a-5.1.so: > undefined reference to `pow' > /usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64/liblu > a-5.1.so: > undefined reference to `atan2' > /usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64/liblu > a-5.1.so: > undefined reference to `cos' > /usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64/liblu > a-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 > --
My guess is that when running the compile test ( This line: 'configure:42995: gcc -o conftest -g -O2 conftest.c -llua-5.1 >&5' ) it is necessary to add '-lm' in order to link in the standard math library. - Brad _______________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
