All of lore.kernel.org
 help / color / mirror / Atom feed
* Compiling 2.4.0 doesn't seem to honour C_INCLUDE_PATH
@ 2015-05-05  9:49 Steffen Nurpmeso
  2015-05-05 10:00 ` Steffen Nurpmeso
  0 siblings, 1 reply; 2+ messages in thread
From: Steffen Nurpmeso @ 2015-05-05  9:49 UTC (permalink / raw)
  To: git

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Compiling 2.4.0 doesn't seem to honour C_INCLUDE_PATH
  2015-05-05  9:49 Compiling 2.4.0 doesn't seem to honour C_INCLUDE_PATH Steffen Nurpmeso
@ 2015-05-05 10:00 ` Steffen Nurpmeso
  0 siblings, 0 replies; 2+ messages in thread
From: Steffen Nurpmeso @ 2015-05-05 10:00 UTC (permalink / raw)
  To: git

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-05-05 10:13 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-05-05  9:49 Compiling 2.4.0 doesn't seem to honour C_INCLUDE_PATH Steffen Nurpmeso
2015-05-05 10:00 ` Steffen Nurpmeso

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.