http://bugs.wireshark.org/bugzilla/show_bug.cgi?id=1509
Summary: Undefined reference to gtk_text_buffer_select_range
Product: Wireshark
Version: 0.99.5
Platform: PC
URL: http://www.wireshark.org/lists/wireshark-
dev/200703/msg00931.html
OS/Version: Linux
Status: NEW
Severity: Normal
Priority: Medium
Component: TShark
AssignedTo: wireshark-bugs@xxxxxxxxxxxxx
ReportedBy: christopher.maynard@xxxxxxxxx
Build Information:
"wireshark -v" output is not available because the .rpm can't be built;
however, the attempt at creating an .rpm is based on wireshark-0.99.5 sources.
--
While attempting to build a Wireshark .rpm on a Red Hat Enterprise Linux
system (RHEL "Taroon", update 8), I ran into an "undefined reference" problem.
Relevant output here:
=====[ START ]=====
/usr/bin/ld: warning: libcom_err.so.3, needed by /usr/lib/libcrypto.so,
may conflict with libcom_err.so.2
gtk/libui.a(ssl-dlg.o)(.text+0x1f3e): In function
`follow_find_button_cb':
/home/username/wireshark-0.99.5/packaging/rpm/BUILD/wireshark-0.99.5/gtk
/ssl-dlg.c:861: undefined reference to `gtk_text_buffer_select_range'
gtk/libui.a(follow_dlg.o)(.text+0x2431): In function
`follow_find_button_cb':
/home/username/wireshark-0.99.5/packaging/rpm/BUILD/wireshark-0.99.5/gtk
/follow_dlg.c:991: undefined reference to `gtk_text_buffer_select_range'
collect2: ld returned 1 exit status
make[3]: *** [wireshark] Error 1
=====[ END ]=====
According to Stephen Fisher, gtk_text_buffer_select_range is supported in
gtk2.4 or greater, but RHEL3 is only equipped with gtk2-2.2.4-19. However, I
tried to disable gtk2 (since RHEL3 also has gtk+-1.2.10-31, so this should not
have been a problem. Here are the steps I took and the configure options I
used:
=====[ START ]=====
./autogen.sh
./configure --disable-gtk2 --enable-wireshark=no --enable-tshark=yes
--enable-editcap=yes --enable-dumpcap=yes --enable-capinfos=no
--enable-mergecap=yes --enable-text2pcap=no --enable-idl2wrs=no
--enable-dftest=no --enable-randpkt=no --enable-ipv6=no
--enable-threads=no --without-ssl --without-net-snmp --without-adns
--without-lua --without-portaudio --without-pcre --without-krb5
make clean
make rpm-package
=====[ END ]=====
So, there are actually 2 bugs being reported here:
1) When building rpm's with gtk2 enabled, you apparently must have gtk2.4 or
greater installed on your system in order for it to work. Either changes
should be made to support gtk2.2 (and earlier versions of gtk2), or it should
be documented somewhere that 2.4 or higher is a requirement.
2) When building rpm's with gtk2 disabled (on a system with only gtk2.2 at
least), it still fails just the same as if gtk2 was enabled.
- Chris
--
Configure bugmail: http://bugs.wireshark.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.