homebrew-clickhouse icon indicating copy to clipboard operation
homebrew-clickhouse copied to clipboard

error: 'syslog' was not declared in this scope

Open inkrement opened this issue 7 years ago • 2 comments

Installation fails because syslog was not declared in this scope.

❯ brew install clickhouse
==> Installing clickhouse from hatarist/clickhouse
==> Downloading https://github.com/yandex/ClickHouse/archive/v1.1.54292-stable.zip
Already downloaded: /Users/chris/Library/Caches/Homebrew/clickhouse-1.1.54292.zip
==> cmake .. -DUSE_STATIC_LIBRARIES=0
==> make
Last 15 lines from /Users/chris/Library/Logs/Homebrew/clickhouse/02.make:
/usr/include/sys/syslog.h:227:124: error: expected initializer before '__asm'
 void syslog(int, const char *, ...) __printflike(2, 3) __not_tail_called __DARWIN_ALIAS_STARTING(__MAC_10_13, __IPHONE_NA, __DARWIN_EXTSN(syslog));
                                                                                                                            ^
/tmp/clickhouse-20171209-7876-pfmf74/ClickHouse-1.1.54292-stable/contrib/libpoco/Foundation/src/SyslogChannel.cpp: In member function 'virtual void Poco::SyslogChannel::log(const Poco::Message&)':
/tmp/clickhouse-20171209-7876-pfmf74/ClickHouse-1.1.54292-stable/contrib/libpoco/Foundation/src/SyslogChannel.cpp:74:50: error: 'syslog' was not declared in this scope
  syslog(getPrio(msg), "%s", msg.getText().c_str());
                                                  ^
At global scope:
cc1plus: warning: unrecognized command line option '-Wno-for-loop-analysis'
cc1plus: warning: unrecognized command line option '-Wno-unused-local-typedef'
cc1plus: warning: unrecognized command line option '-Wno-unused-private-field'
make[2]: *** [contrib/libpoco/Foundation/CMakeFiles/PocoFoundation.dir/src/SyslogChannel.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [contrib/libpoco/Foundation/CMakeFiles/PocoFoundation.dir/all] Error 2
make: *** [all] Error 2

inkrement avatar Dec 09 '17 14:12 inkrement

Same error for me :-( Any solution?

Thanks in advance!

itaygalea avatar Jan 16 '18 08:01 itaygalea

It seems gcc-7 bug in High Sierra. https://github.com/yandex/ClickHouse/issues/1474

knoguchi avatar Jan 18 '18 06:01 knoguchi