Re: Problem compiling ogle-0.9.2/ctrl/ctrl.c

H}kan Hjort <[email protected]> Sun, 2 Jan 2005 00:02:51 +0100
Newsgroups gmane.comp.video.ogle.user
Message-ID <[email protected]>
wolfgang wrote:
> Hi,
> when I compile ogle-0.9.2 I got an compilation error which results in an
> ogle which can't be stopped.
>
> Further investigation shows, that on my system (linux SuSE 9.2 on amd64k)
> the define statement for WIFCONTINUED is not ok.
>
Humm strange, this is a glibc bug, see 
http://sources.redhat.com/ml/glibc-bugs/2004-09/msg00163.html
but pathing this couldn't hurt.

You should probably ask SuSE to include the fix to that libc/409 bug also.

Thanks,
HÃ¥kan

> See the following diff result for ctrl.c
> (diff -C5 ctrl/ctrl.c.ori ctrl/ctrl.c)
>
> Regards
> Wolfgang
>
> *** ctrl/ctrl.c.ori     2005-01-01 15:41:19.887073616 +0100
> --- ctrl/ctrl.c 2005-01-01 15:43:55.528412536 +0100
> ***************
> *** 1395,1405 ****
>    #define CLD_DUMPED      3       /* child has coredumped */
>    #define CLD_TRAPPED     4       /* traced child has stopped */
>    #define CLD_STOPPED     5       /* child has stopped on signal */
>    #define CLD_CONTINUED   6       /* stopped child has continued */
>    #endif
> ! #ifndef WCONTINUED
>    #define WCONTINUED 0
>    #define WIFCONTINUED(x) 0
>    #endif
>
>
> --- 1395,1408 ----
>    #define CLD_DUMPED      3       /* child has coredumped */
>    #define CLD_TRAPPED     4       /* traced child has stopped */
>    #define CLD_STOPPED     5       /* child has stopped on signal */
>    #define CLD_CONTINUED   6       /* stopped child has continued */
>    #endif
> !
> ! /* WCONTINUED defined in /usr/include/sys/wait.h but not WIFCONTINUED
> !    for SuSE 9.2 for amd64 */
> ! #ifndef WIFCONTINUED
>    #define WCONTINUED 0
>    #define WIFCONTINUED(x) 0
>    #endif
>
>