[dsc] Can't compile Collector.
Michael
maillists at hecomm.org
Wed Oct 13 01:04:40 UTC 2010
Found solution: libncap-dev was installed, removed this and compiles fine now.
Only difference between the machine it compiles on, and the one it didn't.
Removed libncap-dev, and it worked! Unfortunately this breaks something else
I'm testing.
On Monday, October 11, 2010 11:18:45 pm Michael wrote:
> When compiling collector I get the attached output from the compiler.
>
> It's acting as though daemon.c isn't including nmap.h
>
> I have nmap 5.0 installed (Ubuntu 64-bit Lucid Lynx.)
>
> I have tried commenting out the "IF" part of the nmap.h include like so:
>
> //#ifdef HAVE_NCAP
> #include nmap.h
> //#endif
>
>
> and then tried compiling "clean". (In other words, removed the archive, re-
> extracted archive, commented out if statements and then ran make.
>
> And get exactly the same end result:
> make[1]: Leaving directory `/home/user/dsc-201008131729/collector/dsc'
> daemon.o: In function `dump_reports':
> /home/user/dsc-201008131729/collector/dsc/daemon.c:151: undefined reference
> to `Ncap_finish_time'
> daemon.o: In function `main':
> /home/user/dsc-201008131729/collector/dsc/daemon.c:285: undefined reference
> to `Ncap_close'
> /home/user/dsc-201008131729/collector/dsc/daemon.c:251: undefined reference
> to `Ncap_run'
> collect2: ld returned 1 exit status
> make[1]: *** [dsc] Error 1
> make[1]: Leaving directory `/home/user/dsc-201008131729/collector/dsc'
> make: *** [all] Error 2
>
>
> I see this is apparently a linking error, but am a bit of a novice in C
> programming/compiling. I can see the referenced calls in nmap.c and nmap.h,
> what I don't know is are we compiling based on system nmap, or local nmap.
> Is there a way for me to know for certain? (i.e is the link failing
> because the system version of nmap is missing these calls?)
>
> And hopefully my email client is finally sending email as the person I
> subscribed as and not as the "Default" user.
More information about the dsc
mailing list