curl-library
Re: Potential Fix to libcurl 7.28.1 HPUX11.11 rw_lock.h compiler error developed
Date: Wed, 12 Dec 2012 13:58:01 +0100
On Wed, Dec 12, 2012 at 7:59 AM, Frank Chang <frank_chang91_at_hotmail.com> wrote:
> Yang Tse and Dan Fandrich, Thank you for your help .I just developed a
> potential fix to the nasty rw_lock.h problem.on HPUX 11.11. curl 7.28.1
> compiles and links successfully if you use the following fix.
>
> For example if you go lib/gopher.c and add #define TRUE 1 before #include
> <net/if.h
>
> #ifdef HAVE_NET_IF_H
> #define TRUE 1
> #include <net/if.h>
> #endif
Additionally in other post contents of rw_lock.h read like:
> #ifndef _KERNEL
> #ifndef TRUE
> #define TRUE 1
> #define FALSE 0
> #else
> #if ((TRUE != 1) || (FALSE != 0))
> This is probably not a good thing....
> #endif
> #endif /* !TRUE */
> #endif /* !_KERNEL */
As you have already seen, compilation fails due to combined factors
somehow _KERNEL has been defined and additionally statement "#if
((TRUE != 1) || (FALSE != 0))" is also true.
FIrst set of questions: Where does _KERNEL get defined? configure
script doesn't define nor use it, and neither does libcurl. Any chance
that it is defined in your CC, CFLAGS or CPPFLAGS or any other
environment variable affecting compilation? Are you defining _KERNEL
intentionally and for what purpose? It should not be defined to build
libcurl nor associated curl tool.
-- -=[Yang]=- ------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: http://curl.haxx.se/mail/etiquette.htmlReceived on 2012-12-12