Hi,

Since I did not see any more response from RedHat on this, any suggests on
how I can compile the following file (testvm.c) without error on RedHat
31-bit 7.2 by using "make drivers/s390/net/testvm.o" form
"/usr/src/linux-2.4"? The statement caused the error is "#include
<linux/skbuff.h>"


The following is the testvm.c:
---------------------
/*********************************************************************/
/*********************************************************************/
/* Debug defines */
/* #define DEBUG 1 */
/* #define DEBUG_MORE */
#define MODULE
/* includes */
#include <linux/module.h>
#include <linux/autoconf.h>
#if defined(CONFIG_MODVERSIONS) && !defined(MODVERSIONS)
#  define MODVERSIONS
#endif
#ifdef MODVERSIONS
#  include <linux/modversions.h>
#endif
#include <linux/kernel.h>
#include <linux/config.h>
#include <linux/errno.h>
#include <linux/socket.h>
#include <linux/sched.h>
#include <linux/time.h>
#include <linux/string.h>
#include <linux/net.h>
#include <linux/mm.h>
#include <linux/interrupt.h>
#include <linux/proc_fs.h>
#include <linux/init.h>
#include <linux/poll.h>
#include <linux/inet.h>
#include <linux/skbuff.h>
#include <linux/unistd.h>
#include <linux/if_arp.h>
#include <linux/route.h>
#include <net/protocol.h>
#include <net/sock.h>
#include <net/inet_common.h>
#include <asm/io.h>
#include <asm/system.h>
#include <asm/ebcdic.h>
#include <linux/version.h>

Thanks,

Chong

Tung-Sing Chong
Software Engineer
VM development, IBM S/390 Software
Endicott, NY
T/l : 852-5342 Outside Phone: 607-752-5342
E-mail: [EMAIL PROTECTED]

---------------------- Forwarded by Tung-Sing Chong/Endicott/IBM on
04/19/2002 08:14 AM ---------------------------

Tung-Sing Chong
04/17/2002 02:40 PM

To:    Linux on 390 Port <[EMAIL PROTECTED]>
cc:
From:  Tung-Sing Chong/Endicott/IBM@IBMUS
Subject:    Re: compile error with 31-bit RedHat 7.2  (Document link:
       Tung-Sing Chong)

 Florian,

Thank for your explanations. We both agreed  that for fast devel cycles we
should use "make drivers/s390/net/testvm.o" from "/usr/src/linux-2.4".

I do agree with you on the recompilation of the module for any new future
kernels. At this point I will be happy If I can compile my file on the
kernel (2.4.9-31) that I am working on. What can or should I do for the
scaled down testvm.c in order to compile it successfully by using "make
drivers/s390/net/testvm.o" format?

My system's  /boot/kernel.h is:

 /* This file is automatically generated at boot time. */
#ifndef __BOOT_KERNEL_H_
#define __BOOT_KERNEL_H_

/* Kernel type s390 */

/* S/390 is always SMP: */
#ifndef __BOOT_KERNEL_SMP
#define __BOOT_KERNEL_SMP 1
#endif

#ifndef __MODULE_KERNEL_s390
#define __MODULE_KERNEL_s390 1
#endif

#ifndef __BOOT_KERNEL_TAPE
#define __BOOT_KERNEL_TAPE 0
#endif

#ifndef __BOOT_KERNEL_VM
#define __BOOT_KERNEL_VM 1
#endif

#endif

Thanks,

Chong

Tung-Sing Chong
Software Engineer
VM development, IBM S/390 Software
Endicott, NY
T/l : 852-5342 Outside Phone: 607-752-5342
E-mail: [EMAIL PROTECTED]

Reply via email to