Ethereal-dev: Re: [Ethereal-dev] Current CVS build fails on Windows

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Ulf Lamping <ulf.lamping@xxxxxx>
Date: Sun, 20 Jun 2004 11:52:38 +0200
Anders Broman wrote:

Hi,
Building from today's tarball I get the following error:
mergecap.c
Linking mergecap.exe
       link @C:\DOCUME~1\GAREN~1\LOKALA~1\Temp\nmd03760.
mergecap.obj : error LNK2001: unresolved external symbol
_merge_close_outfile
mergecap.obj : error LNK2001: unresolved external symbol _merge_files
mergecap.obj : error LNK2001: unresolved external symbol _merge_append_files
mergecap.obj : error LNK2001: unresolved external symbol
_merge_close_in_files
mergecap.obj : error LNK2001: unresolved external symbol _merge_open_outfile
mergecap.obj : error LNK2001: unresolved external symbol
_merge_max_snapshot_len
gth
mergecap.obj : error LNK2001: unresolved external symbol
_merge_select_frame_typ
e
mergecap.obj : error LNK2001: unresolved external symbol
_merge_open_in_files
mergecap.obj : error LNK2001: unresolved external symbol _merge_verbose
mergecap.exe : fatal error LNK1120: 9 unresolved externals
NMAKE : fatal error U1077: 'link' : return code '0x460'
Stop.
Sorry, my fault, forgot to check in the adding of merge.obj to the mergecap linking.

I've checked in a fix for this.

If you need an immediately fix, replace the following lines in \Makefile.nmake:

mergecap.exe : config.h cvsversion.h mergecap.obj merge.obj getopt.obj wiretap\wiretap-$(WTAP_VERSION).lib image\mergecap.res
   @echo Linking $@
   $(LINK) @<<
/OUT:mergecap.exe $(conflags) $(conlibsdll) $(LDFLAGS) /SUBSYSTEM:console mergecap.obj merge.obj getopt.obj $(mergecap_LIBS) image\mergecap.res
<<

Regards, ULFL