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 1.218.1.5 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
removed?

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

Adding the following patch fixes it:


$NetBSD$

--- 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.
 
+#ifndef LUA_GLOBALSINDEX
+#define LUA_GLOBALSINDEX LUAI_FIRSTPSEUDOIDX
+#endif
+
 struct
 Lua
 {


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/luaext_parse_basic_io.cc 
&&\
mv -f $depbase.Tpo $depbase.Po
src/luaext_parse_basic_io.cc: In member function 'int 
luaext::extfn_parse_basic_io_::call(lua_State*)':
src/luaext_parse_basic_io.cc:26:63: error: 'lua_strlen' was not declared in 
this scope
gmake[2]: *** [src/luaext_parse_basic_io.o] Error 1
gmake[2]: Leaving directory 
`/pkg_comp/obj/pkgsrc/devel/monotone/default/monotone-1.0'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory 
`/pkg_comp/obj/pkgsrc/devel/monotone/default/monotone-1.0'
gmake: *** [all] Error 2
*** Error code 2

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

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


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

Attachment: pgp345SpKce3d.pgp
Description: PGP signature



Home | Main Index | Thread Index | Old Index