Nmap Development mailing list archives

NOLUA in preprocessor Visual Studio on windows gives errors


From: "Jaime Reza" <turinreza () gmail com>
Date: Wed, 12 Mar 2008 17:34:42 -0800

Seems like some places are not using IFNDEFs for NOLUA and accessing things
set by the previous IFNDEFS for NOLUA

getting errors

------ Rebuild All started: Project: liblua, Configuration: Debug Win32
------
Deleting intermediate and output files for project 'liblua', configuration
'Debug|Win32'
Compiling...
lapi.c
lauxlib.c
lbaselib.c
lcode.c
ldblib.c
ldebug.c
ldo.c
ldump.c
lfunc.c
lgc.c
linit.c
liolib.c
llex.c
lmathlib.c
lmem.c
loadlib.c
lobject.c
lopcodes.c
loslib.c
lparser.c
Generating Code...
Compiling...
lstate.c
lstring.c
lstrlib.c
ltable.c
ltablib.c
ltm.c
lundump.c
lvm.c
lzio.c
print.c
Generating Code...
Creating library...
Build log was saved at "file://c:\nmap-4.53\liblua\Debug\BuildLog.htm"
liblua - 0 error(s), 0 warning(s)
------ Rebuild All started: Project: nbase, Configuration: Debug Win32
------
Deleting intermediate and output files for project 'nbase', configuration
'Debug|Win32'
Compiling...
getopt.c
inet_ntop.c
inet_pton.c
nbase_memalloc.c
nbase_misc.c
nbase_rnd.c
nbase_str.c
c:\nmap-4.53\nbase\nbase_str.c(208) : warning C4244: 'return' : conversion
from '__w64 int' to 'int', possible loss of data
nbase_time.c
strcasecmp.c
Generating Code...
Creating library...
Build log was saved at "file://c:\nmap-4.53\nbase\Debug\BuildLog.htm"
nbase - 0 error(s), 1 warning(s)
------ Rebuild All started: Project: dnet, Configuration: Debug Win32 ------
Deleting intermediate and output files for project 'dnet', configuration
'Debug|Win32'
Compiling...
addr-util.c
addr.c
arp-win32.c
err.c
eth-win32.c
intf-win32.c
ip-util.c
ip-win32.c
ip6.c
route-win32.c
strlcat.c
strlcpy.c
strsep.c
Generating Code...
Creating library...
Build log was saved at "file://c:\nmap-
4.53\libdnet-stripped\Debug\BuildLog.htm"
dnet - 0 error(s), 0 warning(s)
------ Rebuild All started: Project: libpcre, Configuration: Debug Win32
------
Deleting intermediate and output files for project 'libpcre', configuration
'Debug|Win32'
Compiling...
pcre_chartables.c
pcre_compile.c
pcre_config.c
pcre_dfa_exec.c
pcre_exec.c
pcre_fullinfo.c
pcre_get.c
pcre_globals.c
pcre_info.c
pcre_maketables.c
pcre_newline.c
pcre_ord2utf8.c
pcre_refcount.c
pcre_study.c
pcre_tables.c
pcre_try_flipped.c
pcre_ucp_searchfuncs.c
pcre_valid_utf8.c
pcre_version.c
pcre_xclass.c
Generating Code...
Compiling...
pcreposix.c
Generating Code...
Creating library...
Build log was saved at "file://c:\nmap-4.53\libpcre\Debug\BuildLog.htm"
libpcre - 0 error(s), 0 warning(s)
------ Rebuild All started: Project: nsock, Configuration: Debug Win32
------
Deleting intermediate and output files for project 'nsock', configuration
'Debug|Win32'
Compiling...
error.c
filespace.c
gh_list.c
netutils.c
nsock_connect.c
c:\nmap-4.53\nsock\src\nsock_connect.c(106) : warning C4267: 'argument' :
conversion from 'size_t' to 'int', possible loss of data
nsock_core.c
nsock_event.c
nsock_iod.c
nsock_pcap.c
nsock_pool.c
nsock_read.c
nsock_timers.c
nsock_utils.c
nsock_write.c
Generating Code...
Creating library...
Build log was saved at "file://c:\nmap-4.53\nsock\Debug\BuildLog.htm"
nsock - 0 error(s), 1 warning(s)
------ Rebuild All started: Project: nse_bitlib, Configuration: Debug Win32
------
Deleting intermediate and output files for project 'nse_bitlib',
configuration 'Debug|Win32'
Compiling...
bit.c
Compiling manifest to resources...
Linking...
LINK : .\bit.dll not found or not built by the last incremental link;
performing full link
   Creating library .\bit.lib and object .\bit.exp
