cloudberry icon indicating copy to clipboard operation
cloudberry copied to clipboard

[Bug] build fail in src/include/crypto/sm4.h on different OS

Open avamingli opened this issue 2 years ago • 0 comments

Cloudberry Database version

No response

What happened

../../../src/include/crypto/sm4.h:12:27: error: typedef redefinition with different types ('unsigned long' vs 'unsigned long long') typedef unsigned long int uint64_t;

What you think should happen instead

codes :

typedef long int64_t;
typedef unsigned long int uint64_t;

in src/include/crypto/sm4.h need some Macro to define, see postgres c.h.

How to reproduce

build & make on a OS has already defined unit64_t/int64_t

Operating System

OS has already defined unit64_t/int64_t

Anything else

No response

Are you willing to submit PR?

  • [ ] Yes, I am willing to submit a PR!

Code of Conduct

avamingli avatar Jul 21 '23 03:07 avamingli