*** Reply to note of Fri, 18 Mar 2005 14:08:03 -0500 (EST/CDT)
*** by [email protected]
Thanks Neale, I will give it try!!
Sal
"Ferguson, Neale" <[EMAIL PROTECTED]> writes:
>I'm in the process of building cpint-2.3.0 and making it GA (it fixes a =
>problem with 32-bit programs on a 64-bit system). The build process =
>requires that you use the kernel build method. The Makefile should now =
>look like:
>
>cpint_mod-objs :=3D cpint.o cmdmain.o idmain.o monmain.o actmain.o
>
>obj-m :=3D cpint_mod.o
>
>prefix =3D
>bindir =3D /usr/sbin
>
>COMMAND =3D hcp mongen monstat actgen diag0
>
>tools: $(COMMAND)
>
>hcp : hcp.o
> $(CC) -o $@ $^
>
>mongen : mongen.o
> $(CC) -o $@ $^
>
>actgen : actgen.o
> $(CC) -o $@ $^
>
>monstat : monstat.o sysinfo.o
> $(CC) -o $@ $^
>
>diag0 : diag0.o
> $(CC) -o $@ $^
>
>hcp.o : hcp.c
> $(CC) -o $@ $(INCLUDEDIR) -I. -O2 -c hcp.c
>
>mongen.o : mongen.c
> $(CC) -o $@ $(INCLUDEDIR) -I. -O2 -c mongen.c
>
>monstat.o : monstat.c
> $(CC) -o $@ $(INCLUDEDIR) -I. -O2 -c monstat.c
>
>sysinfo.o : sysinfo.c
> $(CC) -o $@ $(INCLUDEDIR) -I. -O2 -c sysinfo.c
>
>actgen.o : actgen.c
> $(CC) -o $@ $(INCLUDEDIR) -I. -O2 -c actgen.c
>
>diag0.o : diag0.c
> $(CC) -o $@ $(INCLUDEDIR) -I. -O2 -c diag0.c
>
>install: $(TARGET)
> install -c -m 750 cpint_load ${prefix}${bindir}
> install -c -m 750 cpint_unload ${prefix}${bindir}
> install -c -m 750 mongen ${prefix}${bindir}
> install -c -m 750 monstat ${prefix}${bindir}
> install -c -m 750 hcp ${prefix}${bindir}
>
>clean:
> rm -rf *.o *~ core mongen monstat actgen hcp diag0 *.ko *.cmd =
>.tmp_versions
>
>The build process is:
>
>1. For the device driver -=20
>
> make -C /lib/modules/`uname -r`/build M=3D`pwd` SUBDIRS=3D`pwd` =
>modules
>
> You need to have the kernel source installed and at last a make =
>*config performed.
> This will generate cpint_mod.ko which can be installed via:
>
> make -C /lib/modules/`uname -r`/build M=3D`pwd` SUBDIRS=3D`pwd` =
>modules_install
>
> Issue -=20
> depmod -a
>
> Then modprobe cpint_mod to load it. In SLES9 SUSE have decided that =
>major no 107 is=20
> used for cpint so you could put an entry into /etc/modules.conf to =
>get the driver=20
> loaded automatically (i.e. sans cpint_load).=20
>
>2. For the utilities (hcp etc.)
>
> make tools
>
>The 2.3 package should be available shortly. In addition to the ioctl =
>fix it contains a=20
>fix for the diag0 driver on 64-bit systems.
>
>Neale
>
>-----Original Message-----
>Hi,
> I am trying to build cpint-2.2.0 on a RHEL4/64-bit system, everything
> builds ok, but when I try to load the module I get:
>
> /sbin/insmod cpint.ko
> insmod: error inserting 'cpint.ko': -1 Invalid module format
>
>----------------------------------------------------------------------
>For LINUX-390 subscribe / signoff / archive access instructions,
>send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit
>http://www.marist.edu/htbin/wlvindex?LINUX-390
----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390