LINK : warning LNK4098: defaultlib 'LIBCMTD' conflicts with use of other
libs; use /NODEFAULTLIB:library
Embedding manifest...
Performing Post-Build Event...
C:\nmap-4.53\mswin32\..\nselib-bin\bit.dll
1 File(s) copied
Build log was saved at "file://c:\nmap-4.53\nselib-bin\Debug\BuildLog.htm"
nse_bitlib - 0 error(s), 1 warning(s)
------ Rebuild All started: Project: nmap, Configuration: Debug Win32 ------
Deleting intermediate and output files for project 'nmap', configuration
'Debug|Win32'
Copying nmap.xsl to output directory...
Copying nmap-services to output directory...
Copying nmap-service-probes to output directory...
Copying nmap-rpc to output directory...
Copying nmap-protocols to output directory...
Copying nmap-os-db to output directory...
Copying nmap-mac-prefixes to output directory...
Compiling...
utils.cc
traceroute.cc
c:\nmap-4.53\traceroute.cc(330) : warning C4099: 'Port' : type name first
seen using 'class' now seen using 'struct'
        c:\nmap-4.53\portlist.h(187) : see declaration of 'Port'
timing.cc
tcpip.cc
targets.cc
TargetGroup.cc
Target.cc
services.cc
service_scan.cc
scan_engine.cc
protocols.cc
portreasons.cc
portlist.cc
output.cc
osscan2.cc
osscan.cc
nse_string.cc
nse_pcrelib.cc
nse_nsock.cc
c:\nmap-4.53\nse_nsock.cc(100) : error C2039: 'list' : is not a member of
'std'
c:\nmap-4.53\nse_nsock.cc(100) : error C2143: syntax error : missing ';'
before '<'
c:\nmap-4.53\nse_nsock.cc(100) : error C4430: missing type specifier - int
assumed. Note: C++ does not support default-int
c:\nmap-4.53\nse_nsock.cc(163) : error C2039: 'scriptTrace' : is not a
member of 'NmapOps'
        c:\nmap-4.53\nmapops.h(107) : see declaration of 'NmapOps'
c:\nmap-4.53\nse_nsock.cc(233) : error C2039: 'scriptTrace' : is not a
member of 'NmapOps'
        c:\nmap-4.53\nmapops.h(107) : see declaration of 'NmapOps'
c:\nmap-4.53\nse_nsock.cc(243) : error C2065: 'nsock_connect_queue' :
undeclared identifier
c:\nmap-4.53\nse_nsock.cc(243) : error C2228: left of '.push_back' must have
class/struct/union
        type is ''unknown-type''
c:\nmap-4.53\nse_nsock.cc(256) : error C2039: 'scriptTrace' : is not a
member of 'NmapOps'
        c:\nmap-4.53\nmapops.h(107) : see declaration of 'NmapOps'
c:\nmap-4.53\nse_nsock.cc(341) : error C2039: 'scriptTrace' : is not a
member of 'NmapOps'
        c:\nmap-4.53\nmapops.h(107) : see declaration of 'NmapOps'
c:\nmap-4.53\nse_nsock.cc(366) : error C2039: 'scriptTrace' : is not a
member of 'NmapOps'
        c:\nmap-4.53\nmapops.h(107) : see declaration of 'NmapOps'
c:\nmap-4.53\nse_nsock.cc(444) : error C2039: 'scriptTrace' : is not a
member of 'NmapOps'
        c:\nmap-4.53\nmapops.h(107) : see declaration of 'NmapOps'
c:\nmap-4.53\nse_nsock.cc(587) : error C2039: 'scriptTrace' : is not a
member of 'NmapOps'
        c:\nmap-4.53\nmapops.h(107) : see declaration of 'NmapOps'
c:\nmap-4.53\nse_nsock.cc(600) : error C2228: left of '.size' must have
class/struct/union
        type is ''unknown-type''
c:\nmap-4.53\nse_nsock.cc(601) : error C2228: left of '.front' must have
class/struct/union
        type is ''unknown-type''
c:\nmap-4.53\nse_nsock.cc(602) : error C2228: left of '.pop_front' must have
class/struct/union
        type is ''unknown-type''
c:\nmap-4.53\nse_nsock.cc(675) : error C2039: 'scriptTrace' : is not a
member of 'NmapOps'
        c:\nmap-4.53\nmapops.h(107) : see declaration of 'NmapOps'
nse_nmaplib.cc
Generating Code...
Compiling...
nse_main.cc
c:\nmap-4.53\nse_main.cc(183) : error C2039: 'chosenScripts' : is not a
member of 'NmapOps'
        c:\nmap-4.53\nmapops.h(107) : see declaration of 'NmapOps'
c:\nmap-4.53\nse_main.cc(317) : error C2039: 'scriptResults' : is not a
member of 'Target'
        c:\nmap-4.53\target.h(131) : see declaration of 'Target'
c:\nmap-4.53\nse_main.cc(317) : error C2228: left of '.push_back' must have
class/struct/union
c:\nmap-4.53\nse_main.cc(319) : error C2039: 'scriptResults' : is not a
member of 'Port'
        c:\nmap-4.53\portlist.h(187) : see declaration of 'Port'
c:\nmap-4.53\nse_main.cc(319) : error C2228: left of '.push_back' must have
class/struct/union
nse_init.cc
c:\nmap-4.53\nse_init.cc(137) : error C2039: 'scriptargs' : is not a member
of 'NmapOps'
        c:\nmap-4.53\nmapops.h(107) : see declaration of 'NmapOps'
