分页: 1 / 1

ubuntu7.10(kernel is 2.6.22-14)下dr.com的编译安装及配置问题,高手快来啊

发表于 : 2008-03-05 18:49
xyzzzhang
如题,按网上的教程试过多次,总是出现问题,以下是我在模拟终端下的安装过程,里面有几处错误,请问是什么意思啊?,我该怎么解决?:
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:

发表于 : 2008-03-05 18:52
xyzzzhang
补充一下,我是把错误信息拷贝下来再在Win下用写字板打开的,所以里面会有一些乱码,不过大部分还是清楚的

发表于 : 2008-03-05 18:58
sevk
打倒超级大流氓(DRCOM 802.1X协议版)的方法 --
viewtopic.php?t=91219

发表于 : 2008-03-06 17:30
xyzzzhang
自己顶一下