Ethereal-dev: [Ethereal-dev] Win32: Linker problems

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

From: "Klaus Woersdoerfer" <klaus@xxxxxxxxxxxxxxxx>
Date: Fri, 7 Jan 2005 16:00:45 +0100
Hallo,
 
I have problems to link the source Code of ethereal-0.10.8 on my Windows XP (SP #1) machine and cannot solve the problem. The build output is as follows.
 
C:\ethereal-0.10.8>nmake -f Makefile.nmake
 
Microsoft (R) Program Maintenance Utility   Version 6.00.9782.0
Copyright (C) Microsoft Corp 1988-1998. All rights reserved.
 
        cd tools
        NMAKE /                   -f Makefile.nmake
 
Microsoft (R) Program Maintenance Utility   Version 6.00.9782.0
Copyright (C) Microsoft Corp 1988-1998. All rights reserved.
 
        cd lemon
        NMAKE /                   -f Makefile.nmake
 
Microsoft (R) Program Maintenance Utility   Version 6.00.9782.0
Copyright (C) Microsoft Corp 1988-1998. All rights reserved.
 
        cd ..
        cd ..
        cd image
        NMAKE /                   -f Makefile.nmake
 
Microsoft (R) Program Maintenance Utility   Version 6.00.9782.0
Copyright (C) Microsoft Corp 1988-1998. All rights reserved.
 
        cd ..
        cd wiretap
        NMAKE /                   -f Makefile.nmake
 
Microsoft (R) Program Maintenance Utility   Version 6.00.9782.0
Copyright (C) Microsoft Corp 1988-1998. All rights reserved.
 
        link  /INCREMENTAL:NO /NOLOGO -entry:_DllMainCRTStartup@12 -dll kernel32.lib  ws2_32.lib
 mswsock.lib advapi32.lib  /DEBUG  /DEF:wtap.def /OUT:wiretap-0.1.dll  /IMPLIB:wiretap-0.1.lib
..\image\wiretap.res  5views.obj                 airopeek9.obj           ascend.obj
 atm.obj                         buffer.obj              cosine.obj              csids.obj
                 dbs-etherwatch.obj      erf.obj                         etherpeek.obj
    eyesdn.obj           file_access.obj                 file_wrappers.obj               hcidump
.obj             i4btrace.obj            iptrace.obj             lanalyzer.obj           libpcap
.obj             netmon.obj              nettl.obj                       network_instruments.obj
         netxray.obj             ngsniffer.obj           pppdump.obj             radcom.obj
         snoop.obj                       toshiba.obj             visual.obj              vms.obj
                         wtap.obj ascend-grammar.obj     ascend-scanner.obj C:\ethereal-win32-li
bs\glib\lib\glib-2.0.lib  C:\ethereal-win32-libs\glib\lib\gmodule-2.0.lib  C:\ethereal-win32-lib
s\glib\lib\gobject-2.0.lib       C:\ethereal-win32-libs\zlib122-dll\lib\zdll.lib
LINK : warning LNK4068: /MACHINE not specified; defaulting to IX86
   Creating library wiretap-0.1.lib and object wiretap-0.1.exp
LINK : warning LNK4049: locally defined symbol "_strtoul" imported
LINK : warning LNK4049: locally defined symbol "_strchr" imported
LINK : warning LNK4049: locally defined symbol "_memmove" imported
LINK : warning LNK4049: locally defined symbol "_exit" imported
LINK : warning LNK4049: locally defined symbol "_strstr" imported
LINK : warning LNK4049: locally defined symbol "_strncpy" imported
LINK : warning LNK4049: locally defined symbol "_strncmp" imported
LINK : warning LNK4049: locally defined symbol "__pctype" imported
LINK : warning LNK4049: locally defined symbol "__isctype" imported
LINK : warning LNK4049: locally defined symbol "___mb_cur_max" imported
LINK : warning LNK4049: locally defined symbol "_toupper" imported
LINK : warning LNK4049: locally defined symbol "_strtol" imported
LINK : warning LNK4049: locally defined symbol "_free" imported
LINK : warning LNK4049: locally defined symbol "_malloc" imported
pppdump.obj : error LNK2001: unresolved external symbol __imp___errno
radcom.obj : error LNK2001: unresolved external symbol __imp___errno
snoop.obj : error LNK2001: unresolved external symbol __imp___errno
visual.obj : error LNK2001: unresolved external symbol __imp___errno
nettl.obj : error LNK2001: unresolved external symbol __imp___errno
network_instruments.obj : error LNK2001: unresolved external symbol __imp___errno
netxray.obj : error LNK2001: unresolved external symbol __imp___errno
ngsniffer.obj : error LNK2001: unresolved external symbol __imp___errno
iptrace.obj : error LNK2001: unresolved external symbol __imp___errno
lanalyzer.obj : error LNK2001: unresolved external symbol __imp___errno
libpcap.obj : error LNK2001: unresolved external symbol __imp___errno
netmon.obj : error LNK2001: unresolved external symbol __imp___errno
eyesdn.obj : error LNK2001: unresolved external symbol __imp___errno
file_access.obj : error LNK2001: unresolved external symbol __imp___errno
file_wrappers.obj : error LNK2001: unresolved external symbol __imp___errno
.................
.................
.................
wiretap-0.1.dll : fatal error LNK1120: 36 unresolved externals
NMAKE : fatal error U1077: 'link' : return code '0x460'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio\VC98\bin\NMAKE.EXE"' : ret
urn code '0x2'
Stop.
 
 
I inspected all readme files and the Ethereal FAQs but could not find the cause for my linker problems.
 
On Windows XP SP #1 I have the following packages installed in this order
- Visual Studio 6.0 SP #6
- DDK for WXP
- Microsoft Platform SDK February 2003
- Ethereal source code in C:\ethereal-0.10.8
- cygwin latest version in c:\cygwin (nmake -f Makefile.nmake verify_tools is succesful)
- Additional libraries in c:\ethereal-win32-libs (with nmake -f Makefile.nmake setup)
 
 
Thank you very much for any help.
 
Klaus Woersdoerfer