On Wed, 22 Oct 2003 11:21, Joeb wrote:
> Sharrea Day wrote:
> >I need to build my own kernel so that I can use my satellite card for
> >internet connection.  The driver is compiled with gcc-2.96 and requires
> > the kernel to be compiled with the same.  No problem in 9.1 but having
> > just installed 9.2, the "make dep" gives an error:
< big snip>
> >Does anyone know how to get past this error?  I'm using the config from
> > the current Mandrake kernel-i686-up-4GB-2.4.22.10mdk-1-1mdk.
>
> First, let me say that I don't know the answer to how to fix your
> compile, but I do have a couple of things for you.  First the -wall in
> your make file will cause all errors AND warnings to stop the process.
> If you don't want warnings to stop the compile, remove the -wall.

Firstly, I apologise for the long post.
Joeb, thanks for your suggestions.  OK, removed the -Wall (in 2 places) from 
the Makefile and got past the error but it stopped on another error:

make[2]: Entering directory `/usr/src/linux-2.4.22-10mdk/arch/i386/mm'
gcc -D__KERNEL__ -I/usr/src/linux-2.4.22-10mdk/include -Wstrict-prototypes 
-Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -pipe 
-mpreferred-stack-boundary=2 -march=athlon   -nostdinc -iwithprefix include 
-DKBUILD_BASENAME=init  -c init.c -o init.o
init.c:463: parse error before `_Bool'
init.c:464: warning: function declaration isn't a prototype
init.c: In function `one_highpage_init':
init.c:465: `bad' undeclared (first use in this function)
init.c:465: (Each undeclared identifier is reported only once
init.c:465: for each function it appears in.)
init.c:466: `pfn' undeclared (first use in this function)
init.c:467: `page' undeclared (first use in this function)
init.c:471: `bad_ppro' undeclared (first use in this function)
init.c: In function `free_pages_init':
init.c:529: `_Bool' undeclared (first use in this function)
init.c:529: parse error before `bad'
init.c:530: `bad' undeclared (first use in this function)
make[2]: *** [init.o] Error 1
make[2]: Leaving directory `/usr/src/linux-2.4.22-10mdk/arch/i386/mm'
make[1]: *** [first_rule] Error 2
make[1]: Leaving directory `/usr/src/linux-2.4.22-10mdk/arch/i386/mm'
make: *** [_dir_arch/i386/mm] Error 2

Looked at the line containing "_Bool" but don't know what any of it meant so 
dead end there.

> Second and more important, have you tried just compiling the drivers as
> a module and using insmod to use them?  If you do compile them as a
> module, you will get an error about the kernel being compiled with 3.x
> and the module with 2.96, but it may still work if you use insmod -f
> mymodule (the -f says to force the module).  On the otherhand, it may
> not work.  On one of my boxes with a winmodem, the driver must be
> inserted with the -f because it, too, has an object file that was
> compiled with gcc 2.96, even though I am using gcc 3.3.

Just tried that but it wouldn't load the module even with the force option:

# insmod -f sm200d_lnx.o
Warning: The module you are trying to load (sm200d_lnx.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.
sm200d_lnx.o: unresolved symbol _mmx_memcpy
sm200d_lnx.o:
Hint: You are trying to load a module without a GPL compatible license
      and it has unresolved symbols.  The module may be trying to access
      GPLONLY symbols but the problem is more likely to be a coding or
      user error.  Contact the module supplier for assistance, only they
      can help you.

Think I'd better stick to re-compiling the kernel under 2.96 since I don't 
really know what I'm doing with this.

> Don't know if either of the two items will help or not, but you might
> try them.

Thanks very much for your suggestions/advice.  Thought perhaps the 
kernel-source package I downloaded from Mandrake Club may be at fault so 
I'm currently downloading it from a mirror 9.2 tree.  Will keep trying.

Sharrea
-- 
Help Microsoft stamp out piracy - give Linux to a friend today

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com

Reply via email to