threads / discuss / 39250

Compiling 2.4.0 doesn't seem to honour C_INCLUDE_PATH

Subject: Compiling 2.4.0 doesn't seem to honour C_INCLUDE_PATH

## tl;dr

2 messages between May 5, 2015 and May 5, 2015.

replies: 1people: 1as markdown or json

Steffen Nurpmeso· May 5, 2015, 09:49 UTC · lore
Hello,
i've tried to compile 2.4.0 yesterday with my usual recipe
  git:
    cd git.git-no_reduce &&\
    (for i in GETTEXT PYTHON TCLTK; do echo NO_$${i}=1; done;\
    cat Makefile) > Makefile.2nd &&\
    $(GMAKE) -f Makefile.2nd prefix=$(MYPREFIX) all &&\
    $(SUDO) $(GMAKE) -f Makefile.2nd prefix=$(MYPREFIX) install;\
    git clean -fxd; git reset --hard HEAD
but it failed:
      CC imap-send.o
  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.2nd:1894: recipe for target 'imap-send.o' failed
  gmake[1]: *** [imap-send.o] Error 1
  gmake[1]: Leaving directory '/Volumes/UDF/arena/code.extern/git.git-no\
_reduce'

It turned out that the C_INCLUDE_PATH setting doesn't seem to get honoured, resulting in the wrong curl version to be used. The PATH setting seems to get honoured still, though:

  ?0[steffen@sherwood roff.git]$ curl --version
  curl 7.42.1..
  ?0[steffen@sherwood roff.git]$ /usr/bin/curl --version
  curl 7.19.7..

I'm right that CURLDIR shouldn't be needed here? Compilation succeeded after explicitly setting that, but shouldn't C_INCLUDE_PATH be honoured just as PATH is? Thanks and Ciao,

--steffen
Steffen Nurpmeso· May 5, 2015, 10:00 UTC · re: Steffen Nurpmeso · lore

Re: Compiling 2.4.0 doesn't seem to honour C_INCLUDE_PATH

i wrote:
 |I'm right that CURLDIR shouldn't be needed here?
 |Compilation succeeded after explicitly setting that, but shouldn't
 |C_INCLUDE_PATH be honoured just as PATH is?
err, no, send too fast.  What made it succeed was actually
  ?0[steffen@sherwood git.git-no_reduce]$ git diff
  diff --git a/imap-send.c b/imap-send.c
  index 37ac4aa..e907108 100644
  --- a/imap-send.c
  +++ b/imap-send.c
  @@ -31,6 +31,7 @@
   typedef void *SSL;
   #endif
   #ifdef USE_CURL_FOR_IMAP_SEND
  +#include </Users/steffen/usr/include/curl/curl.h>
   #include "http.h"
   #endif
   
--steffen

← back to recent threads