Error compiling ddd-2.1.95 with egcs-971031
Bernd Nottelmann
nottelm@ptp283.uni-muenster.de
Thu Nov 6 03:03:00 GMT 1997
Hi,
I tried to compile a beta version of ddd-2.2 (exactly ddd-2.1.95,
available at
ftp://ftp.ips.cs.tu-bs.de/pub/local/softech/ddd/src/ ).
The make procedure failed with the error message
c++ -o ddd-2.1.95-i686-pc-linux-gnu ddd.o compare.o cook.o glob.o
hash.o rxcla
ss.o sigName.o strclass.o tabs.o SignalB.o TypeInfo.o UniqueId.o
MemCheck.o Rang
e.o IntIntAA.o StringA.o StringMap.o StringSA.o VoidArray.o WidgetSA.o
Agent.o A
gentM.o AsyncAgent.o ChunkQueue.o DataLength.o HandlerL.o LiterateA.o
TimeOut.o
TTYAgent.o charsets.o converters.o events.o findParent.o fileSBF.o
longName.o ve
rify.o Delay.o DestroyCB.o ExitCB.o LessTifH.o MString.o MakeMenu.o
printBox.o A
lignBox.o ArcBox.o BinBox.o Box.o BoxD.o BoxExtend.o BoxPoint.o
BoxRegion.o BoxS
ize.o ColorBox.o CompositeB.o DiagBox.o DummyBox.o FixBox.o FontFixBox.o
FontTab
le.o HatBox.o LineBox.o ListBox.o MarkBox.o MatchBox.o PrimitiveB.o
SlopeBox.o S
tringBox.o THatBox.o TagBox.o TrueBox.o ArgNode.o BuiltinCN.o CallNode.o
ConstNo
de.o DefCallN.o DummyNode.o LetNode.o NameNode.o ListNode.o TestNode.o
TrueNode.
o VSEFlags.o VSLBuiltin.o VSLDef.o VSLDefList.o VSLErr.o VSLLib.o
VSLNode.o VSLR
ead.o layout.o BoxGraphN.o Graph.o GraphEdge.o GraphEdit.o GraphGC.o
GraphNode.o
HintGraphN.o LineGraphE.o ArcGraphE.o PannedGE.o PosGraphN.o RegionGN.o
Scrolle
dGE.o args.o buttons.o cmdtty.o configinfo.o comm-manag.o complete.o
ctrl.o dbx-
lookup.o disp-read.o editing.o environ.o exectty.o exit.o expired.o
file.o filet
ype.o gdbinit.o graph.o history.o hostname.o index.o logo.o mydialogs.o
options.
o post.o print.o question.o regexps.o resources.o sashes.o select.o
session.o se
ttings.o shell.o shorten.o show.o source.o status.o string-fun.o
ungrab.o value-
read.o windows.o wm.o xconfig.o AliasGE.o ArgField.o BreakPoint.o
BreakPM.o Code
Cache.o Command.o DataDisp.o DispBox.o DispBuffer.o DispGraph.o
DispNode.o DispN
odeM.o DispValue.o EntryType.o GDBAgent.o HelpCB.o PosBuffer.o
SourceView.o What
NextCB.o -L/usr/X11R6/lib -lXm -lXpm -lXaw -lXmu -lXext -lXt -lSM
-lICE -lX11
-lncurses ../libiberty/libiberty.a -lm
ddd.o(.rodata+0x1874): undefined reference to `ostrstream type_info
node'
ddd.o: In function `MessageSaver type_info function':
ddd.o(.gnu.linkonce.t.__tf12MessageSaver+0x13): undefined reference to
`ostrstre
am type_info function'
collect2: ld returned 1 exit status
My system is a ppro linux box (linux-2.0.30, libc.so.5.4.40,
libg++.so.27.2.8,
libstdc++.so.27.2.8), my compiler is the haifa-enabled version of egcs
(compiled with make bootstrap BOOT_CFLAGS=-O2 in the gcc-subdirectory;
g++ -v
Reading specs from
/usr/lib/gcc-lib/i686-pc-linux-gnulibc1/egcs-2.90.15/specs
gcc version egcs-2.90.15 971031 (gcc2-970802 experimental))
The ddd was compiled with the additional flags "-O2 -fno-exceptions
-finline-functions" which was set by the environment variables
CFLAGS and CXXFLAGS.
Bernd
PS: I have sent a bug report to the ddd-developers too, and they told me
that the reason for this linker bug lies in egcs and not in the
ddd-sources.
More information about the Gcc-bugs
mailing list