1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

gitをビルドする際にエラー "error: 'CURLOPT_LOGIN_OPTIONS' undeclared" が発生する場合の対処

1
Last updated at Posted at 2015-10-12

環境

下記条件でエラーが発生しました。

  • ビルドするgitのバージョン: 2.6.1
  • インストール済みのcurlのバージョン: 7.45.0

エラーメッセージ

imap-send.c: In function 'setup_curl':
imap-send.c:1428: error: 'CURLOPT_LOGIN_OPTIONS' undeclared (first use in this function)
imap-send.c:1428: error: (Each undeclared identifier is reported only once
imap-send.c:1428: error: for each function it appears in.)
Makefile:1903: recipe for target 'imap-send.o' failed
gmake: *** [imap-send.o] Error 1

原因

どうやら、git imap-sendからcurlを利用するための設定が悪さをしている模様。

対処

Makefile 1070行目あたりからのこの辺をコメントアウトしてやると吉。

        curl_check := $(shell (echo 072200; curl-config --vernum | sed -e '/^70[BC]/s/^/0/') 2>/dev/n
ull | sort -r | sed -ne 2p)
        ifeq "$(curl_check)" "072200"
                USE_CURL_FOR_IMAP_SEND = YesPlease
        endif
        ifdef USE_CURL_FOR_IMAP_SEND
                BASIC_CFLAGS += -DUSE_CURL_FOR_IMAP_SEND
                IMAP_SEND_BUILDDEPS = http.o
                IMAP_SEND_LDFLAGS += $(CURL_LIBCURL)
        endif
1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?