From: Daniel Jacobowitz <dmj+@andrew.cmu.edu>
To: Mark Kettenis <kettenis@wins.uva.nl>
Cc: gdb@sources.redhat.com
Subject: Re: SETPGRP and autoconf
Date: Thu, 26 Jul 2001 08:46:00 -0000 [thread overview]
Message-ID: <20010726084450.A2941@nevyn.them.org> (raw)
In-Reply-To: <200107261040.f6QAe2T05377@delius.kettenis.local>
On Thu, Jul 26, 2001 at 12:40:02PM +0200, Mark Kettenis wrote:
> Date: Wed, 25 Jul 2001 16:24:20 -0700
> From: Daniel Jacobowitz <dmj+@andrew.cmu.edu>
>
> I should have objected :) But it'd been so long since I last saw this issue
> that I forgot about it.
>
> AC_FUNC_SETPGRP has some regrettable problems. Witness:
>
> checking whether setpgrp takes no argument... configure: error: cannot check
> setpgrp if cross compiling
>
> Thus breaking all host-x-host cross builds.
>
> Bugger!
Got my reaction in one.
> This is what I really hate about autoconf. There's no good reason for
> AC_FUNC_SETPGRP to be an executed test. If you have a prototype for
> setpgrp(void), setpgrp(1,1) won't compile, and you don't need to execute
> anything at all.
>
> Who says you've got a prototype? Even though GDB requires an ISO C
> compiler now, this doesn't mean the host's headers have to be ISO
> C-compliant.
Ugh.
> What can we do about this? Besides my usual hack: I have a huge list of
> autoconf cache variables in my build environment, preset.
>
> Dunno. I don't think there are too many people cross-compiling GDB.
> If we want to fix this, we could use an alternative check for
> AC_FUNC_SETPGRP when cross-compiling based on the setpgrp prototype.
> I don't think it would hurts not defining SETPGRP_VOID if no
> prototypes are available, since passing the extra arguments should be
> harmless.
Even if we don't require ISO C headers when building, requiring them
while cross-compiling doesn't seem too unreasonable. I'll try to work
up a patch for this.
--
Daniel Jacobowitz Carnegie Mellon University
MontaVista Software Debian GNU/Linux Developer
next prev parent reply other threads:[~2001-07-26 8:46 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-07-25 16:24 Daniel Jacobowitz
2001-07-26 3:40 ` Mark Kettenis
2001-07-26 7:54 ` H . J . Lu
2001-07-26 8:46 ` Daniel Jacobowitz [this message]
2001-07-26 10:17 ` Andrew Cagney
2001-07-26 10:28 ` Daniel Jacobowitz
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20010726084450.A2941@nevyn.them.org \
--to=dmj+@andrew.cmu.edu \
--cc=gdb@sources.redhat.com \
--cc=kettenis@wins.uva.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox