delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2003/05/09/01:55:30

From: Andris Pavenis <pavenis AT latnet DOT lv>
To: djgpp-workers AT delorie DOT com, sandmann AT clio DOT rice DOT edu (Charles Sandmann)
Subject: Re: DXE3 in DJGPP CVS breaks cross-compiling
Date: Fri, 9 May 2003 08:51:12 +0300
User-Agent: KMail/1.5.1
References: <10305081310 DOT AA22228 AT clio DOT rice DOT edu>
In-Reply-To: <10305081310.AA22228@clio.rice.edu>
MIME-Version: 1.0
Message-Id: <200305090851.12215.pavenis@latnet.lv>
Reply-To: djgpp-workers AT delorie DOT com

On Thursday 08 May 2003 16:10, Charles Sandmann wrote:
> > 3) After I put bin2c on path, got linker error messages:
> >
> > gcc -g -O2 -I ../../include -DDXE_LD=\"i586-pc-msdosdjgpp-ld\" dxe3gen.c
> > -o ../../hostbin/dxegen.exe In file included from dxe3gen.c:23:
> > ../../include/string.h:28: warning: conflicting types for built-in
> > function `memcmp' ../../include/string.h:29: warning: conflicting types
> > for built-in function `memcpy' ../../include/string.h:31: warning:
> > conflicting types for built-in function `memset'
> > ../../include/string.h:40: warning: conflicting types for built-in
> > function `strncat' ../../include/string.h:41: warning: conflicting types
> > for built-in function `strncmp' ../../include/string.h:42: warning:
> > conflicting types for built-in function `strncpy'
> > /tmp/ccLEBaD8.o(.text+0x722): In function `process_args':
> > /disk2/cvs/djgpp/build/djgpp/src/dxe/dxe3gen.c:240: undefined reference
> > to `__dj_stderr'
>
> It turns out all of these are because we have compiled against the DJGPP
> headers instead of the Linux headers.  This can be fixed by removing the
> -I ../../include - but then it can't find dxe.h
>
> It appears this was "fixed" in the old dxegen by hard coding the location
> of dxe.h (which tied dxegen to the src directory structure).  Since dxe3gen
> is currently also used "separately" - any suggestions on getting it to
> include only the one file without all the other headers?

One of the possible solutions could be creating directory for include files
needed for host tools (eg. hostinc) and copy (or symlink when possible) needed
include files there. 

Perhaps for native build symlinks should not be used, as
that could break build with older DJGPP tools (eg. when gcc if built using 
djdev203, like in released archives)

Adding target in makefile to copy (symlink) needed files to current directory 
and adding them to .cvsignore should also be sufficient

Andris

- Raw text -


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