Re: 1.1.5 on Mac OS X

Jim Hague <[email protected]> Tue, 16 Mar 2004 09:56:07 -0000 (GMT)
Newsgroups gmane.network.noffle.user
Organization The Bear Cave
Message-ID <[email protected]>
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"




-- 
Jim Hague - [email protected]          Never trust a computer you can't lift.


-------------------------------------------------------
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