Thread: [cbm4linux-users] Compilation Problem
Brought to you by:
cbm4linux
From: Damian / C64.C. <web...@c6...> - 2002-05-12 12:33:44
|
Hi, I'm very new to Linux, so please excuse.... I have problems compiling the CBM4Linux 0.3.0 and 0.2.5a, running SuSE Linux 7.3 with Kernel 2.4.10. What I did: unpack the .tar.gz into some dir, cd there, and type make. What I get is a make: *** [cbm.o] Error 1 with a lot of #error-lines saying that I should not include /usr/include/{linux,asm}/ header files directly for the compilation of kernal modules. What to do? Thank for any help! --------------------------------------- Sabbi / web...@c6... C64.CH - Your #1 Demo-Source on the Net --------------------------------------- |
From: <ke...@fr...> - 2002-05-12 12:57:41
|
Hi you need to find the real kernel headers/source from the kernel that you are using (usualy located at /usr/local/src) (or install the kernelsheader rpm). If you fond them edit the config.make to reflect your include path (for me KERN_FLAGS = -DMODULE -D__KERNEL__ -I/usr/src/RPM/BUILD/linux/include -DDEBUG ) I hope this helps On Sun, 12 May 2002, Damian / C64.CH wrote: > Hi, > > I'm very new to Linux, so please excuse.... > > I have problems compiling the CBM4Linux 0.3.0 and 0.2.5a, running SuSE Linux 7.3 with > Kernel 2.4.10. > What I did: unpack the .tar.gz into some dir, cd there, and type make. What I get is a > make: *** [cbm.o] Error 1 with a lot of #error-lines saying that I should not > include /usr/include/{linux,asm}/ header files directly for the compilation of kernal > modules. > > What to do? > > Thank for any help! > > > --------------------------------------- > Sabbi / web...@c6... > > C64.CH - Your #1 Demo-Source on the Net > --------------------------------------- > > > > _______________________________________________________________ > > Have big pipes? SourceForge.net is looking for download mirrors. We supply > the hardware. You get the recognition. Email Us: ban...@so... > _______________________________________________ > cbm4linux-users mailing list > cbm...@li... > https://lists.sourceforge.net/lists/listinfo/cbm4linux-users > |
From: Damian / C64.C. <web...@c6...> - 2002-05-12 13:59:19
|
Thanks for the fast help! I got a step further, but it's still not working... After modifiying the KERN_FLAGS compiling was fine, also the make dev / make install , now trying to load the module, this happens: linux:/usr # /sbin/insmod cbm lp=0 Using /lib/modules/2.4.10-4GB/misc/cbm.o /lib/modules/2.4.10-4GB/misc/cbm.o: unresolved symbol inb /lib/modules/2.4.10-4GB/misc/cbm.o: unresolved symbol outb There is no Printer or something connected to the Parport.... Greetz Damian -----Original Message----- From: ke...@fr... To: cbm...@li... Date: Sun, 12 May 2002 14:57:34 +0200 (CEST) Subject: Re: [cbm4linux-users] Compilation Problem > Hi you need to find the real kernel headers/source > from the kernel that you are using (usualy located at /usr/local/src) > (or install the kernelsheader rpm). > If you fond them edit the config.make to reflect your include path > (for me > KERN_FLAGS = -DMODULE -D__KERNEL__ -I/usr/src/RPM/BUILD/linux/include > -DDEBUG ) > > I hope this helps > > On Sun, 12 May 2002, Damian / C64.CH wrote: > > > Hi, > > > > I'm very new to Linux, so please excuse.... > > > > I have problems compiling the CBM4Linux 0.3.0 and 0.2.5a, running SuSE Linux 7.3 with > > Kernel 2.4.10. > > What I did: unpack the .tar.gz into some dir, cd there, and type make. What I get is > a > > make: *** [cbm.o] Error 1 with a lot of #error-lines saying that I should not > > include /usr/include/{linux,asm}/ header files directly for the compilation of kernal > > modules. > > > > What to do? > > > > Thank for any help! > > > > > > --------------------------------------- > > Sabbi / web...@c6... > > > > C64.CH - Your #1 Demo-Source on the Net > > --------------------------------------- > > > > > > > > _______________________________________________________________ > > > > Have big pipes? SourceForge.net is looking for download mirrors. We supply > > the hardware. You get the recognition. Email Us: ban...@so... > > _______________________________________________ > > cbm4linux-users mailing list > > cbm...@li... > > https://lists.sourceforge.net/lists/listinfo/cbm4linux-users > > > > > _______________________________________________________________ > > Have big pipes? SourceForge.net is looking for download mirrors. We supply > the hardware. You get the recognition. Email Us: ban...@so... > _______________________________________________ > cbm4linux-users mailing list > cbm...@li... > https://lists.sourceforge.net/lists/listinfo/cbm4linux-users |
From: <ke...@fr...> - 2002-05-12 14:13:07
|
Hi, I mailthe the author a pach but the basic thing missing is the include of the parport_pc.h in the <linux/parport_pc.h> It should look like this.. #ifdef DIRECT_PORT_ACCESS # include <asm/io.h> # include <linux/ioport.h> #else # include <linux/parport.h> # include <linux/parport_pc.h> #endif hope this helps... > Thanks for the fast help! I got a step further, but it's still not working... > > After modifiying the KERN_FLAGS compiling was fine, also the make dev / make install , > now trying to load the module, this happens: > > linux:/usr # /sbin/insmod cbm lp=0 > Using /lib/modules/2.4.10-4GB/misc/cbm.o > /lib/modules/2.4.10-4GB/misc/cbm.o: unresolved symbol inb > /lib/modules/2.4.10-4GB/misc/cbm.o: unresolved symbol outb > > There is no Printer or something connected to the Parport.... > > Greetz > Damian > > > -----Original Message----- > From: ke...@fr... > To: cbm...@li... > Date: Sun, 12 May 2002 14:57:34 +0200 (CEST) > Subject: Re: [cbm4linux-users] Compilation Problem > > > Hi you need to find the real kernel headers/source > > from the kernel that you are using (usualy located at /usr/local/src) > > (or install the kernelsheader rpm). > > If you fond them edit the config.make to reflect your include path > > (for me > > KERN_FLAGS = -DMODULE -D__KERNEL__ -I/usr/src/RPM/BUILD/linux/include > > -DDEBUG ) > > > > I hope this helps > > > > On Sun, 12 May 2002, Damian / C64.CH wrote: > > > > > Hi, > > > > > > I'm very new to Linux, so please excuse.... > > > > > > I have problems compiling the CBM4Linux 0.3.0 and 0.2.5a, running SuSE Linux 7.3 with > > > Kernel 2.4.10. > > > What I did: unpack the .tar.gz into some dir, cd there, and type make. What I get is > > a > > > make: *** [cbm.o] Error 1 with a lot of #error-lines saying that I should not > > > include /usr/include/{linux,asm}/ header files directly for the compilation of kernal > > > modules. > > > > > > What to do? > > > > > > Thank for any help! > > > > > > > > > --------------------------------------- > > > Sabbi / web...@c6... > > > > > > C64.CH - Your #1 Demo-Source on the Net > > > --------------------------------------- > > > > > > > > > > > > _______________________________________________________________ > > > > > > Have big pipes? SourceForge.net is looking for download mirrors. We supply > > > the hardware. You get the recognition. Email Us: ban...@so... > > > _______________________________________________ > > > cbm4linux-users mailing list > > > cbm...@li... > > > https://lists.sourceforge.net/lists/listinfo/cbm4linux-users > > > > > > > > > _______________________________________________________________ > > > > Have big pipes? SourceForge.net is looking for download mirrors. We supply > > the hardware. You get the recognition. Email Us: ban...@so... > > _______________________________________________ > > cbm4linux-users mailing list > > cbm...@li... > > https://lists.sourceforge.net/lists/listinfo/cbm4linux-users > > > > _______________________________________________________________ > > Have big pipes? SourceForge.net is looking for download mirrors. We supply > the hardware. You get the recognition. Email Us: ban...@so... > _______________________________________________ > cbm4linux-users mailing list > cbm...@li... > https://lists.sourceforge.net/lists/listinfo/cbm4linux-users > |
From: Damian / C64.C. <web...@c6...> - 2002-05-12 15:27:06
|
Now it works, thanks a lot for the help! So...let's start dumping ;-) --------------------------------------- Sabbi / web...@c6... C64.CH - Your #1 Demo-Source on the Net --------------------------------------- -----Original Message----- From: ke...@fr... To: cbm...@li... Date: Sun, 12 May 2002 16:13:02 +0200 (CEST) Subject: Re: [cbm4linux-users] Compilation Problem > Hi, > > I mailthe the author a pach but the basic thing missing is the include of > the parport_pc.h in the <linux/parport_pc.h> > It should look like this.. > > #ifdef DIRECT_PORT_ACCESS > # include <asm/io.h> > # include <linux/ioport.h> > #else > # include <linux/parport.h> > # include <linux/parport_pc.h> > #endif > > > hope this helps... > |