You are not logged in.

#1 2010-07-04 15:15:21

Gallaecio
Member
From: Vigo (Spain)
Registered: 2009-04-10
Posts: 50
Website

LUA not recognized when makepkg runs `./configure`, but work if I do

I'm working in a package for megaglest, a fork of Glkest which has recently released it's 3.3.5 version. I could take advantage of the current Glest PKGBUILD to get easily the dependencies. I've already build the game myself (and it works). But for some reason, the "./configure" step doesn't work when makepkg is the one running it.


When using makepkg, I get this:

[chaves@afonsox megaglest-source-3.3.5]$ grep -i lua config.log
configure:5272: checking for lua.hpp in /usr/local/include/lua5.1
configure:5332: checking for lua.hpp in /usr/local/include
configure:5272: checking for lua.hpp in /usr/include/lua5.1
configure:5332: checking for lua.hpp in /usr/include
configure:5341: checking for luaL_newstate in -llua
configure:5366: g++ -o conftest -march=x86-64 -mtune=generic -O2 -pipe  -L/usr/lib -Wl,--hash-style=gnu -Wl,--as-needed  -lm conftest.cpp -llua   >&5
/usr/lib/liblua.so: undefined reference to `sqrt'
/usr/lib/liblua.so: undefined reference to `floor'
/usr/lib/liblua.so: undefined reference to `ceil'
/usr/lib/liblua.so: undefined reference to `cosh'
/usr/lib/liblua.so: undefined reference to `tan'
/usr/lib/liblua.so: undefined reference to `tanh'
/usr/lib/liblua.so: undefined reference to `asin'
/usr/lib/liblua.so: undefined reference to `log'
/usr/lib/liblua.so: undefined reference to `atan'
/usr/lib/liblua.so: undefined reference to `sinh'
/usr/lib/liblua.so: undefined reference to `fmod'
/usr/lib/liblua.so: undefined reference to `acos'
/usr/lib/liblua.so: undefined reference to `exp'
/usr/lib/liblua.so: undefined reference to `sin'
/usr/lib/liblua.so: undefined reference to `pow'
/usr/lib/liblua.so: undefined reference to `atan2'
/usr/lib/liblua.so: undefined reference to `cos'
/usr/lib/liblua.so: undefined reference to `log10'
| char luaL_newstate ();
| return luaL_newstate ();
configure:5405: error: Please install lua 5.1
ac_cv_lib_lua_luaL_newstate=no
LUA_AVAILABLE='no'
LUA_CFLAGS=''
LUA_LIBS=''

But if I "./configure" it myself, I get this isntead:

[chaves@afonsox megaglest-source-3.3.5]$ grep -i lua config.log
configure:5272: checking for lua.hpp in /usr/local/include/lua5.1
configure:5332: checking for lua.hpp in /usr/local/include
configure:5272: checking for lua.hpp in /usr/include/lua5.1
configure:5332: checking for lua.hpp in /usr/include
configure:5341: checking for luaL_newstate in -llua
configure:5366: g++ -o conftest    -L/usr/lib   -lm conftest.cpp -llua   >&5
ac_cv_lib_lua_luaL_newstate=yes
LUA_AVAILABLE='yes'
LUA_CFLAGS='-I/usr/include'
LUA_LIBS='-L/usr/lib -llua'

Is there a variable or something else that changes when it is makepkg who runs a command, and can cause this issue? I obviously see those extra arguments, but I don't know how to avoid then, neither why they are there.

Last edited by Gallaecio (2010-07-04 15:16:44)

Offline

#2 2010-07-04 15:19:06

Gallaecio
Member
From: Vigo (Spain)
Registered: 2009-04-10
Posts: 50
Website

Re: LUA not recognized when makepkg runs `./configure`, but work if I do

I have just find out about the "PKGBUILDs & ABS Support" subforum. Sorry for posting here. Can the topic be moved?

Offline

Board footer

Powered by FluxBB