ANNOUNCEMENT: Live Wireshark University & Allegro Packets online APAC Wireshark Training Session
April 17th, 2024 | 14:30-16:00 SGT (UTC+8) | Online

Wireshark-dev: Re: [Wireshark-dev] Wireshark 0.99.5 "make rpm-package" problemsonRHEL3

From: "Maynard, Chris" <Christopher.Maynard@xxxxxxxxx>
Date: Fri, 30 Mar 2007 12:51:21 -0400
In an attempt to circumvent this problem I tried to disable gtk2.
Unfortunately, it doesn't seem to work.  I still get the same "undefined
reference" as before.  But if 'gtk_text_buffer_select_range' is
applicable for 2.4+ only and I've disabled gtk2, then why is it still
trying to call it?  Wouldn't it fail for anyone building without gtk2
support on any platform?  

BTW: Attached are my configured options, and as you can see, most things
are actually disabled; I'm mostly just interested in tshark for this
rpm.
- Chris


-----Original Message-----
From: wireshark-dev-bounces@xxxxxxxxxxxxx
[mailto:wireshark-dev-bounces@xxxxxxxxxxxxx] On Behalf Of Maynard, Chris
Sent: Thursday, March 29, 2007 10:43 PM
To: Developer support list for Wireshark
Subject: Re: [Wireshark-dev] Wireshark 0.99.5 "make rpm-package"
problemsonRHEL3

Ah, I guess that explains it.  Red Hat Enterprise Linux 3 is equipped
with  gtk2-2.2.4-19 (and gtk+-1.2.10-31).  Is gtk 2.4 or higher a
requirement for building a Wireshark rpm?  I did not see any mention of
any minimum 2.x requirement in the README.developer, README.linux or any
other README* files.

Is there any way to resolve this ... without having to upgrade to 2.4 of
course?  I can upgrade my own development box, but it would not be
possible for me to upgrade all boxes on which Wireshark is intended to
run on.

Thanks in advance,
Chris
(P.S. Thanks Joerg for the epan/crypt/Makefile.common fix.)


-----Original Message-----
From: wireshark-dev-bounces@xxxxxxxxxxxxx
[mailto:wireshark-dev-bounces@xxxxxxxxxxxxx] On Behalf Of Stephen Fisher
Sent: Wednesday, March 28, 2007 5:34 PM
To: Developer support list for Wireshark
Subject: Re: [Wireshark-dev] Wireshark 0.99.5 "make rpm-package"
problems onRHEL3

On Wed, Mar 28, 2007 at 04:07:34PM -0400, Maynard, Chris wrote:

> 2) Ran into an "undefined reference" problem.  Here's the relevant
> output:
> 
> 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

I've never tried building a Wireshark RPM unfortunately.  However, since

I wrote the code referenced above, your message caught my eye.  What 
version of GTK are you using on this system?  The 
gtk_text_buffer_select_range() function is available in GTK 2.4 and 
above.


Steve




-----------------------------------------
This email may contain confidential and privileged material for the
sole use of the intended recipient(s). Any review, use, retention,
distribution or disclosure by others is strictly prohibited. If you
are not the intended recipient (or authorized to receive for the
recipient), please contact the sender by reply email and delete all
copies of this message. Also, email is susceptible to data
corruption, interception, tampering, unauthorized amendment and
viruses. We only send and receive emails on the basis that we are
not liable for any such corruption, interception, tampering,
amendment or viruses or any consequence thereof.
The Wireshark package has been configured with the following options.
                    Build wireshark : no
                       Build tshark : yes
                     Build capinfos : no
                      Build editcap : yes
                      Build dumpcap : yes
                     Build mergecap : yes
                    Build text2pcap : no
                      Build idl2wrs : no
                      Build randpkt : no
                       Build dftest : no
 
                     Install setuid : no
                        Use plugins : yes
                   Build lua plugin : no
                   Build rtp_player : no
                Use GTK+ v2 library : no
                   Use pcap library : yes
                   Use zlib library : yes
                   Use pcre library : no
               Use kerberos library : no
               Use GNU ADNS library : no
             Use GNU crypto library : no
             Use SSL crypto library : no
           Use IPv6 name resolution : no
               Use Net-SNMP library : no
                 Use gnutls library : no