免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2311 | 回复: 8
打印 上一主题 下一主题

求助:./configure --with-kernel-includes=? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2003-09-18 12:16 |只看该作者 |倒序浏览
我在安装PCTEL MODEM时遇到不少麻烦.(我是照提示做的)
提示:
Installation
------------
0) Unpack the tarball by typing "tar zxvf pctel-0.8.5.tar.gz"

1) Go into that directory by typing "cd pctel-0.8.5"

2) Find out what chipset you have in your board:

3) ./configure
Options:

--with-hal=hal
Select one of: pct789, cm8738, i810intel, i810sis, via686a

--with-kernel-includes=/path/to/my/kernel-sources/include
问题是当我做到第3步时就出现了.
我是这样做的.
# ./configure --with-hal=pct789(这是我的内猫的类型)
没有错误提示,应该正确了
#./configure --with-kernel-includes=   
我不知跟什么了.请哪位高人指点!!!!!现谢了

论坛徽章:
0
2 [报告]
发表于 2003-09-18 12:30 |只看该作者

求助:./configure --with-kernel-includes=?

【1】 那两个--with-.....应该是写在一个命令行里,用一次configure就可以了。
【2】 --with-kernel-includes=/usr/src/linux/include
前提是你的kernel source已经安装了。

论坛徽章:
0
3 [报告]
发表于 2003-09-18 12:56 |只看该作者

求助:./configure --with-kernel-includes=?

我安你的去做但是现错误:
[root@localhost pctel-0.8.6]# ./configure --with-kernel-includes=/usr/src/include
loading cache ./config.cache
checking for a BSD compatible install... (cached) /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... (cached) yes
checking for working aclocal... found
checking for working autoconf... found
checking for working automake... found
checking for working autoheader... found
checking for working makeinfo... found
configure: error: You should specify a target HAL - use ./configure --with-hal=list to see the list
另外:我用# find / -name include
出现:
[root@localhost linux]# find / -name include
/var/www/error/include
/tmp/kernel all/include
/root/kernel 2.4.x/include
/root/pctel-0.8.6/include
/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include
/usr/lib/gcc-lib/i386-redhat-linux7/2.96/include
/usr/lib/bcc/include
/usr/lib/hsf/modules/osspec/include
/usr/lib/hsf/imported/include
/usr/share/doc/doxygen-1.2.18/examples/include
/usr/X11R6/include
/usr/include
/usr/include/sp/include
/usr/local/include
/usr/src/linux/include  ("这个目录是我自己建的"
/usr/src/linux-2.4.20-8/include
/usr/src/linux-2.4.20-8/linux-2.4.20-8/arch/ppc/boot/include
/usr/src/linux-2.4.20-8/linux-2.4.20-8/drivers/acpi/include
/usr/src/linux-2.4.20-8/linux-2.4.20-8/drivers/acpi/ospm/include
/usr/src/linux-2.4.20-8/linux-2.4.20-8/include
/usr/kerberos/include
/home/hsflinmodem-4.06.06.03/imported/include
/home/hsflinmodem-4.06.06.03/modules/osspec/include
/lib/kbd/keymaps/i386/include
出现:

论坛徽章:
0
4 [报告]
发表于 2003-09-18 12:57 |只看该作者

求助:./configure --with-kernel-includes=?

  1. ./configure --with-kernel-includes=/usr/src/include  --with-hal=pct789
复制代码
【1】 那两个--with-.....应该是写在一个命令行里,用一次configure就可以了

论坛徽章:
0
5 [报告]
发表于 2003-09-18 14:08 |只看该作者

求助:./configure --with-kernel-includes=?

照你的做没有出现错误,下一步执行'"make"了,出了错,帮忙看一下.
[root@localhost pctel-0.8.6]# make
Making all in src
make[1]: Entering directory `/root/pctel-0.8.6/src'
Making all in module
make[2]: Entering directory `/root/pctel-0.8.6/src/module'
rm -f *~ \#* .*~ .\#*
rm -f ptmodule.o
rm -f ptmodule.o
rm -f ../../modules/pctel.o
gcc      -D__KERNEL__ -DMODULE -Wall -Werror -O -fomit-frame-pointer -DMODVERSIONS -DEXPORT_SYMTAB -DHAL_PCT789  -I../../include -I/usr/src/linux/include -include /usr/src/linux/include/linux/modversions.h -c -o ptmodule.o ptmodule.c
cc1: warnings being treated as errors
ptmodule.c: In function `Pctel_module_init':
ptmodule.c:17: warning: implicit declaration of function `atomic_inc'
ptmodule.c:17: union has no member named `usecount'
ptmodule.c: In function `Pctel_module_free':
ptmodule.c:22: warning: implicit declaration of function `atomic_dec'
ptmodule.c:22: union has no member named `usecount'
ptmodule.c: In function `Pctel_module_is_free':
ptmodule.c:27: warning: implicit declaration of function `atomic_read'
ptmodule.c:27: union has no member named `usecount'
make[2]: *** [ptmodule.o] Error 1
make[2]: Leaving directory `/root/pctel-0.8.6/src/module'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/pctel-0.8.6/src'
make: *** [all-recursive] Error 1
我该怎么做呢.

论坛徽章:
0
6 [报告]
发表于 2003-09-18 14:30 |只看该作者

求助:./configure --with-kernel-includes=?

你的kernel source 安装了么?你到/usr/src/linux下面去看一下。

论坛徽章:
0
7 [报告]
发表于 2003-09-18 14:46 |只看该作者

求助:./configure --with-kernel-includes=?

以下是/usr/src/下的目录,其中linux是我自己用mkdir命令建的.
[root@localhost src]# ll
总用量 16
drwxr-xr-x    2 root     root         4096  9月 18 10:53 debug
drwxr-xr-x    3 root     root         4096  9月 18 11:19 linux
lrwxrwxrwx    1 root     root           14  9月 17 17:47 linux-2.4 ->; linux-2.4.20-8
drwxr-xr-x    4 root     root         4096  9月 18 10:48 linux-2.4.20-8
drwxr-xr-x    7 root     root         4096  9月 17 17:03 redhat
以下就是/usr/src/linux/下的目录
[root@localhost linux]# dir
include

论坛徽章:
0
8 [报告]
发表于 2003-09-18 15:07 |只看该作者

求助:./configure --with-kernel-includes=?

#rm -rf /usr/src/linux
#ln -sf /usr/src/linux-2.4 /usr/src/linux

论坛徽章:
0
9 [报告]
发表于 2003-09-18 15:53 |只看该作者

求助:./configure --with-kernel-includes=?

我照你的做.
     root@localhost src]# ll
