Ethereal-users: [Ethereal-users] NMAKE: unresolved external symbol __alloca

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

From: "Corpse" <ip-corpse@xxxxxxx>
Date: Fri, 1 Mar 2002 17:58:10 +0300
I am trying to compile ethereal for win32, using nmake (microsoft visual studio 6.0), and have got a strange problem:
 
Compiler succeeds, but Linker fails with the following error:
 
        link /NODEFAULTLIB /INCREMENTAL:NO /PDB:NONE /RELEASE /NOLOGO -entry:_DllMainCRTStartup@12 -dll msvcrt.lib oldnames.lib kernel32.lib  ws2_32.lib mswsock.lib advapi32.lib  /DEBUG  /DEF:wtap.def /OUT:wiretap-0.0.dll  /IMPLIB:wiretap-0.0.lib  ascend-grammar.obj  ascend-scanner.obj  ascend.obj buffer.obj  csids.obj  etherpeek.obj  file.obj  file_wrappers.obj  i4btrace.obj  iptrace.obj  lanaly zer.obj  libpcap.obj  netmon.obj  nettl.obj  netxray.obj  ngsniffer.obj  radcom.obj  pppdump.obj  snoop.obj  toshiba.obj  wtap.obj D:\Tools\src\glib\glib-1.3.lib  D:\Tools\src\zlib-1.1.3\zlib.lib
   Creating library wiretap-0.0.lib and object wiretap-0.0.exp
zlib.lib(gzio.o) : error LNK2001: unresolved external symbol __alloca
wiretap-0.0.dll : fatal error LNK1120: 1 unresolved externals
NMAKE : fatal error U1077: 'link' : return code '0x460'
Stop.
NMAKE : fatal error U1077: 'C:\PROGRA~1\MIAF9D~1\VC98\BIN\NMAKE.EXE' : return code '0x2'
Stop.
 
I`ve seen VC98\Include\malloc.h. Somewhere there is #define alloca _alloca .... but I didn`t find __alloca in any library.
 
Did anyone confront with such difficulties?
 


This message has been 'sanitized'. This means that potentially dangerous content has been rewritten or removed. The following log describes which actions were taken.


Sanitizer (start="1014994736"):
  Part (pos="1213"):
    SanitizeFile (filename="unnamed.txt", mimetype="text/plain"):
      Match (rule="2"):
        Enforced policy: accept

  Part (pos="2669"):
    SanitizeFile (filename="unnamed.html", mimetype="text/html"):
      Match (rule="default"):
        Enforced policy: accept

    Rewrote HTML tag: >>_META http-equiv=Content-Type content="text/html; charset=koi8-r"_<<
                  as: >>_MANGLED_ON_PURPOSE_META http-equiv=Content-Type content="text/html; charset=koi8-r"_<<
    Rewrote HTML tag: >>_META content="MSHTML 6.00.2600.0" name=GENERATOR_<<
                  as: >>_MANGLED_ON_PURPOSE_META content="MSHTML 6.00.2600.0" name=GENERATOR_<<
    Rewrote HTML tag: >>_STYLE_<<
                  as: >>_MANGLED_ON_PURPOSE_STYLE_<<
    Total modifications so far: 3


Anomy 0.0.0 : Sanitizer.pm $Id: Sanitizer.pm,v 1.32 2001/10/11 19:27:15 bre Exp $