LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1020|回复: 12

各位大侠留步,帮我看看这是怎么了,谢谢了(版主请进)

[复制链接]
发表于 2006-1-19 11:28:25 | 显示全部楼层 |阅读模式
我在ubuntu5.10里编译usb-adsl驱动时,由于默认不装gcc的,我在不上网的情况下,apt-get install build-essential安装了gcc4.0可是却说编译内核的是gcc3.4.5,版本不一样?
到底要怎么办呢?我的ubuntu里又上不了网,我是eagle-usb的,有驱动可编译时出现如下报错,各位大侠指点一下吧?
版主能不能号召一下帮帮我?我实在自己憋得难受....
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln -s works... yes
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking for stdint.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking syslog.h usability... yes
checking syslog.h presence... yes
checking for syslog.h... yes
checking for unistd.h... (cached) yes
checking for an ANSI C-conforming const... yes
checking for off_t... yes
checking for size_t... yes
checking whether time.h and sys/time.h may both be included... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking for working volatile... yes
checking whether closedir returns void... no
checking whether gcc needs -traditional... no
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking for working memcmp... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible realloc... yes
checking sys/select.h usability... yes
checking sys/select.h presence... yes
checking for sys/select.h... yes
checking for sys/socket.h... (cached) yes
checking types of arguments for select... int,fd_set *,struct timeval *
checking return type of signal handlers... void
checking whether lstat dereferences a symlink specified with a trailing slash... yes
checking whether stat accepts an empty string... no
checking for strftime... yes
checking for alarm... yes
checking for gettimeofday... yes
checking for memset... yes
checking for select... yes
checking for socket... yes
checking for strcspn... yes
checking for strdup... yes
checking for strerror... yes
checking for strncasecmp... yes
checking for strspn... yes
checking for strtol... yes
checking for ifconfig... yes
checking for route... yes
checking for pidof... yes
checking for dhclient... dhclient
checking for pppd... yes
checking for pppoe... no
checking for tclsh... yes
checking for wish... yes
checking for xsltproc... yes
   *** libxslt-proc package is missing, keeping prebuild version ***
checking for kernel version... 2.6.12-9-386
checking for ifup... 1
checking for adictrl... no
checking for eaglectrl... no
checking for showstat... no
checking for eaglestat... no
checking for startadsl... no
checking for stopadsl... no
configure: creating ./config.status
config.status: creating Makefile.common
config.status: executing default commands

========================================================================
distribution detected                                Debian

dhcp support                                        dhclient

pppd support                                        yes
  pppoa support                                        yes
  pppoe support                                        no  (runtime detection)

install eagleconnect (tcl/tk frontend)                yes

generate documentation                                no
========================================================================

warning: current gcc version is not the same as the one used to
         compile the running kernel.
         - current gcc version:          4.0.2
         - gcc version used for kernel:  3.4.5
 楼主| 发表于 2006-1-19 11:51:09 | 显示全部楼层
大家快点来看看啊,不然又沉了
回复 支持 反对

使用道具 举报

发表于 2006-1-19 13:06:31 | 显示全部楼层
不是写的很清楚么,装的GCC版本和编译内核的GCC版本不一致,你要装gcc3.4.5
回复 支持 反对

使用道具 举报

发表于 2006-1-19 14:27:17 | 显示全部楼层
从网上下载gcc-3.x的软件包,安装上。
然后将/usr/bin/gcc指向gcc-3.x,这样进行编译就可以了。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-1-19 15:11:46 | 显示全部楼层
网上那么多包都要下啊?
而且很慢啊
回复 支持 反对

使用道具 举报

发表于 2006-1-19 22:34:14 | 显示全部楼层
那麽用你装好的gcc-4自己编译一个内核不就行了吗?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-1-20 13:27:47 | 显示全部楼层
楼上得哥们,编译一遍内核很费脑的,有没有简单的编译内核方法
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-1-20 13:36:52 | 显示全部楼层
哪位能给我个ubuntu5.10自带内核的.config?
或者谁能不能帮我做一个eagle-usb驱动的deb包?我这有源代码包
回复 支持 反对

使用道具 举报

发表于 2006-1-20 16:50:57 | 显示全部楼层
解决方法:
1、装个gcc3.4.5,然后ln -sf /usr/bin/gcc gcc3.4.5
2、用gcc4编译内核吧。编译内核还是很必要的。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-1-20 17:28:14 | 显示全部楼层
我也想用gcc4.0编译一下内核,只是自己每次编译都不成功,
麻烦哪位给我个ubuntu5.10原来内核的.config,这样我省个事,用make oldconfig就行了
各位?
回复 支持 反对

使用道具 举报

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

本版积分规则

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