Complete.Org: Mailing Lists: Archives: freeciv-dev: November 2002:
[Freeciv-Dev] Problems with dirent.h on MacOS X (PR#2249)
Home

[Freeciv-Dev] Problems with dirent.h on MacOS X (PR#2249)

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: alexandre.enkerli@xxxxxxxxxxxx
Cc: freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] Problems with dirent.h on MacOS X (PR#2249)
From: "Jason Short via RT" <rt@xxxxxxxxxxxxxx>
Date: Sat, 9 Nov 2002 11:08:05 -0800
Reply-to: rt@xxxxxxxxxxxxxx

Full_Name: Alexandre Enkerli
Version: 1.13cvs, 1.14
Distribution: Built from source
Client: Both (or N/A)
OS: MacOS X 10.2.1 (Jaguar)
Submission from: (NULL) (132.204.117.122)


This bug seems to have been introduced in the CVS version 1.13 and 
persists in
1.14. After a successful configure, make stops at this:
In file included from /usr/include/dirent.h:64,
                  from shared.c:18:
/usr/include/sys/dirent.h:73: parse error before "u_int32_t"
/usr/include/sys/dirent.h:75: parse error before "d_type"
/usr/include/sys/dirent.h:76: parse error before "d_namlen"
/usr/include/sys/dirent.h:83: parse error before '}' token
shared.c: In function `datafilelist':
shared.c:868: dereferencing pointer to incomplete type
shared.c:872: dereferencing pointer to incomplete type
shared.c:874: dereferencing pointer to incomplete type
make[2]: *** [shared.o] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

------------------------------------------------------------------

dirent.h was not used on 1.13.0 and before, so this is a new problem.

I can't tell what is causing the parse error.  Could you send me (just 
me - not the list) the preprocessor output from your compiler?  With 
most compilers (on MacOS X do you use gcc?) you can do this with the -E 
option, so that (for instance) the line:

gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../intl    -g -Wall -O2 -g -Wall -c 
shared.c

becomes

gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../intl    -g -Wall -O2 -g -Wall -E 
-c shared.c

(the only change is the addition of -E somewheree before the end).  Just 
take the compilation line that failed and tack -E on somewhere in the 
middle.

Thanks for your help.

jason short




[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] Problems with dirent.h on MacOS X (PR#2249), Jason Short via RT <=