QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 793|回复: 4

ML1.2安装usb modem驱动的问题。 

[复制链接]
发表于 2003-9-27 13:41:34 | 显示全部楼层 |阅读模式
安装usb adsl modem驱动,出现下列错误,是为什么呀?

这个驱动的安装说明要求把内核升级到2.6,但是在RH9下可以正常安装使用。
是不是因为没有装gnome?

[code:1]cd init && make clean
make[1]: Entering directory `/mnt/f/cxacru/init'
rm -f cxload cxioctl cxloaddbg cxloaddbgt
make[1]: Leaving directory `/mnt/f/cxacru/init'
cd module && make clean
make[1]: Entering directory `/mnt/f/cxacru/module'
rm -f cxacrunormal.o sarlib.o sartest cxacru.o cxacrudebug.o cxacrudbg.o version.h
make[1]: Leaving directory `/mnt/f/cxacru/module'
cd module2 && make clean
make[1]: Entering directory `/mnt/f/cxacru/module2'
rm -f *.o .*.flags *.ko *.mod.* .*.o.cmd .*.ko.cmd
make[1]: Leaving directory `/mnt/f/cxacru/module2'
cd sarlib && make clean
make[1]: Entering directory `/mnt/f/cxacru/sarlib'
/bin/rm -f *.o
make[1]: Leaving directory `/mnt/f/cxacru/sarlib'
cd panel && make clean
make[1]: Entering directory `/mnt/f/cxacru/panel'
rm -f cxpanel *.bak
make[1]: Leaving directory `/mnt/f/cxacru/panel'
cd bridged && make clean
make[1]: Entering directory `/mnt/f/cxacru/bridged'
rm -f br2684ctl
make[1]: Leaving directory `/mnt/f/cxacru/bridged'
[root@localhost cxacru]# make uninstall
cd firmware && make uninstall
make[1]: Entering directory `/mnt/f/cxacru/firmware'
for i in cxfirm1.bin cxfirm2.bin cxfirm3.bin cxfirm4.bin cxfirm5.bin; do \
        rm -f /usr/sbin/$i; \
done
make[1]: Leaving directory `/mnt/f/cxacru/firmware'
cd init && make uninstall
make[1]: Entering directory `/mnt/f/cxacru/init'
for i in cxload cxioctl; do \
        rm -f /usr/sbin/$i; \
done
make[1]: Leaving directory `/mnt/f/cxacru/init'
cd module && make uninstall
make[1]: Entering directory `/mnt/f/cxacru/module'
rm -f /lib/modules/2.4.22-1/kernel/drivers/usb/cxacru.o
rm -f /lib/modules/2.4.22-1/kernel/drivers/usb/cxacrudbg.o
/sbin/depmod -a
make[1]: Leaving directory `/mnt/f/cxacru/module'
cd module2 && make uninstall
make[1]: Entering directory `/mnt/f/cxacru/module2'
rm -f /lib/modules/2.4.22-1/kernel/drivers/usb/cxacru.o
rm -f /lib/modules/2.4.22-1/kernel/drivers/usb/cxacrudbg.o
make[1]: Leaving directory `/mnt/f/cxacru/module2'
cd scripts && make uninstall
make[1]: Entering directory `/mnt/f/cxacru/scripts'
for i in cxload.sh cxunload.sh cxstart.sh cxstop.sh cxnetup.sh cxnetdown.sh cxnet2up.sh cxnet2down.sh cxnet3up.sh cxnet3down.sh cxnet4up.sh cxnet4down.sh; do \
        rm -f /usr/sbin/$i; \
done
rm -f /etc/cxacru.service;
make[1]: Leaving directory `/mnt/f/cxacru/scripts'
cd panel && make uninstall
make[1]: Entering directory `/mnt/f/cxacru/panel'
rm -f /usr/sbin/cxpanel
rm -f /usr/sbin/cxpanel.glade
rm -f /usr/sbin/cxacru-tux.xpm
make[1]: Leaving directory `/mnt/f/cxacru/panel'
cd bridged && make uninstall
make[1]: Entering directory `/mnt/f/cxacru/bridged'
for i in br2684ctl; do \
        rm -f /usr/sbin/$i; \
done
make[1]: Leaving directory `/mnt/f/cxacru/bridged'
[root@localhost cxacru]# make clean
cd init && make clean
make[1]: Entering directory `/mnt/f/cxacru/init'
rm -f cxload cxioctl cxloaddbg cxloaddbgt
make[1]: Leaving directory `/mnt/f/cxacru/init'
cd module && make clean
make[1]: Entering directory `/mnt/f/cxacru/module'
rm -f cxacrunormal.o sarlib.o sartest cxacru.o cxacrudebug.o cxacrudbg.o version.h
make[1]: Leaving directory `/mnt/f/cxacru/module'
cd module2 && make clean
make[1]: Entering directory `/mnt/f/cxacru/module2'
rm -f *.o .*.flags *.ko *.mod.* .*.o.cmd .*.ko.cmd
make[1]: Leaving directory `/mnt/f/cxacru/module2'
cd sarlib && make clean
make[1]: Entering directory `/mnt/f/cxacru/sarlib'
/bin/rm -f *.o
make[1]: Leaving directory `/mnt/f/cxacru/sarlib'
cd panel && make clean
make[1]: Entering directory `/mnt/f/cxacru/panel'
rm -f cxpanel *.bak
make[1]: Leaving directory `/mnt/f/cxacru/panel'
cd bridged && make clean
make[1]: Entering directory `/mnt/f/cxacru/bridged'
rm -f br2684ctl
make[1]: Leaving directory `/mnt/f/cxacru/bridged'
[root@localhost cxacru]# make
cd init && make clean
make[1]: Entering directory `/mnt/f/cxacru/init'
rm -f cxload cxioctl cxloaddbg cxloaddbgt
make[1]: Leaving directory `/mnt/f/cxacru/init'
cd module && make clean
make[1]: Entering directory `/mnt/f/cxacru/module'
rm -f cxacrunormal.o sarlib.o sartest cxacru.o cxacrudebug.o cxacrudbg.o version.h
make[1]: Leaving directory `/mnt/f/cxacru/module'
cd module2 && make clean
make[1]: Entering directory `/mnt/f/cxacru/module2'
rm -f *.o .*.flags *.ko *.mod.* .*.o.cmd .*.ko.cmd
make[1]: Leaving directory `/mnt/f/cxacru/module2'
cd sarlib && make clean
make[1]: Entering directory `/mnt/f/cxacru/sarlib'
/bin/rm -f *.o
make[1]: Leaving directory `/mnt/f/cxacru/sarlib'
cd panel && make clean
make[1]: Entering directory `/mnt/f/cxacru/panel'
rm -f cxpanel *.bak
make[1]: Leaving directory `/mnt/f/cxacru/panel'
cd bridged && make clean
make[1]: Entering directory `/mnt/f/cxacru/bridged'
rm -f br2684ctl
make[1]: Leaving directory `/mnt/f/cxacru/bridged'
cd init && make && make install
make[1]: Entering directory `/mnt/f/cxacru/init'
gcc -O2 -Wstrict-prototypes -fomit-frame-pointer -pipe -march=i686 -Wall -DLINUX -I../include -lusb -lpthread cxload.c -o cxload
gcc -O2 -Wstrict-prototypes -fomit-frame-pointer -pipe -march=i686 -Wall -DLINUX -I../include -lusb -lpthread cxioctl.c -o cxioctl
make[1]: Leaving directory `/mnt/f/cxacru/init'
make[1]: Entering directory `/mnt/f/cxacru/init'
install -c -m 755 -p cxload cxioctl /usr/sbin
make[1]: Leaving directory `/mnt/f/cxacru/init'
cd firmware && make
make[1]: Entering directory `/mnt/f/cxacru/firmware'
install -c -m 644 -p cxfirm1.bin cxfirm2.bin cxfirm3.bin cxfirm4.bin cxfirm5.bin /usr/sbin
make[1]: Leaving directory `/mnt/f/cxacru/firmware'
cd module && make && make install
make[1]: Entering directory `/mnt/f/cxacru/module'
gcc -O2 -Wstrict-prototypes -Wno-trigraphs -fomit-frame-pointer -fno-strict-aliasing -pipe -fno-common -mpreferred-stack-boundary=2 -march=i686 -Wall -D__KERNEL__ -DLINUX  -DMODULE -I/lib/modules/2.4.22-1/build/include -I../sarlib/  -c cxacru.c -o cxacrunormal.o
make -C ../sarlib/
make[2]: Entering directory `/mnt/f/cxacru/sarlib'
cc -O2 -Wstrict-prototypes  -fomit-frame-pointer -fno-strict-aliasing -pipe -fno-strength-reduce -march=i686 -Wall -D__KERNEL__ -DLINUX -I/lib/modules/2.4.22-1/build/include -c sarlib.c -o sarlib.o
cc -O2 -Wstrict-prototypes  -fomit-frame-pointer -fno-strict-aliasing -pipe -fno-strength-reduce -march=i686 -Wall -D__KERNEL__ -DLINUX -I/lib/modules/2.4.22-1/build/include -DDEBUG -c sarlib.c -o sarlibdbg.o
make[2]: Leaving directory `/mnt/f/cxacru/sarlib'
ld -r -o cxacru.o  cxacrunormal.o ../sarlib/sarlib.o
gcc -O2 -Wstrict-prototypes -Wno-trigraphs -fomit-frame-pointer -fno-strict-aliasing -pipe -fno-common -mpreferred-stack-boundary=2 -march=i686 -Wall -D__KERNEL__ -DLINUX  -DMODULE -I/lib/modules/2.4.22-1/build/include -I../sarlib/  -DDEBUG -DDEBUG_PACKET -c cxacru.c -o cxacrudebug.o
ld -r -o cxacrudbg.o  cxacrudebug.o ../sarlib/sarlibdbg.o
make[1]: Leaving directory `/mnt/f/cxacru/module'
make[1]: Entering directory `/mnt/f/cxacru/module'
mkdir -p /lib/modules/2.4.22-1/kernel/drivers/usb
cp cxacru.o /lib/modules/2.4.22-1/kernel/drivers/usb
cp cxacrudbg.o /lib/modules/2.4.22-1/kernel/drivers/usb
/sbin/depmod -a
depmod: *** Unresolved symbols in /lib/modules/2.4.22-1/kernel/drivers/usb/cxacru.o
depmod: *** Unresolved symbols in /lib/modules/2.4.22-1/kernel/drivers/usb/cxacrudbg.o
make[1]: Leaving directory `/mnt/f/cxacru/module'
cd scripts && make
make[1]: Entering directory `/mnt/f/cxacru/scripts'
install -c -m 755 -p cxload.sh cxunload.sh cxstart.sh cxstop.sh /usr/sbin
install -c -m 755 -p service/cxacru /etc/cxacru.service
if [ ! -f /etc/cxacru ]; then \
        install -c -m 644 -p config/cxacru /etc; \
fi
install -c -m 755 -p cxnetup.sh cxnetdown.sh /usr/sbin
install -c -m 755 -p cxnet2up.sh cxnet2down.sh /usr/sbin
install -c -m 755 -p cxnet3up.sh cxnet3down.sh /usr/sbin
install -c -m 755 -p cxnet4up.sh cxnet4down.sh /usr/sbin
make[1]: Leaving directory `/mnt/f/cxacru/scripts'
cd panel && make && make install
make[1]: libglade-config: Command not found
make[1]: Entering directory `/mnt/f/cxacru/panel'
make[1]: libglade-config: Command not found
\k\kgcc -O2 -fomit-frame-pointer -pipe -march=i686 -Wall -DLINUX -I../include  -lusb  cxpanel.c -o cxpanel
cxpanel.c:45:21: gtk/gtk.h: 没有那个文件或目录
cxpanel.c:46:25: glade/glade.h: 没有那个文件或目录
cxpanel.c:98: error: syntax error before '*' token
cxpanel.c:98: warning: type defaults to `int' in declaration of `xml'
cxpanel.c:98: warning: data definition has no type or storage class
cxpanel.c:99: error: syntax error before '*' token
cxpanel.c:99: warning: type defaults to `int' in declaration of `xmld'
cxpanel.c:99: warning: data definition has no type or storage class
cxpanel.c: In function `create_dialog':
cxpanel.c:223: warning: implicit declaration of function `glade_xml_new'
cxpanel.c:223: warning: assignment makes pointer from integer without a cast
cxpanel.c:227: warning: implicit declaration of function `gtk_window_set_transient_for'
cxpanel.c:227: warning: implicit declaration of function `GTK_WINDOW'
cxpanel.c:227: warning: implicit declaration of function `glade_xml_get_widget'
cxpanel.c:228: warning: implicit declaration of function `glade_xml_signal_autoconnect'
cxpanel.c: In function `show_dialog_info':
cxpanel.c:236: warning: implicit declaration of function `gtk_window_set_title'
cxpanel.c:237: warning: implicit declaration of function `gtk_label_set_text'
cxpanel.c:237: warning: implicit declaration of function `GTK_LABEL'
cxpanel.c:238: warning: implicit declaration of function `gtk_widget_show_all'
cxpanel.c: At top level:
cxpanel.c:243: error: syntax error before '*' token
cxpanel.c: In function `on_button_ok_di_clicked':
cxpanel.c:245: warning: implicit declaration of function `gtk_widget_destroy'
cxpanel.c:247: warning: implicit declaration of function `gtk_main_quit'
cxpanel.c: At top level:
cxpanel.c:252: error: syntax error before "on_dialog_info_delete_event"
cxpanel.c:252: error: syntax error before '*' token
cxpanel.c:253: warning: return type defaults to `int'
cxpanel.c: In function `on_dialog_info_delete_event':
cxpanel.c:256: error: `TRUE' undeclared (first use in this function)
cxpanel.c:256: error: (Each undeclared identifier is reported only once
cxpanel.c:256: error: for each function it appears in.)
cxpanel.c: At top level:
cxpanel.c:261: error: syntax error before '*' token
cxpanel.c: In function `change_color':
cxpanel.c:263: error: `GdkColor' undeclared (first use in this function)
cxpanel.c:263: error: syntax error before "color"
cxpanel.c:264: error: `GtkRcStyle' undeclared (first use in this function)
cxpanel.c:264: error: `rc_style' undeclared (first use in this function)
cxpanel.c:266: warning: implicit declaration of function `gdk_color_parse'
cxpanel.c:266: error: `colorname' undeclared (first use in this function)
cxpanel.c:266: error: `color' undeclared (first use in this function)
cxpanel.c:268: warning: implicit declaration of function `gtk_rc_style_new'
cxpanel.c:270: warning: implicit declaration of function `GTK_WIDGET_STATE'
cxpanel.c:270: error: `widget' undeclared (first use in this function)
cxpanel.c:272: error: `GTK_RC_FG' undeclared (first use in this function)
cxpanel.c:274: warning: implicit declaration of function `gtk_widget_modify_style'
cxpanel.c:276: warning: implicit declaration of function `gtk_rc_style_unref'
cxpanel.c: At top level:
cxpanel.c:282: error: syntax error before "on_drawingarea_led_expose_event"
cxpanel.c:282: error: syntax error before '*' token
cxpanel.c:283: warning: return type defaults to `int'
cxpanel.c: In function `on_drawingarea_led_expose_event':
cxpanel.c:284: warning: implicit declaration of function `GTK_WIDGET_VISIBLE'
cxpanel.c:284: error: `widget' undeclared (first use in this function)
cxpanel.c:284: error: `TRUE' undeclared (first use in this function)
cxpanel.c:285: warning: implicit declaration of function `gdk_draw_arc'
cxpanel.c: At top level:
cxpanel.c:347: error: syntax error before "get_data"
cxpanel.c:347: error: syntax error before "data"
cxpanel.c:348: warning: return type defaults to `int'
cxpanel.c: In function `get_data':
cxpanel.c:373: warning: implicit declaration of function `gtk_widget_hide_all'
cxpanel.c:375: error: `TRUE' undeclared (first use in this function)
cxpanel.c: At top level:
cxpanel.c:562: error: syntax error before '*' token
cxpanel.c:568: error: syntax error before '*' token
cxpanel.c: In function `on_button_advanced_clicked':
cxpanel.c:572: warning: implicit declaration of function `gtk_notebook_get_nth_page'
cxpanel.c:572: warning: implicit declaration of function `GTK_NOTEBOOK'
cxpanel.c: In function `check_modem':
cxpanel.c:632: warning: implicit declaration of function `gtk_main'
cxpanel.c: In function `main':
cxpanel.c:711: warning: implicit declaration of function `gtk_set_locale'
cxpanel.c:714: warning: implicit declaration of function `gtk_init_check'
cxpanel.c:714: error: `FALSE' undeclared (first use in this function)
cxpanel.c:720: warning: implicit declaration of function `glade_init'
cxpanel.c:739: warning: assignment makes pointer from integer without a cast
cxpanel.c:747: warning: implicit declaration of function `gtk_timeout_add'
make[1]: *** [cxpanel] Error 1
make[1]: Leaving directory `/mnt/f/cxacru/panel'
make: *** [CX_PANEL] Error 2[/code:1]
 楼主| 发表于 2003-9-27 14:51:43 | 显示全部楼层
1.1就因为装不上驱动,所以没有用,真不希望1.2还是这样。
回复

使用道具 举报

发表于 2003-9-27 15:14:42 | 显示全部楼层

Re: ML1.2安装usb modem驱动的问题。 

cxpanel.c:45:21: gtk/gtk.h: 没有那个文件或目录
cxpanel.c:46:25: glade/glade.h: 没有那个文件或目录
这才是关键,
要搞清楚目录
ML里面有/usr/include/gtk-1.2 /usr/include/gtk-2.0
没有/usr/include/gtk/这个目录
弄清楚他用的到底是gtk-2还是gtk-1.2,然后
自己作个连接。
其实是这个程序写的有问题,而不是系统问题。
他不应该这么写。
回复

使用道具 举报

 楼主| 发表于 2003-9-27 15:38:15 | 显示全部楼层
好,我试试。谢谢!
回复

使用道具 举报

发表于 2003-9-28 17:11:10 | 显示全部楼层
不要在win分区下编译linux下的程序!!
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-11-28 00:54 , Processed in 0.072191 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

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