Wireshark-bugs: [Wireshark-bugs] [Bug 2291] New: wiretap dependencies became broken (--as-needed
Date: Thu, 21 Feb 2008 20:40:21 +0000 (GMT)
http://bugs.wireshark.org/bugzilla/show_bug.cgi?id=2291

           Summary: wiretap dependencies became broken (--as-needed)
           Product: Wireshark
           Version: 0.99.8
          Platform: PC
               URL: https://bugs.gentoo.org/show_bug.cgi?id=210998
        OS/Version: Linux
            Status: NEW
          Severity: Normal
          Priority: Low
         Component: Wireshark
        AssignedTo: wireshark-bugs@xxxxxxxxxxxxx
        ReportedBy: pva@xxxxxxxxxx


Created an attachment (id=1478)
 --> (http://bugs.wireshark.org/bugzilla/attachment.cgi?id=1478)
wireshark-0.99.8-as-needed.patch

Build Information:
This is build problem.
--
New build system for wiretap does not links it with glib-2.0:
camobap wiretap # ldd .libs/libwiretap.so
        libz.so.1 => /lib/libz.so.1 (0xb7f71000)
        libpthread.so.0 => /lib/libpthread.so.0 (0xb7f5a000)
        libc.so.6 => /lib/libc.so.6 (0xb7e29000)
        /lib/ld-linux.so.2 (0x80000000)

and that's the reason for further failure during compilation when building with
--as-needed:

This is not a SVN build.
svnversion.h is up-to-date.
/bin/sh ./libtool --tag=CC --mode=link i686-pc-linux-gnu-gcc 
-D_U_="__attribute__((unused))" -O2 -mtune=pentium-m -fomit-frame-pointer
-mcpu=pentium-m -pipe -Wall -W -Wdeclaration-after-statement -Wendif-labels
-Wpointer-arith -Wno-pointer-sign -I/usr/local/include -pthread
-I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0
-I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng12   
-Wl,--as-needed -L/usr/local/lib -L/usr/local/lib -o randpkt  randpkt.o
wiretap/libwiretap.la -Wl,--export-dynamic -lgmodule-2.0 -ldl -lglib-2.0   -lm
-lpcap    -lz
i686-pc-linux-gnu-gcc "-D_U_=__attribute__((unused))" -O2 -mtune=pentium-m
-fomit-frame-pointer -mcpu=pentium-m -pipe -Wall -W
-Wdeclaration-after-statement -Wendif-labels -Wpointer-arith -Wno-pointer-sign
-I/usr/local/include -pthread -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include
-I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2
-I/usr/include/libpng12 -Wl,--as-needed -o .libs/randpkt randpkt.o
-Wl,--export-dynamic  -L/usr/local/lib wiretap/.libs/libwiretap.so
/usr/lib/libgmodule-2.0.so -ldl /usr/lib/libglib-2.0.so -lm -lpcap -lz
wiretap/.libs/libwiretap.so: undefined reference to `g_free'
wiretap/.libs/libwiretap.so: undefined reference to `g_memdup'
wiretap/.libs/libwiretap.so: undefined reference to `g_direct_equal'
wiretap/.libs/libwiretap.so: undefined reference to `g_hash_table_destroy'
wiretap/.libs/libwiretap.so: undefined reference to `g_str_hash'
wiretap/.libs/libwiretap.so: undefined reference to `g_strdup'
wiretap/.libs/libwiretap.so: undefined reference to `g_strdown'
wiretap/.libs/libwiretap.so: undefined reference to `g_list_foreach'
wiretap/.libs/libwiretap.so: undefined reference to `g_hash_table_insert'
wiretap/.libs/libwiretap.so: undefined reference to `g_list_free'
wiretap/.libs/libwiretap.so: undefined reference to `g_array_new'
wiretap/.libs/libwiretap.so: undefined reference to `g_array_prepend_vals'
wiretap/.libs/libwiretap.so: undefined reference to `g_malloc'
wiretap/.libs/libwiretap.so: undefined reference to `g_hash_table_remove'
wiretap/.libs/libwiretap.so: undefined reference to `g_strndup'
wiretap/.libs/libwiretap.so: undefined reference to `g_ptr_array_add'
wiretap/.libs/libwiretap.so: undefined reference to `g_strdup_printf'
wiretap/.libs/libwiretap.so: undefined reference to `g_ptr_array_free'
wiretap/.libs/libwiretap.so: undefined reference to `g_hash_table_new'
wiretap/.libs/libwiretap.so: undefined reference to `g_hash_table_foreach'
wiretap/.libs/libwiretap.so: undefined reference to `g_strup'
wiretap/.libs/libwiretap.so: undefined reference to `g_snprintf'
wiretap/.libs/libwiretap.so: undefined reference to `g_assert_warning'
wiretap/.libs/libwiretap.so: undefined reference to `g_list_append'
wiretap/.libs/libwiretap.so: undefined reference to `g_realloc'
wiretap/.libs/libwiretap.so: undefined reference to `g_hash_table_lookup'
wiretap/.libs/libwiretap.so: undefined reference to `g_direct_hash'
wiretap/.libs/libwiretap.so: undefined reference to `g_malloc0'
wiretap/.libs/libwiretap.so: undefined reference to `g_ptr_array_new'
wiretap/.libs/libwiretap.so: undefined reference to
`g_hash_table_foreach_remove'
wiretap/.libs/libwiretap.so: undefined reference to `g_array_append_vals'
wiretap/.libs/libwiretap.so: undefined reference to `g_log'
wiretap/.libs/libwiretap.so: undefined reference to `g_str_equal'
collect2: ld returned 1 exit status
make[2]: *** [randpkt] Ошибка 1
make[2]: Leaving directory
`/var/tmp/portage/net-analyzer/wireshark-0.99.8_rc1/work/wireshark-0.99.8pre1'
make[1]: *** [all-recursive] Ошибка 1
make[1]: Leaving directory
`/var/tmp/portage/net-analyzer/wireshark-0.99.8_rc1/work/wireshark-0.99.8pre1'
make: *** [all] Ошибка 2

A patch in attachment fixes the issue, but I'm not sure that this is the best
solution.


-- 
Configure bugmail: http://bugs.wireshark.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.