c:\nmap-4.53\nse_init.cc(144) : error C2039: 'scriptargs' : is not a member
of 'NmapOps'
        c:\nmap-4.53\nmapops.h(107) : see declaration of 'NmapOps'
c:\nmap-4.53\nse_init.cc(180) : error C2039: 'scriptargs' : is not a member
of 'NmapOps'
        c:\nmap-4.53\nmapops.h(107) : see declaration of 'NmapOps'
c:\nmap-4.53\nse_init.cc(292) : error C2039: 'scriptversion' : is not a
member of 'NmapOps'
        c:\nmap-4.53\nmapops.h(107) : see declaration of 'NmapOps'
c:\nmap-4.53\nse_init.cc(295) : error C2039: 'script' : is not a member of
'NmapOps'
        c:\nmap-4.53\nmapops.h(107) : see declaration of 'NmapOps'
c:\nmap-4.53\nse_init.cc(310) : error C2039: 'script' : is not a member of
'NmapOps'
        c:\nmap-4.53\nmapops.h(107) : see declaration of 'NmapOps'
nse_debug.cc
nse_auxiliar.cc
NmapOutputTable.cc
NmapOps.cc
nmap_tty.cc
nmap_rpc.cc
nmap_error.cc
nmap_dns.cc
nmap.cc
nmap-sql.cc
c:\nmap-4.53\nmap-sql.cc(86) : warning C4806: '!=' : unsafe operation: no
value of type 'bool' promoted to type 'int' can equal the given constant
c:\nmap-4.53\nmap-sql.cc(178) : warning C4806: '!=' : unsafe operation: no
value of type 'bool' promoted to type 'int' can equal the given constant
c:\nmap-4.53\nmap-sql.cc(227) : warning C4806: '!=' : unsafe operation: no
value of type 'bool' promoted to type 'int' can equal the given constant
my_td.cc
c:\nmap-4.53\my_td.cc(51) : warning C4996: 'localtime' was declared
deprecated
        c:\program files\microsoft visual studio 8\vc\include\time.inl(114)
: see declaration of 'localtime'
        Message: 'This function or variable may be unsafe. Consider using
localtime_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE.
See online help for details.'
c:\nmap-4.53\my_td.cc(56) : warning C4996: 'sprintf' was declared deprecated
        c:\program files\microsoft visual studio 8\vc\include\stdio.h(345) :
see declaration of 'sprintf'
        Message: 'This function or variable may be unsafe. Consider using
sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See
online help for details.'
c:\nmap-4.53\my_td.cc(75) : warning C4996: 'localtime' was declared
deprecated
        c:\program files\microsoft visual studio 8\vc\include\time.inl(114)
: see declaration of 'localtime'
        Message: 'This function or variable may be unsafe. Consider using
localtime_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE.
See online help for details.'
c:\nmap-4.53\my_td.cc(80) : warning C4996: 'sprintf' was declared deprecated
        c:\program files\microsoft visual studio 8\vc\include\stdio.h(345) :
see declaration of 'sprintf'
        Message: 'This function or variable may be unsafe. Consider using
sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See
online help for details.'
c:\nmap-4.53\my_td.cc(99) : warning C4996: 'localtime' was declared
deprecated
        c:\program files\microsoft visual studio 8\vc\include\time.inl(114)
: see declaration of 'localtime'
        Message: 'This function or variable may be unsafe. Consider using
localtime_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE.
See online help for details.'
c:\nmap-4.53\my_td.cc(104) : warning C4996: 'sprintf' was declared
deprecated
        c:\program files\microsoft visual studio 8\vc\include\stdio.h(345) :
see declaration of 'sprintf'
        Message: 'This function or variable may be unsafe. Consider using
sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See
online help for details.'
c:\nmap-4.53\my_td.cc(121) : warning C4996: 'sprintf' was declared
deprecated
        c:\program files\microsoft visual studio 8\vc\include\stdio.h(345) :
see declaration of 'sprintf'
        Message: 'This function or variable may be unsafe. Consider using
sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See
online help for details.'
c:\nmap-4.53\my_td.cc(145) : warning C4996: 'sprintf' was declared
deprecated
        c:\program files\microsoft visual studio 8\vc\include\stdio.h(345) :
see declaration of 'sprintf'
        Message: 'This function or variable may be unsafe. Consider using
sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See
online help for details.'
main.cc
MACLookup.cc
idle_scan.cc
FingerPrintResults.cc
charpool.cc
Generating Code...
Build log was saved at "file://c:\nmap-4.53\mswin32\Debug\BuildLog.htm"
nmap - 27 error(s), 12 warning(s)
========== Rebuild All: 6 succeeded, 1 failed, 0 skipped ==========

_______________________________________________
Sent through the nmap-dev mailing list
http://cgi.insecure.org/mailman/listinfo/nmap-dev
Archived at http://SecLists.Org


Current thread: