Opened 12 years ago
Closed 11 years ago
#39047 closed defect (fixed)
wireshark @1.8.6_1 +no_python: linking with liblua fails
Reported by: | laughingtiger | Owned by: | opendarwin.org@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.1.3 |
Keywords: | Cc: | hsivank@…, Veence (Vincent), mndavidoff (Monte Davidoff), vallon (Justin), cooljeanius (Eric Gallager), blair (Blair Zajac), com-macosforge@…, jovo@…, evandrix (Lee Wei Yeong), bill@…, jere@…, steven@…, ewen-naos-nz (Ewen McNeill), mrlamb@…, drkp (Dan Ports) | |
Port: | wireshark |
Description
After having deleted everything and done a complete clean reinstall of MacPorts and then first trying to install Wireshark, installation fails. This also failed with the same error when trying to install using previous MacPorts installation.
OS 10.8.3 X-Code 4.6.2
--> Attempting to fetch wireshark-1.8.6.tar.bz2 from http://mse.uk.distfiles.macports.org/sites/distfiles.macports.org/wireshark ---> Verifying checksum(s) for wireshark ---> Extracting wireshark ---> Applying patches to wireshark ---> Configuring wireshark Error: org.macports.configure for port wireshark returned: configure failure: command execution failed Please see the log file for port wireshark for details: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_wireshark/wireshark/main.log To report a bug, follow the instructions in the guide: http://guide.macports.org/#project.tickets Error: Processing of port wireshark failed
Attachments (3)
Change History (33)
Changed 12 years ago by laughingtiger
comment:2 follow-up: 6 Changed 12 years ago by mf2k (Frank Schima)
Cc: | opendarwin.org@… mllists@… removed |
---|---|
Keywords: | Wireshark install fails removed |
Owner: | changed from macports-tickets@… to opendarwin.org@… |
The reporter is automatically Cc'ed.
Error is:
:info:configure checking for luaL_register in -llua... no :info:configure checking for luaL_register in -llua5.1... no :info:configure configure: error: Linking with liblua failed.
What is the output of the following?
port installed lua
comment:3 Changed 12 years ago by larryv (Lawrence Velázquez)
Cc: | hsivank@… vince@… added |
---|
Maybe this has something to do with the recent lua version bump?
comment:4 Changed 12 years ago by larryv (Lawrence Velázquez)
Port: | wireshark added; Wireshark removed |
---|---|
Summary: | Wireshark-1.8.6 fails to install → wireshark @1.8.6_1 +no_python: linking with liblua fails |
comment:5 Changed 12 years ago by mf2k (Frank Schima)
I confirmed the problem is with the update to lua 5.2. It installs fine with lua 5.1.4.
$ port installed lua The following ports are currently installed: lua @5.1.4_4 (active) lua @5.2.2_0
comment:6 Changed 12 years ago by laughingtiger
Replying to macsforever2000@…:
The reporter is automatically Cc'ed.
Error is:
:info:configure checking for luaL_register in -llua... no :info:configure checking for luaL_register in -llua5.1... no :info:configure configure: error: Linking with liblua failed.What is the output of the following?
port installed lua
output is...
port installed lua The following ports are currently installed: lua @5.2.2_0 (active)
comment:8 follow-up: 10 Changed 12 years ago by hsivank@…
Build is ok with wireshark-devel(1.9.0) and lua@5.2
I found a patch for 1.8.X branch http://www.openmamba.org/showfile.html?file=/pub/openmamba/devel/patches/wireshark-1.8.2-lua-5.2-2.patch (not tested)
Maybe it is time to update wireshark port to version 1.9.x and wireshark-devel to version 1.10.x ?
comment:10 Changed 11 years ago by ghosthound
Replying to hsivank@…:
Build is ok with wireshark-devel(1.9.0) and lua@5.2
I found a patch for 1.8.X branch http://www.openmamba.org/showfile.html?file=/pub/openmamba/devel/patches/wireshark-1.8.2-lua-5.2-2.patch (not tested)
Maybe it is time to update wireshark port to version 1.9.x and wireshark-devel to version 1.10.x ?
The 1.9 branch of wireshark is the development branch for 1.10, aka not a stable/release branch, thus I don't think wireshark should go to 1.9, it should go to 1.10 when 1.10 is released/stable.
comment:18 follow-up: 19 Changed 11 years ago by hasso.tepper@…
The patch attached to the comment #10 is obviously correct. I can also confirm (tested not in macports though) that it solves the problem with lua 5.2.
Edit: OK, I was informed that it's not enough - you need to backport some more - https://anonsvn.wireshark.org/viewvc?view=revision&revision=43479 .
comment:19 Changed 11 years ago by breiter (Brian Reiter)
Replying to hasso.tepper@…:
The patch attached to the comment #10 is obviously correct. I can also confirm (tested not in macports though) that it solves the problem with lua 5.2.
Edit: OK, I was informed that it's not enough - you need to backport some more - https://anonsvn.wireshark.org/viewvc?view=revision&revision=43479 .
Yes. It's not enough to bang on the ./configure script. The LUA embedding API changed and the code will not compile against LUA5.2 without patching.
https://bugs.wireshark.org/bugzilla/attachment.cgi?bugid=7400&action=viewall
comment:22 follow-up: 25 Changed 11 years ago by ewen-naos-nz (Ewen McNeill)
According to Wireshark Bug 7400 (mentioned here at comment 19) the patches were committed in February 2013, and scheduled for backport to Wireshark 1.8. I see that there is are new release files as of 17 May 2013, including a Wireshark 1.8.7 (MacPorts has Wireshark 1.8.6). It seems likely those would include the Lua API change fixes. So the most expedient resolution to this problem might be to upgrade to Wireshark 1.8.7, rather than re-backporting the Lua 5.2 compatibility patches. (For now I've downgraded lua on my host to 5.1, since IIRC I don't use it for much other than Wireshark.)
Ewen
comment:23 Changed 11 years ago by schnide (Joe Schnide)
I was able to find a workaround to get wireshark installed thanks to # 39291
port uninstall wireshark
port clean --all wireshark
port install wireshark +no_lua
Changed 11 years ago by hasso.tepper@…
Attachment: | wireshark-macports.patch added |
---|
comment:24 follow-up: 26 Changed 11 years ago by hasso.tepper@…
The wireshark-macports.patch upgrades wireshark to 1.8.7 and integrates http://www.openmamba.org/showfile.html?file=/pub/openmamba/devel/patches/wireshark-1.8.2-lua-5.2-[1-3].patch patches to build it with lua 5.2.
comment:25 Changed 11 years ago by ghosthound
Replying to macports@…:
According to Wireshark Bug 7400 (mentioned here at comment 19) the patches were committed in February 2013, and scheduled for backport to Wireshark 1.8. I see that there is are new release files as of 17 May 2013, including a Wireshark 1.8.7 (MacPorts has Wireshark 1.8.6). It seems likely those would include the Lua API change fixes. So the most expedient resolution to this problem might be to upgrade to Wireshark 1.8.7, rather than re-backporting the Lua 5.2 compatibility patches. (For now I've downgraded lua on my host to 5.1, since IIRC I don't use it for much other than Wireshark.)
Ewen
Unfortunately 1.8.7 does not include the lua 5.2 fixes.
comment:26 Changed 11 years ago by ghosthound
Replying to hasso.tepper@…:
The wireshark-macports.patch upgrades wireshark to 1.8.7 and integrates http://www.openmamba.org/showfile.html?file=/pub/openmamba/devel/patches/wireshark-1.8.2-lua-5.2-[1-3].patch patches to build it with lua 5.2.
Thanks, I'll check this out, I haven't finished integrating the wireshark/lua5.2 patches yet.
comment:27 Changed 11 years ago by larryv (Lawrence Velázquez)
Cc: | mrlamb@… added |
---|
Has duplicate #39335.
comment:28 Changed 11 years ago by hsivank@…
Wireshark 1.10.0 has been released and is now considered as the stable branch. (attached a patch to update the port)
Changed 11 years ago by hsivank@…
Attachment: | Portfile_wireshark.diff added |
---|
comment:30 Changed 11 years ago by ghosthound
Resolution: | → fixed |
---|---|
Status: | new → closed |
resolved in r106712 by updating to 1.10.1
Wireshark install log