Skip Menu |
 

From: "Arlene Berry" <aberry0364@hotmail.com>
To: krb5-bugs@mit.edu
Date: Sat, 19 Feb 2005 00:13:43 +0000
Subject: krb5 1.4 configure on hpux loses CFLAGS value while checking pthreads
Download (untitled) / with headers
text/plain 1.4KiB
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.

Show quoted text
_________________________________________________________________
Don’t just search. Find. Check out the new MSN Search!
http://search.msn.click-url.com/go/onm00200636ave/direct/01/
Date: Mon, 21 Feb 2005 09:19:01 -0600
From: "Douglas E. Engert" <deengert@anl.gov>
To: rt-comment@krbdev.mit.edu
Subject: Re: [krbdev.mit.edu #2929] krb5 1.4 configure on hpux loses CFLAGS value while checking pthreads
RT-Send-Cc:
Download (untitled) / with headers
text/plain 1.9KiB
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:

Show quoted text
> 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 <DEEngert@anl.gov>
Argonne National Laboratory
9700 South Cass Avenue
Argonne, Illinois 60439
(630) 252-5444
From: raeburn@mit.edu
Subject: CVS Commit
I think the hpux change here should prevent it from overriding the
user-specified options, but still add in the necessary flags.

* aclocal.m4 (KRB5_AC_ENABLE_THREADS): Expand on error message if failing.
Substitute THREAD_SUPPORT -> 0 or 1 in makefiles. For HP-UX, set
PTHREAD_CFLAGS, not CFLAGS.


To generate a diff of this commit:



cvs diff -r5.486 -r5.487 krb5/src/ChangeLog
cvs diff -r1.311 -r1.312 krb5/src/aclocal.m4
From: "Arlene Berry" <aberry0364@hotmail.com>
To: rt-comment@krbdev.mit.edu
Subject: RE: [krbdev.mit.edu #2929] CVS Commit
Date: Mon, 07 Mar 2005 20:45:13 +0000
RT-Send-Cc:
I've tested your change to src/aclocal.m4. Unfortunately, it's not quite
right. I get the following error:

cc: "prof_file.c", line 216: error 1621: Too few arguments for
getpwuid_r.

while compiling src/util/profile/prof_file.c I have traced the cause to
"#define GETPWUID_R_4_ARGS 1" turning up in src/include/autoconf.h where
previously there was a commented out undef statement. The reason for this
is that when src/include/configure tested the number of arguments for
getpwuid_r, it failed to use the PTHREAD_CFLAGS options.

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