🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.emacs.bug
Article #87637

Compiling Problem on Solaris2

#87637
From: Frank Schroeder
Date: Tue, 13 Sep 1994 07:18
52 lines
2195 bytes
Hallo Emacs-Programmers,

when I tried to compile emacs-19.26 under Solaris2.3 the compiler
stopped at file 'src/gmalloc.c'. The gcc-2.6 message was:

line 1250: parser error at 'ptrdiff_t'.

I tried the Sun C-Compiler2.0.1 too. The result was the same.

Then I took a look at file 'gmalloc.c' and saw that there is a cast from
type 'ptrdiff' to 'int':

__ptr_t
__default_morecore (increment)
 >>>> ptrdiff_t increment; <<<< line 1250
{
  __ptr_t result = (__ptr_t) __sbrk ((int) increment);
  if (result == (__ptr_t) -1)
    return NULL;
  return result;
}

I changed the declaration of 'increment' from 'ptrdiff' to 'int':

__ptr_t
__default_morecore (increment)
     int increment;
{
  __ptr_t result = (__ptr_t) __sbrk ((int) increment);
  if (result == (__ptr_t) -1)
    return NULL;
  return result;
}

After this compilation finished without problems. emacs works as desired
(until now).

with kind regards

frank schroeder

P.S: Under SunOs4.1.3 there were no problems with the compilation at all !

----------------------------------------------
|         Frank Schroeder                    |
|         Institut fuer Sicherheitsforschung |
|         Forschungszentrum Rossendorf       |
|         P.O. Box 510119                    |
|         01314 Dresden                      |
| email: schroeder@fz-rossendorf.de          |
|    Tel: +49 351 591-2282                   |
----------------------------------------------
Technical Details
Message-ID: <9409130718.AA01523@fisch.fz-rossendorf.de.fischdomain>
Path: arc1-ca.pugleaf.net!bga.com!news.sprintlink.net!sundog.tiac.net!usenet.elf.com!news2.near.net!MathWorks.Com!yeshua.marcam.com!usc!math.ohio-state.edu!cis.ohio-state.edu!fz-rossendorf.DE!schroed

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fb2f1,5143f73e084a3d22,start
X-Google-Attributes: gidfb2f1,public
X-Google-ArrivalTime: 1994-09-13 08:41:37 PST
Path: arc1-ca.pugleaf.net!bga.com!news.sprintlink.net!sundog.tiac.net!usenet.elf.com!news2.near.net!MathWorks.Com!yeshua.marcam.com!usc!math.ohio-state.edu!cis.ohio-state.edu!fz-rossendorf.DE!schroed
From: schroed@fz-rossendorf.DE (Frank Schroeder)
Newsgroups: gnu.emacs.bug
Subject: Compiling Problem on Solaris2
Date: 13 Sep 1994 03:18:01 -0400
Organization: GNUs Not Usenet
Lines: 53
Sender: daemon@cis.ohio-state.edu
Approved: bug-gnu-emacs@prep.ai.mit.edu
Distribution: gnu
Message-ID: <9409130718.AA01523@fisch.fz-rossendorf.de.fischdomain>