kdecore/malloc doesn't compile
Malte Starostik
malte at kde.org
Thu Apr 18 22:33:14 BST 2002
Am Thursday 18 April 2002 23:11 schrieb Lubos Lunak:
> On čt 18. duben 2002 21:43, Malte Starostik wrote:
> > ../../../../kdelibs/kdecore/malloc/malloc.c: In function `unlock':
> > ../../../../kdelibs/kdecore/malloc/x86.h:40: inconsistent operand
> > constraints in an `asm'
> > ../../../../kdelibs/kdecore/malloc/malloc.c: At top level:
> > ../../../../kdelibs/kdecore/malloc/malloc.c:4614: warning: `mSTATs'
> > defined but not used
> > make: *** [malloc.lo] Error 1
>
> I can't reproduce it. What configure options, gcc compile options, and gcc
> version?
configured with --enable-debug=full
no additional compile options (this is the compile line for malloc.c:)
gcc -DHAVE_CONFIG_H -I. -I../../../../kdelibs/kdecore/malloc -I../..
-I../../../../kdelibs/dcop -I../../../../kdelibs/libltdl
-I../../../../kdelibs/kdecore -I../../../../kdelibs/kdeui
-I../../../../kdelibs/kio -I../../../../kdelibs/kio/kio
-I../../../../kdelibs/kio/kfile -I../../../../kdelibs -I/usr/local/qt/include
-I/usr/X11R6/include -I/usr/local/kde/include -DQT_THREAD_SUPPORT
-D_REENTRANT -I/usr/local/kde/include -ansi -W -Wall -pedantic -Wshadow
-Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500
-D_BSD_SOURCE -g3 -c ../../../../kdelibs/kdecore/malloc/malloc.c -MT
malloc.lo -MF .deps/malloc.TPlo -MD -MP -fPIC -DPIC -o .libs/malloc.o
malte at kaos kdelibs/kdecore/malloc $ gcc -v
Reading specs from /usr/lib/gcc-lib/i686-mandrake-linux-gnu/3.1/specs
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man
--infodir=/usr/share/info --enable-shared --enable-threads=posix
--disable-checking --enable-long-long --enable-cstdio=stdio
--enable-clocale=generic --with-gxx-include-dir='$${prefix}/include/g++-v31'
--enable-languages=c,c++,f77,objc,java --program-suffix=-3.1
--host=i686-mandrake-linux-gnu --with-system-zlib
Thread model: posix
gcc version 3.1 (Mandrake Linux 8.1 3.1-0.4mdk)
glibc 2.2.5
>
> > What is this for?:
> > __asm __volatile ("" : "=m" (m->lock) : "0" (m->lock));
>
> Spinlock unlocking, copy&pasted from glibc CVS, and this hasn't changed
> for some time. I'm not sure what could be wrong with it. You can disable
> compilation of this with --disable-fast-malloc.
Thanks, will do this for now.
--
Malte Starostik
PGP: 1024D/D2F3C787 [C138 2121 FAF3 410A 1C2A 27CD 5431 7745 D2F3 C787]
More information about the kde-core-devel
mailing list