Igor Galić created TS-1857:
------------------------------
Summary: On CentOS Lua Plugin will built when
--enable-experimental whether Lua is found or not
Key: TS-1857
URL: https://issues.apache.org/jira/browse/TS-1857
Project: Traffic Server
Issue Type: Bug
Reporter: Igor Galić
reference: http://ats.boot.org:8080/job/master_centos_5_x86/19/consoleText
{noformat}
checking for readline/history.h... yes
checking whether to enable Linux LuaJIT support... checking for pkg-config...
/usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for luajit... no
checking for pow in -lm... no
checking for sqrt in -lm... no
checking lua.h usability... no
checking lua.h presence... no
checking for lua.h... no
checking for lua.h in /usr/local/include/lua5.1... no
checking for lua.h in /usr/local/include/lua51... no
checking for lua.h in /usr/local/include... no
checking for lua.h in /usr/include/lua5.1... no
checking for lua.h in /usr/include/lua51... no
checking for lua.h in /usr/include... no
configure: WARNING: *** Lua 5.1 library not found.
checking whether to enable Lua support...
checking sys/epoll.h usability... yes
checking sys/epoll.h presence... yes
checking for sys/epoll.h... yes
{noformat}
I really wonder what the result was of "whether to enable Lua support"
{noformat}
Making all in experimental
make[2]: Entering directory
`/var/jenkins/workspace/master_centos_5_x86/plugins/experimental'
Making all in lua
make[3]: Entering directory
`/var/jenkins/workspace/master_centos_5_x86/plugins/experimental/lua'
if /bin/sh ../../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I.
-I. -I../../../lib/ts -D__STDC_LIMIT_MACROS=1 -D__STDC_FORMAT_MACROS=1
-I../../../proxy/api -I../../../proxy/api -I../../../lib/ts -I../../../lib/ts
-D_LARGEFILE64_SOURCE=1 -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -D_REENTRANT
-Dlinux -Wunused-parameter -march=i586 -g -pipe -Wall -Werror -O3
-feliminate-unused-debug-symbols -fno-strict-aliasing -Wno-invalid-offsetof -MT
lua_la-remap.lo -MD -MP -MF ".deps/lua_la-remap.Tpo" -c -o lua_la-remap.lo
`test -f 'remap.cc' || echo './'`remap.cc; \
then mv -f ".deps/lua_la-remap.Tpo" ".deps/lua_la-remap.Plo"; else rm
-f ".deps/lua_la-remap.Tpo"; exit 1; fi
if /bin/sh ../../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I.
-I. -I../../../lib/ts -D__STDC_LIMIT_MACROS=1 -D__STDC_FORMAT_MACROS=1
-I../../../proxy/api -I../../../proxy/api -I../../../lib/ts -I../../../lib/ts
-D_LARGEFILE64_SOURCE=1 -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -D_REENTRANT
-Dlinux -Wunused-parameter -march=i586 -g -pipe -Wall -Werror -O3
-feliminate-unused-debug-symbols -fno-strict-aliasing -Wno-invalid-offsetof -MT
lua_la-plugin.lo -MD -MP -MF ".deps/lua_la-plugin.Tpo" -c -o lua_la-plugin.lo
`test -f 'plugin.cc' || echo './'`plugin.cc; \
then mv -f ".deps/lua_la-plugin.Tpo" ".deps/lua_la-plugin.Plo"; else rm
-f ".deps/lua_la-plugin.Tpo"; exit 1; fi
mkdir .libs
g++ -DHAVE_CONFIG_H -I. -I. -I../../../lib/ts -D__STDC_LIMIT_MACROS=1
-D__STDC_FORMAT_MACROS=1 -I../../../proxy/api -I../../../proxy/api
-I../../../lib/ts -I../../../lib/ts -D_LARGEFILE64_SOURCE=1
-D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -D_REENTRANT -Dlinux -Wunused-parameter
-march=i586 -g -pipe -Wall -Werror -O3 -feliminate-unused-debug-symbols
-fno-strict-aliasing -Wno-invalid-offsetof -MT lua_la-plugin.lo -MD -MP -MF
.deps/lua_la-plugin.Tpo -c plugin.cc -fPIC -DPIC -o .libs/lua_la-plugin.o
g++ -DHAVE_CONFIG_H -I. -I. -I../../../lib/ts -D__STDC_LIMIT_MACROS=1
-D__STDC_FORMAT_MACROS=1 -I../../../proxy/api -I../../../proxy/api
-I../../../lib/ts -I../../../lib/ts -D_LARGEFILE64_SOURCE=1
-D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -D_REENTRANT -Dlinux -Wunused-parameter
-march=i586 -g -pipe -Wall -Werror -O3 -feliminate-unused-debug-symbols
-fno-strict-aliasing -Wno-invalid-offsetof -MT lua_la-remap.lo -MD -MP -MF
.deps/lua_la-remap.Tpo -c remap.cc -fPIC -DPIC -o .libs/lua_la-remap.o
In file included from plugin.cc:20:
lutil.h:22:19: error: lua.hpp: No such file or directory
In file included from remap.cc:23:
lapi.h:22:19: error: lua.hpp: No such file or directory
lapi.h:37: error: expected ';' before '(' token
lapi.h:38: error: expected ';' before '(' token
lapi.h:42: error: 'lua_State' was not declared in this scope
lapi.h:42: error: 'lua' was not declared in this scope
lapi.h:44: error: 'lua_State' was not declared in this scope
lapi.h:44: error: 'lua' was not declared in this scope
lapi.h:46: error: 'lua_State' was not declared in this scope
lapi.h:46: error: 'lua' was not declared in this scope
lapi.h:49: error: 'lua_State' was not declared in this scope
lapi.h:49: error: 'lua' was not declared in this scope
lapi.h:49: error: expected primary-expression before 'buffer'
lapi.h:49: error: expected primary-expression before 'url'
lapi.h:49: error: initializer expression list treated as compound expression
lapi.h:53: error: 'lua_State' was not declared in this scope
lapi.h:53: error: 'lua' was not declared in this scope
lapi.h:53: error: expected primary-expression before 'txn'
lapi.h:53: error: expected primary-expression before '*' token
lapi.h:53: error: 'rri' was not declared in this scope
lapi.h:53: error: initializer expression list treated as compound expression
lapi.h:57: error: 'lua_State' was not declared in this scope
lapi.h:57: error: 'lua' was not declared in this scope
lapi.h:57: error: expected primary-expression before 'txn'
lapi.h:57: error: initializer expression list treated as compound expression
lapi.h:61: error: 'lua_State' was not declared in this scope
lapi.h:61: error: 'lua' was not declared in this scope
lapi.h:61: error: expected primary-expression before 'ssn'
lapi.h:61: error: initializer expression list treated as compound expression
lutil.h:46: error: variable or field 'LuaDebugStack' declared void
lutil.h:46: error: 'lua_State' was not declared in this scope
lutil.h:46: error: expected primary-expression before ')' token
lutil.h:50: error: 'ltypeof' declared as an 'inline' variable
lutil.h:50: error: 'lua_State' was not declared in this scope
lutil.h:50: error: 'lua' was not declared in this scope
lutil.h:50: error: expected primary-expression before 'int'
lutil.h:50: error: initializer expression list treated as compound expression
lutil.h:50: error: expected ',' or ';' before '{' token
lutil.h:67: error: template declaration of 'T* LuaNewUserData'
lutil.h:67: error: 'lua_State' was not declared in this scope
lutil.h:67: error: 'lua' was not declared in this scope
lutil.h:72: error: variable or field 'LuaPushMetatable' declared void
lutil.h:72: error: 'lua_State' was not declared in this scope
lutil.h:72: error: 'lua' was not declared in this scope
lutil.h:72: error: expected primary-expression before 'const'
lutil.h:72: error: expected primary-expression before 'const'
lutil.h:72: error: initializer expression list treated as compound expression
lutil.h:73: error: variable or field 'LuaLoadLibraries' declared void
lutil.h:73: error: 'lua_State' was not declared in this scope
lutil.h:73: error: 'lua' was not declared in this scope
lutil.h:74: error: variable or field 'LuaRegisterLibrary' declared void
lutil.h:74: error: 'lua_State' was not declared in this scope
lutil.h:74: error: 'lua' was not declared in this scope
lutil.h:74: error: expected primary-expression before 'const'
lutil.h:74: error: 'lua_CFunction' was not declared in this scope
lutil.h:74: error: initializer expression list treated as compound expression
lutil.h:77: error: variable or field 'LuaSetConstantField' declared void
lutil.h:77: error: 'lua_State' was not declared in this scope
lutil.h:77: error: 'lua' was not declared in this scope
lutil.h:77: error: expected primary-expression before 'const'
lutil.h:77: error: expected primary-expression before 'int'
lutil.h:77: error: initializer expression list treated as compound expression
lutil.h:78: error: variable or field 'LuaSetConstantField' declared void
lutil.h:78: error: redefinition of 'int LuaSetConstantField'
lutil.h:77: error: 'int LuaSetConstantField' previously defined here
lutil.h:78: error: 'lua_State' was not declared in this scope
lutil.h:78: error: 'lua' was not declared in this scope
lutil.h:78: error: expected primary-expression before 'const'
lutil.h:78: error: expected primary-expression before 'const'
lutil.h:81: error: expected constructor, destructor, or type conversion before
'*' token
lutil.h:82: error: expected constructor, destructor, or type conversion before
'*' token
state.h:74: error: ISO C++ forbids declaration of 'lua_State' with no type
state.h:74: error: expected ';' before '*' token
state.h:123: error: 'std::pair<LuaThreadState*, LuaPluginInstance*>
LuaThreadStateAcquire' redeclared as different kind of symbol
state.h:122: error: previous declaration of 'std::pair<LuaThreadState*,
LuaPluginInstance*> LuaThreadStateAcquire(instanceid_t)'
state.h:123: error: 'lua_State' was not declared in this scope
state.h:123: error: expected primary-expression before ')' token
state.h:133: error: expected `)' before '*' token
remap.cc:32: error: 'lua_State' was not declared in this scope
remap.cc:32: error: 'lua' was not declared in this scope
remap.cc:32: error: expected primary-expression before 'txn'
remap.cc:32: error: expected primary-expression before '*' token
remap.cc:32: error: 'rri' was not declared in this scope
remap.cc:32: error: initializer expression list treated as compound expression
remap.cc:33: error: expected ',' or ';' before '{' token
cc1plus: warnings being treated as errors
lutil.h:50: warning: 'ltypeof' defined but not used
remap.cc:29: warning: 'PluginInstanceLock' defined but not used
remap.cc:32: warning: 'LuaPluginRemap' defined but not used
make[3]: *** [lua_la-remap.lo] Error 1
make[3]: *** Waiting for unfinished jobs....
lutil.h:46: error: variable or field 'LuaDebugStack' declared void
lutil.h:46: error: 'lua_State' was not declared in this scope
lutil.h:46: error: expected primary-expression before ')' token
lutil.h:50: error: 'ltypeof' declared as an 'inline' variable
lutil.h:50: error: 'lua_State' was not declared in this scope
lutil.h:50: error: 'lua' was not declared in this scope
lutil.h:50: error: expected primary-expression before 'int'
lutil.h:50: error: initializer expression list treated as compound expression
lutil.h:50: error: expected ',' or ';' before '{' token
lutil.h:67: error: template declaration of 'T* LuaNewUserData'
lutil.h:67: error: 'lua_State' was not declared in this scope
lutil.h:67: error: 'lua' was not declared in this scope
lutil.h:72: error: variable or field 'LuaPushMetatable' declared void
lutil.h:72: error: 'lua_State' was not declared in this scope
lutil.h:72: error: 'lua' was not declared in this scope
lutil.h:72: error: expected primary-expression before 'const'
lutil.h:72: error: expected primary-expression before 'const'
lutil.h:72: error: initializer expression list treated as compound expression
lutil.h:73: error: variable or field 'LuaLoadLibraries' declared void
lutil.h:73: error: 'lua_State' was not declared in this scope
lutil.h:73: error: 'lua' was not declared in this scope
lutil.h:74: error: variable or field 'LuaRegisterLibrary' declared void
lutil.h:74: error: 'lua_State' was not declared in this scope
lutil.h:74: error: 'lua' was not declared in this scope
lutil.h:74: error: expected primary-expression before 'const'
lutil.h:74: error: 'lua_CFunction' was not declared in this scope
lutil.h:74: error: initializer expression list treated as compound expression
lutil.h:77: error: variable or field 'LuaSetConstantField' declared void
lutil.h:77: error: 'lua_State' was not declared in this scope
lutil.h:77: error: 'lua' was not declared in this scope
lutil.h:77: error: expected primary-expression before 'const'
lutil.h:77: error: expected primary-expression before 'int'
lutil.h:77: error: initializer expression list treated as compound expression
lutil.h:78: error: variable or field 'LuaSetConstantField' declared void
lutil.h:78: error: redefinition of 'int LuaSetConstantField'
lutil.h:77: error: 'int LuaSetConstantField' previously defined here
lutil.h:78: error: 'lua_State' was not declared in this scope
lutil.h:78: error: 'lua' was not declared in this scope
lutil.h:78: error: expected primary-expression before 'const'
lutil.h:78: error: expected primary-expression before 'const'
lutil.h:81: error: expected constructor, destructor, or type conversion before
'*' token
lutil.h:82: error: expected constructor, destructor, or type conversion before
'*' token
hook.h:33: error: 'lua_State' was not declared in this scope
hook.h:33: error: expected primary-expression before ',' token
hook.h:33: error: expected primary-expression before 'void'
hook.h:33: error: expected primary-expression before ',' token
hook.h:33: error: expected primary-expression before 'int'
hook.h:33: error: initializer expression list treated as compound expression
state.h:74: error: ISO C++ forbids declaration of 'lua_State' with no type
state.h:74: error: expected ';' before '*' token
state.h:123: error: 'std::pair<LuaThreadState*, LuaPluginInstance*>
LuaThreadStateAcquire' redeclared as different kind of symbol
state.h:122: error: previous declaration of 'std::pair<LuaThreadState*,
LuaPluginInstance*> LuaThreadStateAcquire(instanceid_t)'
state.h:123: error: 'lua_State' was not declared in this scope
state.h:123: error: expected primary-expression before ')' token
state.h:133: error: expected `)' before '*' token
cc1plus: warnings being treated as errors
lutil.h:50: warning: 'ltypeof' defined but not used
make[3]: *** [lua_la-plugin.lo] Error 1
make[3]: Leaving directory
`/var/jenkins/workspace/master_centos_5_x86/plugins/experimental/lua'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory
`/var/jenkins/workspace/master_centos_5_x86/plugins/experimental'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/jenkins/workspace/master_centos_5_x86/plugins'
make: *** [all-recursive] Error 1
Build step 'Execute shell' marked build as failure
[locks-and-latches] Releasing all the locks
[locks-and-latches] All the locks released
Finished: FAILURE
{noformat}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira