skyeye error : open with O_CREAT in second argument needs 3 arguments
来源:互联网 发布:同济大学软件学院导师 编辑:程序博客网 时间:2024/06/07 15:32
转载 : http://blog.chinaunix.net/u1/44250/showart_1762618.html
都说ubuntu的支持相当的强大,我承认,那是因为ubuntu的问题相当多。比如:由于Debian包管理的依赖性问题,导致了eva没有依赖上kdebase,对话框中右键崩溃。
今天在编译skyeye时又报错
/usr/include/bits/fcntl2.h:51: 错误: 调用‘__open_missing_mode’,声明有错误属性:open with O_CREAT in second argument needs 3 arguments
按理说在Fedora 10中都可以编译过的,在ubuntu下应该也没什么问题才对,可是偏偏出现这个问题。赶紧跟踪,首先对比两个版本的/usr/include/bits/fcntl2.h,发现没有区别,那么就是代码的问题了。改代码,报错是在612行
if(!nf->writebuffer)
free(nf->writebuffer);
free(nf);
提示是open有错,但是612行是free,注释掉前两行,居然误报成了free(nf),继续注释掉free(nf),终于,错误给出来了,是在519行的
if ((nf->fdump= open(dev->dump, FILE_FLAG)) < 0)
open在调用的时候只有两个参数,赶紧给加上个0777,代码成了
if ((nf->fdump= open(dev->dump, FILE_FLAG,0777)) < 0)
更具上面所讲的话,修改源码中的/device/nadflash/nandflash_smallblock.c中的519行改成
if ((nf->fdump= open(dev->dump, FILE_FLAG,0777)) < 0)
- skyeye error : open with O_CREAT in second argument needs 3 arguments
- swift error:Extra argument 'error' in call
- Too many arguments error in bash
- error : too few arguments in function call
- error: pointer targets in passing argument 3 of 'accept' differ in signedness [-Werror=pointer-sign
- open函数的O_CREAT与O_EXCL
- open系统调用的O_CREAT和O_EXCL
- Xampp error:Port 80 in use by "Unable to open process" with PID 4!
- Error: non-generic cannot be used with type arguments
- An error occurred while processing information_archive_op with arguments
- 【Error】: rpm: arguments to --root (-r) must begin with a /
- Sqoop fails with "Error parsing arguments for import"
- opencv Error:Bad argument <Unknown arrray type> in cvarrTomat
- gcc: error: unrecognized argument in option ‘-mabi=aapcs-linux’
- caffe cudnnSetConvolution2dDescriptor error: too few arguments in function call
- Unix/Linux下的open函数(O_CREAT和O_EXCL)
- O_RDWR, O_CREAT等open函数标志位在哪里定义?
- Unix/Linux下的open函数(O_CREAT和O_EXCL)
- flash调用javascript
- Struts 应用配置概要
- Struts-config.xml配置文件讲解
- 开通了
- 【摘自CSDN论坛】mysql命令行常用命令
- skyeye error : open with O_CREAT in second argument needs 3 arguments
- Windows Mobile上的矢量图形显示
- 主页被修改之解决方法。
- SQL经典行转列
- java异常:Java heap space
- DIV的自适应高度和等高
- xml
- direct show 编译问题
- js获取键值