LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 945|回复: 2

这算bug么? 算谁的bug?

[复制链接]
发表于 2006-10-4 13:25:04 | 显示全部楼层 |阅读模式
xdvik不能正确显示2byte的ovf, 在源码中查到控制这个的是
NeedWidePrototypes是否被define成1
但是在x11proto-core-dev中的Xfuncproto.h中是这么写的
  1. /* Function prototype configuration (see configure for more info) */
  2. #ifndef NARROWPROTO
  3. #define NARROWPROTO
  4. #endif
  5. #ifndef FUNCPROTO
  6. #define FUNCPROTO 15
  7. #endif
  8. #ifndef NeedWidePrototypes
  9. #ifdef NARROWPROTO
  10. #define NeedWidePrototypes 0
  11. #else
  12. #define NeedWidePrototypes 1                /* default to make interropt. easier */
  13. #endif
  14. #endif /* NeedWidePrototypes */
复制代码
也就是说NeedWidePrototypes被define成了0
于是根据注释说看configure的提示, 就把x11proto-core-dev的源码拉了下来..
然后./configure --help, 显示如下
  1. .......
  2. Optional Features:
  3.   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  4.   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  5.   --enable-function-prototypes
  6.                           force function prototypes (default: auto)
  7.   --enable-varargs-prototypes
  8.                           varargs prototypes are supported (default: auto)
  9.   --enable-const-prototypes
  10.                           const is supported (default: auto)
  11.   --enable-nested-prototypes
  12.                           nested prototypes are supported (default: auto)
  13. [color=red]  --enable-wide-prototypes
  14.                           widen function prototypes (default: auto)[/color]
  15.   --disable-dependency-tracking  speeds up one-time build
  16.   --enable-dependency-tracking   do not reject slow dependency extractors
  17. .......
复制代码
然后发现如果是linux, 那么默认不开启.

我对这些都不太懂..第一次改源码... 这算是bug么? 算谁的? xdvi的么? 还是x11proto-core-dev的?
发表于 2006-10-4 15:25:10 | 显示全部楼层
我觉得至少不是开发者的错
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-10-10 14:05:35 | 显示全部楼层
有回复了...他说他的suse 9.1的Xfuncproto.h中NeedWideProto是1.....
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表