ブログ - (2号機) memory:2628:35: note: candidate template ignored: could not match 'auto_ptr' against 'unique_ptr'
(2号機) memory:2628:35: note: candidate template ignored: could not match 'auto_ptr' against 'unique_ptr'
- ブロガー :
- ujpblog 2019/4/10 23:42
El Capitan上にHomeBrewでhttpd(Apache httpd 2.4)をインストールしようとすると,エラーがでた.
解決策は・・・OSをバージョンアップしてコンパイラのxcodeも新しくすること.らしいけれど,それができないので問題なのである.
よくみると,httpdに依存関係があるとされているnghttp2(HTTP2.0対応の次世代Webサーバのリファレンス)のコンパイルエラー担っている.今回はこれを使わないので,依存関係から外してしまえば良い.
ビルドの定義は,以下のファイルに書いてある.
ここのnghttpd2の部分を消せば良いです.2箇所あった....バックアップ取ってないので差分が出せない〜...
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/memory:2613:9:
note: candidate constructor [with _Up = shrpx::Http2DownstreamConnection,
_Ep = std::__1::default_delete<shrpx::Http2DownstreamConnection>] not viable:
no known conversion from 'std::__1::unique_ptr<shrpx::Http2DownstreamConnection,
std::__1::default_delete<shrpx::Http2DownstreamConnection> >' to
'unique_ptr<shrpx::Http2DownstreamConnection,
std::__1::default_delete<shrpx::Http2DownstreamConnection> > &&'
for 1st argument
unique_ptr(unique_ptr<_Up, _Ep>&& __u,
^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/memory:2628:35: note:
candidate template ignored: could not match 'auto_ptr' against 'unique_ptr'
_LIBCPP_INLINE_VISIBILITY unique_ptr(auto_ptr<_Up>&& __p,
^
1 error generated.
make[3]: *** [libnghttpx_a-shrpx_client_handler.o] Error 1
make[3]: *** Waiting for unfinished jobs....
mv -f .deps/libnghttpx_a-shrpx_config.Tpo .deps/libnghttpx_a-shrpx_config.Po
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
よくみると,httpdに依存関係があるとされているnghttp2(HTTP2.0対応の次世代Webサーバのリファレンス)のコンパイルエラー担っている.今回はこれを使わないので,依存関係から外してしまえば良い.
ビルドの定義は,以下のファイルに書いてある.
/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/httpd.rb