apache / apache/pulsar-client-go

Error trying to do a linux build on a Mac

Open
#1,159 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
745
Forks
389
Avg merge
3d 20h
Merged PRs (30d)
3

Description

#### Expected behavior

go build command generates executable when targeting linux

#### Actual behavior

No executable is generated

I see the following output:
```
sh-3.2$ GOOS=linux GOARCH=amd64 go build
# github.com/apache/pulsar/pulsar-client-go/pulsar
vendor/github.com/apache/pulsar/pulsar-client-go/pulsar/message.go:88:9: undefined: deserializeMessageId
vendor/github.com/apache/pulsar/pulsar-client-go/pulsar/message.go:93:30: undefined: earliestMessageID
vendor/github.com/apache/pulsar/pulsar-client-go/pulsar/message.go:96:28: undefined: latestMessageID
vendor/github.com/apache/pulsar/pulsar-client-go/pulsar/client.go:29:9: undefined: newClient
vendor/github.com/apache/pulsar/pulsar-client-go/pulsar/client.go:37:9: undefined: newAuthenticationToken
vendor/github.com/apache/pulsar/pulsar-client-go/pulsar/client.go:42:9: undefined: newAuthenticationTokenSupplier
vendor/github.com/apache/pulsar/pulsar-client-go/pulsar/client.go:47:9: undefined: newAuthenticationTLS
vendor/github.com/apache/pulsar/pulsar-client-go/pulsar/client.go:52:9: undefined: newAuthenticationAthenz
```

#### Steps to reproduce

1. import "github.com/apache/pulsar/pulsar-client-go/pulsar"
2. Run
GOOS=linux GOARCH=amd64 go build
or
GOOS=linux go build

#### System configuration
not applicable, i'm using a v2 module but not sure that has any bearing

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the documented GOOS=linux GOARCH=amd64 go build command. Inspect vendor/github.com/apache/pulsar/pulsar-client-go/pulsar/message.go and client.go around the reported undefined symbols to determine why the Linux-targeted build cannot resolve them. Done means the command produces the expected executable.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
build-system
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.