Date: Mon, 8 Jul 2002 05:45:57 -0700 (PDT) From: Don Lewis <dl-freebsd@catspoiler.org> To: current@FreeBSD.org, bde@FreeBSD.org Subject: struct stat and _POSIX_SOURCE Message-ID: <200207081246.g68Cjvwr000350@gw.catspoiler.org>
next in thread | raw e-mail | index | archive | help
Building OpenOffice is broken in -current because of a problem in <sys/stat.h>. If _POSIX_SOURCE is defined, <sys/stat.h> does not #include <sys/time.h> to get the definition of struct timespec, and it substitutes alternate structure members for the struct timespec members. Unfortunately it still attempts to pad the structure with bit fields whose width is relies on the definition of struct timespec. Making: ../unxfbsd.pro/obj/cppsetup.obj gcc31 -w -c -I. -I. -I../inc -I../inc -I../unx/inc -I../unxfbsd.pro/inc -I. -I/usr/ports/editors/openoffice/work/oo_1.0_src/solver/641/unxfbsd.pro/inc/dont_use_stl -I/usr/ports/editors/openoffice/work/oo_1.0_src/solver/641/unxfbsd.pro/inc/external -I/usr/ports/editors/openoffice/work/oo_1.0_src/solver/641/unxfbsd.pro/inc -I/usr/ports/editors/openoffice/work/oo_1.0_src/solenv/unxfbsd/inc -I/usr/ports/editors/openoffice/work/oo_1.0_src/solenv/inc -I/usr/ports/editors/openoffice/work/oo_1.0_src/res -I/usr/include -I/usr/ports/editors/openoffice/work/oo_1.0_src/solver/641/unxfbsd.pro/inc/dont_use_stl -I/usr/ports/editors/openoffice/work/oo_1.0_src/solenv/inc/Xp31 -I/usr/local/jdk1.3.1/include -I/usr/local/jdk1.3.1/include/freebsd -I/usr/local/jdk1.3.1/include/green_threads/include -I/usr/X11R6/include -I/lib/gcc-lib/i386-portbld-freebsd5.0/3.1.1/include -I/usr/include -I. -I../res -I. -I/usr/ports/editors/openoffice/work/oo_1.0_src/solenv/unxfbsdi/usr/include -I/usr/X11R6/in! clude -O -pipe -fPIC -DFREEBSD -DUNX -DVCL -DGCC -DC300 -DINTEL -DCVER=C300 -D_USE_NAMESPACE -D_USE_NAMESPACE=1 -DX86 -DNEW_SOLAR -DSTLPORT_VERSION=400 -DOSVERSION=500037 -D_THREAD_SAFE -D__DMAKE -DUNIX -DCPPU_ENV=gcc3 -DSUPD=641 -DBUILD=7663 -DPRODUCT -DNDEBUG -DPRODUCT_FULL -DOPTIMIZE -DEXCEPTIONS_OFF -DCUI -DSOLAR_JAVA -DSRC641 -DNO_X11 -DXP_PC -DHW_THREADS -DINCLUDEDIR=\".\" -DSINGLETHREAD -o ../unxfbsd.pro/obj/cppsetup.o cppsetup.c In file included from def.h:50, from cppsetup.c:29: /usr/include/sys/stat.h:127: sizeof applied to an incomplete type /usr/include/sys/stat.h:128: sizeof applied to an incomplete type dmake: Error code 1, while making '../unxfbsd.pro/obj/cppsetup.obj' To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200207081246.g68Cjvwr000350>