From: "Maureen Woodyard" <mew@azulsystems.com>
Subject: RE: linux compile fails on sys_error / stdio.h incompatible
Date: Thu, 8 May 2003 10:21:39 -0700 [thread overview]
Message-ID: <CE89F669E67F12458039DCD317EBF4561D5DE7@xch001.azulsystems.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 1888 bytes --]
Hi Benny,
Actually I compiled 21.2 to make sure the problem wasn't
with 21.3 - they both get the same error.
The problem appears to be the stdio.h in /usr/include defines
strerror differently from movemail.c. If I compile without
movemail, it just fails with a similar error on emacsclient.
/usr/include/stdio.h
#ifdef __USE_BSD
extern int sys_nerr;
extern __const char *__const sys_errlist[];
#endif
#ifdef __USE_GNU
extern int _sys_nerr;
extern __const char *__const _sys_errlist[];
#endif
../emacs21.3/lib-src/movemail.c
strerror (errnum)
int errnum;
{
extern char *sys_errlist[];
extern int sys_nerr;
if (errnum >= 0 && errnum < sys_nerr)
return sys_errlist[errnum];
return (char *) "Unknown error";
}
-----Original Message-----
From: Benjamin Riefenstahl [mailto:Benjamin.Riefenstahl@epost.de]
Sent: Thu 5/8/2003 5:21 AM
To: help-gnu-emacs@gnu.org
Cc:
Subject: Re: linux compile fails on sys_error / stdio.h incompatible
Hi,
"Maureen" <mew@azulsystems.com> writes:
> /hw/tools/ftp/emacs/emacs-21.2/lib-src/movemail.c: In function
`strerror':
> /hw/tools/ftp/emacs/emacs-21.2/lib-src/movemail.c:947: conflicting
types for
> `sys_errlist'
>
/hw/tools/gnu/gcc/3.2.2/i686/lib/gcc-lib/i686-pc-linux-gnu/3.2.2/include/stdi
> o.h:563: previous declaration of `sys_errlist'
a) Is there any reason why you can't use the current 21.3?
b) Investigate why configure doesn't find strerror() in the system
headers. It does on my machine here, as it should and if it finds
that, it shouldn't try to use it's own version. I admit my machine
is
linux-ppc, not i386.
Hope this helps, benny
_______________________________________________
Help-gnu-emacs mailing list
Help-gnu-emacs@gnu.org
http://mail.gnu.org/mailman/listinfo/help-gnu-emacs
[-- Attachment #2: Type: text/plain, Size: 151 bytes --]
_______________________________________________
Help-gnu-emacs mailing list
Help-gnu-emacs@gnu.org
http://mail.gnu.org/mailman/listinfo/help-gnu-emacs
next reply other threads:[~2003-05-08 17:21 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-05-08 17:21 Maureen Woodyard [this message]
[not found] <mailman.5777.1052414811.21513.help-gnu-emacs@gnu.org>
2003-05-09 15:10 ` linux compile fails on sys_error / stdio.h incompatible Benjamin Riefenstahl
[not found] <mailman.5736.1052367227.21513.help-gnu-emacs@gnu.org>
2003-05-08 12:21 ` Benjamin Riefenstahl
-- strict thread matches above, loose matches on Subject: below --
2003-05-08 4:09 Maureen
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CE89F669E67F12458039DCD317EBF4561D5DE7@xch001.azulsystems.com \
--to=mew@azulsystems.com \
/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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).