ppp 2.2.0c kernel compile problems

ppp 2.2.0c kernel compile problems

Post by Thomas.H.. » Tue, 05 Dec 1995 04:00:00

I am trying to compile the Linux kernel 1.2.13 with the ppp-2.2.0c driver.
I get the following error message when linking:

ld -m elf_i386 -Ttext 0x100000 -e startup_32  arch/i386/kernel/head.o init/main.o init/version.o \
        arch/i386/kernel/kernel.o arch/i386/mm/mm.o kernel/kernel.o mm/mm.o fs/fs.o net/net.o ipc/ipc.o \
        fs/filesystems.a \
        drivers/block/block.a drivers/char/char.a drivers/net/net.a \
        /usr/src/linuxelf-1.2.13/lib/lib.a -o vmlinux
ppp.o(.text+0x6a1): undefined reference to `mod_use_count_'
ppp.o(.text+0x7fb): undefined reference to `mod_use_count_'

I have followed the instructions in README.linux as closely as possible.

When configuring the kernel I chose *NOT* to include module version numbers
and I chose to include the PPP driver. My general set-up is:

Kernel 1.2.13 (both the running kernel and the one I'm trying to compile)
gcc 2.7.0  and libc.so.5.0.9

Everything I have came out of the Slackware 3.0 box.

Now, according to the file linux/Changes, this error should only occur when
using the a.out format, but I thought my new Slackware 3.0 was supposed to
be ELF! Anyway, the error comes from the linux/module.h header file. This has
mod_use_count_ defined as extern, but it is not defined in any other
header file. I am unable to use the patch included in linux/Changes. The
patch looks like this:

--- module.h.orig       Thu Oct 19 05:32:32 1995

  * define the count variable, and usage macros.

-extern long mod_use_count_;
 #if defined(CONFIG_MODVERSIONS) && defined(MODULE) && !defined(__GENKSYMS__)
 int Using_Versions; /* gcc will handle this global (used as a flag) correctly *

 #ifdef MODULE               <--------- This is not in my module.h
+extern long mod_use_count_;
 #define MOD_INC_USE_COUNT      mod_use_count_++
 #define MOD_DEC_USE_COUNT      mod_use_count_--
 #define MOD_IN_USE            (mod_use_count_ != 0)

but "my" linux/module.h file does not contain the #ifdef MODULE line.
Furthermore, ppp.c seems to need the last definitions, whether or not it
is compiled as a module (i.e. with -DMODULE).

Would anyone be able to explain this to me (in simple terms, please 8*))?


Thomas Huld
European Commission - Joint Research Centre - Ispra Site(IT)
I-21020 Ispra        NO, we don't give away free * samples
tel. +39 (0)332 785273
fax. +39 (0)332 785869

      Don't even *think* of flaming me. I simulate detonations for money.
(but yu mai frreind zo yu get uane for nozing: http://www.veryComputer.com/)


1. Problem Compiling ppp 2.2.0c on Kernel 1.2.13

Hello Networ Guru's

I am running Kernel version 1.2.13 and kernel code (slackware) had option for
ppp 2.1b. It was compiling OK. Then I got ppp-2.2.0c. I followed the installation
process and when I was compiling the Kernel, the new patch of ppp.c is giving me
error messages.
Warning in ppp_first_time: Assignement from incompatible pointer type
Error in ppp_init: Initiliazer element for 'ppp_syms.symbol.name' and
                   'ppp_syms.name' are not constanst.

When I compile the kernel without ppp support it works out fine. Could you please
help me what to do? I would approciate if you could e-mail me.

Thanks in advance,

Murat Erenturk


3. ppp 2.2.0c and 1.2.13 kernel have compile problems

4. Slow logins using SCO 5.0.4 and RIO.

5. Error compiling kernel 1.3.20 w/ppp 2.2.0c - help!

6. KDE & Fax application?

7. Compiling kernel for PPP 2.2.0c

8. command to convert hostname to IP address

9. Help compiling kernel with ppp 2.2.0c

10. PPP 2.2.0c won't compile

11. Compiling PPP 2.2.0c fails

12. Compiling PPP 2.2.0c. Help for some.

13. PPP 2.2.0c and Kernel 1.2.13