compiling DDD

Richard Campbell richard.campbell@air2web.com
Wed Dec 3 21:39:00 GMT 2003


>> I used to be able to compile ddd fine, but something occurred when i
recently
>> updated ddd.  I'm getting static initialiation_construct_and_destructor
errors.
>>
>Please post the exact (cut and paste) error messages you receive.

Brian, piggybacking a bit here - this is with ddd-3.3.7 source, compiling
with 
g++ (GCC) 3.3.1 (cygming special), everything else up to date:

Agent.o(.text+0x3fb6): In function `GLOBAL(int10_t, long double, char,
short, int, double)':
/usr/include/c++/3.3.1/iostream:438: undefined reference to
`__static_initialization_and_destruction_0(int, int)'
Agent.o(.text+0x3fd6): In function `_GLOBAL__D_Agent_rcsid':
/usr/include/c++/3.3.1/iostream:438: undefined reference to
`__static_initialization_and_destruction_0(int, int)'
AgentM.o(.ctors+0x0): In function `_ZN12AgentManagerpLEP5Agent':
/cygdrive/c/ddd-3.3.7/ddd/AgentM.C:62: undefined reference to
`_GLOBAL(int10_t, long double, char, short, int, double)'

<and many more errors like that>

I looked here:
http://www.cygwin.com/ml/cygwin/2003-07/msg00463.html

And cut out all pragma interface and pragma implementations I could find.

After that, ddd compiles.  If I run it, the following segmentation fault:

bash-2.05b$ /usr/local/bin/ddd
Warning: This DDD requires a Motif 2.1 library (using Motif 1324099.71)
Continue at own risk.
Warning: No type converter registered for 'String' to 'Orientation'
conversion.
Warning: No type converter registered for 'String' to 'Orientation'
conversion.
Warning: No type converter registered for 'String' to 'Orientation'
conversion.

Internal error (Segmentation fault).

Oops!  You have found a bug in DDD.

If you can reproduce this bug, please send a bug report
to <bug-ddd@gnu.org>, giving a subject like

    DDD 3.3.7 (i686-pc-cygwin) gets `Segmentation fault' signal

To enable us to fix the bug, you should include the following information:
* What you were doing to get this message.  Report all the facts.
* The contents of the `~/.ddd/log' file as generated by this session.
Please read also the section "Reporting Bugs" in the DDD manual.

Looking at the ~/.ddd/log output is rather bizarre:

GNU DDD 3.3.7 (i686-pc-cygwin)
Copyright (C) 1995-1999 Technische Universität Braunschweig, Germany.
Copyright (C) 1999-2001 Universität Passau, Germany.
Copyright (C) 2001 Universität des Saarlandes, Germany.

Compiled with GCC 3.3.1 (cygming special)
Requires X11R6, Xt11R6, Motif 2.1 (GNU/LessTif Version 2.1 Release 0.93.91)
Includes XPM 3.4.11, Athena Panner (7000002L), DDD core
Built 2003-12-01 by (unknown).
$  /usr/local/bin/ddd
!  Segmentation fault
!  Interrupt

(because that lesstif version is the one I'm using).

I'm going back and doing some "make check" and looking at config.log to see
what's 
going on with the lesstif linking and discussion.

-Richard Campbell.



More information about the Cygwin-xfree mailing list