pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: devel/monotone build fails

On Fri 04 Oct 2013 at 12:29:13 +0200, Rhialto wrote:
> src/lua.hh:41:23: error: 'LUA_GLOBALSINDEX' was not declared in this scope

which #includes "lua.h" via <lua.hpp>. Now the base system version (Id:
lua.h,v 2008/08/06 13:30:12 roberto Exp) of that does indeed
#define LUA_GLOBALSINDEX, but instead the pkgsrc version ($Id: lua.h,v
1.285 2013/03/15 13:04:22 roberto Exp $) is used. And it does not.

Seemingly the pkgsrc version is newer, based on the (original) revision
number. But why would monotone then depend on something that was

An older pkgsrc version has version of <lua.h>, with the

Adding the following patch fixes it:


--- src/lua.hh.orig     2011-03-26 06:40:59.000000000 +0000
+++ src/lua.hh
@@ -22,6 +22,10 @@ struct lua_State;
 // transaction are ignored. it cleans the lua stack up when it is
 // destructed, so no need to pop values when you're done.

That gets us to the next error (which is for the next installment):

depbase=`echo src/luaext_parse_basic_io.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
c++  -I.   -I/usr/pkg/include  -I/usr/pkg/include  -I/usr/pkg/include   
-I/usr/pkg/include      -I/usr/include -I/usr/pkg/include  -O2 -I/usr/include 
-I/usr/pkg/include -Wall -W -Wno-unused -MT src/luaext_parse_basic_io.o -MD -MP 
-MF $depbase.Tpo -c -o src/luaext_parse_basic_io.o src/ 
mv -f $depbase.Tpo $depbase.Po
src/ In member function 'int 
src/ error: 'lua_strlen' was not declared in 
this scope
gmake[2]: *** [src/luaext_parse_basic_io.o] Error 1
gmake[2]: Leaving directory 
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory 
gmake: *** [all] Error 2
*** Error code 2

make: stopped in /usr/pkgsrc/devel/monotone
*** Error code 1

make: stopped in /usr/pkgsrc/devel/monotone

___ Olaf 'Rhialto' Seibert  -- The Doctor: No, 'eureka' is Greek for
\X/ rhialto/at/    -- 'this bath is too hot.'

Attachment: pgp345SpKce3d.pgp
Description: PGP signature

Home | Main Index | Thread Index | Old Index