Article View: gnu.epoch.misc
Article #1032Bug in compiling epoch-4.2 with gcc-2.3.3
From: Hinrich Eilts
Date: Thu, 04 Feb 1993 16:10
Date: Thu, 04 Feb 1993 16:10
19 lines
1672 bytes
1672 bytes
I found a bug in compiling epoch-4.2/src/filelock.c with gcc-2.3.3 on a
NeXT:
In lisp.h is a redefinition of the macro NULL (what a bad idea!), but in the
later (over a include-chan started by #include <errno.h>) included
/usr/local/lib/gcc-lib/next/2.3.3/include/stddef.h this will be overruled
by a new define of NULL (to it's usual value).
One of the affected sourcecodelines (line 118) in filelock.c looks like:
if (!NULL (subject_buf)
before preprocessing, and after the wrong turn:
if (!((void *)0) (subject_buf)
and it should be:
if (! ((subject_buf) == (Qnil) )
My propositions are: Change of the redifined NULL in epoch to EPOCH_NULL or
whatever and a warning-message from gnu-cpp for any redefinitions.
--
Bye | G i b D O S |
Hinrich Eilts | k e i n e |
(e-mail: eilts@late.e-technik.uni-erlangen.de) | C h a n c e ! |
Technical Details
Message-ID:
<1krf5mEigf@uni-erlangen.de>Path:
arc1-ca.pugleaf.net!sparky!uunet!crdgw1!rpi!gatech!emory!nigel.msen.com!math.fu-berlin.de!fauern!uni-erlangen.de!late.e-technik.uni-erlangen.de!eiltsShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,c923e1f0cd83b4e2 X-Google-Attributes: gid11318c,public X-Google-Thread: fc7ee,c923e1f0cd83b4e2 X-Google-Attributes: gidfc7ee,public X-Google-ArrivalTime: 1993-02-04 08:10:30 PST Path: arc1-ca.pugleaf.net!sparky!uunet!crdgw1!rpi!gatech!emory!nigel.msen.com!math.fu-berlin.de!fauern!uni-erlangen.de!late.e-technik.uni-erlangen.de!eilts From: eilts@late.e-technik.uni-erlangen.de (Hinrich Eilts) Newsgroups: gnu.epoch.misc,gnu.gcc.help Subject: Bug in compiling epoch-4.2 with gcc-2.3.3 Message-ID: <1krf5mEigf@uni-erlangen.de> Date: 4 Feb 93 16:10:30 GMT Organization: LATE, Uni-Erlangen, Germany Lines: 19 NNTP-Posting-Host: late59.e-technik.uni-erlangen.de