Wireshark-dev: Re: [Wireshark-dev] trunk/gtk/wireshark-tap-register.c:18 undefined reference to
From: Stephen Fisher <stephentfisher@xxxxxxxxx>
Date: Fri, 2 Mar 2007 13:31:08 -0800
On Fri, Mar 02, 2007 at 10:10:02PM +0100, Toralf F?rster wrote:

> lib-2.0.so -lrt /usr/lib/libgnutls.so /usr/lib/libtasn1.so /usr/lib/libgcrypt.so -lnsl /usr/lib/libgpg-error.so -lz
> gtk/libui.a(wireshark-tap-register.o): In function `register_all_tap_listeners':
> /home/tfoerste/devel/wireshark/trunk/gtk/wireshark-tap-register.c:18: undefined reference to `register_tap_listener_gtk_cl_http_stat'
> collect2: ld returned 1 exit status
> make[2]: *** [wireshark] Error 1
> make[2]: Leaving directory `/home/tfoerste/devel/wireshark/trunk'
> 
> but the compile error couldn be solved by comment out line 17 and 18:
> 
> tfoerste@n22 ~/devel/wireshark/trunk $ nl -ba 
> /home/tfoerste/devel/wireshark/trunk/gtk/wireshark-tap-register.c | grep '//'
>     17 // { extern void register_tap_listener_gtk_cl_http_stat (void);
>     18  //   register_tap_listener_gtk_cl_http_stat ();}
> 
> Hhm, today after deleting that file (yesterday I did a "make 
> distclean" but that didn't helped me) the compile error went
>  away (svn revision is now 20957 and not 20956).

That function call to register_tap_listener_gtk_cl_http_stat() went away 
a few revs back when the feature I've been working on moved from the 
statistics menu to the file -> export menu.  The entry should have been 
removed from wireshark-tap-register.c by the makefiles automatically.  
Glad it's working for you now and thanks for the report.


Steve