[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: Any hints

Thanks, that cured that one.

Do you know if a patch is being prepared to fix the problem?, if it isn't
the one I've attached to this Email can be used.

Al Sutton (al@alsutton.com)
WWW: http://www.buddysites.net/
ICQ: 78617500

----- Original Message -----
From: "Mark Adamson" <adamson@andrew.cmu.edu>
To: "Al Sutton" <al@alsutton.com>
Sent: Tuesday, July 04, 2000 3:53 PM
Subject: Re: Any hints

> > When compiling on Solaris 2.6 with GCC 2.8.1 I get the following;
> >
> > os-local.c: In function `ldap_pvt_is_socket_ready':
> > os-local.c:114: parse error before `1'
> > os-local.c:117: invalid lvalue in unary `&'
> Yeah, I saw this too. Run the file through the preprocessor (add the flags
> -dD and -E to the gcc command line) and look at the function again. You'll
> see that one of the variables in the function, I think it's named "sun" is
> a #define'd macro equal to "1". I just went in and changed the variable to
> "sunvar" to get around it. The same thing will happen in another file too;
> do the same thing.
> Just stupid programming.
>   -Mark Adamson
>    Carnegie Mellon

Attachment: sunos5.6-gcc-compile-fix-patch-alsutton000703
Description: Binary data