Re: 1.1.5 on Mac OS X

Andre Berger <[email protected]> Tue, 16 Mar 2004 11:01:40 +0100
Newsgroups gmane.network.noffle.user
Message-ID <[email protected]>
* Jim Hague <[email protected]>, 2004-03-16 10:58 +0100:
> On 16-Mar-2004 Andre Berger wrote:
> > gcc -DHAVE_CONFIG_H -I. -I. -I..   -g -O2 -I/sw/include  -g -O2 -c
> > authenticate.c
> > In file included from authenticate.c:14:
> > /usr/include/grp.h:73: error: parse error before "gid_t"
> > /usr/include/grp.h:75: error: parse error before '}' token
> > /usr/include/grp.h:82: error: parse error before "struct"
> > /usr/include/grp.h:83: error: parse error before "size_t"
> > /usr/include/grp.h:87: error: parse error before "int"
> > authenticate.c: In function `Auth_checkPrivs':
> > authenticate.c:358: error: dereferencing pointer to incomplete type
> > authenticate.c:364: error: dereferencing pointer to incomplete type
> > authenticate.c:371: error: dereferencing pointer to incomplete type
> > make[2]: *** [authenticate.o] Error 1
> > make[1]: *** [all-recursive] Error 1
> > make: *** [all-recursive-am] Error 2
> 
> I think I've made a silly error in the order of header file includes. Can you
> try the following? It moves the includes of grp.h and pwd.h to after their
> dependent includes.
> 
> --- authenticate.c      12 Jan 2003 17:05:49 -0000      1.2
> +++ authenticate.c      16 Mar 2004 09:44:51 -0000
> @@ -11,13 +11,13 @@
>  #endif
>   
>  #include <errno.h>
> -#include <grp.h>
> -#include <pwd.h>
>  #include <stdio.h>
>  #include <string.h>
>  #include <sys/types.h>
>  #include <sys/stat.h>
>  #include <unistd.h>
> +#include <grp.h>
> +#include <pwd.h>
>  #include "common.h"
>  #include "authenticate.h"
>  #include "configfile.h"

That worked fine with "fuzz 2", thanks!!

-Andre


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click