[jira] [Commented] (TS-1857) On CentOS Lua Plugin will built when --enable-experimental whether Lua is found or not
[ https://issues.apache.org/jira/browse/TS-1857?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13673579#comment-13673579 ] James Peach commented on TS-1857: - The problem seems to be that autoconf generates the wrong code for AS_IF. 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 Components: Build, Lua, Plugins Environment: CentOS 5 x86 (but not x64) Reporter: Igor Galić Assignee: James Peach Fix For: 3.3.3 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
[jira] [Commented] (TS-1857) On CentOS Lua Plugin will built when --enable-experimental whether Lua is found or not
[ https://issues.apache.org/jira/browse/TS-1857?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13673637#comment-13673637 ] ASF subversion and git services commented on TS-1857: - Commit 2651663d5040f76fe49da5c9ca3ae7884796090c in branch refs/heads/master from [~jpe...@apache.org] [ https://git-wip-us.apache.org/repos/asf?p=trafficserver.git;h=2651663 ] TS-1857: the Lua plugin is built whether Lua is found or not Autoconf 2.59 seems to have a bug where AS_IF constructs with multiple conditions are not emitted correctly. It only emits the first condition and the final else clause. Fortunately we can work around this by using a switch statement. 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 Components: Build, Lua, Plugins Environment: CentOS 5 x86 (but not x64) Reporter: Igor Galić Assignee: James Peach Fix For: 3.3.3 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