当前时区为 UTC + 8 小时



发表新帖 回复这个主题  [ 4 篇帖子 ] 
作者 内容
1 楼 
 文章标题 : ubuntu7.10(kernel is 2.6.22-14)下dr.com的编译安装及配置问题,高手快来啊
帖子发表于 : 2008-03-05 18:49 

注册: 2008-03-05 18:04
帖子: 3
送出感谢: 0 次
接收感谢: 0 次
如题,按网上的教程试过多次,总是出现问题,以下是我在模拟终端下的安装过程,里面有几处错误,请问是什么意思啊?,我该怎么解决?:
root@zhangrh-desktop:/home/zhangrh/libdrcom-0.0-20050423-2# make
gcc -Wall -Wextra -Wstrict-prototypes -Wmissing-prototypes -pedantic -Iinclude -O2 -D_REENTRANT -c -o src/init.o src/init.c
gcc -Wall -Wextra -Wstrict-prototypes -Wmissing-prototypes -pedantic -Iinclude -O2 -D_REENTRANT -c -o src/cleanup.o src/cleanup.c
gcc -Wall -Wextra -Wstrict-prototypes -Wmissing-prototypes -pedantic -Iinclude -O2 -D_REENTRANT -c -o src/handle.o src/handle.c
gcc -Wall -Wextra -Wstrict-prototypes -Wmissing-prototypes -pedantic -Iinclude -O2 -D_REENTRANT -c -o src/login.o src/login.c
src/login.c: In function 鈥榙rcom_login鈥?
src/login.c:34: warning: unused parameter 鈥榯imeout鈥?gcc -Wall -Wextra -Wstrict-prototypes -Wmissing-prototypes -pedantic -Iinclude -O2 -D_REENTRANT -c -o src/logout.o src/logout.c
src/logout.c: In function 鈥榙rcom_logout鈥?
src/logout.c:32: warning: unused parameter 鈥榯imeout鈥?gcc -Wall -Wextra -Wstrict-prototypes -Wmissing-prototypes -pedantic -Iinclude -O2 -D_REENTRANT -c -o src/passwd.o src/passwd.c
src/passwd.c: In function 鈥榙rcom_passwd鈥?
src/passwd.c:32: warning: unused parameter 鈥榯imeout鈥?gcc -Wall -Wextra -Wstrict-prototypes -Wmissing-prototypes -pedantic -Iinclude -O2 -D_REENTRANT -c -o src/keepalive.o src/keepalive.c
gcc -Wall -Wextra -Wstrict-prototypes -Wmissing-prototypes -pedantic -Iinclude -O2 -D_REENTRANT -c -o src/watchport.o src/watchport.c
gcc -Wall -Wextra -Wstrict-prototypes -Wmissing-prototypes -pedantic -Iinclude -O2 -D_REENTRANT -c -o src/misc.o src/misc.c
gcc -Wall -Wextra -Wstrict-prototypes -Wmissing-prototypes -pedantic -Iinclude -O2 -D_REENTRANT -c -o lib/dialog.o lib/dialog.c
gcc -Wall -Wextra -Wstrict-prototypes -Wmissing-prototypes -pedantic -Iinclude -O2 -D_REENTRANT -c -o lib/readconf.o lib/readconf.c
gcc -Wall -Wextra -Wstrict-prototypes -Wmissing-prototypes -pedantic -Iinclude -O2 -D_REENTRANT -c -o lib/md5.o lib/md5.c
lib/md5.c:131:36: warning: use of C99 long long integer constant
gcc -Wall -Wextra -Wstrict-prototypes -Wmissing-prototypes -pedantic -Iinclude -O2 -D_REENTRANT -c -o os/getaddr.o os/linux/getaddr.c
gcc -Wall -Wextra -Wstrict-prototypes -Wmissing-prototypes -pedantic -Iinclude -O2 -D_REENTRANT -fPIC -shared -o src/libdrcom.so src/init.o src/cleanup.o src/handle.o src/login.o src/logout.o src/passwd.o src/keepalive.o src/watchport.o src/misc.o lib/dialog.o lib/readconf.o lib/md5.o os/getaddr.o -lm
/usr/bin/ld: src/init.o: relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC
src/init.o: could not read symbols: Bad value
collect2: ld returned 1 exit status
make: *** [src/libdrcom.so] Error 1
root@zhangrh-desktop:/home/zhangrh/libdrcom-0.0-20050423-2# make install
mkdir -p /usr/include
cp include/drcom.h /usr/include
gcc -Wall -Wextra -Wstrict-prototypes -Wmissing-prototypes -pedantic -Iinclude -O2 -D_REENTRANT -fPIC -shared -o src/libdrcom.so src/init.o src/cleanup.o src/handle.o src/login.o src/logout.o src/passwd.o src/keepalive.o src/watchport.o src/misc.o lib/dialog.o lib/readconf.o lib/md5.o os/getaddr.o -lm
/usr/bin/ld: src/init.o: relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC
src/init.o: could not read symbols: Bad value
collect2: ld returned 1 exit status
make: *** [src/libdrcom.so] Error 1


接着是drcomsuite的编译

uroot@zhangrh-desktop:/home/zhangrh/drcomsuite-0.1.12# uname -r
2.6.22-14-generic
root@zhangrh-desktop:/home/zhangrh/drcomsuite-0.1.12# ls /usr/src/
linux-headers-2.6.22-14 linux-headers-2.6.22-14-generic
root@zhangrh-desktop:/home/zhangrh/drcomsuite-0.1.12# more INSTALL
Installation Instructions

