Skip to content

pulsar go client static build error #2842

@chowyu08

Description

@chowyu08

System configuration

Pulsar version: 2.2.0

dpkg -i apache-pulsar-client*.deb

###build command
go build -ldflags '-extldflags "-static"'

####error
usr/local/go/pkg/tool/linux_amd64/link: running gcc failed: exit status 1
/usr/lib/gcc/x86_64-linux-gnu/5/../../../../lib/libpulsar.a: error adding symbols: Archive has no index; run ranlib to add one
collect2: error: ld returned 1 exit status

Metadata

Metadata

Assignees

Labels

type/enhancementThe enhancements for the existing features or docs. e.g. reduce memory usage of the delayed messages

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions