Subject: DDD Compilation Fails using GCC 3.3.1
From: Ayamico Hamasaki <[email-masked]>
To: [email-masked]
Cc: [email-masked]
Date: Tue, 23 Sep 2003 22:33:14 -0700 (PDT)

Hi,

I have problem compiling DDD 3.3.7 using gcc 3.3.1.
But if I revert to gcc.3.2.3, the compilation is
successful.

Anyone has seen the same problem ? I wonder if this is
a gcc or ddd problem.

Cygwin Package Information
Package                 Version            Status
_update-info-dir        00219-1            OK
ash                     20020731-3         OK
autoconf                2.57a-1            OK
autoconf-devel          2.57-2             OK
autoconf-stable         2.13-5             OK
base-files              2.6-1              OK
base-passwd             1.1-1              OK
bash                    2.05b-15           OK
binutils                20030901-1         OK
bison                   20030307-1         OK
bzip2                   1.0.2-5            OK
clear                   1.0-1              OK
cron                    3.0.1-11           OK
ctags                   5.5-4              OK
cygipc                  2.01-2             OK
cygutils                1.2.1-2            OK
cygwin                  1.5.5-1            OK
cygwin-doc              1.3-6              OK
diff                    1.0-1              OK
diffutils               2.8.4-1            OK
ELFIO                   1.0.0-1            OK
emacs                   21.2-12            OK
expat                   1.95.6-2           OK
expect                  20030128-1         OK
fileutils               4.1-2              OK
findutils               4.1.7-4            OK
flex                    2.5.31-1           OK
fvwm                    2.4.7-2            OK
gawk                    3.1.3-3            OK
gcc                     3.3.1-1            OK
gcc-mingw               20030911-2         OK
gdb                     20030919-1         OK
gdbm                    1.8.3-7            OK
gettext                 0.12.1-3           OK
grep                    2.5-1              OK
groff                   1.18.1-2           OK
gzip                    1.3.5-1            OK
inetutils               1.3.2-25           OK
jpeg                    6b-11              OK
less                    381-1              OK
lesstif                 0.93.91-1          OK
libbz2_0                1.0.2-1            OK
libbz2_1                1.0.2-5            OK
libdb3.1                3.1.17-2           OK
libgdbm                 1.8.0-5            OK
libgdbm-devel           1.8.3-7            OK
libgdbm3                1.8.3-3            OK
libgdbm4                1.8.3-7            OK
libgettextpo0           0.12.1-3           OK
libiconv2               1.9.1-3            OK
libintl                 0.10.38-3          OK
libintl1                0.10.40-1          OK
libintl2                0.12.1-3           OK
libjpeg62               6b-11              OK
libjpeg6b               6b-8               OK
libncurses5             5.2-1              OK
libncurses6             5.2-8              OK
libncurses7             5.3-4              OK
libpcre                 4.1-1              OK
libpcre0                4.4-2              OK
libpng10                1.0.15-4           OK
libpopt0                1.6.4-4            OK
libPropList             0.10.1-3           OK
libreadline4            4.1-2              OK
libreadline5            4.3-5              OK
libtiff-devel           3.6.0-5            OK
libtiff3                3.6.0-2            OK
libtiff4                3.6.0-5            OK
login                   1.9-7              OK
m4                      1.4-1              OK
make                    3.80-1             OK
man                     1.5j-2             OK
mingw-runtime           3.1-1              OK
mktemp                  1.5-3              OK
more                    2.11o-1            OK
ncurses                 5.3-4              OK
newlib-man              20020801           OK
patch                   2.5.8-8            OK
patchutils              0.2.22-2           OK
pcre                    4.4-2              OK
pcre-doc                4.4-2              OK
pdksh                   5.2.14-2           OK
perl                    5.8.0-5            OK
pilrc                   2.9p2              OK
prc-tools               2.2                OK
prc-tools-htmldocs      2.2                OK
readline                4.3-5              OK
rxvt                    2.7.10-3           OK
sed                     4.0.7-3            OK
sh-utils                2.0.15-4           OK
ssmtp                   2.38.7-4           OK
tar                     1.13.25-3          OK
tcltk                   20030901-1         OK
tcsh                    6.12.00-7          OK
termcap                 20021106-2         OK
terminfo                5.3_20030726-1     OK
texinfo                 4.2-4              OK
textutils               2.0.21-1           OK
tiff                    3.6.0-5            OK
time                    1.7-1              OK
vim                     6.2.098-1          OK
w32api                  2.4-1              OK
which                   1.5-2              OK
WindowMaker             0.80.0-2           OK
x2x                     1.27-2             OK
Xaw3d                   1.5E-1             OK
XFree86-base            4.3.0-1            OK
XFree86-bin             4.3.0-4            OK
XFree86-bin-icons       4.3.0-3            OK
XFree86-doc             4.3.0-1            OK
XFree86-etc             4.3.0-3            OK
XFree86-f100            4.2.0-3            OK
XFree86-fcyr            4.2.0-3            OK
XFree86-fenc            4.2.0-3            OK
XFree86-fnts            4.2.0-3            OK
XFree86-fscl            4.2.0-3            OK
XFree86-fsrv            4.3.0-3            OK
XFree86-lib             4.3.0-1            OK
XFree86-lib-compat      4.3.0-1            OK
XFree86-man             4.3.0-1            OK
XFree86-nest            4.3.0-3            OK
XFree86-prog            4.3.0-6            OK
XFree86-startup-scripts 4.2.0-5            OK
XFree86-vfb             4.3.0-3            OK
XFree86-xserv           4.3.0-14           OK
XFree86-xwinclip        4.3.0-1            OK
zlib                    1.1.4-4            OK

The error happens during the linking stage.

....
g++ -DNDEBUG -O2 -g -W -Wall -trigraphs -o ddd.exe
ddd.o basename.o compare.o cook.o cwd.o glob.o hash.o
home.o isid.o rxclass.o sigName.o strclass.o tabs.o
uniquify.o Logger.o MemCheck.o PrintGC.o SignalB.o
TypeInfo.o UniqueId.o IntIntAA.o StatArray.o StringA.o
StringMap.o StringSA.o StringSAA.o VoidArray.o
WidgetSA.o Agent.o AgentM.o AsyncAgent.o ChunkQueue.o
DataLength.o HandlerL.o LiterateA.o ReadLineA.o
TimeOut.o TTYAgent.o charsets.o converters.o events.o
findParent.o findWindow.o fileSBF.o frame.o longName.o
selection.o verify.o AutoRaise.o Delay.o DeleteWCB.o
DestroyCB.o ExitCB.o InitImage.o Swallower.o XErrorB.o
freeXmST.o LabelH.o LessTifH.o MakeMenu.o MString.o
ComboBox.o SpinBox.o TextSetS.o printBox.o AlignBox.o
ArcBox.o BinBox.o Box.o BoxD.o BoxExtend.o BoxPoint.o
BoxRegion.o BoxSize.o ColorBox.o CompositeB.o
DiagBox.o DummyBox.o FixBox.o FontFixBox.o FontTable.o
HatBox.o LineBox.o ListBox.o MarkBox.o MatchBox.o
PrimitiveB.o SlopeBox.o StringBox.o THatBox.o TagBox.o
TrueBox.o ArgNode.o BuiltinCN.o CallNode.o ConstNode.o
DefCallN.o DummyNode.o LetNode.o NameNode.o ListNode.o
TestNode.o ThemeVSLL.o TrueNode.o VSEFlags.o
VSLArgList.o VSLBuiltin.o VSLDef.o VSLDefList.o
VSLErr.o VSLLib.o VSLNode.o VSLRead.o ArcGraphE.o
BoxEdgeA.o BoxGraphN.o EdgeA.o EdgeAPA.o Graph.o
GraphEdge.o GraphEdit.o GraphGC.o GraphNode.o
GraphNPA.o HintGraphN.o LineGraphE.o LineGESI.o
PannedGE.o PosGraphN.o RegionGN.o ScrolledGE.o
layout.o annotation.o args.o buttons.o cmdtty.o
comm-manag.o complete.o ctrl.o data.o dbx-lookup.o
decoration.o deref.o disp-read.o editing.o environ.o
examine.o exectty.o exit.o expired.o file.o filetype.o
fonts.o fortranize.o gdbinit.o history.o hostname.o
index.o java.o logo.o logplayer.o mainloop.o
mydialogs.o options.o plotter.o post.o print.o
question.o regexps.o resolveP.o resources.o sashes.o
select.o session.o settings.o shell.o shorten.o show.o
simpleMenu.o source.o status.o string-fun.o tempfile.o
tictactoe.o tips.o toolbar.o ungrab.o value-read.o
vsldoc.o windows.o wm.o xconfig.o AliasGE.o ArgField.o
BreakPoint.o BreakPM.o CodeCache.o Command.o
DataDisp.o DispBox.o DispBuffer.o DispGraph.o
DispNode.o DispNodeM.o DispValue.o DispValueA.o
DispValueT.o EntryType.o GDBAgent.o HelpCB.o
HistoryD.o HistoryF.o MinMaxA.o PlotAgent.o PlotArea.o
PosBuffer.o ProgressM.o RefreshDI.o SmartC.o
SourceView.o StringTPA.o ThemeM.o ThemeP.o Tool.o
UndoBuffer.o UndoBE.o WhatNextCB.o configinfo.o 
-L/usr/X11R6/lib /usr/X11R6/lib/libXm.a -lXaw -lXmu
-lXt -lXpm -lXp -lXext -lX11 -lSM -lICE -ltermcap -ly
-liberty
AgentM.o(.text+0x296): In function `GLOBAL(int10_t,
long double, char, short, int, double)':
/usr/include/c++/3.3.1/iostream:87: undefined
reference to
`__static_initialization_and_destruction_0(int, int)'
AgentM.o(.text+0x2b6): In function
`_GLOBAL__D_AgentM_rcsid':
/usr/include/c++/3.3.1/iostream:87: undefined
reference to
`__static_initialization_and_destruction_0(int, int)'
AsyncAgent.o(.text+0x916): In function
`_GLOBAL__I_AsyncAgent_rcsid':
/usr/include/c++/3.3.1/iostream:287: undefined
reference to
`__static_initialization_and_destruction_0(int, int)'
AsyncAgent.o(.text+0x936): In function
`_GLOBAL__D_AsyncAgent_rcsid':
/usr/include/c++/3.3.1/iostream:287: undefined
reference to
`__static_initialization_and_destruction_0(int, int)'
LiterateA.o(.text+0x2546): In function
`_GLOBAL__I_LiterateAgent_rcsid':
/usr/include/c++/3.3.1/iostream:269: undefined
reference to
`__static_initialization_and_destruction_0(int, int)'
LiterateA.o(.text+0x2566):/usr/include/c++/3.3.1/iostream:269:
more undefined references to
`__static_initialization_and_destruction_0(int, int)'
follow
GraphNPA.o(.ctors+0x0):/cygdrive/e/projects/cygwin/ddd-3.3.7/ddd/GraphNPA.C:
undefined reference to
`__GLOBAL__I_GraphNodePointerArray_rcsid'
GraphNPA.o(.dtors+0x0):/cygdrive/e/projects/cygwin/ddd-3.3.7/ddd/GraphNPA.C:
undefined reference to
`__GLOBAL__D_GraphNodePointerArray_rcsid'
HintGraphN.o(.text+0xa6): In function
`_GLOBAL__I_HintGraphNode_rcsid':
/usr/include/c++/3.3.1/iostream:453: undefined
reference to
`__static_initialization_and_destruction_0(int, int)'
HintGraphN.o(.text+0xc6): In function
`_GLOBAL__D_HintGraphNode_rcsid':
/usr/include/c++/3.3.1/iostream:453: undefined
reference to
`__static_initialization_and_destruction_0(int, int)'
PannedGE.o(.ctors+0x0):PannedGE.C: undefined reference
to `__GLOBAL__I_PannedGraphEdit_rcsid'
PannedGE.o(.dtors+0x0):PannedGE.C: undefined reference
to `__GLOBAL__D_PannedGraphEdit_rcsid'
PosGraphN.o(.text+0x36): In function
`_GLOBAL__I_PosGraphNode_rcsid':
/usr/include/c++/3.3.1/iostream:453: undefined
reference to
`__static_initialization_and_destruction_0(int, int)'
PosGraphN.o(.text+0x56): In function
`_GLOBAL__D_PosGraphNode_rcsid':
/usr/include/c++/3.3.1/iostream:453: undefined
reference to
`__static_initialization_and_destruction_0(int, int)'
annotation.o(.ctors+0x0): In function
`_Z13strip_leadingR6stringRKS_':
/cygdrive/e/projects/cygwin/ddd-3.3.7/ddd/annotation.C:45:
undefined reference to `__GLOBAL__I_annotation_rcsid'
annotation.o(.dtors+0x0):/cygdrive/e/projects/cygwin/ddd-3.3.7/ddd/annotation.C:45:
undefined reference to `__GLOBAL__D_annotation_rcsid'
complete.o(.text+0x2b66): In function `GLOBAL(int12_t,
long double, char, short, int, double)':
/usr/include/c++/3.3.1/iostream:226: undefined
reference to
`__static_initialization_and_destruction_0(int, int)'
complete.o(.text+0x2b86): In function
`_GLOBAL__D_complete_rcsid':
/usr/include/c++/3.3.1/iostream:226: undefined
reference to
`__static_initialization_and_destruction_0(int, int)'
deref.o(.text+0x866): In function `GLOBAL(int222_t,
long double, char, short, int, double)':
/usr/include/c++/3.3.1/iostream:1089: undefined
reference to
`__static_initialization_and_destruction_0(int, int)'
deref.o(.text+0x886): In function
`_GLOBAL__D_deref_rcsid':
/usr/include/c++/3.3.1/iostream:1089: undefined
reference to
`__static_initialization_and_destruction_0(int, int)'
disp-read.o(.text+0x44d6): In function
`_GLOBAL__I_disp_read_rcsid':
/usr/include/c++/3.3.1/iostream:1089: undefined
reference to
`__static_initialization_and_destruction_0(int, int)'
disp-read.o(.text+0x44f6):/usr/include/c++/3.3.1/iostream:1089:
more undefined references to
`__static_initialization_and_destruction_0(int, int)'
follow
fortranize.o(.ctors+0x0):fortranize.C: undefined
reference to `__GLOBAL__I_fortranize_rcsid'
fortranize.o(.dtors+0x0):fortranize.C: undefined
reference to `__GLOBAL__D_fortranize_rcsid'
post.o(.ctors+0x0): In function
`_Z4YnCBP10_WidgetRecPvS1_':
/cygdrive/e/projects/cygwin/ddd-3.3.7/ddd/post.C:85:
undefined reference to `_GLOBAL(int0_t, long double,
char, short, int, double)'
post.o(.dtors+0x0):/cygdrive/e/projects/cygwin/ddd-3.3.7/ddd/post.C:85:
undefined reference to `__GLOBAL__D_post_rcsid'
question.o(.ctors+0x0): In function
`_Z17gdb_reply_timeoutPvPm':
/cygdrive/e/projects/cygwin/ddd-3.3.7/ddd/question.C:76:
undefined reference to `_GLOBAL(int0_t, long double,
char, short, int, double)'
question.o(.dtors+0x0):/cygdrive/e/projects/cygwin/ddd-3.3.7/ddd/question.C:76:
undefined reference to `__GLOBAL__D_question_rcsid'
simpleMenu.o(.ctors+0x0): In function
`_Z10same_shellP10_WidgetRecS0_':
/cygdrive/e/projects/cygwin/ddd-3.3.7/ddd/simpleMenu.C:58:
undefined reference to `__GLOBAL__I_simpleMenu_rcsid'
simpleMenu.o(.dtors+0x0):/cygdrive/e/projects/cygwin/ddd-3.3.7/ddd/simpleMenu.C:58:
undefined reference to `__GLOBAL__D_simpleMenu_rcsid'
status.o(.text+0x29a6): In function `GLOBAL(int0_t,
long double, char, short, int, double)':
/usr/include/c++/3.3.1/iostream:437: undefined
reference to
`__static_initialization_and_destruction_0(int, int)'
status.o(.text+0x29c6): In function
`_GLOBAL__D_status_rcsid':
/usr/include/c++/3.3.1/iostream:437: undefined
reference to
`__static_initialization_and_destruction_0(int, int)'
tictactoe.o(.ctors+0x0): In function `_Z7moveRowi':
/cygdrive/e/projects/cygwin/ddd-3.3.7/ddd/tictactoe.C:84:
undefined reference to `_GLOBAL(int0_t, long double,
char, short, int, double)'
tictactoe.o(.dtors+0x0):/cygdrive/e/projects/cygwin/ddd-3.3.7/ddd/tictactoe.C:84:
undefined reference to `__GLOBAL__D_tictactoe_rcsid'
ungrab.o(.ctors+0x0): In function
`_Z21mouse_pointer_grabbedv':
/cygdrive/e/projects/cygwin/ddd-3.3.7/ddd/ungrab.C:77:
undefined reference to `_GLOBAL(int0_t, long double,
char, short, int, double)'
ungrab.o(.dtors+0x0):/cygdrive/e/projects/cygwin/ddd-3.3.7/ddd/ungrab.C:77:
undefined reference to `__GLOBAL__D_ungrab_rcsid'
value-read.o(.text+0x6566): In function
`_GLOBAL__I_value_read_rcsid':
/usr/include/c++/3.3.1/iostream:1089: undefined
reference to
`__static_initialization_and_destruction_0(int, int)'
value-read.o(.text+0x6586): In function
`_GLOBAL__D_value_read_rcsid':
/usr/include/c++/3.3.1/iostream:1089: undefined
reference to
`__static_initialization_and_destruction_0(int, int)'
wm.o(.ctors+0x0): In function
`_Z11wm_set_iconP9_XDisplaymmm':
/cygdrive/e/projects/cygwin/ddd-3.3.7/ddd/wm.C:57:
undefined reference to `_GLOBAL(int0_t, long double,
char, short, int, double)'
wm.o(.dtors+0x0):/cygdrive/e/projects/cygwin/ddd-3.3.7/ddd/wm.C:57:
undefined reference to `__GLOBAL__D_wm_rcsid'
DispBuffer.o(.text+0x736): In function
`_GLOBAL__I_DispBuffer_rcsid':
/usr/include/c++/3.3.1/iostream:82: undefined
reference to
`__static_initialization_and_destruction_0(int, int)'
DispBuffer.o(.text+0x756): In function
`_GLOBAL__D_DispBuffer_rcsid':
/usr/include/c++/3.3.1/iostream:82: undefined
reference to
`__static_initialization_and_destruction_0(int, int)'
DispNodeM.o(.ctors+0x0):/cygdrive/e/projects/cygwin/ddd-3.3.7/ddd/DispNodeM.C:
undefined reference to `__GLOBAL__I_DispNodeMap_rcsid'
DispNodeM.o(.dtors+0x0):/cygdrive/e/projects/cygwin/ddd-3.3.7/ddd/DispNodeM.C:
undefined reference to `__GLOBAL__D_DispNodeMap_rcsid'
HistoryD.o(.ctors+0x0):HistoryD.C: undefined reference
to `__GLOBAL__I_HistoryDialog_rcsid'
HistoryD.o(.dtors+0x0):HistoryD.C: undefined reference
to `__GLOBAL__D_HistoryDialog_rcsid'
ProgressM.o(.text+0x4a26): In function
`_GLOBAL__I_ProgressMeter_rcsid':
/usr/include/c++/3.3.1/iostream:94: undefined
reference to
`__static_initialization_and_destruction_0(int, int)'
ProgressM.o(.text+0x4a46): In function
`_GLOBAL__D_ProgressMeter_rcsid':
/usr/include/c++/3.3.1/iostream:94: undefined
reference to
`__static_initialization_and_destruction_0(int, int)'
collect2: ld returned 1 exit status
make[2]: *** [ddd.exe] Error 1
make[1]: *** [all] Error 2
make: *** [all-recursive] Error 1

__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/