Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 15 Apr 1997 15:31:04 -0500 (EST)
From:      pgiffuni@fps.biblos.unal.edu.co
To:        ports@freebsd.org
Subject:   syntax error in dirent.h ?
Message-ID:  <Pine.A41.3.95.970415151841.22616A-100000@fps.biblos.unal.edu.co>

next in thread | raw e-mail | index | archive | help
Howdy,
I am trying to port VRweb (A VRML browser). It's supposed to build out of
the box, but I keep getting this error:
_______________
....(FWIW I have the complete log-file)
+ make Makefiles
Making Makefiles for FREEBSD in ./FREEBSD
imake -DFreeBSD -DHGExtraCCDefines="-DFreeBSD -DHG_OSMaj=2
-DHG_OSMin=2-RELEASE" -T template
-I/usr/home/pedro/ports/vrweb/work/vrweb-1.3/config
SpecialArchitectureFlags
-DSrcDir=/usr/home/pedro/ports/vrweb/work/vrweb-1.3/src/common/OS
-DTOPDIR=../. -DCURDIR=./FREEBSD -DInObjectCodeDir -s FREEBSD/Makefile
+ make depend
depending for FREEBSD in ./FREEBSD
make[1]: Entering directory
`/usr/home/pedro/ports/vrweb/work/vrweb-1.3/src/common/OS/FREEBSD'
gccmakedep -s "# DO NOT DELETE" -- -g -DASSERT -Dcplusplus_2_1
-DOSMajorVersion=2 -DOSMinorVersion=1 -I/usr/X11R6/include -DFreeBSD
-DHG_OSMaj=2 -DHG_OSMin=2-RELEASE
-I/usr/home/pedro/ports/vrweb/work/vrweb-1.3/installed/include   --
/usr/home/pedro/ports/vrweb/work/vrweb-1.3/src/common/OS/*.C
make[1]: Leaving directory
`/usr/home/pedro/ports/vrweb/work/vrweb-1.3/src/common/OS/FREEBSD'
=== Executing "make all install" in src/common/OS
making all for FREEBSD in ./FREEBSD
make[1]: Entering directory
`/usr/home/pedro/ports/vrweb/work/vrweb-1.3/src/common/OS/FREEBSD'
g++  -O  -g -DASSERT -Dcplusplus_2_1  -DOSMajorVersion=2
-DOSMinorVersion=1 -I/usr/X11R6/include -DFreeBSD -DHG_OSMaj=2
-DHG_OSMin=2-RELEASE
-I/usr/home/pedro/ports/vrweb/work/vrweb-1.3/installed/include     -c
/usr/home/pedro/ports/vrweb/work/vrweb-1.3/src/common/OS/directory.C
In file included from /usr/include/dirent.h:43,
                 from
/usr/home/pedro/ports/vrweb/work/vrweb-1.3/src/common/OS/directory.C:40:
/usr/include/sys/dirent.h:52: syntax error before `;'
/usr/include/sys/dirent.h:53: syntax error before `;'
/usr/include/sys/dirent.h:54: syntax error before `;'
/usr/include/sys/dirent.h:55: syntax error before `;'
make[1]: *** [directory.o] Error 1
___________________________
I'm using using 2.2-Release, and we all have the same headers, I didn't
see that syntax problem anywhere..

directory.C says:
_________________
/*   
 * BSD tends to have things in <sys/dir.h>, System V uses <dirent.h>.
 * So far as I can tell, POSIX went with <dirent.h>.  Ultrix <dirent.h>
 * includes <sys/dir.h>, which is silly because <sys/dir.h>
 * needs <sys/types.h>.
 */
#include "types.h" 
#ifdef apollo
#include <sys/dir.h>
#include <osfcn.h>
#else
#include <dirent.h>
#endif
#include <pwd.h>

#include <stdio.h>
#include <string.h>   
#include <sys/stat.h>
_________________


Any help here?

best regards,

Pedro.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.A41.3.95.970415151841.22616A-100000>