Can't compile on Debian wheezy with libyajl2
Posted: Mon Apr 16, 2012 11:19 pm
Trying to compile the most recent (as of the time of this post) snapshot from Mudlet's git branch.
I've compiled Mudlet before and have all the necessary libraries that I am aware of. The only items that have changed since my last attempt at compilation is the libyajl1 to libyajl2 in Wheezy. I cannot downgrade to libyajl1 because apparently, the package no longer 'exists' in the branch, and the Sid package is not available for x64 or x32. Strangeness all around, unless I'm doing something utterly wrong...
Following is the line that the compile gets hung up on, which leads me to believe the source of the issues is the libyajl change.
libyajl ver - libyajl-dev_2.0.4-2_amd64 and libyajl2_amd64
The reason I tried to recompile at this time, was due to it being while since last compile and because for some reason, the Mudlet triggers/alias/etc editor dialog does not refresh properly when clicking a new item. Instead, I have to click another item or in another input box on the editor before it refreshes properly. Suffice to say, this is highly annoying, and irritating method to perform everytime I want to change an item.
What should I do in order to get mudlet to compile properly with libyajl2?
I've compiled Mudlet before and have all the necessary libraries that I am aware of. The only items that have changed since my last attempt at compilation is the libyajl1 to libyajl2 in Wheezy. I cannot downgrade to libyajl1 because apparently, the package no longer 'exists' in the branch, and the Sid package is not available for x64 or x32. Strangeness all around, unless I'm doing something utterly wrong...
Following is the line that the compile gets hung up on, which leads me to believe the source of the issues is the libyajl change.
libyajl ver - libyajl-dev_2.0.4-2_amd64 and libyajl2_amd64
Code: Select all
g++ -c -m64 -pipe -g -O3 -Wno-deprecated -Wno-unused-parameter -D_REENTRANT -Wall -W -DQT_WEBKIT -DQT_PHONON_LIB -DQT_XML_LIB -DQT_OPENGL_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++-64 -I. -I/usr/include/qt4/QtUiTools -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtNetwork -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtOpenGL -I/usr/include/qt4/QtXml -I/usr/include/phonon -I/usr/include/qt4 -I. -I/usr/include/lua5.1 -Iirc/include -I/usr/include/qt4/phonon_compat -I/usr/X11R6/include -Itmp -I. -o tmp/TLuaInterpreter.o TLuaInterpreter.cpp
In file included from TTrigger.h:37:0,
from TLuaInterpreter.cpp:30:
Host.h:53:23: warning: extra tokens at end of #include directive [enabled by default]
In file included from Host.h:37:0,
from TTrigger.h:37,
from TLuaInterpreter.cpp:30:
TimerUnit.h: In constructor ‘TimerUnit::TimerUnit(Host*)’:
TimerUnit.h:81:27: warning: ‘TimerUnit::mMaxID’ will be initialized after [-Wreorder]
TimerUnit.h:65:27: warning: ‘int TimerUnit::statsActiveTriggers’ [-Wreorder]
TimerUnit.h:41:27: warning: when initialized here [-Wreorder]
In file included from TLuaInterpreter.cpp:44:0:
lua_yajl1.c: In function ‘int js_to_string(lua_State*)’:
lua_yajl1.c:79:38: error: cannot convert ‘unsigned int*’ to ‘size_t* {aka long unsigned int*}’ for argument ‘3’ to ‘yajl_gen_status yajl_gen_get_buf(yajl_gen, const unsigned char**, size_t*)’
lua_yajl1.c: At global scope:
lua_yajl1.c:220:1: error: invalid conversion from ‘int (*)(void*, const char*, unsigned int)’ to ‘int (*)(void*, const char*, size_t) {aka int (*)(void*, const char*, long unsigned int)}’ [-fpermissive]
lua_yajl1.c:220:1: error: invalid conversion from ‘int (*)(void*, const unsigned char*, unsigned int)’ to ‘int (*)(void*, const unsigned char*, size_t) {aka int (*)(void*, const unsigned char*, long unsigned int)}’ [-fpermissive]
lua_yajl1.c:220:1: error: invalid conversion from ‘int (*)(void*, const unsigned char*, unsigned int)’ to ‘int (*)(void*, const unsigned char*, size_t) {aka int (*)(void*, const unsigned char*, long unsigned int)}’ [-fpermissive]
lua_yajl1.c: In function ‘int js_to_value(lua_State*)’:
lua_yajl1.c:224:5: error: ‘yajl_parser_config’ was not declared in this scope
lua_yajl1.c:224:26: error: expected ‘;’ before ‘cfg’
lua_yajl1.c:235:13: error: ‘cfg’ was not declared in this scope
lua_yajl1.c:241:13: error: ‘cfg’ was not declared in this scope
lua_yajl1.c:246:50: error: ‘cfg’ was not declared in this scope
lua_yajl1.c: At global scope:
lua_yajl1.c:421:1: error: invalid conversion from ‘int (*)(void*, const char*, unsigned int)’ to ‘int (*)(void*, const char*, size_t) {aka int (*)(void*, const char*, long unsigned int)}’ [-fpermissive]
lua_yajl1.c:421:1: error: invalid conversion from ‘int (*)(void*, const unsigned char*, unsigned int)’ to ‘int (*)(void*, const unsigned char*, size_t) {aka int (*)(void*, const unsigned char*, long unsigned int)}’ [-fpermissive]
lua_yajl1.c:421:1: error: invalid conversion from ‘int (*)(void*, const unsigned char*, unsigned int)’ to ‘int (*)(void*, const unsigned char*, size_t) {aka int (*)(void*, const unsigned char*, long unsigned int)}’ [-fpermissive]
In file included from TLuaInterpreter.cpp:44:0:
lua_yajl1.c: In function ‘void js_parser_assert(lua_State*, yajl_status, yajl_handle_t**, const unsigned char*, unsigned int, int, const char*, int)’:
lua_yajl1.c:443:10: error: ‘yajl_status_insufficient_data’ was not declared in this scope
lua_yajl1.c: In function ‘int js_parser_parse(lua_State*)’:
lua_yajl1.c:464:53: error: ‘yajl_parse_complete’ was not declared in this scope
lua_yajl1.c: In function ‘int js_parser(lua_State*)’:
lua_yajl1.c:497:5: error: ‘yajl_parser_config’ was not declared in this scope
lua_yajl1.c:497:24: error: expected ‘;’ before ‘cfg’
lua_yajl1.c:503:9: error: ‘cfg’ was not declared in this scope
lua_yajl1.c:509:9: error: ‘cfg’ was not declared in this scope
lua_yajl1.c:515:49: error: ‘cfg’ was not declared in this scope
lua_yajl1.c: In function ‘int js_generator(lua_State*)’:
lua_yajl1.c:853:21: error: expected ‘;’ before ‘cfg’
lua_yajl1.c:853:38: warning: statement is a reference, not call, to function ‘yajl_gen_config’ [-Waddress]
lua_yajl1.c:853:38: warning: statement has no effect [-Wunused-value]
lua_yajl1.c:885:18: error: invalid conversion from ‘void (*)(void*, const char*, unsigned int)’ to ‘yajl_print_t {aka void (*)(void*, const char*, long unsigned int)}’ [-fpermissive]
lua_yajl1.c:894:9: error: ‘cfg’ was not declared in this scope
lua_yajl1.c:910:39: error: ‘cfg’ was not declared in this scope
lua_yajl1.c:910:53: error: ‘yajl_gen_alloc2’ was not declared in this scope
TLuaInterpreter.cpp: In static member function ‘static int TLuaInterpreter::setMainWindowSize(lua_State*)’:
TLuaInterpreter.cpp:2385:12: warning: unused variable ‘pHost’ [-Wunused-variable]
TLuaInterpreter.cpp: In static member function ‘static int TLuaInterpreter::hasSpecialExitLock(lua_State*)’:
TLuaInterpreter.cpp:3313:10: warning: unused variable ‘b’ [-Wunused-variable]
TLuaInterpreter.cpp: In static member function ‘static int TLuaInterpreter::setAppStyleSheet(lua_State*)’:
TLuaInterpreter.cpp:3841:1: warning: no return statement in function returning non-void [-Wreturn-type]
TLuaInterpreter.cpp: In static member function ‘static int TLuaInterpreter::tempButton(lua_State*)’:
TLuaInterpreter.cpp:5003:9: warning: unused variable ‘childID’ [-Wunused-variable]
TLuaInterpreter.cpp: In static member function ‘static int TLuaInterpreter::tempButtonToolbar(lua_State*)’:
TLuaInterpreter.cpp:5072:9: warning: unused variable ‘childID’ [-Wunused-variable]
TLuaInterpreter.cpp: In static member function ‘static int TLuaInterpreter::setMapVar(lua_State*)’:
TLuaInterpreter.cpp:6292:9: warning: unused variable ‘value’ [-Wunused-variable]
TLuaInterpreter.cpp: In static member function ‘static int TLuaInterpreter::sendIrc(lua_State*)’:
TLuaInterpreter.cpp:8333:59: warning: ‘bool Irc::Session::cmdMessage(const QString&, const QString&)’ is deprecated (declared at irc/include/ircsession.h:145) [-Wdeprecated-declarations]
TLuaInterpreter.cpp:8329:12: warning: unused variable ‘pHost’ [-Wunused-variable]
make: *** [tmp/TLuaInterpreter.o] Error 1
What should I do in order to get mudlet to compile properly with libyajl2?