Opened 4 years ago

Closed 4 years ago

#61085 closed defect (invalid)

wireshark3-3.2.6_0+cares+chmodbpf+geoip+gnutls+kerberos5+libsmi+python37+qt5+zlib: build error - cmake configure error

Reported by: rhsingertwg Owned by: ghosthound
Priority: Normal Milestone:
Component: ports Version: 2.6.3
Keywords: Cc:
Port: wireshark3

Description

Catalina 10.15.6 trying to install wireshark3 build fails with a cmake error about QT5_ADD_TRANSLATION

--->  Fetching distfiles for wireshark3
--->  Verifying checksums for wireshark3
--->  Checksumming wireshark-3.2.6.tar.xz
--->  Extracting wireshark3
--->  Extracting wireshark-3.2.6.tar.xz
Executing:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_net_wireshark3/wireshark3/work" && /opt/local/bin/xz -dc '/opt/local/var/macports/distfiles/wireshark3/wireshark-3.2.6.tar.xz' | /usr/bin/tar -xf - 
--->  Configuring wireshark3
Executing:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_net_wireshark3/wireshark3/work/wireshark-3.2.6" && /opt/local/bin/cmake -DCMAKE_INSTALL_PREFIX='/opt/local' -DCMAKE_BUILD_TYPE=Release -DCMAKE_BUILD_WITH_INSTALL_RPATH=ON -DCMAKE_C_COMPILER="$CC" -DCMAKE_COLOR_MAKEFILE=ON -DCMAKE_CXX_COMPILER="$CXX" -DCMAKE_FIND_FRAMEWORK=LAST -DCMAKE_INSTALL_NAME_DIR=/opt/local/lib -DCMAKE_INSTALL_RPATH=/opt/local/lib -DCMAKE_MAKE_PROGRAM=/usr/bin/make -DCMAKE_MODULE_PATH=/opt/local/share/cmake/Modules -DCMAKE_SYSTEM_PREFIX_PATH="/opt/local;/opt/local;/usr" -DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_POLICY_DEFAULT_CMP0025=NEW -Wno-dev -DCMAKE_INSTALL_RPATH:STRING="/opt/local/lib" -DCMAKE_INSTALL_NAME_DIR:STRING="/opt/local/lib" -DENABLE_APPLICATION_BUNDLE=ON -DENABLE_ADNS=OFF -DENABLE_CARES=ON -DENABLE_GCRYPT=ON -DENABLE_GEOIP=ON -DENABLE_GNUTLS=ON -DENABLE_KERBEROS=ON -DENABLE_LIBXML2=OFF -DENABLE_LUA=OFF -DENABLE_LZ4=ON -DENABLE_NETLINK=OFF -DENABLE_SMI=ON -DENABLE_SNAPPY=OFF -DENABLE_ZLIB=ON -DBUILD_wireshark=ON -DENABLE_QT5=ON -DCMAKE_C_FLAGS_RELEASE="-DNDEBUG" -DCMAKE_CXX_FLAGS_RELEASE="-DNDEBUG" -DCMAKE_OSX_ARCHITECTURES="x86_64" -DCMAKE_OSX_DEPLOYMENT_TARGET="10.15" -DCMAKE_OSX_SYSROOT="/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk" /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_net_wireshark3/wireshark3/work/wireshark-3.2.6 
-- The C compiler identification is AppleClang 12.0.0.12000031
-- The CXX compiler identification is AppleClang 12.0.0.12000031
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/clang - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/clang++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Generating build using CMake 3.18.2
-- CMake build type: Release
-- V: 3.2.6, MaV: 3, MiV: 2, PL: 6, EV: .
-- Building for Mac OS X/OS X/macOS 10.15
-- Performing Test C_Qunused_arguments_VALID
-- Performing Test C_Qunused_arguments_VALID - Success
-- Performing Test C_Wall_VALID
-- Performing Test C_Wall_VALID - Success
-- Performing Test C_Wextra_VALID




-- Performing Test C_Wsign_compare_VALID
-- Performing Test C_Wsign_compare_VALID - Success
-- Performing Test C_Wunused_parameter_VALID
-- Performing Test C_Wunused_parameter_VALID - Success
-- Checking for c-compiler flag: -msse4.2
-- Performing Test COMPILER_CAN_HANDLE_SSE4_2
-- Performing Test COMPILER_CAN_HANDLE_SSE4_2 - Success
-- Looking for emmintrin.h
-- Looking for emmintrin.h - found
-- Looking for nmmintrin.h
-- Looking for nmmintrin.h - found
CMake Error at ui/qt/CMakeLists.txt:627 (QT5_ADD_TRANSLATION):
  Unknown CMake command "QT5_ADD_TRANSLATION".


