Article View: gnu.chess
Article #2894Re: compiling with gnuan
From: Michael Powe
Date: Thu, 21 Jan 1999 00:00
Date: Thu, 21 Jan 1999 00:00
57 lines
3036 bytes
3036 bytes
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
>>>>> "Mark" == Mark Huizer <xaa@ariel.xaa.iae.nl> writes:
John> Here is my problem that I have. When compiling the program
John> it fails in gnuan.c with a message that difftime has two few
John> arguments this is with 4.0pl79. Is there a fix or an update
John> for this?
>> I had the same problem. I sent a note about it to the bug
>> report address, but I never heard back on it. The other files
>> are okay, though, so I just hand installed them. I think there
>> are a few things that don't get made as a result of the failure
>> at that point, but I can't remember now what they are.
Mark> difftime needs 2 parameters, so you call
Mark> difftime(endtime,begintime), where the code will just say
Mark> difftime(endtime-begintime).
Mark> Easy to find, checking the manpage for difftime.
Actually, I'm familiar with difftime. Although, I would not have
looked at the manpage, but just at the GNU C Library Reference. I
just don't feel like mucking around in gnuchess code. I've spent too
many hours on too many unsuccessful searches for "simple" little
things like that. I got burnt out on it.
I'm more puzzled why it would be released if it's not even compilable.
After all, it's been several years since the last release -- it's not
like they were on a deadline!
mp
8<---------------how-easy-is-it-to-demunge-an-address?------------------->8
#! /usr/bin/perl # if you are luser@NOSPAM.you.know.com (Another Luser):
while ($line = <>){ if ($line =~ m/^\s*$/ ){ last; }
if ($line =~ m/^From: (\S+) \(([^()]*)\)/){ $from_address = $1; } }
if ($from_address =~ m/\S+NOSPAM\S+/){ $x = index($from_address, NOSPAM);
substr($from_address, $x, 6+1) = ""; printf("The real address is %s\n",
$from_address);}else { printf("No munge, just plain %s\n",$from_address);}
printf("\nBrought to you by the Truth In Mail Headers Foundation\n");
8<-----------------------here's-one-example------------------------------>8
- --
Michael Powe
michael@trollope.org http://www.trollope.org
Portland, Oregon USA
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v0.9.0 (GNU/Linux)
Comment: Encrypted with Mailcrypt 3.5.1 and GNU Privacy Guard
iD8DBQE2qA37755rgEMD+T8RAkvZAJ0T/FHz78Fm549vwWz/cmpknUPRZACggPnH
geXVM25OPl3DEQHQYvVG+UM=
=icLA
-----END PGP SIGNATURE-----
Technical Details
Message-ID:
<86vhhzhnuo.fsf@trollope.org>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<GFBNLPLKOBIAAAAA@mailcity.com> <86hftpnhaw.fsf@trollope.org> <slrn7ad15a.1qa.xaa@ariel.xaa.iae.nl>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10d71d,952db6ae9e9369e6 X-Google-Attributes: gid10d71d,public From: Michael Powe <michael+gnus@trollope.org> Subject: Re: compiling with gnuan Date: 1999/01/21 Message-ID: <86vhhzhnuo.fsf@trollope.org> X-Deja-AN: 435516304 References: <GFBNLPLKOBIAAAAA@mailcity.com> <86hftpnhaw.fsf@trollope.org> <slrn7ad15a.1qa.xaa@ariel.xaa.iae.nl> X-Trace: newsfeed.slurp.net 916983402 199.2.210.241 (Thu, 21 Jan 1999 23:36:42 CDT) Organization: The Hospice of the Mind NNTP-Posting-Date: Thu, 21 Jan 1999 23:36:42 CDT Newsgroups: gnu.chess