Wireshark mailing list archives
Re: Editcap link warnings
From: Christopher Maynard <Christopher.Maynard () gtech com>
Date: Wed, 6 Mar 2013 04:53:13 +0000 (UTC)
Bill Meier <wmeier@...> writes:
Recent Windows 7 and Windows XP Buildbot builds have been giving "locally defined symbol ... imported in ..." warnings while linking editcap: (I get the same warnings on my system).
Me too. Not sure if this is the right way to fix it, but this seems to work: Index: Makefile.nmake =================================================================== --- Makefile.nmake (revision 48128) +++ Makefile.nmake (working copy) @@ -327,7 +327,7 @@ # (e.g. epan\plugins.obj) must be built first using epan\Makefile.nmake (which happens for 'nmake ... all'). # Linking with setargv.obj enables "wildcard expansion" of command-line arguments capinfos.obj : - $(CC) $(CFLAGS) -Fd.\ -c capinfos.c + $(CC) $(CFLAGS) -DWS_BUILD_DLL -Fd.\ -c capinfos.c capinfos.exe : $(LIBS_CHECK) config.h $(capinfos_OBJECTS) wsutil\libwsutil.lib wiretap\wiretap-$(WTAP_VERSION).lib image\capinfos.res @echo Linking $@ $(LINK) @<< @@ -340,7 +340,7 @@ # XXX: This makefile does not properly handle doing a 'nmake ... editcap.exe' directly since some of the .objs # (e.g. epan\plugins.obj) must be built first using epan\Makefile.nmake (which happens for 'nmake ... all'). editcap.obj : - $(CC) $(CFLAGS) -Fd.\ -c editcap.c + $(CC) $(CFLAGS) -DWS_BUILD_DLL -Fd.\ -c editcap.c editcap.exe : $(LIBS_CHECK) config.h $(editcap_OBJECTS) wsutil\libwsutil.lib wiretap\wiretap-$(WTAP_VERSION).lib image\editcap.res @echo Linking $@ $(LINK) @<< ___________________________________________________________________________ Sent via: Wireshark-dev mailing list <wireshark-dev () wireshark org> Archives: http://www.wireshark.org/lists/wireshark-dev Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev mailto:wireshark-dev-request () wireshark org?subject=unsubscribe
Current thread:
- Editcap link warnings Bill Meier (Mar 05)
- Re: Editcap link warnings Christopher Maynard (Mar 05)
- Re: Editcap link warnings Pascal Quantin (Mar 05)
- Re: Editcap link warnings Christopher Maynard (Mar 06)
- Re: Editcap link warnings Gerald Combs (Mar 06)
- Re: Editcap link warnings Bálint Réczey (Mar 07)
- Re: Editcap link warnings Bálint Réczey (Mar 07)
- Re: Editcap link warnings Gerald Combs (Mar 07)
- Re: Editcap link warnings Pascal Quantin (Mar 07)
- Re: Editcap link warnings Bálint Réczey (Mar 08)
- Re: Editcap link warnings Pascal Quantin (Mar 05)
- Re: Editcap link warnings Christopher Maynard (Mar 05)