[ale] Compile problems.
J. Patrick Graves
jpgraves at bellsouth.net
Thu Aug 26 07:46:51 EDT 1999
Your not linking to the appropriate object files and or using the correct
compile directives, Where did you get the source and did it come in a
package (tar ball or rpm)? If so, you should be able to configure a
Makefile that will set the appropriate compile directives.
jj at spiderentertainment.com wrote:
> I'm sure most of you seen/heard of the IRDP spoofing thing which affects
> MS DHCP. The company for whom I work has been using MS DHCP for a while
> now, and they do not wish to switch to UNIX... I tried many times, but
> they are *hard headed*... anyways...
>
> This IRDP thing, what it does is this: it spoofs the ICMP packets for
> the default route advertisment, which in turn shuts you down. The way to
> fix this is to disable ICMP packet type 9 and 10(so they say). I wish to
> test this, so I found a source crack for this... But I think they
> intended it for BSD, I'm running linux and NT.. I tried to change it as
> much as I can to port it to linux. Now I have this problem, and I'm not
> sure where to go from here...
>
> when I execute gcc icmp_ird.c
> I receive this:
> /tmp/cca032061.o: In function `main':
> /tmp/cca032061.o(.text+0x1dd): undefined reference to
> `libnet_name_resolve'
> /tmp/cca032061.o(.text+0x1f5): undefined reference to
> `libnet_name_resolve'
> /tmp/cca032061.o(.text+0x20d): undefined reference to
> `libnet_name_resolve'
> /tmp/cca032061.o(.text+0x225): undefined reference to
> `libnet_name_resolve'
> /tmp/cca032061.o(.text+0x2bf): undefined reference to
> `libnet_open_raw_sock'
> /tmp/cca032061.o(.text+0x315): undefined reference to `pcap_next'
> /tmp/cca032061.o: In function `getCaptureDev':
> /tmp/cca032061.o(.text+0x7c6): undefined reference to `pcap_open_live'
> /tmp/cca032061.o(.text+0x81c): undefined reference to `pcap_setfilter'
> /tmp/cca032061.o: In function `send_icmp_rdisc_response':
> /tmp/cca032061.o(.text+0x929): undefined reference to `libnet_build_ip'
> /tmp/cca032061.o(.text+0xa4c): undefined reference to
> `libnet_do_checksum'
> /tmp/cca032061.o(.text+0xa8c): undefined reference to `libnet_write_ip
>
> now I know that undefined reference means, no function, but I checked
> the headers of each include file, and well.. I just don't know where to
> go ....
More information about the Ale
mailing list