Skip to content

Unable to compile on OS X due to libpcap #11

@fklassen

Description

@fklassen

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions