Subject: Re: Problems building kde3 (1.6ZC on i386)
To: None <>
From: Heron Gallegos <>
List: tech-pkg
Date: 10/08/2003 11:49:50
Dave Tyson wrote:

> Just tried to build kde3 from source using the pkgsrc.tar.gz from
> about 7th October on current (i386, 1.6ZC from 6th October -
> Kernel+Userland).
> It fails in kdeadmin/kcron. I don't really know c++, but everything
> seems to look OK - the include files seem to be correct for the
> ifstream function. Anyone else seen this or can give any clues how to
> fix it?

I have the same problem (same versions but date is sep 26, also i386)

Edit work/kdeadmin-3.1.4/kcron/cthost.cpp and
change the line 21 from
#include <fstream.h> // ifstream
#include <fstream> // ifstream
and cthost.cpp will compile fine.

Then, the next problem is work/kdeadmin-3.1.4/kxconfig/xfdata.cpp
Edit the file and change the first line in the same way.
Now you will have other kind of errors:

if c++ -DHAVE_CONFIG_H -I. -I. -I.. -I./libhwdata -I/usr/pkg/include
-I/usr/pkg/qt3/include -I/usr/X11R6/include  -I/usr/pkg/include
-I/usr/pkg/include -I/usr/X11R6/include  -Wnon-virtual-dtor -Wno-long-long
-Wundef -Wall -pedantic -W -Wpointer-arith -Wwrite-strings -DNDEBUG
-DNO_DEBUG -O2 -O2 -DGLX_GLXEXT_LEGACY -I/usr/pkg/include
-I/usr/X11R6/include -fno-exceptions -fno-check-new -DQT_CLEAN_NAMESPACE
".deps/xfdata.Tpo" \
  -c -o xfdata.o `test -f 'xfdata.cpp' || echo './'`xfdata.cpp; \
then mv ".deps/xfdata.Tpo" ".deps/xfdata.Po"; \
else rm -f ".deps/xfdata.Tpo"; exit 1; \
xfdata.cpp: In member function `void GraphicsCard::dump() const':
xfdata.cpp:7: error: `cout' undeclared (first use this function)
xfdata.cpp:7: error: (Each undeclared identifier is reported only once for
   function it appears in.)
xfdata.cpp:7: error: `endl' undeclared (first use this function)
gmake[3]: *** [xfdata.o] Error 1
gmake[3]: Leaving directory
gmake[2]: *** [all-recursive] Error 1
gmake[2]: Leaving directory
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory
gmake: *** [all] Error 2
*** Error code 2

I dont know how to solve these problems. As a reference please read and

If you get some new solution, please let me know.

Heron Gallegos