LinuxSir.cn,穿越时空的Linuxsir!

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

请教,在编译mplayer的时候提示了这样的问题

[复制链接]
发表于 2004-9-2 21:06:24 | 显示全部楼层 |阅读模式
In file included from /usr/include/asm/thread_info.h:13,
                 from /usr/include/linux/thread_info.h:21,
                 from ../osdep/kerneltwosix.h:4,
                 from vo_fbdev.c:21:
/usr/include/asm/processor.h:68: error: `CONFIG_X86_L1_CACHE_SHIFT' undeclared here (not in a function)
/usr/include/asm/processor.h:68: error: requested alignment is not a constant
make[1]: *** [vo_fbdev.o] 错误 1
make[1]: Leaving directory `/root/MPlayer-1.0pre5/libvo'
make: *** [libvo/libvo.a] 错误 2
bash-2.05# gcc -v
Reading specs from /usr/lib/gcc-lib/i586-pc-linux/3.3.1/specs
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --disable-checking --with-system-zlib --enable-__cxa_atexit --enable-languages=c,c++,objc,java,f77 --host=i586-pc-linux --build=i586-pc-linux --program-suffix=-3.3.1
Thread model: posix
gcc version 3.3.1
bash-2.05#


这些是错误的最后几行,
提示说是头文件出错了,
是编译器的问题,还是内核源码的问题?
谢谢大家先
发表于 2004-9-2 22:24:38 | 显示全部楼层
使用的内核版本是多少?
是否安装了kernel headers?
rpm -qa|grep kernel查看一下
 楼主| 发表于 2004-9-2 22:26:11 | 显示全部楼层
最初由 aaccdd 发表
使用的内核版本是多少?
是否安装了kernel headers?
rpm -qa|grep kernel查看一下

谢谢。

bash-2.05# qpm -aq|grep kernel
bash: qpm: command not found
bash-2.05# rpm -aq|grep kernel
kernel-utils-2.6-9
kernel-pcmcia-cs-2.6.0-1
kernel-doc-2.6.0-1
kernel-2.6.0-1
kernel-source-2.6.0-1
kernel-headers-2.6.0-1
bash-2.05#
发表于 2004-9-2 22:30:37 | 显示全部楼层
解决问题请尝试如下方法:
  1. cd /usr/src/linux-`uname -r`
  2. cp arch/config/i386/defconfig .config
  3. make oldconfig
  4. make dep
复制代码

然后再编译

如果是自己编译的内核一般不会出现这个问题,
如果出了问题,
请提出来
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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