Skip to content

x/sys/unix: cmsgAlignOf redeclared #35102

@Sheshagiri

Description

@Sheshagiri

What version of Go are you using (go version)?

$ go version
go version go1.12.12 darwin/amd64

Does this issue reproduce with the latest release?

yes. I only tried with go1.12.12

What operating system and processor architecture are you using (go env)?

go env Output
$ go env
GOARCH="amd64"
GOBIN=""
GOCACHE="/Users/sheshagiri/Library/Caches/go-build"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOOS="darwin"
GOPATH="/Users/sheshagiri/go"
GOPROXY=""
GORACE=""
GOROOT="/usr/local/Cellar/go@1.12/1.12.12/libexec"
GOTMPDIR=""
GOTOOLDIR="/usr/local/Cellar/go@1.12/1.12.12/libexec/pkg/tool/darwin_amd64"
GCCGO="gccgo"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
GOMOD="/Users/sheshagiri/workspace/extreme/waas/api/go.mod"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/fk/4gq46s3960z78bjbvrkbf2bh0000gp/T/go-build052242506=/tmp/go-build -gno-record-gcc-switches -fno-common"

What did you do?

$go mod vendor

What did you expect to see?

I see that cmsgAlignOf is declared in two different go files in the same package.

What did you see instead?

github.com/extremenetworks/waas/api/vendor/gol
ang.org/x/sys/unix                                                                                                                 
srv/gopath/src/github.com/extremenetworks/waas/api/vendor/golang.org/x/sys/unix/sockcmsg_unix_other.go:14:6: cmsgAlignOf redeclared
 in this block                                                                                                                     
        previous declaration at srv/gopath/src/github.com/extremenetworks/waas/api/vendor/golang.org/x/sys/unix/sockcmsg_unix.go:17
:29.                                                                                                                               

Metadata

Metadata

Assignees

No one assigned

    Labels

    FrozenDueToAgeWaitingForInfoIssue is not actionable because of missing required information, which needs to be provided.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions