Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to compile on OS X due to libpcap #11

Closed
fklassen opened this issue Dec 5, 2013 · 2 comments
Closed

Unable to compile on OS X due to libpcap #11

fklassen opened this issue Dec 5, 2013 · 2 comments

Comments

@fklassen
Copy link
Member

fklassen commented Dec 5, 2013

Not sure if I have to compile libpcap with special options. Library seems to be missing something:

sendpacket.c:225:22: warning: function 'sendpacket_open_pcap' has internal linkage but is not defined [-Wundefined-internal]
static sendpacket_t *sendpacket_open_pcap(const char *, char *) _U_;
                     ^
sendpacket.c:541:18: note: used here
            sp = sendpacket_open_pcap(device, errbuf);
                 ^
sendpacket.c:226:32: warning: function 'sendpacket_get_hwaddr_pcap' has internal linkage but is not defined [-Wundefined-internal]
static struct tcpr_ether_addr *sendpacket_get_hwaddr_pcap(sendpacket_t *) _U_;

and when linking...

"_sendpacket_get_hwaddr_pcap", referenced from:Undefined symbols for architecture x86_64:
-bash: _sendpacket_get_hwaddr_pcap,: command not found
@synfinatic
Copy link
Contributor

sendpacket_open_pcap() isn't part of libpcap, it's part of sendpacket.c :)

@fklassen
Copy link
Member Author

fklassen commented Dec 7, 2013

Not a bug. Closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants