Wireshark-dev: Re: [Wireshark-dev] Problems with epan\oids.c
From: Andrew Hood <ajhood@xxxxxxxxx>
Date: Fri, 14 Mar 2008 09:14:48 +1100
Luis EG Ontanon wrote:
>>Did you compile it using MSVC 6? Could this then be of the same type of
>>issue that is with adns, hence it is required to recompile libsmi too if
>>using another compiler for Wireshark on Windows than MSVC 6. Developer
>>Studio 2005EE for instance?
> 
> 
> I cannot swear on it but I would bet high that's the case.

I have the SVN version of libsmi and MSVC8.

I tried your makefile and the smi.def from the libsmi the Windows build
downloads.

I don't know enough about building on windows to get it to work. From
the number of messages about missing entrypoints it looks like it is
missing one or more files off the "link".

-- 
There's no point in being grown up if you can't be childish sometimes.
                -- Dr. Who
Microsoft (R) Program Maintenance Utility Version 8.00.50727.762
Copyright (C) Microsoft Corporation.  All rights reserved.

	link   /INCREMENTAL:NO /NOLOGO -entry:_DllMainCRTStartup@12 -dll kernel32.lib  ws2_32.lib mswsock.lib advapi32.lib bufferoverflowu.lib /NODEFAULTLIB /machine:i386 shell32.lib  version.lib /DEBUG /DEF:smi.def /OUT:smi.dll  /IMPLIB:smi.lib  .\win.obj			 .\shhopt.obj			 .\data.obj			 .\check.obj			 .\error.obj			 .\util.obj			 .\smi.obj			 .\parser-smi.obj		 .\scanner-smi.obj		 .\parser-sming.obj		 .\scanner-sming.obj		 .\snprintf.obj
   Creating library smi.lib and object smi.exp
