[krbdev.mit.edu #2929] krb5 1.4 configure on hpux loses CFLAGS value while checking pthreads
DEEngert@anl.gov via RT
rt-comment at krbdev.mit.edu
Mon Feb 21 10:22:17 EST 2005
If thay are all preprocessor flags, try using CPPFLAGS. I am using gcc
and pass in -D__hpux via CPPFLAGS which does get passed in.
Arlene Berry via RT wrote:
> I'm attempting to build krb5 1.4 on hpux 11.0 using native tools. Configure
> fails while configuring in src/util/pty I get "error: have setutxent but no
> ut_id, ut_type, or
> ut_pid in utmpx" which is not true and then it quits. After much searching
> I have determined the real problem is a bug in configure. I have traced it
> back to this section in src/util/pty/configure but I have also found it in
> src/configure and I suspect it is in all of the configure scripts:
>
> hpux*)
> # These are the flags that "gcc -pthread" adds. But we don't
> # want "-pthread" because that has link-time effects, and we
> # don't exclude CFLAGS when linking. *sigh*
> CFLAGS="-D_REENTRANT -D_THREAD_SAFE -D_POSIX_C_SOURCE=199506L"
> ;;
>
> The problem with this is that when it sets CFLAGS, it loses any options I
> passed in using CFLAGS and everything done after this is done without them.
> One of the options I set was -D_HPUX_SOURCE which is necessary for the utmpx
> stuff to be turned on.
>
> I changed it to read CFLAGS="$CFLAGS -D_REENTRANT ..." in
> src/util/pty/configure after which configure ran to the end but make failed
> on the very first module and it does not appear that my CFLAGS options were
> included in any Makefiles except the one in src/util/pty.
>
> _________________________________________________________________
> Dont just search. Find. Check out the new MSN Search!
> http://search.msn.click-url.com/go/onm00200636ave/direct/01/
>
>
> _______________________________________________
> krb5-bugs mailing list
> krb5-bugs at mit.edu
> https://mailman.mit.edu/mailman/listinfo/krb5-bugs
>
>
>
--
Douglas E. Engert <DEEngert at anl.gov>
Argonne National Laboratory
9700 South Cass Avenue
Argonne, Illinois 60439
(630) 252-5444
More information about the krb5-bugs
mailing list