You are not logged in.

#1 2012-12-13 08:15:09

khelar
Member
Registered: 2012-12-02
Posts: 7

[Solved] toluapp fails to compile

Hey, was trying to install conky-lua, and the toluapp dependency does not compile.  Here's what I get from makepkg:

==> Starting build()...
scons: Reading SConscript files ...

scons: warning: The Options class is deprecated; use the Variables class instead.
File "/tmp/pacaurtmp-ben/toluapp/src/tolua++-1.0.93/SConstruct", line 19, in <module>
('********* tolua is ', 'bin/tolua++_bootstrap')

scons: warning: The env.Copy() method is deprecated; use the env.Clone() method instead.
File "/tmp/pacaurtmp-ben/toluapp/src/tolua++-1.0.93/src/tests/SCsub", line 2, in <module>
scons: done reading SConscript files.
scons: Building targets ...
gcc -o src/bin/tolua.o -c -O2 -ansi -Wall -fPIC -Iinclude src/bin/tolua.c
src/bin/tolua.c: In function 'add_extra':
src/bin/tolua.c:70:2: warning: implicit declaration of function 'luaL_getn' [-Wimplicit-function-declaration]
gcc -o src/bin/toluabind_default.o -c -O2 -ansi -Wall -fPIC -Iinclude src/bin/toluabind_default.c
gcc -o src/lib/tolua_event.o -c -O2 -ansi -Wall -fPIC -Iinclude src/lib/tolua_event.c
src/lib/tolua_event.c: In function 'storeatubox':
src/lib/tolua_event.c:26:3: warning: implicit declaration of function 'lua_getfenv' [-Wimplicit-function-declaration]
src/lib/tolua_event.c:31:4: warning: implicit declaration of function 'lua_setfenv' [-Wimplicit-function-declaration]
gcc -o src/lib/tolua_is.o -c -O2 -ansi -Wall -fPIC -Iinclude src/lib/tolua_is.c
gcc -o src/lib/tolua_map.o -c -O2 -ansi -Wall -fPIC -Iinclude src/lib/tolua_map.c
src/lib/tolua_map.c: In function 'tolua_bnd_setpeer':
src/lib/tolua_map.c:266:2: warning: implicit declaration of function 'lua_setfenv' [-Wimplicit-function-declaration]
src/lib/tolua_map.c: In function 'tolua_bnd_getpeer':
src/lib/tolua_map.c:274:2: warning: implicit declaration of function 'lua_getfenv' [-Wimplicit-function-declaration]
src/lib/tolua_map.c: In function 'tolua_usertype':
src/lib/tolua_map.c:398:2: warning: passing argument 2 of 'tolua_newmetatable' discards 'const' qualifier from pointer target type [enabled by default]
src/lib/tolua_map.c:28:12: note: expected 'char *' but argument is of type 'const char *'
src/lib/tolua_map.c: In function 'tolua_beginmodule':
src/lib/tolua_map.c:414:19: error: 'LUA_GLOBALSINDEX' undeclared (first use in this function)
src/lib/tolua_map.c:414:19: note: each undeclared identifier is reported only once for each function it appears in
src/lib/tolua_map.c: In function 'tolua_module':
src/lib/tolua_map.c:448:19: error: 'LUA_GLOBALSINDEX' undeclared (first use in this function)
src/lib/tolua_map.c: In function 'tolua_dobuffer':
src/lib/tolua_map.c:699:36: warning: value computed is not used [-Wunused-value]
scons: *** [src/lib/tolua_map.o] Error 1
scons: building terminated because of errors.
==> ERROR: A failure occurred in build().
    Aborting...

Now, there are a lot of warnings, which are annoying, but ok.  It looks like the error is that some variable LUA_GLOBALSINDEX does not exist.  What should I do about this?

I'm on Arch 64-bit, by the way.

Last edited by khelar (2012-12-13 19:36:56)

Offline

#2 2012-12-13 08:35:24

Scimmia
Bug Wrangler
Registered: 2012-09-01
Posts: 5,090

Re: [Solved] toluapp fails to compile

First, you should post this in the comments of the package so the maintainer knows about it.

If I had to guess at the problem, I would guess it's not compatible with lua5.2, it hasn't been updated in nearly 4 years. The dep should be lua51 and a few changes are needed in the config_linux.py. I'll post them in the comments for the package.

Last edited by Scimmia (2012-12-13 08:36:14)

Online

#3 2012-12-13 19:36:33

khelar
Member
Registered: 2012-12-02
Posts: 7

Re: [Solved] toluapp fails to compile

Thanks, your suggestion works.

Offline

#4 2012-12-26 20:45:51

tabun
Member
Registered: 2012-12-26
Posts: 5

Re: [Solved] toluapp fails to compile

hmm...
I can install toluapp by following comments from frigaut in here .
but I can not install conky-lua.. sad

