On Wednesday 01 June 2005 01:00, Anders Johansson wrote:
On Wednesday 01 June 2005 00:29, Joe Morris (NTM) wrote:
/usr/include/linux/byteorder/little_endian.h:43: error: syntax error before "__cpu_to_le64p"
Strange. What version of glibc-devel do you have installed, and what is the output from
rpm -V glibc-devel
OK, never mind, I just got the source and tried to compile it and I get the same thing.
The problem is that the definition of __le64 is inside an #if !defined (__STRICT_ANSI__) block and the configure test program uses the compile flag -std=iso9899:1990 which defines that macro Thanks for the tips Anders, it was a big help as I looked around and
Anders Johansson wrote: tried to understand what was happening. I will paste a patch that has it working again for me. I will put the rpms in my apt repository at http://ftp.gwdg.de/pub/linux/misc/suser-jmorris/suse93 which will be synced tonight, so they should be there tomorrow for x86_64. For other archs, here is the pasted patch (not being a programmer, if any programmer type wants to change it...) ________________ *--- kscd/libwm/plat_linux_cdda.c 2005-06-01 12:37:12.000000000 -0500* *+++ kscd/libwm/plat_linux_cdda.c.new 2005-06-01 22:57:47.000000000 -0500* @@ -36,12 +36,25 @@ #endif /* don't undef ansi for the other includes */ -#ifdef __STICT_ANSI__ +#ifdef __STRICT_ANSI__ #undef __STRICT_ANSI__ +/* ugly workaround for broken glibc shipped in SuSE 9.0 */ +#define inline __inline__ +#define asm __asm__ #include <asm/types.h> +#include <linux/cdrom.h> +#undef inline +#undef asm +/* types.h and cdio.h are included by wm_cdda.h */ #define __STRICT_ANSI__ #else +#define inline __inline__ +#define asm __asm__ #include <asm/types.h> +#include <linux/cdrom.h> +#undef inline +#undef asm +/* types.h and cdio.h are included by wm_cdda.h */ #endif @@ -51,14 +64,6 @@ #include <resmgr.h> #endif -/* ugly workaround for broken glibc shipped in SuSE 9.0 */ -#define inline __inline__ -#define asm __asm__ -#include <linux/cdrom.h> -#undef inline -#undef asm -/* types.h and cdio.h are included by wm_cdda.h */ - #include <stdio.h> #include <math.h> #include <sys/ioctl.h> *--- kscd/libwm/configure.in.in 2005-05-23 07:06:56.000000000 -0500* *+++ kscd/libwm/configure.in.in.new 2005-06-02 16:15:38.000000000 -0500* @@ -18,7 +18,9 @@ AC_CHECK_HEADERS(pthread.h) AC_TRY_COMPILE( [ +#undef __STRICT_ANSI__ #define asm __asm__ +#define inline __inline__ #include <linux/types.h> #include <linux/cdrom.h> ],[ Hope this helps others. -- Joe Morris New Tribes Mission Email Address: Joe_Morris@ntm.org Registered Linux user 231871