海王  
/usr/include/bits/fcntl2.h:51: error: call to ‘__open_missing_mode’ declared with attribute error: open with O_CREAT in second argument needs 3 arguments
make[2]: *** [ts_calibrate.o] Error 1
make[2]: Leaving directory `/root/soft/tslib/ts_lib/tslib/tests'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/soft/tslib/ts_lib/tslib'

make: *** [all] Error 2

 

解决办法:将open函数的修改如下:

cal_fd = open ("/etc/pointercal", O_CREAT | O_RDWR ,0);

 

 


posted on 2010-11-24 14:57  海王  阅读(985)  评论(0编辑  收藏  举报