Subject: Re: Problems building kde3 (1.6ZC on i386)
To: None <tech-pkg@netbsd.org>
From: Heron Gallegos <gallegos@csxxi.net.mx>
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
to
#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/X11R6/include -DQT_THREAD_SUPPORT -DGLX_GLXEXT_LEGACY
-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
-DQT_NO_ASCII_CAST -DQT_NO_TRANSLATION -DQT_CLEAN_NAMESPACE
-DQT_NO_ASCII_CAST -DQT_NO_COMPAT -MT xfdata.o -MD -MP -MF
".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; \
fi
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
each
function it appears in.)
xfdata.cpp:7: error: `endl' undeclared (first use this function)
gmake[3]: *** [xfdata.o] Error 1
gmake[3]: Leaving directory
`/usr/pkgsrc/misc/kdeadmin3/work/kdeadmin-3.1.4/kxconfig'
gmake[2]: *** [all-recursive] Error 1
gmake[2]: Leaving directory
`/usr/pkgsrc/misc/kdeadmin3/work/kdeadmin-3.1.4/kxconfig'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory
`/usr/pkgsrc/misc/kdeadmin3/work/kdeadmin-3.1.4'
gmake: *** [all] Error 2
*** Error code 2
I dont know how to solve these problems. As a reference please read
http://mail-index.NetBSD.org/tech-pkg/2003/09/29/0009.html and
http://mail-index.NetBSD.org/tech-pkg/2003/09/29/0010.html
If you get some new solution, please let me know.
Heron Gallegos