[krbdev.mit.edu #2929] krb5 1.4 configure on hpux loses CFLAGS value while checking pthreads

Arlene Berry via RT rt-comment at krbdev.mit.edu
Sun Feb 20 18:04:18 EST 2005


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.

_________________________________________________________________
Don’t just search. Find. Check out the new MSN Search! 
http://search.msn.click-url.com/go/onm00200636ave/direct/01/




More information about the krb5-bugs mailing list