|
|
我的是 FC4
在网上搜了好久所有的rpm都不可以用
最后决定自己编译,我下载了drcom-1.3.6.tar.gz
下面就是我的信息
***************************************************************
[root@localhost dr2]# tar -zxf dr*gz
[root@localhost dr2]# dir
drcom-1.3.6 drcom-1.3.6.tar.gz drcom.txt
[root@localhost dr2]# cd d*6
[root@localhost drcom-1.3.6]# make
make -C drcomc
make[1]: Entering directory `/root/Desktop/dr2/drcom-1.3.6/drcomc'
gcc -Wall -W -Wstrict-prototypes -Wmissing-prototypes -pedantic -I/root/Desktop/ dr2/drcom-1.3.6/include -O2 -c -o drcomc.o drcomc.c
gcc drcomc.o -o drcomc
make[1]: Leaving directory `/root/Desktop/dr2/drcom-1.3.6/drcomc'
make -C drcomd
make[1]: Entering directory `/root/Desktop/dr2/drcom-1.3.6/drcomd'
gcc -Wall -W -Wstrict-prototypes -Wmissing-prototypes -pedantic -I/root/Desktop/ dr2/drcom-1.3.6/include -O2 -c -o drcomd.o drcomd.c
gcc -Wall -W -Wstrict-prototypes -Wmissing-prototypes -pedantic -I/root/Desktop/ dr2/drcom-1.3.6/include -O2 -c -o daemon.o daemon.c
gcc -Wall -W -Wstrict-prototypes -Wmissing-prototypes -pedantic -I/root/Desktop/ dr2/drcom-1.3.6/include -O2 -c -o cleanup.o cleanup.c
gcc -Wall -W -Wstrict-prototypes -Wmissing-prototypes -pedantic -I/root/Desktop/ dr2/drcom-1.3.6/include -O2 -c -o dialog.o dialog.c
gcc -Wall -W -Wstrict-prototypes -Wmissing-prototypes -pedantic -I/root/Desktop/ dr2/drcom-1.3.6/include -O2 -c -o handle.o handle.c
gcc -Wall -W -Wstrict-prototypes -Wmissing-prototypes -pedantic -I/root/Desktop/ dr2/drcom-1.3.6/include -O2 -c -o init.o init.c
gcc -Wall -W -Wstrict-prototypes -Wmissing-prototypes -pedantic -I/root/Desktop/ dr2/drcom-1.3.6/include -O2 -c -o keepalive.o keepalive.c
gcc -Wall -W -Wstrict-prototypes -Wmissing-prototypes -pedantic -I/root/Desktop/ dr2/drcom-1.3.6/include -O2 -c -o login.o login.c
login.c: 在函数 ‘drcom_login’ 中:
login.c:50: 警告:未使用的形参 ‘timeout’
gcc -Wall -W -Wstrict-prototypes -Wmissing-prototypes -pedantic -I/root/Desktop/ dr2/drcom-1.3.6/include -O2 -c -o logout.o logout.c
logout.c: 在函数 ‘drcom_logout’ 中:
logout.c:34: 警告:未使用的形参 ‘timeout’
gcc -Wall -W -Wstrict-prototypes -Wmissing-prototypes -pedantic -I/root/Desktop/ dr2/drcom-1.3.6/include -O2 -c -o md5.o md5.c
md5.c:131:36: warning: use of C99 long long integer constant
gcc -Wall -W -Wstrict-prototypes -Wmissing-prototypes -pedantic -I/root/Desktop/ dr2/drcom-1.3.6/include -O2 -c -o misc.o misc.c
gcc -Wall -W -Wstrict-prototypes -Wmissing-prototypes -pedantic -I/root/Desktop/ dr2/drcom-1.3.6/include -O2 -c -o passwd.o passwd.c
passwd.c: 在函数 ‘drcom_passwd’ 中:
passwd.c:32: 警告:未使用的形参 ‘timeout’
gcc -Wall -W -Wstrict-prototypes -Wmissing-prototypes -pedantic -I/root/Desktop/ dr2/drcom-1.3.6/include -O2 -c -o readconf.o readconf.c
gcc -Wall -W -Wstrict-prototypes -Wmissing-prototypes -pedantic -I/root/Desktop/ dr2/drcom-1.3.6/include -O2 -c -o watchport.o watchport.c
gcc -Wall -W -Wstrict-prototypes -Wmissing-prototypes -pedantic -I/root/Desktop/ dr2/drcom-1.3.6/include -O2 -c -o getaddr.o getaddr.c
gcc -Wall -W -Wstrict-prototypes -Wmissing-prototypes -pedantic -I/root/Desktop/ dr2/drcom-1.3.6/include -O2 -c -o log.o log.c
log.c: 在函数 ‘dbg’ 中:
log.c:34: 警告:未使用的形参 ‘format’
gcc -lm -lpthread drcomd.o daemon.o cleanup.o dialog.o handle.o init.o keepaliv e.o login.o logout.o md5.o misc.o passwd.o readconf.o watchport.o getaddr.o log. o -o drcomd
make[1]: Leaving directory `/root/Desktop/dr2/drcom-1.3.6/drcomd'
make -C kmod
make[1]: Entering directory `/root/Desktop/dr2/drcom-1.3.6/kmod'
make -C /lib/modules/2.6.11-1.1369_FC4/build M=/root/Desktop/dr2/drcom-1.3.6/kmo d modules
make[2]: Entering directory `/usr/src/kernels/2.6.11-1.1369_FC4-i686'
CC [M] /root/Desktop/dr2/drcom-1.3.6/kmod/init.o
CC [M] /root/Desktop/dr2/drcom-1.3.6/kmod/proc.o
CC [M] /root/Desktop/dr2/drcom-1.3.6/kmod/proto.o
LD [M] /root/Desktop/dr2/drcom-1.3.6/kmod/drcom.o
Building modules, stage 2.
MODPOST
CC /root/Desktop/dr2/drcom-1.3.6/kmod/drcom.mod.o
LD [M] /root/Desktop/dr2/drcom-1.3.6/kmod/drcom.ko
make[2]: Leaving directory `/usr/src/kernels/2.6.11-1.1369_FC4-i686'
make[1]: Leaving directory `/root/Desktop/dr2/drcom-1.3.6/kmod'
[root@localhost drcom-1.3.6]# make install
make -C drcomc install
make[1]: Entering directory `/root/Desktop/dr2/drcom-1.3.6/drcomc'
mkdir -p /usr/local/bin/
install -m 755 drcomc /usr/local/bin/
make[1]: Leaving directory `/root/Desktop/dr2/drcom-1.3.6/drcomc'
make -C drcomd install
make[1]: Entering directory `/root/Desktop/dr2/drcom-1.3.6/drcomd'
mkdir -p /usr/local/bin/
install -m 700 drcomd /usr/local/bin/
make[1]: Leaving directory `/root/Desktop/dr2/drcom-1.3.6/drcomd'
make -C kmod install
make[1]: Entering directory `/root/Desktop/dr2/drcom-1.3.6/kmod'
make -C /lib/modules/2.6.11-1.1369_FC4/build M=/root/Desktop/dr2/drcom-1.3.6/kmo d modules
make[2]: Entering directory `/usr/src/kernels/2.6.11-1.1369_FC4-i686'
Building modules, stage 2.
MODPOST
make[2]: Leaving directory `/usr/src/kernels/2.6.11-1.1369_FC4-i686'
make -C /lib/modules/2.6.11-1.1369_FC4/build M=/root/Desktop/dr2/drcom-1.3.6/kmo d modules_install
make[2]: Entering directory `/usr/src/kernels/2.6.11-1.1369_FC4-i686'
INSTALL /root/Desktop/dr2/drcom-1.3.6/kmod/drcom.ko
make[2]: Leaving directory `/usr/src/kernels/2.6.11-1.1369_FC4-i686'
/sbin/depmod -a 2.6.11-1.1369_FC4
make[1]: Leaving directory `/root/Desktop/dr2/drcom-1.3.6/kmod'
if [ -a /etc/drcom.conf ]; then \
echo "====================================" && \
echo "" && \
echo "/etc/drcom.conf exists.";\
echo "" && \
echo "You May Need to Edit /etc/drcom.conf" && \
echo "" && \
echo "====================================" \
;\
else\
install -m 600 drcom.conf /etc/drcom.conf && \
echo "====================================" && \
echo "" && \
echo "Do Not Forget To Edit /etc/drcom.conf" && \
echo "" && \
echo "====================================" \
;\
fi\
====================================
Do Not Forget To Edit /etc/drcom.conf
************************************************************
配置好drcom.conf之后
drcomd
drcom login
之后返回的参数是 failure
reason 0
***********************************************************
这是舍么原因呢??
是不是因为我们这儿是 dr.com v3.50版本太新的原因??? |
|