ugorji / go

idiomatic codec and rpc lib for msgpack, cbor, json, etc. msgpack.org[Go]
MIT License
1.85k stars 295 forks source link

relocation target reflect.typedmemclr not defined #340

Closed bhaskarsantoshk closed 3 years ago

bhaskarsantoshk commented 3 years ago

I was trying to build a go binary for centOS in a docker container, It's giving the following error:

command-line-arguments

github.com/ugorji/go/codec.rvSetDirect: relocation target reflect.typedmemclr not defined github.com/ugorji/go/codec.rvSetDirectZero: relocation target reflect.typedmemclr not defined

ugorji commented 3 years ago

This is a weird issue - it seems something with the docker environment is stripping some things.

Nevertheless, I updated to code to use the runtime implementations directly where possible, instead of using the reflect stubs. Maybe that fixes things for you.

Please check and lemme know.