LINK : error LNK2001: unresolved external symbol __DllMainCRTStartup@12
shhopt.obj : error LNK2019: unresolved external symbol __imp__exit referenced in function _optFatalFunc
error.obj : error LNK2001: unresolved external symbol __imp__exit
scanner-smi.obj : error LNK2001: unresolved external symbol __imp__exit
scanner-sming.obj : error LNK2001: unresolved external symbol __imp__exit
shhopt.obj : error LNK2019: unresolved external symbol __imp__vfprintf referenced in function _optFatalFunc
shhopt.obj : error LNK2019: unresolved external symbol __imp__fflush referenced in function _optFatalFunc
scanner-smi.obj : error LNK2019: unresolved external symbol __imp____iob_func referenced in function _smilex
parser-sming.obj : error LNK2001: unresolved external symbol __imp____iob_func
scanner-sming.obj : error LNK2001: unresolved external symbol __imp____iob_func
shhopt.obj : error LNK2001: unresolved external symbol __imp____iob_func
error.obj : error LNK2001: unresolved external symbol __imp____iob_func
smi.obj : error LNK2001: unresolved external symbol __imp____iob_func
parser-smi.obj : error LNK2001: unresolved external symbol __imp____iob_func
scanner-smi.obj : error LNK2019: unresolved external symbol __imp__strchr referenced in function _yy_get_next_buffer
scanner-sming.obj : error LNK2001: unresolved external symbol __imp__strchr
shhopt.obj : error LNK2001: unresolved external symbol __imp__strchr
util.obj : error LNK2001: unresolved external symbol __imp__strchr
smi.obj : error LNK2001: unresolved external symbol __imp__strchr
parser-smi.obj : error LNK2001: unresolved external symbol __imp__strchr
shhopt.obj : error LNK2019: unresolved external symbol __imp__strncmp referenced in function _optParseOptions
smi.obj : error LNK2001: unresolved external symbol __imp__strncmp
parser-smi.obj : error LNK2001: unresolved external symbol __imp__strncmp
parser-sming.obj : error LNK2001: unresolved external symbol __imp__isdigit
snprintf.obj : error LNK2001: unresolved external symbol __imp__isdigit
shhopt.obj : error LNK2019: unresolved external symbol __imp__isdigit referenced in function _optParseOptions
check.obj : error LNK2001: unresolved external symbol __imp__isdigit
smi.obj : error LNK2001: unresolved external symbol __imp__isdigit
parser-smi.obj : error LNK2001: unresolved external symbol __imp__isdigit
parser-smi.obj : error LNK2001: unresolved external symbol _strcmp
scanner-smi.obj : error LNK2019: unresolved external symbol _strcmp referenced in function _yy_get_next_buffer
parser-sming.obj : error LNK2001: unresolved external symbol _strcmp
scanner-sming.obj : error LNK2001: unresolved external symbol _strcmp
shhopt.obj : error LNK2001: unresolved external symbol _strcmp
data.obj : error LNK2001: unresolved external symbol _strcmp
check.obj : error LNK2001: unresolved external symbol _strcmp
smi.obj : error LNK2001: unresolved external symbol _strcmp
parser-sming.obj : error LNK2001: unresolved external symbol _strlen
snprintf.obj : error LNK2001: unresolved external symbol _strlen
shhopt.obj : error LNK2019: unresolved external symbol _strlen referenced in function _optMatch
data.obj : error LNK2001: unresolved external symbol _strlen
smi.obj : error LNK2001: unresolved external symbol _strlen
parser-smi.obj : error LNK2001: unresolved external symbol _strlen
shhopt.obj : error LNK2019: unresolved external symbol __imp__strncpy referenced in function _optString
util.obj : error LNK2001: unresolved external symbol __imp__strncpy
parser-smi.obj : error LNK2001: unresolved external symbol __imp__strncpy
shhopt.obj : error LNK2019: unresolved external symbol _strcpy referenced in function _optString
smi.obj : error LNK2001: unresolved external symbol _strcpy
parser-sming.obj : error LNK2001: unresolved external symbol _strcpy
scanner-smi.obj : error LNK2001: unresolved external symbol __imp__strtoul
parser-sming.obj : error LNK2001: unresolved external symbol __imp__strtoul
shhopt.obj : error LNK2019: unresolved external symbol __imp__strtoul referenced in function _optExecute
data.obj : error LNK2001: unresolved external symbol __imp__strtoul
smi.obj : error LNK2001: unresolved external symbol __imp__strtoul
parser-smi.obj : error LNK2001: unresolved external symbol __imp__strtoul
scanner-sming.obj : error LNK2001: unresolved external symbol __imp___errno
shhopt.obj : error LNK2019: unresolved external symbol __imp___errno referenced in function _optExecute
data.obj : error LNK2001: unresolved external symbol __imp___errno
scanner-smi.obj : error LNK2001: unresolved external symbol __imp___errno
parser-sming.obj : error LNK2001: unresolved external symbol __imp___errno
shhopt.obj : error LNK2019: unresolved external symbol __imp__strtol referenced in function _optExecute
parser-smi.obj : error LNK2001: unresolved external symbol __imp__strtol
scanner-smi.obj : error LNK2001: unresolved external symbol __imp__strtol
parser-sming.obj : error LNK2001: unresolved external symbol __imp__strtol
data.obj : error LNK2019: unresolved external symbol __imp__strtok referenced in function _createNodesByOidString
smi.obj : error LNK2001: unresolved external symbol __imp__strtok
parser-sming.obj : error LNK2001: unresolved external symbol __imp__strtok
data.obj : error LNK2019: unresolved external symbol __imp__atoi referenced in function _findNodeByOidString
smi.obj : error LNK2001: unresolved external symbol __imp__atoi
data.obj : error LNK2019: unresolved external symbol __imp__rewind referenced in function _loadModule
data.obj : error LNK2019: unresolved external symbol __imp__fclose referenced in function _loadModule
smi.obj : error LNK2001: unresolved external symbol __imp__fclose
data.obj : error LNK2019: unresolved external symbol __imp__isspace referenced in function _loadModule
scanner-smi.obj : error LNK2001: unresolved external symbol __imp__isspace
scanner-sming.obj : error LNK2001: unresolved external symbol __imp__isspace
data.obj : error LNK2019: unresolved external symbol __imp__isupper referenced in function _loadModule
smi.obj : error LNK2001: unresolved external symbol __imp__isupper
data.obj : error LNK2019: unresolved external symbol __imp__fgetc referenced in function _loadModule
data.obj : error LNK2019: unresolved external symbol __imp__strerror referenced in function _loadModule
data.obj : error LNK2019: unresolved external symbol __imp__fopen referenced in function _loadModule
smi.obj : error LNK2001: unresolved external symbol __imp__fopen
data.obj : error LNK2019: unresolved external symbol __imp__tolower referenced in function _loadModule
data.obj : error LNK2019: unresolved external symbol __imp__access referenced in function _loadModule
check.obj : error LNK2019: unresolved external symbol __imp__stricmp referenced in function _smiCheckObjectName
check.obj : error LNK2019: unresolved external symbol _memcmp referenced in function _smiCheckModuleIdentityRegistration
smi.obj : error LNK2001: unresolved external symbol _memcmp
error.obj : error LNK2019: unresolved external symbol __imp__strstr referenced in function _smiSetErrorSeverity
smi.obj : error LNK2001: unresolved external symbol __imp__strstr
parser-sming.obj : error LNK2001: unresolved external symbol __imp__strstr
parser-sming.obj : error LNK2019: unresolved external symbol __imp__fprintf referenced in function _smingparse
scanner-sming.obj : error LNK2001: unresolved external symbol __imp__fprintf
error.obj : error LNK2001: unresolved external symbol __imp__fprintf
smi.obj : error LNK2001: unresolved external symbol __imp__fprintf
parser-smi.obj : error LNK2001: unresolved external symbol __imp__fprintf
scanner-smi.obj : error LNK2001: unresolved external symbol __imp__fprintf
util.obj : error LNK2019: unresolved external symbol __imp__calloc referenced in function _smiMalloc
util.obj : error LNK2019: unresolved external symbol __imp__realloc referenced in function _smiRealloc
scanner-smi.obj : error LNK2001: unresolved external symbol __imp__realloc
scanner-sming.obj : error LNK2001: unresolved external symbol __imp__realloc
snprintf.obj : error LNK2001: unresolved external symbol __imp__realloc
util.obj : error LNK2019: unresolved external symbol __imp__strdup referenced in function _smiStrdup
util.obj : error LNK2019: unresolved external symbol __imp__free referenced in function _smiFree
scanner-smi.obj : error LNK2001: unresolved external symbol __imp__free
scanner-sming.obj : error LNK2001: unresolved external symbol __imp__free
snprintf.obj : error LNK2001: unresolved external symbol __imp__free
util.obj : error LNK2019: unresolved external symbol __imp__putenv referenced in function _timegm
util.obj : error LNK2019: unresolved external symbol __imp__getenv referenced in function _timegm
smi.obj : error LNK2001: unresolved external symbol __imp__getenv
util.obj : error LNK2019: unresolved external symbol __imp___mktime64 referenced in function _mktime
smi.obj : error LNK2019: unresolved external symbol __imp__fgets referenced in function _smiReadConfig
smi.obj : error LNK2019: unresolved external symbol __imp__feof referenced in function _smiReadConfig
smi.obj : error LNK2019: unresolved external symbol __imp__strcspn referenced in function _getModulenameAndName
smi.obj : error LNK2019: unresolved external symbol __imp__isprint referenced in function _smiRenderValue
smi.obj : error LNK2019: unresolved external symbol __imp__sprintf referenced in function _smiRenderValue
parser-smi.obj : error LNK2001: unresolved external symbol __imp__sprintf
scanner-smi.obj : error LNK2001: unresolved external symbol __imp__sprintf
parser-sming.obj : error LNK2001: unresolved external symbol __imp__sprintf
smi.obj : error LNK2019: unresolved external symbol __allmul referenced in function _smiRenderValue
parser-smi.obj : error LNK2019: unresolved external symbol _free referenced in function _smiparse
parser-sming.obj : error LNK2001: unresolved external symbol _free
parser-smi.obj : error LNK2019: unresolved external symbol _malloc referenced in function _smiparse
parser-sming.obj : error LNK2001: unresolved external symbol _malloc
parser-smi.obj : error LNK2019: unresolved external symbol __chkstk referenced in function _smiparse
parser-sming.obj : error LNK2001: unresolved external symbol __chkstk
parser-smi.obj : error LNK2019: unresolved external symbol _memset referenced in function _adjustDefval
parser-sming.obj : error LNK2001: unresolved external symbol _memset
parser-smi.obj : error LNK2019: unresolved external symbol _memcpy referenced in function _adjustDefval
parser-smi.obj : error LNK2019: unresolved external symbol __imp___time64 referenced in function _time
parser-sming.obj : error LNK2001: unresolved external symbol __imp___time64
scanner-smi.obj : error LNK2019: unresolved external symbol __imp__fwrite referenced in function _smilex
scanner-sming.obj : error LNK2001: unresolved external symbol __imp__fwrite
scanner-smi.obj : error LNK2019: unresolved external symbol __imp__clearerr referenced in function _yy_get_next_buffer
scanner-sming.obj : error LNK2001: unresolved external symbol __imp__clearerr
scanner-smi.obj : error LNK2019: unresolved external symbol __imp__fread referenced in function _yy_get_next_buffer
scanner-sming.obj : error LNK2001: unresolved external symbol __imp__fread
scanner-smi.obj : error LNK2019: unresolved external symbol __imp__ferror referenced in function _yy_get_next_buffer
scanner-sming.obj : error LNK2001: unresolved external symbol __imp__ferror
scanner-smi.obj : error LNK2019: unresolved external symbol __imp__getc referenced in function _yy_get_next_buffer
scanner-sming.obj : error LNK2001: unresolved external symbol __imp__getc
scanner-smi.obj : error LNK2019: unresolved external symbol _isatty referenced in function _smi_init_buffer
scanner-sming.obj : error LNK2001: unresolved external symbol _isatty
scanner-smi.obj : error LNK2019: unresolved external symbol _fileno referenced in function _smi_init_buffer
scanner-sming.obj : error LNK2001: unresolved external symbol _fileno
scanner-smi.obj : error LNK2019: unresolved external symbol __imp__malloc referenced in function _yy_flex_alloc
scanner-sming.obj : error LNK2001: unresolved external symbol __imp__malloc
snprintf.obj : error LNK2001: unresolved external symbol __imp__malloc
parser-sming.obj : error LNK2019: unresolved external symbol _strcat referenced in function _smingparse
parser-sming.obj : error LNK2019: unresolved external symbol __imp__strtod referenced in function _smingparse
parser-sming.obj : error LNK2001: unresolved external symbol __fltused
smi.dll : fatal error LNK1120: 60 unresolved externals
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 8\VC\bin\link.EXE"' : return code '0x460'
Stop.