Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#56697 closed defect (invalid)

wireshark2 @ 2.6.1 does not build

Reported by: ylluminarious (George Plymale II) Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.5.2
Keywords: Cc: opendarwin.org@…
Port: wireshark2

Description

Hi,

I apologize if this bug has already been filed; I searched and searched for it but found nothing. Anyway, my problem is exactly what it says on the tin. No variants, just simply attempting to sudo port install wireshark2 results in:

--->  Computing dependencies for wireshark2

[dependency fetching truncated; nothing goes wrong here]

--->  Fetching archive for wireshark2
--->  Attempting to fetch wireshark2-2.6.1_0+cares+geoip+gnutls+kerberos5+libgcrypt+libsmi+portaudio+qt5+zlib.darwin_17.x86_64.tbz2 from https://packages.macports.org/wireshark2
--->  Attempting to fetch wireshark2-2.6.1_0+cares+geoip+gnutls+kerberos5+libgcrypt+libsmi+portaudio+qt5+zlib.darwin_17.x86_64.tbz2 from http://ywg.ca.packages.macports.org/mirror/macports/packages/wireshark2
--->  Attempting to fetch wireshark2-2.6.1_0+cares+geoip+gnutls+kerberos5+libgcrypt+libsmi+portaudio+qt5+zlib.darwin_17.x86_64.tbz2 from http://sea.us.packages.macports.org/macports/packages/wireshark2
--->  Fetching distfiles for wireshark2
--->  Verifying checksums for wireshark2
--->  Extracting wireshark2
--->  Applying patches to wireshark2
--->  Configuring wireshark2
--->  Building wireshark2
Error: Failed to build wireshark2: command execution failed
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_net_wireshark2/wireshark2/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets to report a bug.
Error: Processing of port wireshark2 failed

I also re-attempted this installation after running:

$ sudo port clean wireshark2
$ sudo -s
$ port selfupdate && port upgrade outdated && port_cutleaves && port reclaim

Just to make sure that my ports weren't out-of-date and causing some strange issue thereby. But no dice; even after updating my ports tree as above, I still had the same error when installing wireshark2. I have attached the full main.log file. The only error I can see is around line 4598:

...
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_net_wireshark2/wireshark2/work/wireshark-2.6.1/ui/qt/packet_format_group_box.cpp:21:18: error: variable has incomplete type 'QStyleOption'
:info:build     QStyleOption style_opt;
:info:build                  ^
:info:build /usr/local/opt/qt5/lib/QtWidgets.framework/Headers/qstyle.h:60:7: note: forward declaration of 'QStyleOption'
:info:build class QStyleOption;
:info:build       ^
...

Is this a problem in the upstream or is it a problem with Macports? I honestly can't tell just from this information alone. FYI, I'm running on 10.13.5; I'm not sure whether that's part of the problem or not.

Thanks.

Attachments (1)

main.log (5.0 MB) - added by ylluminarious (George Plymale II) 6 years ago.

Change History (4)

Changed 6 years ago by ylluminarious (George Plymale II)

Attachment: main.log added

comment:1 Changed 6 years ago by ylluminarious (George Plymale II)

Oh, I should probably note that I also have Homebrew installed along with its qt5 formula. Not sure whether that's relevant or not, but I suppose it could be.

comment:2 Changed 6 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: invalid
Status: newclosed

The error message you provided makes it clear that the problem is interference from software you installed in /usr/local. We cannot support systems that have things installed in /usr/local via Homebrew or other methods. See wiki:FAQ#usrlocal. Please choose whether you would like to use Homebrew or MacPorts, and uninstall the other. If there's something you need that's in Homebrew that's not in MacPorts, let us know by filing a port request ticket.

comment:3 in reply to:  2 Changed 6 years ago by ylluminarious (George Plymale II)

Replying to ryandesign:

The error message you provided makes it clear that the problem is interference from software you installed in /usr/local. We cannot support systems that have things installed in /usr/local via Homebrew or other methods. See wiki:FAQ#usrlocal. Please choose whether you would like to use Homebrew or MacPorts, and uninstall the other. If there's something you need that's in Homebrew that's not in MacPorts, let us know by filing a port request ticket.

Got it, thanks for clarifying what the problem was.

Note: See TracTickets for help on using tickets.