[NBLUG/talk] bogus gcc versioning with kernel modules?

Mark Street jet at sonic.net
Sat Sep 13 14:50:03 PDT 2003


No, not the problem.

I tried an insmod -f on the module (hack)  and it loaded....  who knows...

the modem modules don't work for my kernel come to find out.... oh well.... go 
back to an older kernel and try I guess.

On Saturday 13 September 2003 14:08, ME wrote:
> Is RedHat still doing that gcc vs kgcc thing?
>
> If so, it is possible that kgcc is a diff version than gcc, and if the
> modules are being built without being explititly told to use "kgcc"
> instead of defaulting to use "gcc" then the version differences could be
> causing problems.
>
> HTH,
> -ME
>
> Mark Street said:
> > I am havinging a time of it with some kernel modules for my PCtel modem.
> > I
> > looked at configure and it does not have an option for setting the gcc
> > version.  Should I look in the configure script for evidence of it
> > setting gcc version and try to hack that?
> >
> > [root at bonez pctel-0.9.6]# gcc -v
> > Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/specs
> > Configured with: ../configure --prefix=/usr --mandir=/usr/share/man
> > --infodir=/usr/share/info --enable-shared --enable-threads=posix
> > --disable-checking --with-system-zlib --enable-__cxa_atexit
> > --host=i386-redhat-linux
> > Thread model: posix
> > gcc version 3.2.2 20030222 (Red Hat Linux 3.2.2-5)
> >
> > After a configure, make, make install, I get...
> >
> > [root at bonez pctel-0.9.6]# modprobe + pctel
> > /lib/modules/2.4.20-20.9/misc/pctel.o: The module you are trying to load
> > (/lib/modules/2.4.20-20.9/misc/pctel.o) is compiled with a gcc
> > version 2 compiler, while the kernel you are running is compiled with
> > a gcc version 3 compiler. This is known to not work.
> >
> > whaaaaaat!!!!
> >
> > [root at bonez pctel-0.9.6]# ./configure --with-hal=i8xx
> > checking for a BSD-compatible install... /usr/bin/install -c
> > checking whether build environment is sane... yes
> > checking for gawk... gawk
> > checking whether make sets ${MAKE}... yes
> > checking build driver for... HAL_I8XX
> > checking for gcc... gcc
> > checking for C compiler default output... 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 style of include used by make... GNU
> > checking dependency style of gcc... none
> > ......
> >
> > --
> > Mark Street, D.C.
> > Red Hat Certified Engineer
> > Cert# 807302251406074
> > --
> > Key fingerprint = 3949 39E4 6317 7C3C 023E  2B1F 6FB3 06E7 D109 56C0
> > GPG key http://www.streetchiro.com/pubkey.asc
> >
> > _______________________________________________
> > talk mailing list
> > talk at nblug.org
> > http://nblug.org/mailman/listinfo/talk
>
> _______________________________________________
> talk mailing list
> talk at nblug.org
> http://nblug.org/mailman/listinfo/talk

-- 
Mark Street, D.C.
Red Hat Certified Engineer
Cert# 807302251406074
--
Key fingerprint = 3949 39E4 6317 7C3C 023E  2B1F 6FB3 06E7 D109 56C0
GPG key http://www.streetchiro.com/pubkey.asc




More information about the talk mailing list