Received: from pch.mit.edu (PCH.MIT.EDU [18.7.21.90]) by krbdev.mit.edu (8.9.3p2) with ESMTP id SAA22254; Sun, 20 Feb 2005 18:04:10 -0500 (EST) Received: from pch.mit.edu (pch.mit.edu [127.0.0.1]) by pch.mit.edu (8.12.8p2/8.12.8) with ESMTP id j1KN3eh7001233 for ; Sun, 20 Feb 2005 18:03:40 -0500 Received: from pacific-carrier-annex.mit.edu (PACIFIC-CARRIER-ANNEX.MIT.EDU [18.7.21.83]) by pch.mit.edu (8.12.8p2/8.12.8) with ESMTP id j1J0GIh7004444 for ; Fri, 18 Feb 2005 19:16:18 -0500 Received: from hotmail.com (bay20-f38.bay20.hotmail.com [64.4.54.127]) j1J0GAZL022295 for ; Fri, 18 Feb 2005 19:16:11 -0500 (EST) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Fri, 18 Feb 2005 16:14:00 -0800 Message-Id: Received: from 64.221.115.99 by by20fd.bay20.hotmail.msn.com with HTTP; Sat, 19 Feb 2005 00:13:43 GMT X-Originating-Ip: [64.221.115.99] X-Originating-Email: [aberry0364@hotmail.com] X-Sender: aberry0364@hotmail.com From: "Arlene Berry" To: krb5-bugs@mit.edu Date: Sat, 19 Feb 2005 00:13:43 +0000 MIME-Version: 1.0 Content-Type: text/plain; format=flowed X-Originalarrivaltime: 19 Feb 2005 00:14:00.0655 (UTC) FILETIME=[E97205F0:01C51617] X-Spam-Score: -3.201 X-Spam-Flag: NO X-Scanned-BY: MIMEDefang 2.42 X-Mailman-Approved-At: Sun, 20 Feb 2005 18:03:38 -0500 Subject: krb5 1.4 configure on hpux loses CFLAGS value while checking pthreads X-Beenthere: krb5-bugs-incoming@mailman.mit.edu X-Mailman-Version: 2.1 Precedence: list Sender: krb5-bugs-incoming-bounces@PCH.mit.edu Errors-To: krb5-bugs-incoming-bounces@PCH.mit.edu X-RT-Original-Encoding: iso-8859-1 Content-Length: 1460 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/