www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2001/11/26/05:00:40

X-Authentication-Warning: smtp3.ihug.com.au: Host p158-tnt3.syd.ihug.com.au [203.173.132.158] claimed to be acceleron
Message-ID: <001401c17661$03e13280$0102a8c0@acceleron>
From: "Andrew Cottrell" <acottrel AT ihug DOT com DOT au>
To: <djgpp-workers AT delorie DOT com>
Cc: "Eli Zaretskii" <eliz AT is DOT elta DOT co DOT il>
References: <Pine DOT LNX DOT 4 DOT 33 DOT 0111191312200 DOT 20544-100000 AT bochum DOT stuttgart DOT redhat DOT com>
Subject: Re: Grep 2.5e beta port to DJGPP
Date: Mon, 26 Nov 2001 20:58:47 +1100
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 6.00.2600.0000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
Reply-To: djgpp-workers AT delorie DOT com

There are allot of changes between grep 2.4 and the grep 2.5. It looks like
a major upgrade, but I may be wrong.

From: "Bernhard Rosenkraenzer" <bero AT redhat DOT de>
> Please try the current CVS version and let me know if it works.
>
> I'd have released 2.5f a month ago, but accounts AT gnu DOT org is VERY slow in
> giving people access to ftp.

I downloaded the CVS version last week and updated it again today. I have
produced a change zip file which can be downloaded via the URL
http://clio.rice.edu/djgpp/win2k/DJGPP_GREP25F_CHANGES.ZIP . It contains the
diff files and the updated files. At the end of this email is a short
sumamry of the changes I did to port grep 2.5f.

The only "problem" that I do not know how to resolve correctly is as
outlined in the partial email I have included below with regards to
S_ISSOCK. I have #ifdef the S_ISSOCK out in order to get it built. Can
someone please help in resolving this as I don't have time to do this this
year. Any help would be greatfully appreciated.

In the mean time could people please have a look at the grep 2.5 files
available at http://clio.rice.edu/djgpp/win2k/main.htm and let me know if I
should send the changes to the grep maintainer as they currently stand. At
least this way Grep 2.5 will build out of the box.


Andrew

------ DJGPP CHANGES IN GREP.C ------------------------

> From: "Andrew Cottrell" <acottrel AT ihug DOT com DOT au>
> Date: Tue, 20 Nov 2001 22:21:23 +1100
>
> I downloaded the CVS 2.5f code as this was suggested by the current Grep
> maintainer that this may fix the it. I now get past the HAVE_LIBPCRE and
now
> find that DJGPP does not have support for S_ISSOCK(stats->stat.st_mode)
> which was introduced in the changes since 2.5e. Should I get arround this
by
> defining it out for DJGPP as per the change below or define it in
sys\stat.h
> to always be false such as:-
>         #define S_ISSOCK(m) (0x00)

None of the above, IMHO.  S_ISSOCK is not sufficiently portable (even
though the latest draft of Posix requires it) for programs to use it
freely.  I think Grep should only use S_ISSOCK if it is defined, not
only for DJGPP.


------ DJGPP CHANGES -----------

The following are the changes made to Grep 2.5f in order for it to build out
of the box for DJGPP.

DJGPP cleanup:-
---------------
DJGPP 2.03 is able to use the configure scripts as it is.
1) delete DJGPP directory
2) delete patches.ac
3) delete patches.am
4) New readme.dos in main directory

The following files were modified in order for Grep to build on DJGPP :-
    configure.in            - remove DJGPP\makefile
    src\grep.c              - DJGPP does not support S_ISSOCK

The following file was modified to add change list as detailed above.
    changelog

Andrew

- Raw text -


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