UJP - memory:2628:35: note: candidate template ignored: could not match 'auto_ptr' against 'unique_ptr'

Life is fun and easy!

不正IP報告数

Okan Sensor
 
メイン
ログイン
ブログ カテゴリ一覧

ブログ - memory:2628:35: note: candidate template ignored: could not match 'auto_ptr' against 'unique_ptr'

memory:2628:35: note: candidate template ignored: could not match 'auto_ptr' against 'unique_ptr'

カテゴリ : 
Apple » MacBook » 2008 13inch 2
ブロガー : 
ujpblog 2019/4/10 23:42
 El Capitan上にHomeBrewでhttpd(Apache httpd 2.4)をインストールしようとすると,エラーがでた.

/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
 解決策は・・・OSをバージョンアップしてコンパイラのxcodeも新しくすること.らしいけれど,それができないので問題なのである.

 よくみると,httpdに依存関係があるとされているnghttp2(HTTP2.0対応の次世代Webサーバのリファレンス)のコンパイルエラー担っている.今回はこれを使わないので,依存関係から外してしまえば良い.

 ビルドの定義は,以下のファイルに書いてある.
/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/httpd.rb
 ここのnghttpd2の部分を消せば良いです.2箇所あった....バックアップ取ってないので差分が出せない〜...

トラックバック


広告スペース
Google