From mboxrd@z Thu Jan 1 00:00:00 1970 From: Maciek Stopa Subject: Re: Dosemu 1.3.2 and linux 2.6.7 headers Date: Tue, 12 Jul 2005 22:21:27 +0200 Message-ID: <42D42647.8070900@genesilico.pl> References: <20050712120721.67306d8a.tonyb@sysdev.org> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20050712120721.67306d8a.tonyb@sysdev.org> Sender: linux-msdos-owner@vger.kernel.org List-Id: Content-Type: text/plain; charset="us-ascii"; format="flowed" To: Hufnus Cc: linux-msdos@vger.kernel.org Hufnus wrote: >Anybody runing 1.3.2 or trying with Linux 2.6 ???? > >I can compile 1.3.2 with gcc 3.3.4 and Linux 2.4 headers, >and run it on Linux 2.6.7, but it has some keyboard press >problems. The same dosemu.bin works fine with our apps >in 2.4.31, though! > >So I tried to compile with Linux 2.6.7 headers, but the make >gets some obsolete warnings and then fails with many parse errors >in /usr/include/linux/mod_devicetable.h related to symbols like >__u32 etc.... > >Now, if I relink 'ln -sf linux-2.4.31 linux' it still complains >about using -malign-????? is obsolete to use -falign-????? but >it builds fine. > I run it on 2.6.12 from kernel.org, just linked ln -s /usr/src/linux-2.6.12 /usr/src/linux I had similar problems when compiling with different headers than running kernel, and also enabling additional optimizations to gcc also gave compilation errors, so i used pure 1.3.2 without my modifications and 2.6.12 form kernel.org and it works for me. oh.... sorry i forgot, i had to insert "#include " in some places... but i don't remember where, also # diff /usr/src/linux/include/linux/mod_devicetable.h /usr/src/linux/include/linux/mod_devicetable.h_bak 10,12d9 < #include < < //#ifdef __KERNEL__ 13a11,13 > > #ifdef __KERNEL__ > #include 15c15 < //#endif --- > #endif simply hashed the __KERNEL__ variable and always included there i dont really remember what was the real problem, but first try to modify the mod_devicetable.h Maciek Stopa