delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2003/04/18/06:34:38

Message-ID: <002701c30596$155c7540$0100a8c0@acp42g>
From: "Andrew Cottrell" <acottrel AT ihug DOT com DOT au>
To: "Charles Sandmann" <sandmann AT clio DOT rice DOT edu>
Cc: <dborca AT yahoo DOT com>, <djgpp-workers AT delorie DOT com>
References: <10304180435 DOT AA20388 AT clio DOT rice DOT edu>
Subject: Re: dxe review
Date: Fri, 18 Apr 2003 20:34:24 +1000
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
Reply-To: djgpp-workers AT delorie DOT com

> > dxe3stat.c:48: warning: no previous prototype for `dlstatbind'
> > dxe3stat.c:73: warning: no previous prototype for `dlstatunbind'
>
> Ooops, I forgot to add the most recent dxe.h to the zip file.  It's
> in my CVS area so I don't see the problems, and when I restored zip
> file it was newer...  Fixed in new zip.  Still haven't had time to
> finish last info file...
Thanks for this. I did a compare of the two zips (the one I downloaded on
the 15th and the one a few mintues ago) becuase the zip fiels varied by 6K
which I thought was a bit big. I found that the new zip included a djgpp.env
in the root which if unzipped would wipe out the existing djgpp.env file if
unzipped without checking first if you allow zip to overwrite all the files.

> > gcc ... -c dxe3res.c
> > cc1.exe: warnings being treated as errors
> > dxe3res.c: In function `cmp':
> > dxe3res.c:116: warning: cast discards qualifiers from pointer target
type
> > dxe3res.c:116: warning: cast discards qualifiers from pointer target
type
> > make.exe[1]: *** [dxe3res.o] Error 1
> > make.exe: *** [subs] Error 2
>
> Okay, I don't see this - so it must be new bitchyness with GCC 3.x
> versus 2.9
There are allot more of this. I have been caught a few times.

> In particular, it doesn't like:
>
> static int cmp (const void *e1, const void *e2)
> {
>  return strcmp(*(const char **)e1, *(const char **)e2);
> }
>
> Any suggestions on how to juggle consts or whatever to make it happy?

This seems so obvious, but what have I missed :-
 return strcmp((const char *)e1, (const char *)e2);

TEST RESULTS #2

I have done so far two complete rebuilds of all of the packages at clio with
the makefile mods and have encounted no problems.

I have download the partially fixed version and will do another complete
build tonight.

Tomorrow I will play with the tests and see what I can do to some of the
packages that use the libiconv like grep 2.5.1

Andrew


- Raw text -


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