-- Configuring incomplete, errors occurred!
See also "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_net_wireshark3/wireshark3/work/wireshark-3.2.6/CMakeFiles/CMakeOutput.log".
See also "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_net_wireshark3/wireshark3/work/wireshark-3.2.6/CMakeFiles/CMakeError.log".
Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_net_wireshark3/wireshark3/work/wireshark-3.2.6" && /opt/local/bin/cmake -DCMAKE_INSTALL_PREFIX='/opt/local' -DCMAKE_BUILD_TYPE=Release -DCMAKE_BUILD_WITH_INSTALL_RPATH=ON -DCMAKE_C_COMPILER="$CC" -DCMAKE_COLOR_MAKEFILE=ON -DCMAKE_CXX_COMPILER="$CXX" -DCMAKE_FIND_FRAMEWORK=LAST -DCMAKE_INSTALL_NAME_DIR=/opt/local/lib -DCMAKE_INSTALL_RPATH=/opt/local/lib -DCMAKE_MAKE_PROGRAM=/usr/bin/make -DCMAKE_MODULE_PATH=/opt/local/share/cmake/Modules -DCMAKE_SYSTEM_PREFIX_PATH="/opt/local;/opt/local;/usr" -DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_POLICY_DEFAULT_CMP0025=NEW -Wno-dev -DCMAKE_INSTALL_RPATH:STRING="/opt/local/lib" -DCMAKE_INSTALL_NAME_DIR:STRING="/opt/local/lib" -DENABLE_APPLICATION_BUNDLE=ON -DENABLE_ADNS=OFF -DENABLE_CARES=ON -DENABLE_GCRYPT=ON -DENABLE_GEOIP=ON -DENABLE_GNUTLS=ON -DENABLE_KERBEROS=ON -DENABLE_LIBXML2=OFF -DENABLE_LUA=OFF -DENABLE_LZ4=ON -DENABLE_NETLINK=OFF -DENABLE_SMI=ON -DENABLE_SNAPPY=OFF -DENABLE_ZLIB=ON -DBUILD_wireshark=ON -DENABLE_QT5=ON -DCMAKE_C_FLAGS_RELEASE="-DNDEBUG" -DCMAKE_CXX_FLAGS_RELEASE="-DNDEBUG" -DCMAKE_OSX_ARCHITECTURES="x86_64" -DCMAKE_OSX_DEPLOYMENT_TARGET="10.15" -DCMAKE_OSX_SYSROOT="/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk" /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_net_wireshark3/wireshark3/work/wireshark-3.2.6 
Exit code: 1
Error: Failed to configure wireshark3: configure failure: command execution failed
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_net_wireshark3/wireshark3/main.log for details.

Attachments (4)

main.log (33.9 KB) - added by rhsingertwg 4 years ago.
port main.log
CMakeOutput.log.bz2 (8.3 KB) - added by rhsingertwg 4 years ago.
cmake output log
CMakeError.log (22.5 KB) - added by rhsingertwg 4 years ago.
cmake error log
CMakeLists.txt (18.4 KB) - added by rhsingertwg 4 years ago.
file mentioned in first error

Download all attachments as: .zip

Change History (11)

Changed 4 years ago by rhsingertwg

Attachment: main.log added

port main.log

Changed 4 years ago by rhsingertwg

Attachment: CMakeOutput.log.bz2 added

cmake output log

Changed 4 years ago by rhsingertwg

Attachment: CMakeError.log added

cmake error log

Changed 4 years ago by rhsingertwg

Attachment: CMakeLists.txt added

file mentioned in first error

comment:1 Changed 4 years ago by mf2k (Frank Schima)

Keywords: wireshark cmake qt5 removed

comment:2 Changed 4 years ago by ghosthound

Status: assignedaccepted

Builds fine for me on 10.15.6.

Which version of cmake are you using?

As well, it looks like the build picked up Xcode 12 bits:

-- The C compiler identification is AppleClang 12.0.0.12000031 -- The CXX compiler identification is AppleClang 12.0.0.12000031

comment:3 Changed 4 years ago by rhsingertwg

cmake @3.18.2_0 (active) Did a port upgrade outdated and wireshark3 was the only problem. It has actually been a problem for several months, sometimes building OK but many times having this error. I was getting the unable to determine CLI tools version warning, so I used the reinstalling the CLI tools hack and it downloaded two versions, 11.6 I think and the 12 beta, don't ask me why.

Did you look at the CMakeLists.txt file? CMake Error at ui/qt/CMakeLists.txt:627 (QT5_ADD_TRANSLATION):

Unknown CMake command "QT5_ADD_TRANSLATION"

That line does look like something may be missing, but I am a network and systems administrator and not a developer. My programming knowledge is rudimentary.

comment:4 Changed 4 years ago by ghosthound

Do you have the "qt5-qttranslations" and "qt5-qttools" ports installed? The latter provides "/opt/local/libexecqt5/lib/cmake/Qt5LinguistTools/Qt5LinguistToolsMacros.cmake" which includes "function(QT5_ADD_TRANSLATION _qm_files)". The wireshark3 port depends on the "qt5-qttranslations" port, so it should be installed.

comment:5 Changed 4 years ago by rhsingertwg

qt5-qttools @5.14.2_0 (active) qt5-qttranslations @5.14.2_0 (active)

~ % ls -al /opt/local/libexec/qt5/lib/cmake/Qt5LinguistTools/
total 0
drwxr-xr-x   5 root      admin   160 May  2 11:54 .
drwxr-xr-x  84 root      admin  2688 Aug  8 10:55 ..
-rw-r--r--@  1 macports  wheel     0 Apr 28 20:16 Qt5LinguistToolsConfig.cmake
-rw-r--r--@  1 macports  wheel     0 Apr 28 20:16 Qt5LinguistToolsConfigVersion.cmake
-rw-r--r--@  1 macports  wheel     0 Apr 28 20:16 Qt5LinguistToolsMacros.cmake

Looks like something went wrong with the last QT5 upgrades. I will try reinstalling them and see what happens.

comment:6 Changed 4 years ago by rhsingertwg

After doing a port upgrade --force for the installed qt5 ports, wireshark3 has now built correctly. Thanks for helping me figure out where things were going wrong.

comment:7 Changed 4 years ago by ghosthound

Resolution: invalid
Status: acceptedclosed

Cool, glad you got it going.

Note: See TracTickets for help on using tickets.