delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2015/04/28/07:30:10

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
X-Received: by 10.42.13.71 with SMTP id c7mr29922064ica.0.1430219413658;
Tue, 28 Apr 2015 04:10:13 -0700 (PDT)
X-Received: by 10.140.41.164 with SMTP id z33mr181749qgz.21.1430219413528;
Tue, 28 Apr 2015 04:10:13 -0700 (PDT)
Newsgroups: comp.os.msdos.djgpp
Date: Tue, 28 Apr 2015 04:10:13 -0700 (PDT)
In-Reply-To: <mhnhb8$m7m$1@usenet.news.interia.pl>
Complaints-To: groups-abuse AT google DOT com
Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=65.13.115.246;
posting-account=p5rsXQoAAAB8KPnVlgg9E_vlm2dvVhfO
NNTP-Posting-Host: 65.13.115.246
References: <mhmgck$ims$1 AT usenet DOT news DOT interia DOT pl> <201504280005 DOT t3S05t2U020439 AT delorie DOT com>
<mhnhb8$m7m$1 AT usenet DOT news DOT interia DOT pl>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <344232a6-1585-4156-a041-7387bef6da66@googlegroups.com>
Subject: Re: GCC 5.1.0 problem with <dos.h>
From: rugxulo AT gmail DOT com
Injection-Date: Tue, 28 Apr 2015 11:10:13 +0000
Bytes: 3449
Lines: 44
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

Hi,

On Tuesday, April 28, 2015 at 3:45:29 AM UTC-5, Wiktor S. wrote:
> DJ Delorie wrote:
> > My guess is that gcc's change to default to C99 semantics has broken
> > this code in sys/cdefs.h, despite the comment that says it shouldn't:
> 
> This is because it isn't there.
> I am using djdev204.zip from the FTP site. The file seems to be from 2003.

Quake is from 1996, and the 1999 source release is clearly using GCC
2.95 (at best), which had almost no C99 (or "c9x", as they called it)
support!

I still have my 2009 quake.mak sitting around (dunno why, I never
intended to do any hacks, never even played the full game, only demo).

Honestly, I prefer (full) Hexen 2, which has an awesome DJGPP port
(and probably easier to recompile), thanks to Ozkan.

1). http://sites.google.com/site/rugxulo/quakemak.txt
2). http://uhexen2.sf.net

> I've added the above code to <sys/cdefs.h> and modified <inlines/pc.h> to 
> use this macro, and then the problem disappears.

Bah, I should've native booted (or used DOSEMU or VirtualBox on my main
VT-X desktop). Instead I used slow QEMU 2.2.50 atop Win7 64-bit. Even
id's FTP is slow. But I did download (from mirror!) DJDEV204.ZIP,
BNU225B.ZIP, MAK40B.ZIP, GCC510B.ZIP, Q1SOURCE.ZIP, QUAKE106.ZIP.
I did also change two things mentioned in the makefile (use crt0
*nix sbrk style, and [why??] removed one mention of "static" in
"qboolean isDedicated;" in sys_dos.c).

Of course you have to delete CWSDPMI r1 as too buggy. And your .EXE
will be much bigger since the libc (2.0.0 beta3 ??) was still unfinished
at that time (right, CWS??). Yeah, I still got the problems mentioned,
but I just deleted those few problematic *.o files, added "-std=gnu89"
and ran make again. Still has problems (bugs?) in obscure areas, no idea,
crashing on startup, but eventually I typed "quake -nosound -mem 64 -nocdaudio", and then it worked through the first level okay.

Or are you using a third-party modified version? I (very barely) knew of
a few, but I'm not sure how well they were maintained (for DOS/DJGPP)
in recent years. I'm not really in the loop, not much of a gamer
anymore (not that I ever was very much).

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019