HorizenOfficial / zen_archived

TLS integration and more!
https://zensystem.io
Other
128 stars 44 forks source link

Error while compiling Zen Mac wallet #114

Closed sc0rp1on closed 6 years ago

sc0rp1on commented 6 years ago

I was trying to compile mac wallet but getting stuck at this error constantly.

gcc-5 -I. -Icrypto/include -Iinclude -DNDEBUG -DOPENSSL_THREADS -DOPENSSL_NO_DYNAMIC_ENGINE -DOPENSSL_PIC -DPURIFY -DOPENSSLDIR="\"/Users/$USER/Documents/zen/zen-master/depends/x86_64-apple-darwin17.2.0/etc/openssl\"" -DENGINESDIR="\"/Users/$USER/Documents/zen/zen-master/depends/x86_64-apple-darwin17.2.0/lib/engines-1.1\"" -O3 -D_REENTRANT -arch x86_64 -DL_ENDIAN -Wall -pipe -O2 -I/Users/$USER/Documents/zen/zen-master/depends/x86_64-apple-darwin17.2.0/include -fPIC -MMD -MF crypto/bio/bss_log.d.tmp -MT crypto/bio/bss_log.o -c -o crypto/bio/bss_log.o crypto/bio/bss_log.c In file included from /usr/include/sys/cdefs.h:587:0, from /usr/include/stdio.h:64, from crypto/bio/bss_log.c:19: /usr/include/sys/syslog.h:227:124: error: expected ',' or ';' before 'asm' void syslog(int, const char *, ...) _printflike(2, 3) not_tail_called DARWIN_ALIAS_STARTING(_MAC_10_13, IPHONE_NA, __DARWIN_EXTSN(syslog)); ^ make[2]: [crypto/bio/bss_log.o] Error 1 make[1]: [build_libs] Error 2 make: * [/Users/$USER/Documents/zen/zen-master/depends/work/build/x86_64-apple-darwin17.2.0/openssl/1.1.0d-fb488e51ef3/./.stamp_built] Error 2

I tried this as solution but it didn't work as well. https://github.com/open-mpi/ompi/issues/4373

PS - I have high Sierra Ver 10.13.1

josephnicholas commented 6 years ago

Hi @sc0rp1on have you checked the highsierra-build branch at the zen code, I have recently experimented with the build settings and merged some changes. Can you check it out and merge the branch changes with cloned repo as well? There are some changes on the make file and Darwin.mk file that should be modified.

I have tried running the

./zcutil/build-mac.sh --disable-rust

and it builds fine. Let me know if it works.

High Sierra Build Branch

josephnicholas commented 6 years ago

Closing this issue, since a PR has already been sent for review.