www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2015/06/12/07:19:49

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
X-Recipient: djgpp AT delorie DOT com
X-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20120113;
h=message-id:date:from:user-agent:mime-version:to:subject:references
:in-reply-to:content-type:content-transfer-encoding;
bh=y0Am//eFjKZ4YEEKEHVtFttOkBeG4x9qnpaTMKLwyPw=;
b=kUcIIMZzviCmKWUa7Su9765qvRQP+11kCqz3S7ptxQop/6gZRNjOB9rjsPv+d4ASgW
RgcEAeKoX629565xkejtntk8VSVzxM+MVqWzUKVzSU2uL/UUKO9isZpV6u6TAjcnRtdA
EUFiC6j9U8hRrwy0yW2PBGFvH5eCWRTstWBcsfwzIw1GsY8UHqEJ9NbRVNapJ6/qNn1M
IkSuzfZ45osnpekmmmUPZS5TYw8v7UnOZnTdLdy1M2p6b/GavRjoEq1MvJPlkE1s1foY
Y34MtMfrvqw4c0dT5mJXwcMCG565erVhndp+R2By1qM/sLwtNPRWfSt+WPapf0llCGnE
ySOg==
X-Received: by 10.107.165.210 with SMTP id o201mr17691665ioe.2.1434107973059;
Fri, 12 Jun 2015 04:19:33 -0700 (PDT)
Message-ID: <557AC043.2080401@gmail.com>
Date: Fri, 12 Jun 2015 07:19:31 -0400
From: "Frank Sapone (emoaddict15 AT gmail DOT com)" <djgpp AT delorie DOT com>
User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:31.0) Gecko/20100101 Thunderbird/31.7.0
MIME-Version: 1.0
To: djgpp AT delorie DOT com
Subject: Re: Quake 2 DOS -- DJGGP 2.05 upgrade problems.
References: <201506091712 DOT t59HCPci004068 AT delorie DOT com> <557739E0 DOT 6070608 AT gmail DOT com> <CAB9Rao93XrKFBpUDnZdjCz+rEXHGOU2RNKdou2oMLJOk802LnA AT mail DOT gmail DOT com> <55775E64 DOT 2090901 AT gmail DOT com> <CAB9Rao-Njdr-CB=vqHnb+TVDmXu3eXqsB5CHB7V0kDwBEsM-WQ AT mail DOT gmail DOT com> <5579ED42 DOT 6070309 AT gmail DOT com> <bedfae3f-2695-4253-8d9c-11c55703f8b5 AT googlegroups DOT com> <557A0BD6 DOT 5090901 AT gmail DOT com> <902f9058-19c1-49df-b10e-0ae7cdf6a2f8 AT googlegroups DOT com>
In-Reply-To: <902f9058-19c1-49df-b10e-0ae7cdf6a2f8@googlegroups.com>
Reply-To: djgpp AT delorie DOT com

>> I added this to my CFLAGS like CFLAGS = -std=gnu89 -g -Wall -O2  and it
>> still doesn't help.  Should I zip up a copy of my DJGGP environment,
> No, definitely not. Check your %DJDIR%\manifest\*.mft files, and report
> back what you have. Hopefully you aren't trying to mix old and new stuff.
> I wouldn't recommend deleting a working setup, but maybe it's too late
> for conservatism. (Besides, you can re-download and re-install older
> versions from mirrors if needed.)
This is a completely new directory for DJGPP I created. It contains no 
files from my previous install.
I have one dir  on my C:\ as DJGPP and my F:\ drive as DJGPP_205 and 
just set my PATHs and DJDIR accordingly.
>> maybe I'm missing something here?  The error is pointing to time.h in
>> djgpp itself and I really doubt that time.h would have an issue since
>> it's such a common header to include.  It makes me think I added
>> something in the wrong order or wrong version or something to that effect.
> Are you trying to mix /current/ and /beta/? Don't do that. Stick to one
> or the other. Obviously in this case you should maybe just stick to /beta/
> since that's where most 2.05-related stuff is (for now).
>
> I vaguely remember some time.h issue with /beta/ 2.04 regarding _rdtsc(),
> but I think it was fixed later in CVS (and thus in 2.05). Though I
> also kinda doubt that's your problem here. Who knows??
>
>>>> Another reason for
>>>> wanting to try out 2.05 is now the project is getting quite large and
>>>> I'm getting this warning at link time:
>>>>
>>>> "warning: .text: line number overflow: 0x10029 > 0xffff".  I guess 2.03
>>>> has smaller limits for compiling a total project size?
>>> Is that (only) with debugging enabled? Yeah, older released (BinUtils
>>> before 2.23 ???) didn't have the COFF relocation extension hack.
>> Upgrading to the latest binutils fixed that issue, thanks for this.
> What Binutils were you using before? Obviously Quake 1 used much older
> tools than we have nowadays. It didn't surpass any COFF limits at the
> time. Well, it was quite small compared to some of the newer .EXEs
> (bloat!).   :-)
This is Quake 2, and because the entire game dll is statically linked to 
the binary now it's a rather large project.
If you hit those COFF limits will it hurt things?  I will try this 
bfdsymify.
>> I'm curious about the DX3 and dll capabilities.  Will it be able to
>> load/unload? Quake 2 used DLLs for the game, so for now it is
>> hardlinked, but would like to add the possibility to compile other game
>> mods.
> I don't know if it unloads. Honestly, I think it's a bit brittle and
> not widely used. I wouldn't recommend it, esp. if you already have a
> working static library, even if that (in theory) means less flexibility.
> I just don't think it's worth the trouble until you've ironed out
> literally everything else. But hey, it's your funeral.  :-)
After these issues are sorted out I would still like some information on 
it.  We tried an old project, DLM (http://aaganichev.narod.ru/djgpp/), 
and during runtime it would
give us this:

DLM -> Exiting due to signal SIGSEGV at
0x0014f59d SYM: _dos_lockmem+0x9 DLM: q2.exe [0xf5000]
possibly because of undefined reference to symbol ‘___djgpp_base_address’

DLM call frame traceback :
0x0014dcaf SYM: _Sys_PageInProgram+0x37 DLM: q2.exe [0xf5000]
0x0014e1c4 SYM: _main+0x18 DLM: q2.exe [0xf5000]
0x0000774e
0x00008b6e

But anyways, one issue at a time here :)

Frank


- Raw text -


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