[MacPorts] #48835: wireshark @1.12.7: Build fails with lua 5.3

MacPorts noreply at macports.org
Thu Oct 29 16:01:00 PDT 2015


#48835: wireshark @1.12.7: Build fails with lua 5.3
------------------------------+----------------------
  Reporter:  md14-macports@…  |      Owner:  ricci@…
      Type:  defect           |     Status:  assigned
  Priority:  Normal           |  Milestone:
 Component:  ports            |    Version:  2.3.3
Resolution:                   |   Keywords:
      Port:  wireshark        |
------------------------------+----------------------

Comment (by ben@…):

 ...and I ended up with yet another Wireshark build without Lua.  (Sorry
 for the noise, I'm about done for tonight).

 The build reports as being `+lua` but when you actually launch Wireshark,
 it reports `without Lua`. This is because the proposed patch removed the
 `--with-lua` flag that compels `./configure` to include it.  Putting that
 back in causes the `configure` step to fail because it can't find Lua.

 Here's a relevant excerpt:

 {{{
 :info:configure checking whether to use liblua for the Lua scripting
 plugin... yes
 :info:configure checking Lua version... Lua 5.2
 :info:configure checking lua.h usability... yes
 :info:configure checking lua.h presence... no
 :info:configure configure: WARNING: lua.h: accepted by the compiler,
 rejected by the preprocessor!
 :info:configure configure: WARNING: lua.h: proceeding with the compiler's
 result
 :info:configure checking for lua.h... yes
 :info:configure checking lualib.h usability... yes
 :info:configure checking lualib.h presence... no
 :info:configure configure: WARNING: lualib.h: accepted by the compiler,
 rejected by the preprocessor!
 :info:configure configure: WARNING: lualib.h: proceeding with the
 compiler's result
 :info:configure checking for lualib.h... yes
 :info:configure checking lauxlib.h usability... yes
 :info:configure checking lauxlib.h presence... no
 :info:configure configure: WARNING: lauxlib.h: accepted by the compiler,
 rejected by the preprocessor!
 :info:configure configure: WARNING: lauxlib.h: proceeding with the
 compiler's result
 :info:configure checking for lauxlib.h... yes
 :info:configure checking for luaL_openlibs in -llua... no
 :info:configure checking for luaL_openlibs in -llua5.2... no
 :info:configure configure: error: Linking with liblua failed.
 :info:configure Command failed:  cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_wireshark/wireshark/work/wireshark-1.12.8"
 && ./configure --prefix=/opt/local --disable-osx-deploy-target --disable-
 usr-local --with-pcap=/opt/local --with-ssl=/opt/local --with-
 zlib=/opt/local --mandir=\${prefix}/share/man
 --infodir=\${prefix}/share/info --disable-warnings-as-errors --with-
 krb5=/opt/local --with-adns=/opt/local --without-c-ares --with-gnutls=yes
 --with-libgcrypt-prefix=/opt/local --enable-ipv6 --with-lua --with-
 libsmi=/opt/local --with-geoip=/opt/local --with-portaudio=/opt/local
 --with-qt=no --with-gtk2=yes --with-gtk3=no
 :info:configure Exit code: 1
 }}}

 Note that Macports installs Lua 5.2 at `liblua-5.2` instead of
 `liblua5.2`. Even if you pass the relevant CFLAGS and LDFLAGS, it doesn't
 fix it:

 {{{
         configure.cflags-append         -I${prefix}/include/lua-5.2
         configure.ldflags-append        -L${prefix}/lib/lua-5.2 -llua-5.2
 # does not work
 }}}

 I guess the next thing to try is to patch the build so that it looks for
 Lua in `lua-5.2` instead of `lua5.2`. Any other ideas?

-- 
Ticket URL: <https://trac.macports.org/ticket/48835#comment:33>
MacPorts <https://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list