This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

egcs and libio.h


When I tried to compile ddd-1997-10-08 with egcs-2.90.12 971008
(gcc2-970802 experimental) on a linux-2.1.57 libc-5.4.39 system, I got
the following error :
c++   -o ddd-1997-10-08-i686-pc-linux-gnu ddd.o compare.o cook.o glob.o
hash.o r
xclass.o sigName.o strclass.o tabs.o SignalB.o TypeInfo.o UniqueId.o
MemCheck.o 
Range.o IntIntAA.o StringA.o StringMap.o StringSA.o VoidArray.o
WidgetSA.o Agent
.o AgentM.o AsyncAgent.o ChunkQueue.o DataLength.o HandlerL.o
LiterateA.o TimeOu
t.o TTYAgent.o charsets.o converters.o events.o findParent.o fileSBF.o
longName.
o verify.o Delay.o DestroyCB.o ExitCB.o LessTifH.o MString.o MakeMenu.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 Fon
tTable.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 Con
stNode.o DefCallN.o DummyNode.o LetNode.o NameNode.o ListNode.o
TestNode.o TrueN
ode.o VSEFlags.o VSLBuiltin.o VSLDef.o VSLDefList.o VSLErr.o VSLLib.o
VSLNode.o 
VSLRead.o layout.o BoxGraphN.o Graph.o GraphEdge.o GraphEdit.o GraphGC.o
GraphNo
de.o HintGraphN.o LineGraphE.o ArcGraphE.o PannedGE.o PosGraphN.o
RegionGN.o Scr
olledGE.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 f
iletype.o gdbinit.o graph.o history.o hostname.o index.o logo.o
mydialogs.o opti
ons.o post.o print.o question.o regexps.o resources.o sashes.o select.o
session.
o settings.o shell.o shorten.o show.o source.o status.o string-fun.o
ungrab.o va
lue-read.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 EntryType.o GDBAgent.o HelpCB.o
PosBuffer.o SourceView.o 
WhatNextCB.o -L/usr/X11R6/lib -lXm -lXpm -lXaw -lXmu  -lXext -lXt  -lSM
-lICE -l
X11      -lncurses  ../libiberty/libiberty.a -lm
strclass.o: In function `operator>>(istream &, string &)':
/usr/include/g++/iostream.h:149: undefined reference to `_IO_flockfile'
strclass.o: In function `readline(istream &, string &, char, int)':
/usr/include/g++/iostream.h:149: undefined reference to `_IO_flockfile'
collect2: ld returned 1 exit status
make[1]: *** [ddd-1997-10-08-i686-pc-linux-gnu] Error 1
make[1]: Target `all' not remade because of errors.
make[1]: Leaving directory `/home/mk/ddd-1997-10-08/ddd'
make: *** [all] Error 1
make: Target `default' not remade because of errors..
The problem seems to be , that the libio.h , which comes with egcs  is
not installed to /usr/include/g++ when doing a "make install". So a old
/usr/include/g++/libio.h without the _IO_flockfile macro still exists
and causes the failure. 
If  I copy  the libio.h from egcs to /usr/include/g++ the error
disappears. 
-- 
------------------------------------------------------------------------------
Markus			           <mk@emil.inka.de> (Markus Kossmann)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]