Ethereal

[ethereal-dev] multiple common of `popup_menu_object' [was Patches ... ]
Google
 
Web Ethereal.com

Home | Introduction | Documentation | Lists | FAQ | Development | Wiki | Bugs

Ethereal-dev: April 2000


See comment at the bottom

> On what OS is this? Can you send us the exact link warning?
...and if he changes
        GtkWidget           *popup_menu_object;
to
        extern GtkWidget    *popup_menu_object;
in "gtk/menu.h", and puts
        GtkWidget           *popup_menu_object;
into "gtk/main.c", do the warnings go away?

(If so, then he probably has a compiler that, for
        GtkWidget           *popup_menu_object;
generates an external definition rather than an external reference, and
a linker that warns about multiple external definitions but treats them
as UNIX-style common definitions.)

These are good points. I think that you are right about the characteristics of my compiler, but this is a standard linux system.

The relevant output from make is:

(cd .libs && gcc -c -fno-builtin -fno-rtti -fno-exceptions "etherealS.c")
rm -f .libs/etherealS.c .libs/ethereal.nm .libs/ethereal.nmS .libs/ethereal.nmT
gcc -Wall -g -I. -I./wiretap -I/usr/local/include -I/usr/X11R6/include -I/usr/local/lib/glib/include -I/usr/local/include -L/usr/local/lib -o ethereal packet-aarp.o packet-afs.o packet-arp.o packet-ascend.o ... packet-ypbind.o packet-ypserv.o packet-ypxfr.o asn1.o column.o conversation.o dfilter-grammar.o dfilter-scanner.o dfilter.o ethertype.o follow.o ipproto.o ipv4.o packet.o plugins.o prefs.o print.o proto.o ps.o register.o resolv.o util.o xdlc.o capture.o file.o summary.o inet_pton.o wiretap/libwiretap.a gtk/libui.a .libs/etherealS.o -lpcap -L/usr/local/lib -L/usr/X11R6/lib -lgtk -lgdk -rdynamic -lgmodule -lglib -ldl -lXext -lX11 -lm -lz -Wl,--export-dynamic
gtk/libui.a(menu.o): warning: multiple common of `popup_menu_object'
gtk/libui.a(main.o): warning: previous common is here
gtk/libui.a(packet_win.o): warning: multiple common of `popup_menu_object'
gtk/libui.a(main.o): warning: previous common is here
gtk/libui.a(file_dlg.o): warning: multiple common of `popup_menu_object'
gtk/libui.a(main.o): warning: previous common is here
rm -f .libs/etherealS.o



If something wrong is happening (and I am not sure that it is) then the configure script may need looking at.

I will check a number of points and answer all these issues later today.

Ben.


-- Leedsnet - The information resource for Leeds and the West Riding < URL:http://www.leedsnet.com/mobile/ >



Powered by MHonArc 2.6.10