[tabun@devilzc0de conky]$ makepkg -i
==> Making package: conky-lua 1.9.0-2 (Thu Dec 27 17:02:25 WIT 2012)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Missing Dependencies:
  -> toluapp
==> ERROR: Could not resolve all dependencies.

when I feel my toluapp already installed and there are no errors in the installation peroses.. hmm
can you help me bro..??

Offline

#5 2012-12-26 20:55:30

Scimmia
Bug Wrangler
Registered: 2012-09-01
Posts: 5,090

Re: [Solved] toluapp fails to compile

tabun, that means toluapp didn't install. Try again.

Online

#6 2012-12-26 21:11:05

tabun
Member
Registered: 2012-12-26
Posts: 5

Re: [Solved] toluapp fails to compile

Scimmia wrote:

tabun, that means toluapp didn't install. Try again.

my config_linux.py
folowing your comment wink

CCFLAGS = ['-I/usr/include/lua5.1', '-O2', '-ansi', '-Wall', '-fPIC']
LIBS = ['lua5.1', 'dl', 'm'] 

I try..
$sudo scons all

scons: Reading SConscript files ...

scons: warning: The Options class is deprecated; use the Variables class instead.
File "/home/tabun/conky/tolu/tolua++-1.0.93/SConstruct", line 19, in <module>
('********* tolua is ', 'bin/tolua++_bootstrap')

scons: warning: The env.Copy() method is deprecated; use the env.Clone() method instead.
File "/home/tabun/conky/tolu/tolua++-1.0.93/src/tests/SCsub", line 2, in <module>
scons: done reading SConscript files.
scons: Building targets ...
gcc -o bin/tolua++_bootstrap src/bin/tolua.o src/bin/toluabind_default.o lib/libtolua++_static.a -Llib -llua5.1 -ldl -lm
gcc -o src/bin/toluabind.o -c -I/usr/include/lua5.1 -O2 -ansi -Wall -fPIC -Iinclude src/bin/toluabind.c
scons: `all' is up to date.
scons: done building targets.

$sudo scons install

scons: Reading SConscript files ...

scons: warning: The Options class is deprecated; use the Variables class instead.
File "/home/tabun/conky/tolu/tolua++-1.0.93/SConstruct", line 19, in <module>
('********* tolua is ', 'bin/tolua++_bootstrap')

scons: warning: The env.Copy() method is deprecated; use the env.Clone() method instead.
File "/home/tabun/conky/tolu/tolua++-1.0.93/src/tests/SCsub", line 2, in <module>
scons: done reading SConscript files.
scons: Building targets ...
gcc -o bin/tolua++_bootstrap src/bin/tolua.o src/bin/toluabind_default.o lib/libtolua++_static.a -Llib -llua5.1 -ldl -lm
gcc -o src/bin/toluabind.o -c -I/usr/include/lua5.1 -O2 -ansi -Wall -fPIC -Iinclude src/bin/toluabind.c
scons: `all' is up to date.
scons: done building targets.
[tabun@devilzc0de tolua++-1.0.93]$ sudo scons install
scons: Reading SConscript files ...

scons: warning: The Options class is deprecated; use the Variables class instead.
File "/home/tabun/conky/tolu/tolua++-1.0.93/SConstruct", line 19, in <module>
('********* tolua is ', 'bin/tolua++_bootstrap')

scons: warning: The env.Copy() method is deprecated; use the env.Clone() method instead.
File "/home/tabun/conky/tolu/tolua++-1.0.93/src/tests/SCsub", line 2, in <module>
scons: done reading SConscript files.
scons: Building targets ...
gcc -o src/bin/toluabind.o -c -I/usr/include/lua5.1 -O2 -ansi -Wall -fPIC -Iinclude src/bin/toluabind.c
scons: `install' is up to date.
scons: done building targets.

there seems to be something wrong with me hmm
may have been affected.. :?

Last edited by tabun (2012-12-26 21:17:10)

Offline

#7 2012-12-27 05:01:54

Scimmia
Bug Wrangler
Registered: 2012-09-01
Posts: 5,090

Re: [Solved] toluapp fails to compile

You installed it manually instead of using the PKGBUILD, then. Pacman doesn't know it's installed, so it's complaining. Just like you're doing with conky-lua, use makepkg -i

Online

#8 2012-12-27 18:03:23

tabun
Member
Registered: 2012-12-26
Posts: 5

Re: [Solved] toluapp fails to compile

Scimmia wrote:

You installed it manually instead of using the PKGBUILD, then. Pacman doesn't know it's installed, so it's complaining. Just like you're doing with conky-lua, use makepkg -i

Thank You Very Much Bro Scimmia..
I just know can use makepkg-i in PKGBUILD after extract tolua++-1.0.93.tar.bz2.. big_smile
now, I can use conky-lua.. wink

Offline

Board footer

Powered by FluxBB