zsh-workers
 help / color / mirror / code / Atom feed
From: "Bart Schaefer" <schaefer@candle.brasslantern.com>
To: zsh-workers@math.gatech.edu
Subject: 3.0.0 configure failure (bug in autoconf 2.10?)
Date: Mon, 19 Aug 1996 22:43:46 -0700	[thread overview]
Message-ID: <960819224346.ZM20595@candle.brasslantern.com> (raw)

Linux 1.3.15, gcc 2.7.0, ELF.

....
checking for tcsetpgrp... yes
checking for tcgetattr... yes
checking for strstr... yes
checking for lstat... no
checking for getlogin... yes
checking for setpgid... yes
....

The message from config.log is:
/tmp/cca194791.o(.text+0x14): undefined reference to `lstat'

The problem seems to be in the AC_CHECK_FUNCS macro.  Zsh's configure,
which says it is from autoconf 2.10, produces a conftest.c containing
the equivalent of:

char lstat();
int t() {
 lstat();
 return 0;
}

If I look at a different software package whose configure was generated by
autoconf 1.11, the code is:

int t() {
 extern char lstat(); lstat();
 return 0;
}

This latter compiles successfully and thus defines HAVE_LSTAT.

So just exactly who is wrong here?  autoconf?  gcc 2.7.0?

In any case, I suggest the following change to glob.c, just to prevent the
(@) glob modifier from producing wildly inaccurate results when configure
makes this kind of error.

--- Src/glob.c.0	Sat Jul 27 13:24:36 1996
+++ Src/glob.c	Mon Aug 19 22:39:47 1996
@@ -212,7 +212,7 @@
 			/* Toggle matching of symbolic links */
 			sense ^= 2;
 			break;
-#ifdef S_IFLNK
+#if defined(S_IFLNK) && defined(HAVE_LSTAT)
 		    case '@':
 			/* Match symbolic links */
 			func = qualmode;

-- 
Bart Schaefer                             Brass Lantern Enterprises
http://www.well.com/user/barts            http://www.nbn.com/people/lantern

New male in /home/schaefer:
>N  2 Justin William Schaefer  Sat May 11 03:43  53/4040  "Happy Birthday"


             reply	other threads:[~1996-08-20  5:45 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-08-20  5:43 Bart Schaefer [this message]
1996-08-20 15:16 ` Bob Glickstein
1996-08-20 17:24   ` Bart Schaefer
1996-08-20 17:44     ` Bob Glickstein
1996-08-22 20:43 ` Zoltan Hidvegi

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=960819224346.ZM20595@candle.brasslantern.com \
    --to=schaefer@candle.brasslantern.com \
    --cc=schaefer@nbn.com \
    --cc=zsh-workers@math.gatech.edu \
    /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.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).