{"thread":{"id":"39250","subject":"Compiling 2.4.0 doesn't seem to honour C_INCLUDE_PATH","startedAt":"2015-05-05T09:49:09Z","lastAt":"2015-05-05T10:00:23Z","messageCount":2,"participants":["Steffen Nurpmeso"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"260586","messageId":"20150505094909.rzitmjWhT6g=%sdaoden@yandex.com","threadId":"39250","inReplyTo":null,"subject":"Compiling 2.4.0 doesn't seem to honour C_INCLUDE_PATH","fromName":"Steffen Nurpmeso","fromEmail":"sdaoden@gmail.com","sentAt":"2015-05-05T09:49:09Z","receivedAt":"2015-05-05T09:49:09Z","isPatch":false,"sender":{"key":"sdaoden@gmail.com","avatar":null},"body":"Hello,\n\ni've tried to compile 2.4.0 yesterday with my usual recipe\n\n  git:\n    cd git.git-no_reduce &&\\\n    (for i in GETTEXT PYTHON TCLTK; do echo NO_$${i}=1; done;\\\n    cat Makefile) > Makefile.2nd &&\\\n    $(GMAKE) -f Makefile.2nd prefix=$(MYPREFIX) all &&\\\n    $(SUDO) $(GMAKE) -f Makefile.2nd prefix=$(MYPREFIX) install;\\\n    git clean -fxd; git reset --hard HEAD\n\nbut it failed:\n\n      CC imap-send.o\n  imap-send.c: In function ‘setup_curl’:\n  imap-send.c:1428: error: ‘CURLOPT_LOGIN_OPTIONS’ undeclared (first use\\\n in this function)\n  imap-send.c:1428: error: (Each undeclared identifier is reported only \\\nonce\n  imap-send.c:1428: error: for each function it appears in.)\n  Makefile.2nd:1894: recipe for target 'imap-send.o' failed\n  gmake[1]: *** [imap-send.o] Error 1\n  gmake[1]: Leaving directory '/Volumes/UDF/arena/code.extern/git.git-no\\\n_reduce'\n\nIt turned out that the C_INCLUDE_PATH setting doesn't seem to get\nhonoured, resulting in the wrong curl version to be used.  The\nPATH setting seems to get honoured still, though:\n\n  ?0[steffen@sherwood roff.git]$ curl --version\n  curl 7.42.1..\n  ?0[steffen@sherwood roff.git]$ /usr/bin/curl --version\n  curl 7.19.7..\n\nI'm right that CURLDIR shouldn't be needed here?\nCompilation succeeded after explicitly setting that, but shouldn't\nC_INCLUDE_PATH be honoured just as PATH is?\nThanks and Ciao,\n\n--steffen\n"},{"id":"260587","messageId":"20150505100023.smwAp4ppkZA=%sdaoden@yandex.com","threadId":"39250","inReplyTo":"20150505094909.rzitmjWhT6g=%sdaoden@yandex.com","subject":"Re: Compiling 2.4.0 doesn't seem to honour C_INCLUDE_PATH","fromName":"Steffen Nurpmeso","fromEmail":"sdaoden@gmail.com","sentAt":"2015-05-05T10:00:23Z","receivedAt":"2015-05-05T10:00:23Z","isPatch":false,"sender":{"key":"sdaoden@gmail.com","avatar":null},"body":"i wrote:\n |I'm right that CURLDIR shouldn't be needed here?\n |Compilation succeeded after explicitly setting that, but shouldn't\n |C_INCLUDE_PATH be honoured just as PATH is?\n\nerr, no, send too fast.  What made it succeed was actually\n\n  ?0[steffen@sherwood git.git-no_reduce]$ git diff\n  diff --git a/imap-send.c b/imap-send.c\n  index 37ac4aa..e907108 100644\n  --- a/imap-send.c\n  +++ b/imap-send.c\n  @@ -31,6 +31,7 @@\n   typedef void *SSL;\n   #endif\n   #ifdef USE_CURL_FOR_IMAP_SEND\n  +#include </Users/steffen/usr/include/curl/curl.h>\n   #include \"http.h\"\n   #endif\n   \n\n--steffen\n"}]}