LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 08-16-2022, 02:09 PM   #1
lakis70
Member
 
Registered: Jan 2021
Location: Athens Greece
Distribution: slackware puppylinux
Posts: 46

Rep: Reputation: Disabled
Building WIRESHARK-3.6.7 failed


Slackware 15 32bit
trying to build wireshark-3.6.7 from SBO failed at configurations with these errors (6errors and 2 warnings about compiler flags).

1.
Performing C SOURCE FILE Test lfs_native failed with the following output:
Building C object CMakeFiles/cmTC_020ca.dir/src.c.o
/home/lakis/Downloads/lakis/wireshark-3.6.7-1.1/wireshark-3.6.7/build/CMakeFiles/CMakeTmp/src.c:3:35: error: 'my_static_assert' declared as an array with a negative size
typedef char my_static_assert[sizeof(off_t) >= 8 ? 1 : -1];
^~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
gmake: *** [Makefile:127: cmTC_020ca/fast] Error 2
Source file was:

#include <sys/types.h>
typedef char my_static_assert[sizeof(off_t) >= 8 ? 1 : -1];
int main(void) { return 0; }

2.
Performing C SOURCE FILE Test C_Wlogical_op_VALID failed with the following output:
warning: unknown warning option '-Wlogical-op'; did you mean '-Wlong-long'? [-Wunknown-warning-option]
1 warning generated.
Linking C executable cmTC_94dee
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_94dee.dir/link.txt --verbose=1
/usr/bin/clang -std=gnu99 CMakeFiles/cmTC_94dee.dir/src.c.o -o cmTC_94dee
gmake[1]: Leaving directory '/home/lakis/Downloads/lakis/wireshark-3.6.7-1.1/wireshark-3.6.7/build/CMakeFiles/CMakeTmp'


Source file was:
int main(void) { return 0; }
Performing C SOURCE FILE Test C_Wjump_misses_init_VALID failed with the following output:
warning: unknown warning option '-Wjump-misses-init' [-Wunknown-warning-option]
1 warning generated.

3.
Determining if the function pcap_open exists failed with the following output:
Change Dir: /home/lakis/Downloads/lakis/wireshark-3.6.7-1.1/wireshark-3.6.7/build/CMakeFiles/CMakeTmp

CheckFunctionExists.c.text+0x1f): undefined reference to `pcap_open'
clang-13: error: linker command failed with exit code 1 (use -v to see invocation)
gmake[1]: *** [CMakeFiles/cmTC_1c517.dir/build.make:101: cmTC_1c517] Error 1
gmake[1]: Leaving directory '/home/lakis/Downloads/lakis/wireshark-3.6.7-1.1/wireshark-3.6.7/build/CMakeFiles/CMakeTmp'
gmake: *** [Makefile:127: cmTC_1c517/fast] Error 2


4.
Determining if the heimdal_version exist failed with the following output:
Change Dir: /home/lakis/Downloads/lakis/wireshark-3.6.7-1.1/wireshark-3.6.7/build/CMakeFiles/CMakeTmp

/CMakeFiles/CMakeTmp/CheckSymbolExists.c:8:19: error: use of undeclared identifier 'heimdal_version'
return ((int*)(&heimdal_version))[argc];
^
1 error generated.
gmake[1]: *** [CMakeFiles/cmTC_f998a.dir/build.make:79: CMakeFiles/cmTC_f998a.dir/CheckSymbolExists.c.o] Error 1
gmake[1]: Leaving directory '/home/lakis/Downloads/lakis/wireshark-3.6.7-1.1/wireshark-3.6.7/build/CMakeFiles/CMakeTmp'
gmake: *** [Makefile:127: cmTC_f998a/fast] Error 2

5.
File /home/lakis/Downloads/lakis/wireshark-3.6.7-1.1/wireshark-3.6.7/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
/* */
#include <krb5.h>

int main(int argc, char** argv)
{
(void)argv;
#ifndef heimdal_version
return ((int*)(&heimdal_version))[argc];
#else
(void)argc;
return 0;
#endif
}

6.
Performing C SOURCE FILE Test HAVE_MZCOMPAT_DOS_DATE failed with the following output:
Change Dir: /home/lakis/Downloads/lakis/wireshark-3.6.7-1.1/wireshark-3.6.7/build/CMakeFiles/CMakeTmp
/CMakeFiles/CMakeTmp/src.c:6:37: error: no member named 'dos_date' in 'zip_fileinfo'; did you mean 'dosDate'?
(void)sizeof(((zip_fileinfo *)0)->dos_date);
^~~~~~~~
dosDate
/usr/include/minizip/zip.h:102:17: note: 'dosDate' declared here
uLong dosDate; /* if dos_date == 0, tmu_date is used */
^
1 error generated.
gmake[1]: *** [CMakeFiles/cmTC_faf85.dir/build.make:79: CMakeFiles/cmTC_faf85.dir/src.c.o] Error 1
gmake[1]: Leaving directory '/home/lakis/Downloads/lakis/wireshark-3.6.7-1.1/wireshark-3.6.7/build/CMakeFiles/CMakeTmp'
gmake: *** [Makefile:127: cmTC_faf85/fast] Error 2


Source file was:

#include <minizip/zip.h>

int main()
{
(void)sizeof(((zip_fileinfo *)0)->dos_date);
return 0;
}

7.
Determining if the function issetugid exists failed with the following output:
Change Dir: /home/lakis/Downloads/lakis/wireshark-3.6.7-1.1/wireshark-3.6.7/build/CMakeFiles/CMakeTmp

CheckFunctionExists.c.text+0x1f): undefined reference to `issetugid'
clang-13: error: linker command failed with exit code 1 (use -v to see invocation)
gmake[1]: *** [CMakeFiles/cmTC_d8c03.dir/build.make:100: cmTC_d8c03] Error 1
gmake[1]: Leaving directory '/home/lakis/Downloads/lakis/wireshark-3.6.7-1.1/wireshark-3.6.7/build/CMakeFiles/CMakeTmp'
gmake: *** [Makefile:127: cmTC_d8c03/fast] Error 2

8.
Performing C SOURCE FILE Test HAVE_STRUCT_STAT_ST_BIRTHTIME failed with the following output:
/CMakeFiles/CMakeTmp/src.c:6:36: error: no member named 'st_birthtime' in 'struct stat'
(void)sizeof(((struct stat *)0)->st_birthtime);
~~~~~~~~~~~~~~~~~~ ^
1 error generated.
gmake[1]: *** [CMakeFiles/cmTC_3ffbf.dir/build.make:79: CMakeFiles/cmTC_3ffbf.dir/src.c.o] Error 1
gmake[1]: Leaving directory '/home/lakis/Downloads/lakis/wireshark-3.6.7-1.1/wireshark-3.6.7/build/CMakeFiles/CMakeTmp'
gmake: *** [Makefile:127: cmTC_3ffbf/fast] Error 2


Source file was:

#include <sys/stat.h>

int main()
{
(void)sizeof(((struct stat *)0)->st_birthtime);
return 0;
}

9.
Performing C SOURCE FILE Test HAVE_STRUCT_STAT___ST_BIRTHTIME failed with the following output:
/home/lakis/Downloads/lakis/wireshark-3.6.7-1.1/wireshark-3.6.7/build/CMakeFiles/CMakeTmp/src.c:6:36: error: no member named '__st_birthtime' in 'struct stat'
(void)sizeof(((struct stat *)0)->__st_birthtime);
~~~~~~~~~~~~~~~~~~ ^
1 error generated.
gmake[1]: *** [CMakeFiles/cmTC_d4421.dir/build.make:79: CMakeFiles/cmTC_d4421.dir/src.c.o] Error 1
gmake[1]: Leaving directory '/home/lakis/Downloads/lakis/wireshark-3.6.7-1.1/wireshark-3.6.7/build/CMakeFiles/CMakeTmp'
gmake: *** [Makefile:127: cmTC_d4421/fast] Error 2


Source file was:

#include <sys/stat.h>

int main()
{
(void)sizeof(((struct stat *)0)->__st_birthtime);
return 0;
}

The same errors occurred using gcc and glang (with different about flags errors).
I tried modifying the cmake files with no results. The best i had was no cmakeError.log (at build/CMakeFiles) but the cmake stoped reporting erros.
Any idea how to solve them?
 
Old 08-17-2022, 12:56 AM   #2
henca
Member
 
Registered: Aug 2007
Location: Linköping, Sweden
Distribution: Slackware
Posts: 974

Rep: Reputation: 663Reputation: 663Reputation: 663Reputation: 663Reputation: 663Reputation: 663
Quote:
Originally Posted by lakis70 View Post
Slackware 15 32bit
trying to build wireshark-3.6.7 from SBO failed at configurations with these errors (6errors and 2 warnings about compiler flags).

typedef char my_static_assert[sizeof(off_t) >= 8 ? 1 : -1];
^~~~~~~~~~~~~~~~~~~~~~~~~~~
To me it looks as if this source intentionally fails when not compiled in a 64 bit environment.

regards Henrik
 
Old 08-17-2022, 06:46 AM   #3
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,102

Rep: Reputation: 4178Reputation: 4178Reputation: 4178Reputation: 4178Reputation: 4178Reputation: 4178Reputation: 4178Reputation: 4178Reputation: 4178Reputation: 4178Reputation: 4178
FWIW I just tried to build wireshark 3.6.7 from SBo on a slackware-15.0 (32bit) virtual machine and everything went fine...

