On Thu, 20 Oct 2016 21:35:06 -0700 (PDT)
Mehrdad Arshad Rad <arshad....@gmail.com> wrote:

> Today I noticed the travis-ci fails once it tries to build myLG 
> <https://github.com/mehrdadrad/mylg> w/ latest Go version:devel
> +7ea5829 and shows below errors.
> 
> The command "eval go get -t -v ./..." failed. 
> 
> github.com/google/gopacket/pcap../../google/gopacket/pcap/pcap.go:594 
> <http://github.com/google/gopacket/google/gopacket/pcap/pcap.go:594>: 
> undefined: C in C.PCAP_NETMASK_UNKNOWN 
> 
> any idea?

(The correct URL is [1].)

The undefined symbols should be defined by cgo as it's in the "C"
"namespace" used by cgo (see line 93 in that file and the information
on how cgo works in general).  Hence I would expect this symbol to be
defined through some header file of the libpcap library.
So I'd start digging from there.

Note that you can tell `go build` to leave its intermediate files
behind by running `go build -work` and then inspecting what was
generated by cgo there.  That is, grep the generated stuff for
PCAP_NETMASK_UNKNOWN.

Well, in theory, it's possible that some weird cgo-related bug crept
into the cgo subsystem but I'd start from the other end.

1. https://github.com/google/gopacket/blob/master/pcap/pcap.go#L594

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to