[prev in list] [next in list] [prev in thread] [next in thread] 

List:       rwhois
Subject:    Re: Make error - rwhois
From:       David Blacka <davidb () rwhois ! net>
Date:       1996-12-24 19:36:12
Message-ID: kon2v3ybtf.fsf () shaker ! internic ! net
[Download RAW message or body]

>>>>> "Stuart" == Stuart Macpherson <sm@Sprint-Canada.Net> writes:

 Stuart> Hi,
 Stuart> 	Thanks for the patch.

 Stuart> 	Still have some questions ( surprised? ) ...

 Stuart> 	Patches for 'configure.in' & 'config.h.in' are fine.
 Stuart> 	I have a bit of problem with the last part for 
 Stuart> 	'configure'. As you can see below, diff says I should 
 Stuart> 	look at line 1154,1159. Here's what I see in my 'configure'
 Stuart> 	for lines 1154,1161

 Stuart> #include "confdefs.h"
 Stuart> #include <ctype.h>
 Stuart> #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 Stuart> #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 Stuart> #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 Stuart> int main () { int i; for (i = 0; i < 256; i++)
 Stuart> if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
 Stuart> exit (0); }	

 Stuart> 	You'll have to forgive my ignorance. I'm a little confused 
 Stuart> 	about where to apply the patch.

 Stuart> -Stuart

Well, since 'configure' is a generated file, this is not so simple to
solve, actually.  The real solution is to acquire GNU autoconf or GNU
gcc and either regenerate 'configure' with autoconf, or recompile with
gcc.  A work around may be to see if there is a 'strerror.o' object
file in the /.../common/ directory, and use that to link the rwhois
client.

Another solution is just to add this line to config.h

#undef const

which is basically what all these patches would have done.

-- 
David Blacka              Software Engineer     RWhois Development Team
Network Solutions, Inc.   (703) 742-4897        davidb@rwhois.net



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic