I recently saw nmapsql in Linux magazine and thought I would vive it a
try. It won't compile though. What am I missing? Error:
g++ -Llibpcap-possiblymodified -Lnbase -Lnsock/src/ -o nmap main.o
nmap.o targets.o tcpip.o nmap_error.o utils.o idle_scan.o osscan.o
output.o scan_engine.o timing.o charpool.o services.o protocols.o
nmap_rpc.o portlist.o NmapOps.o TargetGroup.o Target.o
FingerPrintResults.o service_scan.o NmapOutputTable.o -lm -lnbase
-lnsock libpcre/libpcre.a -lpcap
nmap.o(.text+0x1fb3): In function `nmap_main(int, char**)':
/home/phillipd/nmap-3.48/nmap.cc:1148: undefined reference to
`nmap_sql_update_runlist(sql_options*)'
nmap.o(.text+0x2078):/home/phillipd/nmap-3.48/nmap.cc:1114: undefined
reference to `nmap_sql_update_hoststats(sql_options*)'
nmap.o(.text+0x2084):/home/phillipd/nmap-3.48/nmap.cc:1115: undefined
reference to `nmap_sql_update_target(sql_options*)'
nmap.o(.text+0x2114):/home/phillipd/nmap-3.48/nmap.cc:1085: undefined
reference to `nmap_sql_validate_target_id(sql_options*)'
nmap.o(.text+0x213d):/home/phillipd/nmap-3.48/nmap.cc:1096: undefined
reference to `nmap_sql_add_targetid(sql_options*)'
nmap.o(.text+0x214f):/home/phillipd/nmap-3.48/nmap.cc:1095: undefined
reference to `nmap_sql_validate_target_id(sql_options*)'
nmap.o(.text+0x2b77):/home/phillipd/nmap-3.48/nmap.cc:727: undefined
reference to `nmap_sql_initialize(sql_options*)'
output.o(.text+0xd78): In function `printportoutput(Target*, PortList*)':
/home/phillipd/nmap-3.48/output.cc:407: undefined reference to
`nmap_sql_add_port(sql_options*)'
Thanks
Doug P
|