https://pastebin.com/raw/XT9wSZxn

have you used the SlackBuild to build it?
 
Old 08-17-2022, 09:54 AM   #4
Jeebizz
Senior Member
 
Registered: May 2004
Distribution: Slackware15.0 64-Bit Desktop, Debian 11 non-free Toshiba Satellite Notebook
Posts: 4,187

Rep: Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379
I just built the 64-bit version(Slackware 15.0) from slackbuilds.org , no issue it compiled successfully.

Last edited by Jeebizz; 08-17-2022 at 09:59 AM.
 
Old 08-17-2022, 12:13 PM   #5
lakis70
Member
 
Registered: Jan 2021
Location: Athens Greece
Distribution: slackware puppylinux
Posts: 46

Original Poster
Rep: Reputation: Disabled
I don't know why failed to me. Trying i have installed MaxMindDB, SPANDSP, BCG729, libilbc and minizip and again failed.
I installed yesterday ponces wireshark-3.6.2 and it works fine.

Last edited by lakis70; 08-17-2022 at 12:18 PM. Reason: add libilbc
 
Old 08-17-2022, 12:35 PM   #6
lakis70
Member
 
Registered: Jan 2021
Location: Athens Greece
Distribution: slackware puppylinux
Posts: 46

Original Poster
Rep: Reputation: Disabled
Ponce yes i use slackbuild. i have installed and heimdal
https://pastebin.com/EGtgrm1Q
https://pastebin.com/iRtpNv86 error.log

about that
typedef char my_static_assert[sizeof(off_t) >= 8 ? 1 : -1];
the internet says -1 means empty array, i made -1 to 1 and by pass that error in one trial
 
Old 08-17-2022, 01:21 PM   #7
Jeebizz
Senior Member
 
Registered: May 2004
Distribution: Slackware15.0 64-Bit Desktop, Debian 11 non-free Toshiba Satellite Notebook
Posts: 4,187

Rep: Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379
Building and running may be different - checking on the dependencies for slackbuilds, lua is a requirement - do you have lua installed? Just want to make sure it is not a dependency issue.
 
Old 08-17-2022, 01:30 PM   #8
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,102

Rep: Reputation: 4178Reputation: 4178Reputation: 4178Reputation: 4178Reputation: 4178Reputation: 4178Reputation: 4178Reputation: 4178Reputation: 4178Reputation: 4178Reputation: 4178
Quote:
Originally Posted by lakis70 View Post
Ponce yes i use slackbuild. i have installed and heimdal
https://pastebin.com/EGtgrm1Q
https://pastebin.com/iRtpNv86 error.log

about that
typedef char my_static_assert[sizeof(off_t) >= 8 ? 1 : -1];
the internet says -1 means empty array, i made -1 to 1 and by pass that error in one trial
it seems that you have issues with your compiler *and* with qt5 but I have no idea of the cause.

Last edited by ponce; 08-17-2022 at 01:32 PM.
 
Old 08-17-2022, 01:36 PM   #9
lakis70
Member
 
Registered: Jan 2021
Location: Athens Greece
Distribution: slackware puppylinux
Posts: 46

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Jeebizz View Post
Building and running may be different - checking on the dependencies for slackbuilds, lua is a requirement - do you have lua installed? Just want to make sure it is not a dependency issue.
yes i have all of them required and not required. I think some errors come from not required heimdal and minizip.

I changed CC and CXX to clang i have the same errors for functions and warnings for compiler flags
 
Old 08-17-2022, 01:41 PM   #10
lakis70
Member
 
Registered: Jan 2021
Location: Athens Greece
Distribution: slackware puppylinux
Posts: 46

Original Poster
Rep: Reputation: Disabled
ponces wireshark it says
(wireshark:15694): GVFS-RemoteVolumeMonitor-WARNING **: 21:37:08.121: remote volume monitor with dbus name org.gtk.vfs.UDisks2VolumeMonitor is not supported

it means something about?
Anyway i have a working wireshark thanking ponce.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] building wireshark 3.6.2, internal compiler error: Segmentation fault BenCollver Slackware 2 03-17-2022 09:57 PM
Failed run wireshark on Slackware 14.2 narke Slackware 5 09-27-2018 07:24 PM
Building an out-of-tree module without building the kernel source lijodevasia Linux - General 2 08-01-2013 12:45 AM
Trouble building static wireshark oasisbhrnw99 Linux - Software 1 03-29-2009 04:12 AM
online_update failed - ERROR(Media:connection failed)[Connect failed] rover SUSE / openSUSE 8 02-22-2005 07:57 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 04:14 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration