[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    IA64 build fix for kdevelop-3.2.0
From:       Krzysztof Oledzki <olel () ans ! pl>
Date:       2005-05-01 0:35:53
Message-ID: Pine.LNX.4.62.0505010234040.3374 () bizon ! gios ! gov ! pl
[Download RAW message or body]

Hello,

Attached patch fixes kdevelop-3.2.0 build on Intel Itanium2 (IA64) with:
  - gcc version 3.3.5
  - GNU ld version 2.15.92.0.2 20040927
  - libc-2.3.5

make[3]: Entering directory `/tmp/kdevelop-3.2.0/bdb/build_unix'
cc -c -I. -I../.././bdb/dist/../include -D_REENTRANT  -D_GNU_SOURCE -ansi -W -Wall \
-Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings \
-D_XOPEN_SOURCE=500 -D_BSD_SOURCE -DNDEBUG -O2  -O2 -Wformat-security \
                -Wmissing-format-attribute -fPIC 
../.././bdb/dist/../mutex/mut_tas.c
../../bdb/mutex/mut_tas.c: In function `__db_tas_mutex_lock':
../../bdb/mutex/mut_tas.c:108: error: `asm' undeclared (first use in this function)
../../bdb/mutex/mut_tas.c:108: error: (Each undeclared identifier is reported only \
                once
../../bdb/mutex/mut_tas.c:108: error: for each function it appears in.)
../../bdb/mutex/mut_tas.c:108: error: parse error before "volatile"
../../bdb/mutex/mut_tas.c:108: warning: unused variable `__l'
make[3]: *** [mut_tas.o] Error 1
make[3]: Leaving directory `/tmp/kdevelop-3.2.0/bdb/build_unix'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/tmp/kdevelop-3.2.0/bdb'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/kdevelop-3.2.0'
make: *** [all] Error 2

Inlined patch into mail body for reviewing (for patching please use the 
attached one):

diff -Nur kdevelop-3.2.0-orig/bdb/include/mutex.h kdevelop-3.2.0/bdb/include/mutex.h
--- kdevelop-3.2.0-orig/bdb/include/mutex.h	2005-01-03 15:54:48.000000000 +0100
+++ kdevelop-3.2.0/bdb/include/mutex.h	2005-05-01 01:34:22.000000000 +0200
@@ -431,7 +431,7 @@
  #define	MUTEX_SET(tsl) ({						\
  	register tsl_t *__l = (tsl);					\
  	long __r;							\
-	asm volatile("xchg1 %0=%1,%3" : "=r"(__r), "=m"(*__l) : "1"(*__l), "r"(1));\
+	__asm volatile("xchg1 %0=%1,%3" : "=r"(__r), "=m"(*__l) : "1"(*__l), "r"(1));\
  	__r ^ 1;							\
  })


Best regards,

 				Krzysztof Olędzki


["ia64-asm.patch.gz" (APPLICATION/OCTET-STREAM)]

>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic