pfultz2 / cget-recipes

Recipes for cget
16 stars 10 forks source link

XZ Recipe Build Error #1

Closed jonathonl closed 7 years ago

jonathonl commented 7 years ago

I'm getting the following build errors on OS X when installing the XZ recipe. I'm able to build fine when running ./configure && make.

In file included from /Users/jonathonl/cget/cget/build/tmp-086d323899004e358e9cd5f91629f084/xz-5.2.3/src/liblzma/check/sha256.c:24:
/Users/jonathonl/cget/cget/build/tmp-086d323899004e358e9cd5f91629f084/xz-5.2.3/src/liblzma/check/check.h:93:3: error: unknown type name 'lzma_sha256_state'
                lzma_sha256_state sha256;
                ^
1 error generated.
make[2]: *** [CMakeFiles/lzma.dir/src/liblzma/check/crc32_fast.c.o] Error 1
make[2]: *** [CMakeFiles/lzma.dir/src/liblzma/check/crc64_fast.c.o] Error 1
/Users/jonathonl/cget/cget/build/tmp-086d323899004e358e9cd5f91629f084/xz-5.2.3/src/liblzma/check/sha256.c:127:1: error: redefinition of 'lzma_sha256_init'
lzma_sha256_init(lzma_check_state *check)
^
/Users/jonathonl/cget/cget/build/tmp-086d323899004e358e9cd5f91629f084/xz-5.2.3/src/liblzma/check/check.h:141:1: note: previous definition is here
lzma_sha256_init(lzma_check_state *check)
^
/Users/jonathonl/cget/cget/build/tmp-086d323899004e358e9cd5f91629f084/xz-5.2.3/src/liblzma/check/sha256.c:142:1: error: redefinition of 'lzma_sha256_update'
lzma_sha256_update(const uint8_t *buf, size_t size, lzma_check_state *check)
^
/Users/jonathonl/cget/cget/build/tmp-086d323899004e358e9cd5f91629f084/xz-5.2.3/src/liblzma/check/check.h:148:1: note: previous definition is here
lzma_sha256_update(const uint8_t *buf, size_t size, lzma_check_state *check)
^
/Users/jonathonl/cget/cget/build/tmp-086d323899004e358e9cd5f91629f084/xz-5.2.3/src/liblzma/check/sha256.c:169:1: error: redefinition of 'lzma_sha256_finish'
lzma_sha256_finish(lzma_check_state *check)
^
/Users/jonathonl/cget/cget/build/tmp-086d323899004e358e9cd5f91629f084/xz-5.2.3/src/liblzma/check/check.h:165:1: note: previous definition is here
lzma_sha256_finish(lzma_check_state *check)
^
pfultz2 commented 7 years ago

Thanks for the report, I just pushed a fix for this.

jonathonl commented 7 years ago

Great. It installs successfully now.