🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.epoch.misc
Article #1031

Bug in compiling epoch-4.2 with gcc-2.3.3

#1031
From: Hinrich Eilts
Date: Thu, 04 Feb 1993 16:10
19 lines
1694 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: <gnusenet-1krf5mEigf@uni-erlangen.de>
Path: arc1-ca.pugleaf.net!sparky!uunet!enterpoop.mit.edu!ai-lab!prep.ai.mit.edu!gnulists

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,c923e1f0cd83b4e2,start
X-Google-Attributes: gid11318c,public
X-Google-Thread: fc7ee,c923e1f0cd83b4e2,start
X-Google-Attributes: gidfc7ee,public
X-Google-ArrivalTime: 1993-02-04 08:10:30 PST
To: gnu-gcc-announce@uunet.uu.net
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: <gnusenet-1krf5mEigf@uni-erlangen.de>
Date: 4 Feb 93 16:10:30 GMT
Organization: LATE, Uni-Erlangen, Germany
Distribution: world
Approved: info-gnu@prep.ai.mit.edu
Path: arc1-ca.pugleaf.net!sparky!uunet!enterpoop.mit.edu!ai-lab!prep.ai.mit.edu!gnulists
Followup-To: gnu.epoch.misc
Lines: 20