总用量 12
drwxr-xr-x    2 root     root         4096  9月 18 10:53 debug
lrwxrwxrwx    1 root     root           18  9月 18 15:45 linux ->; /usr/src/linux-2.4
lrwxrwxrwx    1 root     root           14  9月 17 17:47 linux-2.4 ->; linux-2.4.20-8
drwxr-xr-x    4 root     root         4096  9月 18 15:41 linux-2.4.20-8
drwxr-xr-x    7 root     root         4096  9月 17 17:03 redhat
然后:
./configure --with-hal=pct789  --with-kernel-includes=/usr/src/linux/include
这里没有错.
下一不:
make
出错了:
[root@localhost pctel-0.8.6]# make
Making all in src
make[1]: Entering directory `/root/pctel-0.8.6/src'
Making all in module
make[2]: Entering directory `/root/pctel-0.8.6/src/module'
rm -f *~ \#* .*~ .\#*
rm -f ptmodule.o
rm -f ptmodule.o
rm -f ../../modules/pctel.o
gcc      -D__KERNEL__ -DMODULE -Wall -Werror -O -fomit-frame-pointer -DMODVERSIONS -DEXPORT_SYMTAB -DHAL_PCT789  -I../../include -I/usr/src/linux/include -include /usr/src/linux/include/linux/modversions.h -c -o ptmodule.o ptmodule.c
In file included from <command line>;:1:
/usr/src/linux/include/linux/modversions.h:1:2: #error Modules should never use kernel-headers system headers,
/usr/src/linux/include/linux/modversions.h:2:2: #error but rather headers from an appropriate kernel-source package.
/usr/src/linux/include/linux/modversions.h:3:2: #error Change -I/usr/src/linux/include (or similar) to
/usr/src/linux/include/linux/modversions.h:4:2: #error -I/lib/modules/$(uname -r)/build/include
/usr/src/linux/include/linux/modversions.h:5:2: #error to build against the currently-running kernel.
cc1: warnings being treated as errors
ptmodule.c: In function `Pctel_module_init':
ptmodule.c:17: warning: implicit declaration of function `atomic_inc'
ptmodule.c:17: union has no member named `usecount'
ptmodule.c: In function `Pctel_module_free':
ptmodule.c:22: warning: implicit declaration of function `atomic_dec'
ptmodule.c:22: union has no member named `usecount'
ptmodule.c: In function `Pctel_module_is_free':
ptmodule.c:27: warning: implicit declaration of function `atomic_read'
ptmodule.c:27: union has no member named `usecount'
make[2]: *** [ptmodule.o] Error 1
make[2]: Leaving directory `/root/pctel-0.8.6/src/module'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/pctel-0.8.6/src'
make: *** [all-recursive] Error 1
我要晕了.请帮忙.请你喝茶
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP