[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Re: Fwd: Trying latest KDE 4.9.2
From: Albert Astals Cid <aacid () kde ! org>
Date: 2012-11-01 23:11:41
Message-ID: 3096202.rFp78iJmhF () xps
[Download RAW message or body]
El Dijous, 1 de novembre de 2012, a les 19:17:21, mk-lists@email.de va
escriure:
> I got a compilation error in kactivities-4.9.2/service/main.cpp:79:
> ---
> static void initSignalCatching() {
> #ifndef Q_OS_WIN32 // krazy:skip
> struct sigaction action;
>
> ::sigemptyset(&action.sa_mask); // <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
> ::this is line 79 where compiling fails !!!!!!!!!!!!!!!!
> action.sa_flags = 0;
>
> /* Use the sa_sigaction field because the handles has two additional
> parameters */ action.sa_handler = signalHandler;
>
> ::sigaction(SIGINT, &action, NULL);
> ::sigaction(SIGHUP, &action, NULL);
> ::sigaction(SIGTERM, &action, NULL);
> ::sigaction(SIGSEGV, &action, NULL);
>
> #endif
> }
> ---
>
> leads to an error:
> ---
>
> :info:build
> :/opt/macports-test/var/macports/build/_Users_marko_WC_MacPorts_ports_kde_k
> :activities/kactivities/work/kactivities-4.9.2/service/main.cpp: In function
> :‘void initSignalCatching()'::info:build
> :/opt/macports-test/var/macports/build/_Users_marko_WC_MacPorts_ports_kde_k
> :activities/kactivities/work/kactivities-4.9.2/service/main.cpp:79: error:
> :expected id-expression before ‘(' token:info:build make[2]: ***
> :[service/CMakeFiles/activity-manager.dir/main.o] Error 1 info:build
> :make[2]: Leaving directory
> :`/opt/macports-test/var/macports/build/_Users_marko_WC_MacPorts_ports_kde_
> :kactivities/kactivities/work/build' info:build make[1]: ***
> :[service/CMakeFiles/activity-manager.dir/all] Error 2 info:build make[1]:
> :*** Waiting for unfinished jobs....
> :info:build /opt/macports-test/bin/cmake -E cmake_progress_report
> :/opt/macports-test/var/macports/build/_Users_marko_WC
> ---
>
>
> Obviously gcc doesn't like "::sigemptyset()" in that static function!
>
> Removing the "::" in front of sigemptyset() fixes it!
> Could it be that sigemptyset() is actually a macro?
Could be, what if you go and check it? Your system headers have to define
sigemptyset somewhere (most probably in signal.h or something that includes
it).
Cheers,
Albert
>
> >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe
> >> <<
>> 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