環境
下記条件でエラーが発生しました。
- ビルドする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