https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=15713

--- Comment #14 from fontaine.fabr...@gmail.com ---
(In reply to Peter Wu from comment #13)
> Hi Fabrice, could you upload your patches to Gerrit? See
> https://www.wireshark.org/docs/wsdg_html_chunked/ChSrcContribute.
> html#ChSrcUpload
> 
> (In reply to fontaine.fabrice from comment #10)
> > Created attachment 17081 [details]
> > USE_STATIC option patch
> 
> Suggestions:
> - Change subject from "CMakeLists.txt: ..." to just "CMake: ..."
> - move the "CMAKE_FIND_LIBRARY_SUFFIXES" up, right after the oss-fuzz entry.
> Consider changing the oss-fuzz entry to use the new option since it better
> reflects the requirement for oss-fuzz.
> 
> (In reply to fontaine.fabrice from comment #11)
> > Created attachment 17082 [details]
> > FindPCAP patch
> 
> We already have a cmake/modules/FindNL.cmake module, are you sure that this
> patch is needed for that?

Yes, it's needed because without it, builds fails on:

home/fabrice/buildroot-test/buildroot/output/build/wireshark-3.0.1/caputils/capture-pcap-util-unix.c:119:1:
error: conflicting types for ‘get_interface_list’
 get_interface_list(cap_device_open_err *err, char **err_str)

It fails because all check_function_exists calls fail. These functions fail
because CMAKE_REQUIRED_LIBRARIES is set to ${PCAP_LIBRARIES} which does contain
the missing nl3 library:

/home/fabrice/buildroot-test/buildroot/output/host/bin/arm-linux-gcc
--sysroot=/home/fabrice/buildroot-test/buildroot/output/host/arm-buildroot-linux-uclibcgnueabi/sysroot
-fvisibility=hidden  -fexcess-precision=fast -Wall -Wextra -Wendif-labels
-Wpointer-arith -Wformat-security -fwrapv -fno-strict-overflow -Wvla -Waddress
-Wattributes -Wdiv-by-zero -Wignored-qualifiers -Wpragmas
-Wno-overlength-strings -Wno-long-long -Wframe-larger-than=32768 -Wc++-compat
-Wunused-const-variable -Wshadow -Wno-pointer-sign -Wold-style-definition
-Wstrict-prototypes -Wlogical-op -Wjump-misses-init -Werror=implicit -std=gnu99
-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os -static
-DCHECK_FUNCTION_EXISTS=pcap_breakloop  -DNDEBUG  -pie -static 
CMakeFiles/cmTC_ebd09.dir/CheckFunctionExists.c.o  -o cmTC_ebd09
/home/fabrice/buildroot-test/buildroot/output/host/arm-buildroot-linux-uclibcgnueabi/sysroot/usr/lib/libpcap.a
 
/home/fabrice/buildroot-test/buildroot/output/host/arm-buildroot-linux-uclibcgnueabi/sysroot/usr/lib/libpcap.a(pcap-linux.o):
In function `nl80211_init':

[...]


Determining if the function pcap_create exists failed with the following
output:
Change Dir:
/home/fabrice/buildroot-test/buildroot/output/build/wireshark-3.0.1/CMakeFiles/CMakeTmp

-- 
You are receiving this mail because:
You are watching all bug changes.
___________________________________________________________________________
Sent via:    Wireshark-bugs mailing list <wireshark-bugs@wireshark.org>
Archives:    https://www.wireshark.org/lists/wireshark-bugs
Unsubscribe: https://www.wireshark.org/mailman/options/wireshark-bugs
             mailto:wireshark-bugs-requ...@wireshark.org?subject=unsubscribe

Reply via email to