delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/06/14/00:16:37

From: Rob Kramer <robk AT starhub DOT net DOT sg>
Newsgroups: comp.os.msdos.djgpp
Subject: Header problem when upgrading CVS djgpp.
Date: Fri, 14 Jun 2002 11:09:29 +0800
Organization: Singapore Telecommunications Ltd
Lines: 39
Message-ID: <aebnf4$vi1$1@dahlia.singnet.com.sg>
NNTP-Posting-Host: bb-203-125-71-55.singnet.com.sg
Mime-Version: 1.0
User-Agent: KNode/0.7.1
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Hi,

I tried to upgrade my cross building environment to the latest DJGPP version 
in CVS. To do so, I:

- Compiled djgpp, did mkdist, unzipped -a djcrx.zip to a tmp dir.
- Copied -rp tmp/include/* to /opt/djgpp/i586-pc-msdosdjgpp/include
- Copied -rp tmp/lib/* to /opt/djgpp/i586-pc-msdosdjgpp/lib

But I guess this isn't the right way to do it, since now I get redefinition 
warnings:


gcc -c -gstabs+ -march=i486 -mcpu=pentium -O2 -W -Wall -Wno-unused 
-Wno-parentheses -mpreferred-stack-boundary=2 -I.. -I. -I../../include 
-o../obj/mndraw.o mndraw.c
In file included from ../../include/allegro/base.h:27,
                 from ../../include/allegro4.h:27,
                 from ../mn/mnsystem.h:25,
                 from mnsbitmap.h:36,
                 from mndraw.c:34:
/opt/djgpp/lib/gcc-lib/i586-pc-msdosdjgpp/2.95.3/include/stdarg.h:18: 
warning: redefinition of `va_list'
/opt/djgpp/lib/gcc-lib/i586-pc-msdosdjgpp/2.95.3/../../../../i586-pc-msdosdjgpp/include/stdio.h:37: 
warning: `va_list' previously declared here


And ditto for size_t and others.
FYI, allegro/base.h contains '#include <stdarg.h>', but why does it pick 
/opt/djgpp/lib/gcc-lib/i586-pc-msdosdjgpp/2.95.3/include/stdarg.h
over /opt/djgpp/i586-pc-msdosdjgpp/include/stdarg.h ?

I saw very lenghty discussions on this issue in the mail archives, but don't 
know if this is the same problem. Somehow I think I can't just copy the new 
headers on top of the old ones.. (?)

Cheers,

   Rob

- Raw text -


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