Bugs item #1686756, was opened at 2007-03-23 14:27
Message generated for change (Comment added) made by stmane
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=482468&aid=1686756&group_id=56967
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Core
Group: MonetDB Common CVS Head
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Torsten Grust (teggy)
Assigned to: Niels Nes (nielsnes)
Summary: Implicit declaration of function ‘fdatasync’
Initial Comment:
On Darwin 8.9.1 (Mac OS X), from scratch compilation of stream.mx (MonetDB CVS
Head) fails with
gcc -DHAVE_CONFIG_H -I.
-I/Users/grust/sci/XQuery/Pathfinder/package/MonetDB/src/common -I../..
-I/Users/grust/sci/XQuery/Pathfinder/package/MonetDB/src/common -DLIBSTREAM
-Wall -Wextra -std=c99 -g -Werror-implicit-function-declaration -Werror
-Wpointer-arith -Wdeclaration-after-statement -Wno-uninitialized -D_REENTRANT
-c stream.c -fno-common -DPIC -o .libs/libstream_la-stream.o
/Users/grust/sci/XQuery/Pathfinder/package/MonetDB/src/common/stream.mx: In
function ‘file_fsync’:
/Users/grust/sci/XQuery/Pathfinder/package/MonetDB/src/common/stream.mx:773:
error: implicit declaration of function ‘fdatasync’
Assigning to Niels because of his comment in stream.mx, line 772 (added in a
checkin of Mar 14):
/* TODO, use config to chose between fsync, fdatasync and none */
fdatasync(fileno(fp)) < 0
Cheers,
--Torsten
----------------------------------------------------------------------
>Comment By: Stefan Manegold (stmane)
Date: 2007-03-27 10:19
Message:
Logged In: YES
user_id=572415
Originator: NO
Related:
on Solaris10/x86, compilation od stream.mx fails with
gcc -DHAVE_CONFIG_H -I.
-I/export/scratch1/monet/monet.GNU.32.32.d.22991/MonetDB/src/common -I../..
-I/export/scratch1/monet/monet.GNU.32.32.d.22991/MonetDB/src/common
-I/opt/csw/include -I/opt/csw/include -DLIBSTREAM -O2 -D__EXTENSIONS__
-Wall -Wextra -std=c99 -O6 -fomit-frame-pointer -finline-functions
-falign-loops=4 -falign-jumps=4 -falign-functions=4
-fexpensive-optimizations -funroll-loops -frerun-cse-after-loop
-frerun-loop-opt -DHWCOUNTERS -DHW_SunOS -DHW_i86pc
-Werror-implicit-function-declaration -Werror -Wpointer-arith
-Wdeclaration-after-statement -Wno-uninitialized -D_REENTRANT -c stream.c
-fPIC -DPIC -o .libs/libstream_la-stream.o
/export/scratch1/monet/monet.GNU.32.32.d.22991/MonetDB/src/common/stream.mx:
In function `file_fsync':
/export/scratch1/monet/monet.GNU.32.32.d.22991/MonetDB/src/common/stream.mx:784:
error: syntax error before ')' token
/export/scratch1/monet/monet.GNU.32.32.d.22991/MonetDB/src/common/stream.mx:
At top level:
/export/scratch1/monet/monet.GNU.32.32.d.22991/MonetDB/src/common/stream.mx:788:
error: syntax error before "return"
/export/scratch1/monet/monet.GNU.32.32.d.22991/MonetDB/src/common/stream.mx:769:
warning: unused variable `fp'
gmake[5]: *** [libstream_la-stream.lo] Error 1
cf.
http://monetdb.cwi.nl/testing/projects/monetdb/Current/MonetDB/.GNU.32.32.d-SunOS5.10/make-k.out
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=482468&aid=1686756&group_id=56967
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Monetdb-bugs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-bugs