Received: from mailhost.anl.gov (mailhost.anl.gov [130.202.113.50]) by krbdev.mit.edu (8.9.3p2) with ESMTP id KAA22615; Mon, 21 Feb 2005 10:22:13 -0500 (EST) Received: from mailhost.anl.gov (localhost [127.0.0.1]) by localhost.ctd.anl.gov (Postfix) with ESMTP id 2A423D8 for ; Mon, 21 Feb 2005 09:21:37 -0600 (CST) Received: from [127.0.0.1] (atalanta.ctd.anl.gov [146.137.194.4]) by mailhost.anl.gov (Postfix) with ESMTP id F1C65C1 for ; Mon, 21 Feb 2005 09:21:36 -0600 (CST) Message-Id: <4219FBE5.9090602@anl.gov> Date: Mon, 21 Feb 2005 09:19:01 -0600 From: "Douglas E. Engert" User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.2) Gecko/20040803 X-Accept-Language: en-us, en MIME-Version: 1.0 To: rt-comment@krbdev.mit.edu Subject: Re: [krbdev.mit.edu #2929] krb5 1.4 configure on hpux loses CFLAGS value while checking pthreads References: In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit RT-Send-Cc: X-RT-Original-Encoding: windows-1252 Content-Length: 1993 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. > > _________________________________________________________________ > Don’t 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@mit.edu > https://mailman.mit.edu/mailman/listinfo/krb5-bugs > > > -- Douglas E. Engert Argonne National Laboratory 9700 South Cass Avenue Argonne, Illinois 60439 (630) 252-5444