Ethereal-dev: [Ethereal-dev] miscellaneous patches for win32
Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.
From: Lars Roland <lars.roland@xxxxxxx>
Date: Sat, 02 Oct 2004 03:30:56 +0200
Hello all, small miscellaneous patches are attached. - don't link EXTRA_OBJECTS unnecessarily with ethereal.exe, tethereal.exe and dftest.exe. Export mkstemp() from libethereal.dll instead. - define _NEED_VAR_IMPORT_ in dftest.c to make linking with libethereal.dll work again. Please check in. Regards, Lars
Index: ethereal-new/dftest.c =================================================================== --- ethereal-new/dftest.c (revision 12179) +++ ethereal-new/dftest.c (working copy) @@ -22,6 +22,10 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ + +/* With MSVC and a libethereal.dll this file needs to import some variables + in a special way. Therefore _NEED_VAR_IMPORT_ is defined. */ +#define _NEED_VAR_IMPORT_ #ifdef HAVE_CONFIG_H # include "config.h"
Index: ethereal-new/epan/libethereal.def =================================================================== --- ethereal-new/epan/libethereal.def (revision 12179) +++ ethereal-new/epan/libethereal.def (working copy) @@ -302,6 +302,7 @@ is_tpkt LocationRejectReason_vals DATA match_strval +mkstemp mtp3_addr_to_str_buf mtp3_service_indicator_code_short_vals DATA new_create_dissector_handle
Index: ethereal-new/Makefile.nmake =================================================================== --- ethereal-new/Makefile.nmake (revision 12179) +++ ethereal-new/Makefile.nmake (working copy) @@ -145,27 +145,27 @@ !IFNDEF GTK1_DIR ethereal.exe : !ELSE -ethereal.exe : config.h svnversion.h $(ethereal_OBJECTS) $(EXTRA_OBJECTS) epan gtk image\ethereal.res wiretap\wiretap-$(WTAP_VERSION).lib gtk\libui.lib plugins +ethereal.exe : config.h svnversion.h $(ethereal_OBJECTS) epan gtk image\ethereal.res wiretap\wiretap-$(WTAP_VERSION).lib gtk\libui.lib plugins @echo Linking $@ $(LINK) @<< - /OUT:ethereal.exe $(guiflags) $(guilibsdll) $(LDFLAGS) /SUBSYSTEM:windows $(ethereal_LIBS) $(GTK1_LIBS) gtk\libui.lib $(ethereal_OBJECTS) $(EXTRA_OBJECTS) image\ethereal.res + /OUT:ethereal.exe $(guiflags) $(guilibsdll) $(LDFLAGS) /SUBSYSTEM:windows $(ethereal_LIBS) $(GTK1_LIBS) gtk\libui.lib $(ethereal_OBJECTS) image\ethereal.res << !ENDIF !IFNDEF GTK2_DIR ethereal-gtk2.exe : !ELSE -ethereal-gtk2.exe : config.h svnversion.h $(ethereal_OBJECTS) $(EXTRA_OBJECTS) epan gtk2 image\ethereal.res wiretap\wiretap-$(WTAP_VERSION).lib gtk2.tmp\libui.lib plugins +ethereal-gtk2.exe : config.h svnversion.h $(ethereal_OBJECTS) epan gtk2 image\ethereal.res wiretap\wiretap-$(WTAP_VERSION).lib gtk2.tmp\libui.lib plugins @echo Linking $@ $(LINK) @<< - /OUT:ethereal-gtk2.exe $(guiflags) $(guilibsdll) $(LDFLAGS) /SUBSYSTEM:windows $(ethereal_LIBS) $(GTK2_LIBS) gtk2.tmp\libui.lib $(ethereal_OBJECTS) $(EXTRA_OBJECTS) image\ethereal.res + /OUT:ethereal-gtk2.exe $(guiflags) $(guilibsdll) $(LDFLAGS) /SUBSYSTEM:windows $(ethereal_LIBS) $(GTK2_LIBS) gtk2.tmp\libui.lib $(ethereal_OBJECTS) image\ethereal.res << !ENDIF -tethereal.exe : config.h svnversion.h $(tethereal_OBJECTS) $(EXTRA_OBJECTS) epan image\tethereal.res wiretap\wiretap-$(WTAP_VERSION).lib plugins +tethereal.exe : config.h svnversion.h $(tethereal_OBJECTS) epan image\tethereal.res wiretap\wiretap-$(WTAP_VERSION).lib plugins @echo Linking $@ $(LINK) @<< - /OUT:tethereal.exe $(conflags) $(conlibsdll) $(LDFLAGS) /SUBSYSTEM:console $(tethereal_LIBS) $(tethereal_OBJECTS) $(EXTRA_OBJECTS) image\tethereal.res + /OUT:tethereal.exe $(conflags) $(conlibsdll) $(LDFLAGS) /SUBSYSTEM:console $(tethereal_LIBS) $(tethereal_OBJECTS) image\tethereal.res << capinfo.exe : config.h capinfo.obj getopt.obj wiretap\wiretap-$(WTAP_VERSION).lib image\capinfo.res @@ -192,12 +192,12 @@ /OUT:text2pcap.exe $(conflags) $(conlibsdll) $(LDFLAGS) /SUBSYSTEM:console text2pcap.obj text2pcap-scanner.obj getopt.obj strptime.obj image\text2pcap.res << -dftest.exe : $(dftest_OBJECTS) $(EXTRA_OBJECTS) epan +dftest.exe : $(dftest_OBJECTS) epan $(LINK) @<< - /OUT:dftest.exe $(conflags) $(conlibsdll) $(LDFLAGS) /SUBSYSTEM:console $(dftest_LIBS) $(dftest_OBJECTS) $(EXTRA_OBJECTS) + /OUT:dftest.exe $(conflags) $(conlibsdll) $(LDFLAGS) /SUBSYSTEM:console $(dftest_LIBS) $(dftest_OBJECTS) << -randpkt.exe : $(randpkt_OBJECTS) $(EXTRA_OBJECTS) +randpkt.exe : $(randpkt_OBJECTS) $(LINK) @<< /OUT:randpkt.exe $(conflags) $(conlibsdll) $(LDFLAGS) /SUBSYSTEM:console $(randpkt_LIBS) $(randpkt_OBJECTS) <<
- Follow-Ups:
- Re: [Ethereal-dev] miscellaneous patches for win32
- From: Guy Harris
- Re: [Ethereal-dev] miscellaneous patches for win32
- Prev by Date: Re: [Ethereal-dev] patch for plugin makefiles
- Next by Date: Re: [Ethereal-dev] miscellaneous patches for win32
- Previous by thread: [Ethereal-dev] tethereal 0.10.6 yields Glib-ERROR, running on Win2000
- Next by thread: Re: [Ethereal-dev] miscellaneous patches for win32
- Index(es):