以下是本人在网上下的我的本本蓝牙驱动,本人按照README里面做,但是就出现了好多错误,因为驱动里面的所有相关说明都是英文,本人英文真是奇菜,把我全过程发出来,不知是不是GCC编驿有问题!请高人指点!本人真的是给这个蓝牙难到了好十几个晚上了,,如下是FAQ 文件摘下来的
问题 I am unable to compile the kernel module, I get a whole load of error
messages.
回答 This is a result of using a version of gcc that is not suitable for
compiling the kernel (according to Linus and Alan Cox at least). Several
versions of gcc/ecgs have problems compiling the kernel. On this occasion
the problem seems to be with compiling the module outside the kernel tree,
and is most apparent with versions 2.9.51 and 2.9.52 of ecgs. You can
either install the an older (say 2.7.2) version of gcc, apply the kernel
patch and recompile the kernel, or uncomment
如下是我操作的全过程,什么都拷下来了,希望有人能帮我解决。。。
[root@localhost toshutils-1.9.10]# ./configure
loading cache ./config.cache
checking host system type... i686-pc-linux-gnu
checking whether make sets ${MAKE}... (cached) yes
checking for gcc... (cached) gcc
checking whether the C compiler (gcc -s) works... yes
checking whether the C compiler (gcc -s) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for a BSD compatible install... (cached) /usr/bin/install -c
checking how to run the C preprocessor... (cached) gcc -E
checking for X... (cached) libraries /usr/X11R6/lib, headers /usr/X11R6/include
checking for dnet_ntoa in -ldnet... (cached) no
checking for dnet_ntoa in -ldnet_stub... (cached) no
checking for gethostbyname... (cached) yes
checking for connect... (cached) yes
checking for remove... (cached) yes
checking for shmat... (cached) yes
checking for IceConnectionNumber in -lICE... (cached) yes
checking for bison... (cached) bison -y
checking for flex... (cached) flex
checking for yywrap in -lfl... (cached) yes
checking for xmessage... (cached) /usr/X11R6/bin/xmessage
checking for wall... (cached) /usr/bin/wall
checking for yywrap in -lfl... (cached) yes
checking for X... libraries /usr/X11R6/lib, headers /usr/X11R6/include
checking for dnet_ntoa in -ldnet... (cached) no
checking for dnet_ntoa in -ldnet_stub... (cached) no
checking for gethostbyname... (cached) yes
checking for connect... (cached) yes
checking for remove... (cached) yes
checking for shmat... (cached) yes
checking for IceConnectionNumber in -lICE... (cached) yes
checking for gtk_main in -lgtk... (cached) no
configure: warning: *** GTK+ libraries not found. X code will not be built. ***./configure: line 2889: gtk-config: command not found
./configure: line 2890: gtk-config: command not found
creating ./config.status
creating Makefile
creating src/Makefile
creating doc/Makefile
Configure finished. Do 'make depend; make' to compile.
[root@localhost toshutils-1.9.10]# make depend
cd src; make depend
make[1]: Entering directory `/root/Desktop/toshiba/toshutils-1.9.10/src'
cp Makefile Makefile.bak
sed '/^#----- dependences -----/q' Makefile.bak >Makefile
echo >>Makefile
gcc -m486 -O2 -Wall -I../pixmaps -DLINUX -M sci.c hci.c fan.c svpw.c hotkey.c tpasswd.c dispswitch.c machine.c misc.c alarms.c config.c alarm.c wmtuxtime.c wmgeneral.c tuxtime-conf.c ownerstring.c tdocked.c thotswap.c toshiba.c tbacklight.c |\
sed 's/\/usr\/[^ ]* *//g;/^ \\$/d' |\
grep -v '^ \\$' >>Makefile
`-m486' is deprecated. Use `-march=i486' or `-mtune=i486' instead.
`-m486' is deprecated. Use `-march=i486' or `-mtune=i486' instead.
`-m486' is deprecated. Use `-march=i486' or `-mtune=i486' instead.
`-m486' is deprecated. Use `-march=i486' or `-mtune=i486' instead.
`-m486' is deprecated. Use `-march=i486' or `-mtune=i486' instead.
`-m486' is deprecated. Use `-march=i486' or `-mtune=i486' instead.
`-m486' is deprecated. Use `-march=i486' or `-mtune=i486' instead.
dispswitch.c:52:20: gtk/gtk.h: 没有那个文件或目录
`-m486' is deprecated. Use `-march=i486' or `-mtune=i486' instead.
machine.c:42:20: gtk/gtk.h: 没有那个文件或目录
`-m486' is deprecated. Use `-march=i486' or `-mtune=i486' instead.
misc.c:45:20: gtk/gtk.h: 没有那个文件或目录
`-m486' is deprecated. Use `-march=i486' or `-mtune=i486' instead.
alarms.c:33:20: gtk/gtk.h: 没有那个文件或目录
`-m486' is deprecated. Use `-march=i486' or `-mtune=i486' instead.
`-m486' is deprecated. Use `-march=i486' or `-mtune=i486' instead.
`-m486' is deprecated. Use `-march=i486' or `-mtune=i486' instead.
`-m486' is deprecated. Use `-march=i486' or `-mtune=i486' instead.
`-m486' is deprecated. Use `-march=i486' or `-mtune=i486' instead.
tuxtime-conf.c:42:20: gtk/gtk.h: 没有那个文件或目录
`-m486' is deprecated. Use `-march=i486' or `-mtune=i486' instead.
`-m486' is deprecated. Use `-march=i486' or `-mtune=i486' instead.
`-m486' is deprecated. Use `-march=i486' or `-mtune=i486' instead.
`-m486' is deprecated. Use `-march=i486' or `-mtune=i486' instead.
`-m486' is deprecated. Use `-march=i486' or `-mtune=i486' instead.
make[1]: Leaving directory `/root/Desktop/toshiba/toshutils-1.9.10/src'
[root@localhost toshutils-1.9.10]# make install
cd src; make all
make[1]: Entering directory `/root/Desktop/toshiba/toshutils-1.9.10/src'
gcc -m486 -O2 -Wall -I../pixmaps -DLINUX -DVERSION=\"1.9.10\" -DBINDIR=\"/usr/local/bin\"\
-DXMESSAGE=\"/usr/X11R6/bin/xmessage\" -DWALL=\"/usr/bin/wall\" -c dispswitch.c
`-m486' is deprecated. Use `-march=i486' or `-mtune=i486' instead.
dispswitch.c:52:20: gtk/gtk.h: 没有那个文件或目录
dispswitch.c:78: error: syntax error before '*' token
dispswitch.c:78: warning: type defaults to `int' in declaration of `internal'
dispswitch.c:78: warning: type defaults to `int' in declaration of `external'
dispswitch.c:78: warning: type defaults to `int' in declaration of `simultaneous'
dispswitch.c:78: warning: data definition has no type or storage class
dispswitch.c: In function `CatchSignal':
dispswitch.c:105: warning: implicit declaration of function `gtk_main_quit'
dispswitch.c: At top level:
dispswitch.c:143: error: syntax error before '*' token
dispswitch.c: In function `SetDisplayCallback':
dispswitch.c:149: error: `data' undeclared (first use in this function)
dispswitch.c:149: error: (Each undeclared identifier is reported only once
dispswitch.c:149: error: for each function it appears in.)
dispswitch.c: At top level:
dispswitch.c:161: error: syntax error before '*' token
dispswitch.c:171: error: syntax error before "Update"
dispswitch.c:171: error: syntax error before "data"
dispswitch.c:172: warning: return type defaults to `int'
dispswitch.c: In function `Update':
dispswitch.c:180: error: `TRUE' undeclared (first use in this function)
dispswitch.c:184: warning: implicit declaration of function `gtk_toggle_button_set_state'
dispswitch.c:185: warning: implicit declaration of function `GTK_TOGGLE_BUTTON'
dispswitch.c: In function `ProcessComandLine':
dispswitch.c:242: error: `gpointer' undeclared (first use in this function)
dispswitch.c: In function `main':
dispswitch.c:274: error: `GtkWidget' undeclared (first use in this function)
dispswitch.c:274: error: `window' undeclared (first use in this function)
dispswitch.c:274: error: `box' undeclared (first use in this function)
dispswitch.c:274: error: `row' undeclared (first use in this function)
dispswitch.c:274: error: `frame' undeclared (first use in this function)
dispswitch.c:274: error: `button' undeclared (first use in this function)
dispswitch.c:274: error: `label' undeclared (first use in this function)
dispswitch.c:274: warning: left-hand operand of comma expression has no effect
dispswitch.c:274: warning: left-hand operand of comma expression has no effect
dispswitch.c:274: warning: left-hand operand of comma expression has no effect
dispswitch.c:274: warning: left-hand operand of comma expression has no effect
dispswitch.c:274: warning: left-hand operand of comma expression has no effect
dispswitch.c:275: error: `GtkStyle' undeclared (first use in this function)
dispswitch.c:275: error: `style' undeclared (first use in this function)
dispswitch.c:276: error: `GdkPixmap' undeclared (first use in this function)
dispswitch.c:276: error: `icon' undeclared (first use in this function)
dispswitch.c:277: error: `GdkBitmap' undeclared (first use in this function)
dispswitch.c:277: error: `mask' undeclared (first use in this function)
dispswitch.c:278: error: `GSList' undeclared (first use in this function)
dispswitch.c:278: error: `radio' undeclared (first use in this function)
dispswitch.c:329: warning: implicit declaration of function `gtk_init'
dispswitch.c:342: warning: implicit declaration of function `gtk_window_new'
dispswitch.c:342: error: `GTK_WINDOW_TOPLEVEL' undeclared (first use in this function)
dispswitch.c:343: warning: implicit declaration of function `gtk_container_border_width'
dispswitch.c:343: warning: implicit declaration of function `GTK_CONTAINER'
dispswitch.c:344: warning: implicit declaration of function `gtk_signal_connect'dispswitch.c:344: warning: implicit declaration of function `GTK_OBJECT'
dispswitch.c:345: warning: implicit declaration of function `GTK_SIGNAL_FUNC'
dispswitch.c:349: warning: implicit declaration of function `gtk_window_set_title'
dispswitch.c:349: warning: implicit declaration of function `GTK_WINDOW'
dispswitch.c:350: warning: implicit declaration of function `gtk_widget_get_style'
dispswitch.c:351: warning: implicit declaration of function `gtk_widget_show'
dispswitch.c:352: warning: implicit declaration of function `gdk_pixmap_create_from_xpm_d'
dispswitch.c:353: error: `GTK_STATE_NORMAL' undeclared (first use in this function)
dispswitch.c:353: error: `gchar' undeclared (first use in this function)
dispswitch.c:353: error: syntax error before ')' token
dispswitch.c:354: warning: implicit declaration of function `gdk_window_set_icon'
dispswitch.c:356: warning: implicit declaration of function `gtk_vbox_new'
dispswitch.c:356: error: `FALSE' undeclared (first use in this function)
dispswitch.c:357: warning: implicit declaration of function `gtk_container_add'
dispswitch.c:359: warning: implicit declaration of function `gtk_frame_new'
dispswitch.c:360: warning: implicit declaration of function `gtk_box_pack_start'dispswitch.c:360: warning: implicit declaration of function `GTK_BOX'
dispswitch.c:360: error: `TRUE' undeclared (first use in this function)
dispswitch.c:364: warning: implicit declaration of function `gtk_hbox_new'
dispswitch.c:367: warning: implicit declaration of function `gtk_button_new_with_label'
dispswitch.c:368: warning: implicit declaration of function `gtk_widget_set_usize'
dispswitch.c:378: warning: implicit declaration of function `gtk_label_new'
dispswitch.c:379: warning: implicit declaration of function `gtk_misc_set_padding'
dispswitch.c:379: warning: implicit declaration of function `GTK_MISC'
dispswitch.c:382: warning: implicit declaration of function `gtk_radio_button_new_with_label'
dispswitch.c:382: warning: assignment makes pointer from integer without a cast
dispswitch.c:384: warning: implicit declaration of function `gtk_radio_button_group'
dispswitch.c:384: warning: implicit declaration of function `GTK_RADIO_BUTTON'
dispswitch.c:386: error: `gpointer' undeclared (first use in this function)
dispswitch.c:386: error: syntax error before "HCI_INTERNAL"
dispswitch.c:388: warning: assignment makes pointer from integer without a cast
dispswitch.c:392: error: syntax error before "HCI_EXTERNAL"
dispswitch.c:395: warning: assignment makes pointer from integer without a cast
dispswitch.c:399: error: syntax error before "HCI_SIMULTANEOUS"
dispswitch.c:405: warning: implicit declaration of function `gtk_widget_show_all'
dispswitch.c:409: warning: implicit declaration of function `gtk_timeout_add'
dispswitch.c:409: error: syntax error before numeric constant
dispswitch.c:413: warning: implicit declaration of function `gtk_main'
dispswitch.c:274: warning: statement with no effect
dispswitch.c: At top level:
../pixmaps/displayswitch.xpm:2: warning: 'displayswitch_xpm' defined but not used
make[1]: *** [dispswitch.o] 错误 1
make[1]: Leaving directory `/root/Desktop/toshiba/toshutils-1.9.10/src'
make: *** [all] 错误 2
以下是本人在网上下的我的本本蓝牙驱动,本人按照README里面做,但是就出现了好多错误,因为驱动里面的所有相关说明都是英文,本人英文真是奇菜,把我全过程发出来,不知是不是GCC编驿有问题!请高人指点!本人真的是给这个蓝牙难到了好十几个晚上了,,如下是FAQ 文件摘下来的
问题 I am unable to compile the kernel module, I get a whole load of error
messages.
回答 This is a result of using a version of gcc that is not suitable for
compiling the kernel (according to Linus and Alan Cox at least). Several
versions of gcc/ecgs have problems compiling the kernel. On this occasion
the problem seems to be with compiling the module outside the kernel tree,
and is most apparent with versions 2.9.51 and 2.9.52 of ecgs. You can
either install the an older (say 2.7.2) version of gcc, apply the kernel
patch and recompile the kernel, or uncomment
如下是我操作的全过程,什么都拷下来了,希望有人能帮我解决。。。
[root@localhost toshutils-1.9.10]# ./configure
loading cache ./config.cache
checking host system type... i686-pc-linux-gnu
checking whether make sets ${MAKE}... (cached) yes
checking for gcc... (cached) gcc
checking whether the C compiler (gcc -s) works... yes
checking whether the C compiler (gcc -s) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for a BSD compatible install... (cached) /usr/bin/install -c
checking how to run the C preprocessor... (cached) gcc -E
checking for X... (cached) libraries /usr/X11R6/lib, headers /usr/X11R6/include
checking for dnet_ntoa in -ldnet... (cached) no
checking for dnet_ntoa in -ldnet_stub... (cached) no
checking for gethostbyname... (cached) yes
checking for connect... (cached) yes
checking for remove... (cached) yes
checking for shmat... (cached) yes
checking for IceConnectionNumber in -lICE... (cached) yes
checking for bison... (cached) bison -y
checking for flex... (cached) flex
checking for yywrap in -lfl... (cached) yes
checking for xmessage... (cached) /usr/X11R6/bin/xmessage
checking for wall... (cached) /usr/bin/wall
checking for yywrap in -lfl... (cached) yes
checking for X... libraries /usr/X11R6/lib, headers /usr/X11R6/include
checking for dnet_ntoa in -ldnet... (cached) no
checking for dnet_ntoa in -ldnet_stub... (cached) no
checking for gethostbyname... (cached) yes
checking for connect... (cached) yes
checking for remove... (cached) yes
checking for shmat... (cached) yes
checking for IceConnectionNumber in -lICE... (cached) yes
checking for gtk_main in -lgtk... (cached) no
configure: warning: *** GTK+ libraries not found. X code will not be built. ***./configure: line 2889: gtk-config: command not found
./configure: line 2890: gtk-config: command not found
creating ./config.status
creating Makefile
creating src/Makefile
creating doc/Makefile
Configure finished. Do 'make depend; make' to compile.
[root@localhost toshutils-1.9.10]# make depend
cd src; make depend
make[1]: Entering directory `/root/Desktop/toshiba/toshutils-1.9.10/src'
cp Makefile Makefile.bak
sed '/^#----- dependences -----/q' Makefile.bak >Makefile
echo >>Makefile
gcc -m486 -O2 -Wall -I../pixmaps -DLINUX -M sci.c hci.c fan.c svpw.c hotkey.c tpasswd.c dispswitch.c machine.c misc.c alarms.c config.c alarm.c wmtuxtime.c wmgeneral.c tuxtime-conf.c ownerstring.c tdocked.c thotswap.c toshiba.c tbacklight.c |\
sed 's/\/usr\/[^ ]* *//g;/^ \\$/d' |\
grep -v '^ \\$' >>Makefile
`-m486' is deprecated. Use `-march=i486' or `-mtune=i486' instead.
`-m486' is deprecated. Use `-march=i486' or `-mtune=i486' instead.
`-m486' is deprecated. Use `-march=i486' or `-mtune=i486' instead.
`-m486' is deprecated. Use `-march=i486' or `-mtune=i486' instead.
`-m486' is deprecated. Use `-march=i486' or `-mtune=i486' instead.
`-m486' is deprecated. Use `-march=i486' or `-mtune=i486' instead.
`-m486' is deprecated. Use `-march=i486' or `-mtune=i486' instead.
dispswitch.c:52:20: gtk/gtk.h: 没有那个文件或目录
`-m486' is deprecated. Use `-march=i486' or `-mtune=i486' instead.
machine.c:42:20: gtk/gtk.h: 没有那个文件或目录
`-m486' is deprecated. Use `-march=i486' or `-mtune=i486' instead.
misc.c:45:20: gtk/gtk.h: 没有那个文件或目录
`-m486' is deprecated. Use `-march=i486' or `-mtune=i486' instead.
alarms.c:33:20: gtk/gtk.h: 没有那个文件或目录
`-m486' is deprecated. Use `-march=i486' or `-mtune=i486' instead.
`-m486' is deprecated. Use `-march=i486' or `-mtune=i486' instead.
`-m486' is deprecated. Use `-march=i486' or `-mtune=i486' instead.
`-m486' is deprecated. Use `-march=i486' or `-mtune=i486' instead.
`-m486' is deprecated. Use `-march=i486' or `-mtune=i486' instead.
tuxtime-conf.c:42:20: gtk/gtk.h: 没有那个文件或目录
`-m486' is deprecated. Use `-march=i486' or `-mtune=i486' instead.
`-m486' is deprecated. Use `-march=i486' or `-mtune=i486' instead.
`-m486' is deprecated. Use `-march=i486' or `-mtune=i486' instead.
`-m486' is deprecated. Use `-march=i486' or `-mtune=i486' instead.
`-m486' is deprecated. Use `-march=i486' or `-mtune=i486' instead.
make[1]: Leaving directory `/root/Desktop/toshiba/toshutils-1.9.10/src'
[root@localhost toshutils-1.9.10]# make install
cd src; make all
make[1]: Entering directory `/root/Desktop/toshiba/toshutils-1.9.10/src'
gcc -m486 -O2 -Wall -I../pixmaps -DLINUX -DVERSION=\"1.9.10\" -DBINDIR=\"/usr/local/bin\"\
-DXMESSAGE=\"/usr/X11R6/bin/xmessage\" -DWALL=\"/usr/bin/wall\" -c dispswitch.c
`-m486' is deprecated. Use `-march=i486' or `-mtune=i486' instead.
dispswitch.c:52:20: gtk/gtk.h: 没有那个文件或目录
dispswitch.c:78: error: syntax error before '*' token
dispswitch.c:78: warning: type defaults to `int' in declaration of `internal'
dispswitch.c:78: warning: type defaults to `int' in declaration of `external'
dispswitch.c:78: warning: type defaults to `int' in declaration of `simultaneous'
dispswitch.c:78: warning: data definition has no type or storage class
dispswitch.c: In function `CatchSignal':
dispswitch.c:105: warning: implicit declaration of function `gtk_main_quit'
dispswitch.c: At top level:
dispswitch.c:143: error: syntax error before '*' token
dispswitch.c: In function `SetDisplayCallback':
dispswitch.c:149: error: `data' undeclared (first use in this function)
dispswitch.c:149: error: (Each undeclared identifier is reported only once
dispswitch.c:149: error: for each function it appears in.)
dispswitch.c: At top level:
dispswitch.c:161: error: syntax error before '*' token
dispswitch.c:171: error: syntax error before "Update"
dispswitch.c:171: error: syntax error before "data"
dispswitch.c:172: warning: return type defaults to `int'
dispswitch.c: In function `Update':
dispswitch.c:180: error: `TRUE' undeclared (first use in this function)
dispswitch.c:184: warning: implicit declaration of function `gtk_toggle_button_set_state'
dispswitch.c:185: warning: implicit declaration of function `GTK_TOGGLE_BUTTON'
dispswitch.c: In function `ProcessComandLine':
dispswitch.c:242: error: `gpointer' undeclared (first use in this function)
dispswitch.c: In function `main':
dispswitch.c:274: error: `GtkWidget' undeclared (first use in this function)
dispswitch.c:274: error: `window' undeclared (first use in this function)
dispswitch.c:274: error: `box' undeclared (first use in this function)
dispswitch.c:274: error: `row' undeclared (first use in this function)
dispswitch.c:274: error: `frame' undeclared (first use in this function)
dispswitch.c:274: error: `button' undeclared (first use in this function)
dispswitch.c:274: error: `label' undeclared (first use in this function)
dispswitch.c:274: warning: left-hand operand of comma expression has no effect
dispswitch.c:274: warning: left-hand operand of comma expression has no effect
dispswitch.c:274: warning: left-hand operand of comma expression has no effect
dispswitch.c:274: warning: left-hand operand of comma expression has no effect
dispswitch.c:274: warning: left-hand operand of comma expression has no effect
dispswitch.c:275: error: `GtkStyle' undeclared (first use in this function)
dispswitch.c:275: error: `style' undeclared (first use in this function)
dispswitch.c:276: error: `GdkPixmap' undeclared (first use in this function)
dispswitch.c:276: error: `icon' undeclared (first use in this function)
dispswitch.c:277: error: `GdkBitmap' undeclared (first use in this function)
dispswitch.c:277: error: `mask' undeclared (first use in this function)
dispswitch.c:278: error: `GSList' undeclared (first use in this function)
dispswitch.c:278: error: `radio' undeclared (first use in this function)
dispswitch.c:329: warning: implicit declaration of function `gtk_init'
dispswitch.c:342: warning: implicit declaration of function `gtk_window_new'
dispswitch.c:342: error: `GTK_WINDOW_TOPLEVEL' undeclared (first use in this function)
dispswitch.c:343: warning: implicit declaration of function `gtk_container_border_width'
dispswitch.c:343: warning: implicit declaration of function `GTK_CONTAINER'
dispswitch.c:344: warning: implicit declaration of function `gtk_signal_connect'dispswitch.c:344: warning: implicit declaration of function `GTK_OBJECT'
dispswitch.c:345: warning: implicit declaration of function `GTK_SIGNAL_FUNC'
dispswitch.c:349: warning: implicit declaration of function `gtk_window_set_title'
dispswitch.c:349: warning: implicit declaration of function `GTK_WINDOW'
dispswitch.c:350: warning: implicit declaration of function `gtk_widget_get_style'
dispswitch.c:351: warning: implicit declaration of function `gtk_widget_show'
dispswitch.c:352: warning: implicit declaration of function `gdk_pixmap_create_from_xpm_d'
dispswitch.c:353: error: `GTK_STATE_NORMAL' undeclared (first use in this function)
dispswitch.c:353: error: `gchar' undeclared (first use in this function)
dispswitch.c:353: error: syntax error before ')' token
dispswitch.c:354: warning: implicit declaration of function `gdk_window_set_icon'
dispswitch.c:356: warning: implicit declaration of function `gtk_vbox_new'
dispswitch.c:356: error: `FALSE' undeclared (first use in this function)
dispswitch.c:357: warning: implicit declaration of function `gtk_container_add'
dispswitch.c:359: warning: implicit declaration of function `gtk_frame_new'
dispswitch.c:360: warning: implicit declaration of function `gtk_box_pack_start'dispswitch.c:360: warning: implicit declaration of function `GTK_BOX'
dispswitch.c:360: error: `TRUE' undeclared (first use in this function)
dispswitch.c:364: warning: implicit declaration of function `gtk_hbox_new'
dispswitch.c:367: warning: implicit declaration of function `gtk_button_new_with_label'
dispswitch.c:368: warning: implicit declaration of function `gtk_widget_set_usize'
dispswitch.c:378: warning: implicit declaration of function `gtk_label_new'
dispswitch.c:379: warning: implicit declaration of function `gtk_misc_set_padding'
dispswitch.c:379: warning: implicit declaration of function `GTK_MISC'
dispswitch.c:382: warning: implicit declaration of function `gtk_radio_button_new_with_label'
dispswitch.c:382: warning: assignment makes pointer from integer without a cast
dispswitch.c:384: warning: implicit declaration of function `gtk_radio_button_group'
dispswitch.c:384: warning: implicit declaration of function `GTK_RADIO_BUTTON'
dispswitch.c:386: error: `gpointer' undeclared (first use in this function)
dispswitch.c:386: error: syntax error before "HCI_INTERNAL"
dispswitch.c:388: warning: assignment makes pointer from integer without a cast
dispswitch.c:392: error: syntax error before "HCI_EXTERNAL"
dispswitch.c:395: warning: assignment makes pointer from integer without a cast
dispswitch.c:399: error: syntax error before "HCI_SIMULTANEOUS"
dispswitch.c:405: warning: implicit declaration of function `gtk_widget_show_all'
dispswitch.c:409: warning: implicit declaration of function `gtk_timeout_add'
dispswitch.c:409: error: syntax error before numeric constant
dispswitch.c:413: warning: implicit declaration of function `gtk_main'
dispswitch.c:274: warning: statement with no effect
dispswitch.c: At top level:
../pixmaps/displayswitch.xpm:2: warning: 'displayswitch_xpm' defined but not used
make[1]: *** [dispswitch.o] 错误 1
make[1]: Leaving directory `/root/Desktop/toshiba/toshutils-1.9.10/src'
make: *** [all] 错误 2
1.GTK+是必需的
2. `-m486' is deprecated. Use `-march=i486' or `-mtune=i486' instead.
make.conf中将xxx=-m486改为-march=i486
3.Do 'make depend; make' to compile.