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

            Bug ID: 15713
           Summary: Static build fails to find glib2 dependencies
           Product: Wireshark
           Version: 3.0.1
          Hardware: x86
                OS: Linux
            Status: UNCONFIRMED
          Severity: Major
          Priority: Low
         Component: Build process
          Assignee: bugzilla-ad...@wireshark.org
          Reporter: fontaine.fabr...@gmail.com
  Target Milestone: ---

Created attachment 17073
  --> https://bugs.wireshark.org/bugzilla/attachment.cgi?id=17073&action=edit
logfile of build failure

Build Information:
3.0.1
--
When upgrading wireshark to version in 3.0.1 in buildroot (a tool to create
embedded linux systems), I found an issue in the way pkg-config was handled to
find glib2 dependencies.

I made a patch that worked on wireshark 3.0.1 but I was advised to create a bug
report (https://code.wireshark.org/review/#/c/32869/). So here it is.

So the way to reproduce is to have a toolchain with static build support only
and run the following command:

(mkdir -p /home/fabrice/br-test-pkg/br-arm-full-static/build/wireshark-3.0.1/
&& cd /home/fabrice/br-test-pkg/br-arm-full-static/build/wireshark-3.0.1/ && rm
-f CMakeCache.txt &&
PATH="/home/fabrice/br-test-pkg/br-arm-full-static/host/bin:/home/fabrice/br-test-pkg/br-arm-full-static/host/sbin:/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games"
 /usr/bin/cmake
/home/fabrice/br-test-pkg/br-arm-full-static/build/wireshark-3.0.1/
-DCMAKE_TOOLCHAIN_FILE="/home/fabrice/br-test-pkg/br-arm-full-static/host/share/buildroot/toolchainfile.cmake"
-DCMAKE_INSTALL_PREFIX="/usr" -DCMAKE_COLOR_MAKEFILE=OFF -DBUILD_DOC=OFF
-DBUILD_DOCS=OFF -DBUILD_EXAMPLE=OFF -DBUILD_EXAMPLES=OFF -DBUILD_TEST=OFF
-DBUILD_TESTS=OFF -DBUILD_TESTING=OFF -DBUILD_SHARED_LIBS=OFF  -DENABLE_PCAP=ON
-DENABLE_SMI=OFF -DBUILD_wireshark=OFF -DENABLE_BCG729=OFF -DENABLE_CARES=OFF
-DENABLE_GNUTLS=OFF -DENABLE_KERBEROS=OFF -DBUILD_mmdbresolve=OFF
-DENABLE_NETLINK=OFF -DENABLE_LIBSSH=OFF -DENABLE_LIBXML2=OFF -DENABLE_LUA=OFF
-DENABLE_LZ4=OFF -DENABLE_NGHTTP2=OFF -DENABLE_SBC=OFF -DENABLE_SNAPPY=OFF
-DENABLE_SPANDSP=OFF -DBUILD_sdjournal=OFF -DENABLE_PLUGINS=OFF
-DENABLE_STATIC=ON

Build fails on:

/home/fabrice/br-test-pkg/br-arm-full-static/host/arm-buildroot-linux-uclibcgnueabi/sysroot/usr/lib/libglib-2.0.a(libglib_2_0_la-gregex.o):
In function `get_matched_substring_number':
gregex.c:(.text+0x1e4): undefined reference to `pcre_get_stringnumber'
gregex.c:(.text+0x1f8): undefined reference to `pcre_get_stringtable_entries'
/home/fabrice/br-test-pkg/br-arm-full-static/host/arm-buildroot-linux-uclibcgnueabi/sysroot/usr/lib/libglib-2.0.a(libglib_2_0_la-gregex.o):
In function `g_match_info_next':
gregex.c:(.text+0x8ec): undefined reference to `pcre_exec'
/home/fabrice/br-test-pkg/br-arm-full-static/host/arm-buildroot-linux-uclibcgnueabi/sysroot/usr/lib/libglib-2.0.a(libglib_2_0_la-gregex.o):
In function `regex_compile':
gregex.c:(.text+0x10dc): undefined reference to `pcre_compile2'
gregex.c:(.text+0x14fc): undefined reference to `pcre_fullinfo'
gregex.c:(.text+0x1534): undefined reference to `pcre_fullinfo'
/home/fabrice/br-test-pkg/br-arm-full-static/host/arm-buildroot-linux-uclibcgnueabi/sysroot/usr/lib/libglib-2.0.a(libglib_2_0_la-gregex.o):
In function `match_info_new':
gregex.c:(.text+0x1754): undefined reference to `pcre_fullinfo'
/home/fabrice/br-test-pkg/br-arm-full-static/host/arm-buildroot-linux-uclibcgnueabi/sysroot/usr/lib/libglib-2.0.a(libglib_2_0_la-gregex.o):
In function `g_regex_unref':
gregex.c:(.text+0x17e0): undefined reference to `pcre_free'
/home/fabrice/br-test-pkg/br-arm-full-static/host/arm-buildroot-linux-uclibcgnueabi/sysroot/usr/lib/libglib-2.0.a(libglib_2_0_la-gregex.o):
In function `g_regex_new':
gregex.c:(.text+0x1900): undefined reference to `pcre_config'
gregex.c:(.text+0x1930): undefined reference to `pcre_config'
gregex.c:(.text+0x1a20): undefined reference to `pcre_study'
/home/fabrice/br-test-pkg/br-arm-full-static/host/arm-buildroot-linux-uclibcgnueabi/sysroot/usr/lib/libglib-2.0.a(libglib_2_0_la-gregex.o):
In function `g_regex_get_max_backref':
gregex.c:(.text+0x1afc): undefined reference to `pcre_fullinfo'
/home/fabrice/br-test-pkg/br-arm-full-static/host/arm-buildroot-linux-uclibcgnueabi/sysroot/usr/lib/libglib-2.0.a(libglib_2_0_la-gregex.o):
In function `g_regex_get_capture_count':
gregex.c:(.text+0x1b20): undefined reference to `pcre_fullinfo'
/home/fabrice/br-test-pkg/br-arm-full-static/host/arm-buildroot-linux-uclibcgnueabi/sysroot/usr/lib/libglib-2.0.a(libglib_2_0_la-gregex.o):
In function `g_regex_get_has_cr_or_lf':
gregex.c:(.text+0x1b44): undefined reference to `pcre_fullinfo'
/home/fabrice/br-test-pkg/br-arm-full-static/host/arm-buildroot-linux-uclibcgnueabi/sysroot/usr/lib/libglib-2.0.a(libglib_2_0_la-gregex.o):
In function `g_regex_get_max_lookbehind':
gregex.c:(.text+0x1b70): undefined reference to `pcre_fullinfo'
/home/fabrice/br-test-pkg/br-arm-full-static/host/arm-buildroot-linux-uclibcgnueabi/sysroot/usr/lib/libglib-2.0.a(libglib_2_0_la-gregex.o):
In function `g_regex_match_all_full':
gregex.c:(.text+0x1e7c): undefined reference to `pcre_dfa_exec'
gregex.c:(.text+0x1f7c): undefined reference to `pcre_free'
/home/fabrice/br-test-pkg/br-arm-full-static/host/arm-buildroot-linux-uclibcgnueabi/sysroot/usr/lib/libglib-2.0.a(libglib_2_0_la-gregex.o):
In function `g_regex_get_string_number':
gregex.c:(.text+0x1fd8): undefined reference to `pcre_get_stringnumber'
collect2: error: ld returned 1 exit status
make[3]: *** [CMakeFiles/captype.dir/build.make:97: run/captype] Error 1

You can find attached the logfile.

-- 
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