kdelibs/kdefx/kcpuinfo.cpp (1.2) broken?
Fredrik Höglund
fredrik at kde.org
Sun Apr 27 17:23:12 BST 2003
On Sunday 27 April 2003 04:38, Brian Ledbetter wrote:
> Greetings, list!
>
> Not sure if you guys are encountering the same problem as I am, but
> kcpuinfo.cpp is not compiling for me, due to the following error:
>
> kcpuinfo.cpp: In function `int getCpuFeatures()':
> kcpuinfo.cpp:107: function `void oldhandler(int)' is initialized like a
> variable
>
> Shouldn't line 107 look like this:
>
> __sighandler_t *oldhandler = std::signal( SIGILL, sighandler );
>
> ...instead of:
>
> __sighandler_t oldhandler = std::signal( SIGILL, sighandler );
>
> Of course, if this works for y'all, it may just be an issue with my
> compiler. Here's my info:
>
> $ uname -a
> FreeBSD tokyo.home.shadowcom.net 5.0-RELEASE-p6 FreeBSD 5.0-RELEASE-p6 #2:
> Fri Mar 28 22:16:47 EST 2003
> root at newbie.home.shadowcom.net:/usr/src/sys/i386/compile/TOKYO i386 $ gcc
> --version
> gcc (GCC) 3.2.1 [FreeBSD] 20021119 (release)
With that change it doesn't compile for me with gcc 3.2.3, but to me
it looks more like a libc issue than a compiler issue.
How is __sighandler_t declared in your signal.h?
In glibc 2.3.1 it's declared as typedef void (*__sighandler_t) (int);
Regards,
Fredrik
More information about the kde-core-devel
mailing list