Uploaded image for project: 'Data Management'
  1. Data Management
  2. DM-5009

mysqlproxy fails to build due to system-supplied lua

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Won't Fix
    • Resolution: Done
    • Fix Version/s: None
    • Component/s: mysql-proxy
    • Labels:
      None
    • Team:
      Data Access and Database

      Description

      Building mysqlproxy on my system fails as follows:

      [2016-02-03T05:19:38.375065Z] libtool: compile:  cc -DHAVE_CONFIG_H -I. -I.. -I/Users/jds/Projects/Astronomy/LSST/lsstsw/stack/DarwinX86/mariadb/10.1.10/include/mysql -I/Users/jds/Projects/Astronomy/LSST/lsstsw/stack/DarwinX86/mariadb/10.1.10/include/mysql/.. -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include -I/Users/jds/Projects/Astronomy/LSST/lsstsw/stack/DarwinX86/lua/5.1.4.lsst1/include -D_REENTRANT -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include -D_REENTRANT -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include -DPLUGINDIR=\"/Users/jds/Projects/Astronomy/LSST/lsstsw/stack/DarwinX86/mysqlproxy/0.8.5+2/lib/mysql-proxy/plugins\" -DEXEC_PREFIX=\"/Users/jds/Projects/Astronomy/LSST/lsstsw/stack/DarwinX86/mysqlproxy/0.8.5+2\" -I/Users/jds/Projects/Astronomy/LSST/lsstsw/stack/DarwinX86/libevent/2.0.16.lsst2/include -g -O2 -MT libmysql_chassis_la-chassis-plugin.lo -MD -MP -MF .deps/libmysql_chassis_la-chassis-plugin.Tpo -c chassis-plugin.c  -fno-common -DPIC -o .libs/libmysql_chassis_la-chassis-plugin.o
       
      ...
       
      [2016-02-03T05:19:38.446373Z] lua-load-factory.c:122:59: error: too few arguments to function call, expected 5, have 4
      [2016-02-03T05:19:38.446442Z]         return lua_load(L, loadstring_factory_reader, &factory, s);
      [2016-02-03T05:19:38.446505Z]                ~~~~~~~~                                          ^
      [2016-02-03T05:19:38.446554Z] /opt/local/include/lua.h:280:1: note: 'lua_load' declared here
      [2016-02-03T05:19:38.446605Z] LUA_API int   (lua_load) (lua_State *L, lua_Reader reader, void *dt,
      [2016-02-03T05:19:38.446614Z] ^
      [2016-02-03T05:19:38.446664Z] /opt/local/include/luaconf.h:242:18: note: expanded from macro 'LUA_API'
      [2016-02-03T05:19:38.446690Z] #define LUA_API         extern
      [2016-02-03T05:19:38.446712Z]                         ^
      [2016-02-03T05:19:38.447470Z] lua-load-factory.c:146:65: error: too few arguments to function call, expected 5, have 4
      [2016-02-03T05:19:38.447537Z]         ret = lua_load(L, loadstring_factory_reader, &factory, filename);
      [2016-02-03T05:19:38.447593Z]               ~~~~~~~~                                                 ^
      [2016-02-03T05:19:38.447932Z] /opt/local/include/lua.h:280:1: note: 'lua_load' declared here
      [2016-02-03T05:19:38.447992Z] LUA_API int   (lua_load) (lua_State *L, lua_Reader reader, void *dt,
      [2016-02-03T05:19:38.448002Z] ^
      [2016-02-03T05:19:38.448051Z] /opt/local/include/luaconf.h:242:18: note: expanded from macro 'LUA_API'
      [2016-02-03T05:19:38.448074Z] #define LUA_API         extern
      [2016-02-03T05:19:38.448092Z]                         ^
      [2016-02-03T05:19:38.448387Z] 2 errors generated.
      [2016-02-03T05:19:38.452084Z] make[3]: *** [libmysql_chassis_la-lua-load-factory.lo] Error 1
      [2016-02-03T05:19:38.452134Z] make[3]: *** Waiting for unfinished jobs....
      

      Note that I have a system-supplied lua 5.3.1 in /opt/local, which is taking precedence over the LSST-supplied lua 5.1.4.lsst1, even though the latter is set up. Clearly, it shouldn't. This newer lua has a different API, and hence the breakage.

        Attachments

          Issue Links

            Activity

            Hide
            fritzm Fritz Mueller added a comment -

            Qserv builds have been removed from lsst_distrib. Furthermore, the build environment is now containerized which avoids collisions with system-installed packages.

            Show
            fritzm Fritz Mueller added a comment - Qserv builds have been removed from lsst_distrib. Furthermore, the build environment is now containerized which avoids collisions with system-installed packages.

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              swinbank John Swinbank
              Watchers:
              Fritz Mueller, John Swinbank
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  CI Builds

                  No builds found.