Requirements:
- Linux 2.4 or Linux 2.6
- A recent GCC version or the one recommended by the kernel developers (2.95.3)
- GNU Binutils (not tested with other binutils' yet)
- GNU Libc (not tested with other libc's yet)

Installation steps:
- Build
# make
You can also specify the kernel version
# make KERNELVERSION=2.6.11.8
If you have the kernel sources in a non-standard-directory
(like /usr/src/linux-x.y.z), then specify the path here
# make KERNELDIR=/path/to/kernel/src KERNELVERSION=kernel.version.number
- Install
# make install

You can refer to the file USAGE for usage instructions.

root@zhangrh-desktop:/home/zhangrh/drcomsuite-0.1.12# make
make -C include
make[1]: Entering directory `/home/zhangrh/drcomsuite-0.1.12/include'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/zhangrh/drcomsuite-0.1.12/include'
make -C drcomc
make[1]: Entering directory `/home/zhangrh/drcomsuite-0.1.12/drcomc'
gcc -Wall -W -Wstrict-prototypes -Wmissing-prototypes -pedantic -I/home/zhangrh/drcomsuite-0.1.12 -I/home/zhangrh/drcomsuite-0.1.12/include -O2 -c -o drcomc.o drcomc.c
gcc drcomc.o -o drcomc
make[1]: Leaving directory `/home/zhangrh/drcomsuite-0.1.12/drcomc'
make -C drcomcd
make[1]: Entering directory `/home/zhangrh/drcomsuite-0.1.12/drcomcd'
gcc -Wall -W -Wstrict-prototypes -Wmissing-prototypes -pedantic -I/home/zhangrh/drcomsuite-0.1.12 -I/home/zhangrh/drcomsuite-0.1.12/include -O2 -DREENTRANT -c -o drcomcd.o drcomcd.c
gcc -Wall -W -Wstrict-prototypes -Wmissing-prototypes -pedantic -I/home/zhangrh/drcomsuite-0.1.12 -I/home/zhangrh/drcomsuite-0.1.12/include -O2 -DREENTRANT -c -o daemon.o daemon.c
gcc -ldrcom -lpthread drcomcd.o daemon.o -o drcomcd
/usr/bin/ld: cannot find -ldrcom
collect2: ld returned 1 exit status
make[1]: *** [drcomcd] Error 1
make[1]: Leaving directory `/home/zhangrh/drcomsuite-0.1.12/drcomcd'
make: *** [drcomcd] Error 2
root@zhangrh-desktop:/home/zhangrh/drcomsuite-0.1.12# make install
make -C include install
make[1]: Entering directory `/home/zhangrh/drcomsuite-0.1.12/include'
make[1]: Nothing to be done for `install'.
make[1]: Leaving directory `/home/zhangrh/drcomsuite-0.1.12/include'
make -C drcomc install
make[1]: Entering directory `/home/zhangrh/drcomsuite-0.1.12/drcomc'
mkdir -p /usr/bin
cp drcomc /usr/bin
make[1]: Leaving directory `/home/zhangrh/drcomsuite-0.1.12/drcomc'
make -C drcomcd install
make[1]: Entering directory `/home/zhangrh/drcomsuite-0.1.12/drcomcd'
gcc -ldrcom -lpthread drcomcd.o daemon.o -o drcomcd
/usr/bin/ld: cannot find -ldrcom
collect2: ld returned 1 exit status
make[1]: *** [drcomcd] Error 1
make[1]: Leaving directory `/home/zhangrh/drcomsuite-0.1.12/drcomcd'
make: *** [drcomcd-install] Error 2
root@zhangrh-desktop:/home/zhangrh/drcomsuite-0.1.12#

我弄的头都大了,还是没有眉目
,期待高手出现啊~~~ :shock: :shock:


页首
 用户资料  
 
2 楼 
 文章标题 :
帖子发表于 : 2008-03-05 18:52 

注册: 2008-03-05 18:04
帖子: 3
送出感谢: 0 次
接收感谢: 0 次
补充一下,我是把错误信息拷贝下来再在Win下用写字板打开的,所以里面会有一些乱码,不过大部分还是清楚的


页首
 用户资料  
 
3 楼 
 文章标题 :
帖子发表于 : 2008-03-05 18:58 
头像

注册: 2007-05-08 16:26
帖子: 2058
地址: 火星内核某分子内某原子核内
系统: arch
送出感谢: 20
接收感谢: 6
打倒超级大流氓(DRCOM 802.1X协议版)的方法 --
http://forum.ubuntu.org.cn/viewtopic.php?t=91219


_________________
笔记本 :
F208S : gentoo
A460P i3G D6 : UBUNTU + WIN7
UN43D1 : UBUNTU + WIN7
1000人超级QQ群 LINUX + WIN : 31465544 或 18210387


页首
 用户资料  
 
4 楼 
 文章标题 :
帖子发表于 : 2008-03-06 17:30 

注册: 2008-03-05 18:04
帖子: 3
送出感谢: 0 次
接收感谢: 0 次
自己顶一下


页首
 用户资料  
 
显示帖子 :  排序  
发表新帖 回复这个主题  [ 4 篇帖子 ] 

当前时区为 UTC + 8 小时


在线用户

正在浏览此版面的用户:没有注册用户 和 4 位游客


不能 在这个版面发表主题
不能 在这个版面回复主题
不能 在这个版面编辑帖子
不能 在这个版面删除帖子
不能 在这个版面提交附件

前往 :  
本站点为公益性站点,用于推广开源自由软件,由 DiaHosting VPSBudgetVM VPS 提供服务。
我们认为:软件应可免费取得,软件工具在各种语言环境下皆可使用,且不会有任何功能上的差异;
人们应有定制和修改软件的自由,且方式不受限制,只要他们自认为合适。

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
简体中文语系由 王笑宇 翻译