Bug 70100 - compilation of plat_linux_cdda.c breaks on "asm" keyword
Summary: compilation of plat_linux_cdda.c breaks on "asm" keyword
Status: RESOLVED NOT A BUG
Alias: None
Product: kscd
Classification: Miscellaneous
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Aaron J. Seigo
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-12-11 09:17 UTC by Daniel Richard G.
Modified: 2003-12-21 11:38 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Richard G. 2003-12-11 09:17:34 UTC
Version:           CVS head (2003-12-11) (using KDE Devel)
Installed from:    Compiled sources
Compiler:          gcc 3.3.2 (Debian) 
OS:          Linux

The compile breaks with the following error, as GCC doesn't recognize the "asm" keyword in ANSI mode:

In file included from /usr/include/linux/cdrom.h:14,
                 from plat_linux_cdda.c:43:
/usr/include/asm/byteorder.h: In function `___arch__swab64':
/usr/include/asm/byteorder.h:56: error: parse error before ':' token

This is basically bug #67269 all over again. Easily resolved by the following delta:

-----------------------------------
--- plat_linux_cdda.c   25 Oct 2003 09:18:07 -0000      1.7
+++ plat_linux_cdda.c   11 Dec 2003 08:15:03 -0000
@@ -39,9 +39,11 @@
 #undef __STRICT_ANSI__
 #include <asm/types.h>
 /* ugly workaround for broken glibc shipped in SuSE 9.0 */
+#define asm __asm__
 #define inline __inline__
 #include <linux/cdrom.h>
 #undef inline
+#undef asm
 /* types.h and cdio.h are included by wm_cdda.h */
 
 #include <stdio.h>
-------------------------------------
Comment 1 Thiago Macieira 2003-12-11 22:36:23 UTC
Yes, it's the same bug. And again it's not in KDE. Please fix your kernel instead.
Comment 2 Ingo Oeser 2003-12-21 11:38:40 UTC
Same comment as in bug #67269 applies. Please tell the glibc people about this issue.