bug-ddd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Issue with C++ SIGHANDLERARGS & configure on intel RH7.2 linux


From: Tristan Gross
Subject: Issue with C++ SIGHANDLERARGS & configure on intel RH7.2 linux
Date: Fri, 08 Mar 2002 16:55:24 -0600
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.8) Gecko/20020204

1. DDD 3.3.1 doesn't seem to compile out of the box when un-tared on a standard RH7.2 linux system. Note, the comiler version si gcc 2.96.

2.  The symptiom is:

In file included from ddd.C:182:
AgentM.h: In method `AgentManager::AgentManager (void (*) (...))':
AgentM.h:84: cannot convert `void (*) (...)' to `void (*) (int)' for
argument `2' to `signal (int, void (*) (int))'
AgentM.h:86: cannot convert `void (*) (...)' to `void (*) (int)' for
argument `2' to `signal (int, void (*) (int))'
ddd.C: In function `int main (int, char **)':
ddd.C:2234: cannot convert `void (*) (...)' to `void (*) (int)' for
argument `2' to `signal (int, void (*) (int))'
make[1]: *** [ddd.o] Error 1
make[1]: Leaving directory `/.automount/mermaid/root/u/data/src/ddd-3.3.1/ddd'
make: *** [all-recursive] Error 1

3.  The fix is:

change the line in config.h that matches from:

FROM: #define SIGHANDLERARGS ...
TO:   #define SIGHANDLERARGS int

4.  Make as usual.

5. This showed up on the mailing list archives in 2001 but no-one ever fixed it. I'm guessing a configure needs to be modified but am not sure how. Note, if you modify the config.h file that MUST happen after you have executed .configure.


6.  See PROBLEMS file:

SunOS 4.1 and Sun C++
---------------------

Reported by:  Franklin Chen <chen@adi.com>

    On SunOS 4.1.x, with Sun C++ 4.0.1, `config.h' needs to end up with
        #define SIGHANDLERARGS int, ...
    rather than
        #define SIGHANDLERARGS int
    to avoid compile errors in a number of source files.


This is the same except it needs to end up as "int" not "int, ..." (I think!  
Though this solution might work too???)

Thanks,

Tristan Gross




reply via email to

[Prev in Thread] Current Thread [Next in Thread]