fix e100 compile error in kernel 2.5.10

fix e100 compile error in kernel 2.5.10

Post by Adrian Bun » Fri, 26 Apr 2002 07:10:05



Hi,

when trying to compile the driver for Intel's E100 statically into kernel
2.5.10 the final linking fails with the following error:

<--  snip  -->

...
        net/network.o \
        --end-group \
        -o vmlinux
drivers/net/net.o: In function `e100_diag_config_loopback':
drivers/net/net.o(.text+0x5063): undefined reference to `e100_phy_reset'
make: *** [vmlinux] Error 1

<--  snip  -->

The following patch should fix it (e100_diag_config_loopback is not
__devexit but it calls e100_phy_reset that was __devexit).

--- drivers/net/e100/e100_phy.c.old     Wed Apr 24 23:45:52 2002

        e100_set_fc(bdp);
 }

-void __devexit
+void
 e100_phy_reset(struct e100_private *bdp)
 {
        u16 ctrl_reg;

cu
Adrian

--

You only think this is a free country. Like the US the UK spends a lot of
time explaining its a free country because its a police state.
                                                                Alan Cox

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

 
 
 

1. fix IKCONFIG compile in 2.5.10-dj1 for non-modular kernels

Hi Dave,

I got the following error when trying to compile kernel 2.5.10-dj1 with
CONFIG_IKCONFIG enabled and CONFIG_MODULES disabled:

<--  snip  -->

...
gcc -D__KERNEL__ -I/home/bunk/linux/kernel-2.5/linux-2.5.10/include -Wall
-Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common
-fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=k6   -DEXPORT_SYMTAB -c
-o configs.o configs.c
In file included from configs.c:2:
/home/bunk/linux/kernel-2.5/linux-2.5.10/include/linux/module.h:21:
linux/modversions.h: No such file or directory
make[2]: *** [configs.o] Error 1
make[2]: Leaving directory
`/home/bunk/linux/kernel-2.5/linux-2.5.10/kernel'
make[1]: *** [first_rule] Error 2
make[1]: Leaving directory
`/home/bunk/linux/kernel-2.5/linux-2.5.10/kernel'
make: *** [_dir_kernel] Error 2

<--  snip  -->

A similar problem was in early -ac kernels and it seems the solution was
the following patch (this is btw the only difference between the
mkconfigs.c in 2.4.19-pre7-ac2 and 2.5.10-dj1):

--- linux.19pre3-ac2/scripts/mkconfigs.c        Fri Mar 15 22:34:00 2002

 void make_intro (FILE *sourcefile)
 {
        fprintf (sourcefile, "#include <linux/init.h>\n");
-       fprintf (sourcefile, "#include <linux/module.h>\n");
+/////  fprintf (sourcefile, "#include <linux/module.h>\n");
        fprintf (sourcefile, "\n");
 /////  fprintf (sourcefile, "char *configs[] __initdata = {\n");
        fprintf (sourcefile, "static char __attribute__ ((unused)) *configs[] __initdata = {\n");

cu
Adrian

--

You only think this is a free country. Like the US the UK spends a lot of
time explaining its a free country because its a police state.
                                                                Alan Cox

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

2. SoundBlaster 16 problems

3. 2.5.10 - kernel hangs after detecting CD/DVD ROM (was: Re: IDE problem: 2.5.10 compiles but hangs during boot)

4. RS/6000 (7013 530H)

5. 2.5.10 trivial fixes

6. removing old files

7. 2.5.10 compile/link problem

8. Make LIBRARY

9. compiling cmipci in 2.5.10 on Alpha doesn't work

10. IDE problem: 2.5.10 compiles but hangs during boot

11. 2.5.9, 2.5.10 shellscript error

12. ACPI in 2.5 kills kbd on Via-ACPI systems [Re: kernel 2.5.10 problems]

13. kernel 2.5.10 problems