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?