Subject: Re: Problems building kde3 (1.6ZC on i386) (fwd)
To: Heron Gallegos <gallegos@csxxi.net.mx>
From: Dave Tyson <Dave.Tyson@liverpool.ac.uk>
List: tech-pkg
Date: 10/09/2003 11:03:09
On Wed, 8 Oct 2003, Heron Gallegos wrote:

>Sorry...
>I should CC this mail to you, and not reed@reedmedia.net
>Have a nice day
>
>Heron Gallegos

Thanks for that! Yes, I get to the same place as you. Interestingly if
you edit xfdata.cpp and change the <iostream> to <iostream.h> then
the compilation succeeds, together with the rest of the cpp modules in
that directory. The link at the end fails :-)

=2E..
=2E..
rm -f tuneresolution.cpp
echo '#include <klocale.h>' > tuneresolution.cpp
/usr/pkg/qt3/bin/uic -L /usr/pkg/lib/kde3/plugins/designer -nounload -tr tr=
2i18n -i tuneresolution.h ./tuneresolution.ui > tuneresolution.cpp.temp ; r=
et=3D$?;  sed -e "s,tr2i18n( \"\" ),QString::null,g" tuneresolution.cpp.tem=
p | sed -e "s,tr2i18n( \"\"\, \"\" ),QString::null,g" | sed -e "s,image\([0=
-9][0-9]*\)_data,img\1_tuneresolution,g" >> tuneresolution.cpp ; rm -f tune=
resolution.cpp.temp ; if test "$ret" =3D 0; then echo '#include "tuneresolu=
tion.moc"' >> tuneresolution.cpp; else rm -f tuneresolution.cpp ; exit $ret=
 ; fi
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/incl=
ude   -DQT_THREAD_SUPPORT  -DGLX_GLXEXT_LEGACY  -I/usr/pkg/include -I/usr/X=
11R6/include  -Wnon-virtual-dtor -Wno-long-long -Wundef -Wall -pedantic -W =
-Wpointer-arith -Wwrite-strings -DNDEBUG -DNO_DEBUG -O2 -O2 -DGLX_GLXEXT_LE=
GACY -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_NAM=
ESPACE -DQT_NO_ASCII_CAST -DQT_NO_COMPAT -MT tuneresolution.o -MD -MP -MF "=
=2Edeps/tuneresolution.Tpo"  -c -o tuneresolution.o `test -f 'tuneresolutio=
n.cpp' || echo './'`tuneresolution.cpp;  then mv ".deps/tuneresolution.Tpo"=
 ".deps/tuneresolution.Po";  else rm -f ".deps/tuneresolution.Tpo"; exit 1;=
  fi
/bin/sh ../libtool --silent --mode=3Dlink --tag=3DCXX c++  -Wnon-virtual-dt=
or -Wno-long-long -Wundef -Wall -pedantic -W -Wpointer-arith -Wwrite-string=
s -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   -L/usr/pkg/qt3/lib -Wl,-R/usr/pkg/qt3/lib -Wl,-R/usr/lib  -L/u=
sr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/X11R6/lib -Wl,-R/usr/X11R6/lib -o kxco=
nfig -L/usr/X11R6/lib -L/usr/pkg/lib  -L/usr/pkg/qt3/lib -Wl,-R/usr/pkg/qt3=
/lib -Wl,-R/usr/lib  -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/X11R6/lib -Wl=
,-R/usr/X11R6/lib  toplevel.o videocardpageimpl.o  generalpageimpl.o mousep=
ageimpl.o  wizard.o quickhelp.o listview.o  keyboardpageimpl.o monitorpagei=
mpl.o  kxdata.o screenpageimpl.o parser.o  kxfreeconfig.o kxpage.o  newreso=
lutionimpl.o tuneresolutionimpl.o  pciinfo.o xserver.o xfree4probe.o  ltemp=
late.o batchmode.o ddcprobe.o  xfdata.o main.o videocardpage.o monitorpage.=
o keyboardpage.o generalpage.o mousepage.o screenpage.o newresolution.o tun=
eresolution.o libhwdata/libhwdata.la -lkdeui
xfdata.o: In function `GraphicsCard::dump() const':
xfdata.o(.text+0xe): undefined reference to `cout'
xfdata.o(.text+0x16): undefined reference to `ostream::operator<<(char cons=
t*)'
xfdata.o(.text+0x1e): undefined reference to `endl(ostream&)'
xfdata.o(.text+0x2a): undefined reference to `cout'
xfdata.o(.text+0x2f): undefined reference to `ostream::operator<<(char cons=
t*)'
xfdata.o(.text+0x37): undefined reference to `endl(ostream&)'
xfdata.o(.text+0x4a): undefined reference to `ostream::operator<<(char cons=
t*)'
xfdata.o(.text+0x57): undefined reference to `ostream::operator<<(char cons=
t*)'
xfdata.o(.text+0x5f): undefined reference to `endl(ostream&)'
xfdata.o(.text+0x6b): undefined reference to `cout'
xfdata.o(.text+0x70): undefined reference to `ostream::operator<<(char cons=
t*)'
xfdata.o(.text+0x78): undefined reference to `endl(ostream&)'
xfdata.o(.text+0x8e): undefined reference to `ostream::operator<<(char cons=
t*)'
xfdata.o(.text+0x9b): undefined reference to `ostream::operator<<(char cons=
t*)'
xfdata.o(.text+0xa3): undefined reference to `endl(ostream&)'
xfdata.o(.text+0xc6): undefined reference to `cout'
xfdata.o(.text+0xcb): undefined reference to `ostream::operator<<(char cons=
t*)'
xfdata.o(.text+0xd4): undefined reference to `ostream::operator<<(char cons=
t*)'
xfdata.o(.text+0xdd): undefined reference to `ostream::operator<<(char cons=
t*)'
xfdata.o(.text+0xe5): undefined reference to `endl(ostream&)'
xfdata.o(.text+0x10c): undefined reference to `cout'
xfdata.o(.text+0x111): undefined reference to `ostream::operator<<(char con=
st*)'
xfdata.o(.text+0x11a): undefined reference to `ostream::operator<<(char con=
st*)'
xfdata.o(.text+0x123): undefined reference to `ostream::operator<<(char con=
st*)'
xfdata.o(.text+0x12b): undefined reference to `endl(ostream&)'
xfdata.o(.text+0x15c): undefined reference to `cout'
xfdata.o(.text+0x161): undefined reference to `ostream::operator<<(char con=
st*)'
xfdata.o(.text+0x16a): undefined reference to `ostream::operator<<(char con=
st*)'
xfdata.o(.text+0x173): undefined reference to `ostream::operator<<(char con=
st*)'
xfdata.o(.text+0x17b): undefined reference to `endl(ostream&)'
xfdata.o(.text+0x187): undefined reference to `cout'
xfdata.o(.text+0x18c): undefined reference to `ostream::operator<<(char con=
st*)'
xfdata.o(.text+0x194): undefined reference to `endl(ostream&)'
xfdata.o(.text+0x1ae): undefined reference to `cout'
xfdata.o(.text+0x1b3): undefined reference to `ostream::operator<<(char con=
st*)'
xfdata.o(.text+0x1bc): undefined reference to `ostream::operator<<(int)'
xfdata.o(.text+0x1c5): undefined reference to `ostream::operator<<(char con=
st*)'
xfdata.o(.text+0x1cd): undefined reference to `endl(ostream&)'
xfdata.o(.text+0x1d9): undefined reference to `cout'
xfdata.o(.text+0x1de): undefined reference to `ostream::operator<<(char con=
st*)'
xfdata.o(.text+0x1e6): undefined reference to `endl(ostream&)'
xfdata.o(.text+0x1fd): undefined reference to `cout'
xfdata.o(.text+0x202): undefined reference to `ostream::operator<<(char con=
st*)'
xfdata.o(.text+0x20f): undefined reference to `ostream::operator<<(double)'
xfdata.o: In function `LCDMonitor::dump() const':
xfdata.o(.text+0x239): undefined reference to `cout'
xfdata.o(.text+0x241): undefined reference to `ostream::operator<<(char con=
st*)'
xfdata.o(.text+0x249): undefined reference to `endl(ostream&)'
xfdata.o(.text+0x269): undefined reference to `cout'
xfdata.o(.text+0x26e): undefined reference to `ostream::operator<<(char con=
st*)'
xfdata.o(.text+0x277): undefined reference to `ostream::operator<<(char con=
st*)'
xfdata.o(.text+0x280): undefined reference to `ostream::operator<<(char con=
st*)'
xfdata.o(.text+0x288): undefined reference to `endl(ostream&)'
xfdata.o(.text+0x2ab): undefined reference to `cout'
xfdata.o(.text+0x2b0): undefined reference to `ostream::operator<<(char con=
st*)'
xfdata.o(.text+0x2b9): undefined reference to `ostream::operator<<(char con=
st*)'
xfdata.o(.text+0x2c2): undefined reference to `ostream::operator<<(char con=
st*)'
xfdata.o(.text+0x2ca): undefined reference to `endl(ostream&)'
xfdata.o(.text+0x2d6): undefined reference to `cout'
xfdata.o(.text+0x2db): undefined reference to `ostream::operator<<(char con=
st*)'
xfdata.o(.text+0x2e3): undefined reference to `endl(ostream&)'
xfdata.o: In function `Monitor::dump() const':
xfdata.o(.text+0x2fe): undefined reference to `cout'
xfdata.o(.text+0x306): undefined reference to `ostream::operator<<(char con=
st*)'
xfdata.o(.text+0x30e): undefined reference to `endl(ostream&)'
xfdata.o(.text+0x32e): undefined reference to `cout'
xfdata.o(.text+0x333): undefined reference to `ostream::operator<<(char con=
st*)'
xfdata.o(.text+0x33c): undefined reference to `ostream::operator<<(char con=
st*)'
xfdata.o(.text+0x345): undefined reference to `ostream::operator<<(char con=
st*)'
xfdata.o(.text+0x34d): undefined reference to `endl(ostream&)'
xfdata.o(.text+0x370): undefined reference to `cout'
xfdata.o(.text+0x375): undefined reference to `ostream::operator<<(char con=
st*)'
xfdata.o(.text+0x37e): undefined reference to `ostream::operator<<(char con=
st*)'
xfdata.o(.text+0x387): undefined reference to `ostream::operator<<(char con=
st*)'
xfdata.o(.text+0x38f): undefined reference to `endl(ostream&)'
xfdata.o(.text+0x3a9): undefined reference to `cout'
xfdata.o(.text+0x3ae): undefined reference to `ostream::operator<<(char con=
st*)'
xfdata.o(.text+0x3b7): undefined reference to `ostream::operator<<(int)'
xfdata.o(.text+0x3c0): undefined reference to `ostream::operator<<(char con=
st*)'
xfdata.o(.text+0x3c8): undefined reference to `endl(ostream&)'
xfdata.o(.text+0x3e2): undefined reference to `cout'
xfdata.o(.text+0x3e7): undefined reference to `ostream::operator<<(char con=
st*)'
xfdata.o(.text+0x3f0): undefined reference to `ostream::operator<<(int)'
xfdata.o(.text+0x3f9): undefined reference to `ostream::operator<<(char con=
st*)'
xfdata.o(.text+0x401): undefined reference to `endl(ostream&)'
xfdata.o(.text+0x41b): undefined reference to `cout'
xfdata.o(.text+0x420): undefined reference to `ostream::operator<<(char con=
st*)'
xfdata.o(.text+0x429): undefined reference to `ostream::operator<<(int)'
xfdata.o(.text+0x432): undefined reference to `ostream::operator<<(char con=
st*)'
xfdata.o(.text+0x43a): undefined reference to `endl(ostream&)'
xfdata.o(.text+0x454): undefined reference to `cout'
xfdata.o(.text+0x459): undefined reference to `ostream::operator<<(char con=
st*)'
xfdata.o(.text+0x462): undefined reference to `ostream::operator<<(int)'
xfdata.o(.text+0x46b): undefined reference to `ostream::operator<<(char con=
st*)'
xfdata.o(.text+0x473): undefined reference to `endl(ostream&)'
xfdata.o(.text+0x496): undefined reference to `cout'
xfdata.o(.text+0x49b): undefined reference to `ostream::operator<<(char con=
st*)'
xfdata.o(.text+0x4a4): undefined reference to `ostream::operator<<(char con=
st*)'
xfdata.o(.text+0x4ad): undefined reference to `ostream::operator<<(char con=
st*)'
xfdata.o(.text+0x4b5): undefined reference to `endl(ostream&)'
xfdata.o(.text+0x4d8): undefined reference to `cout'
xfdata.o(.text+0x4dd): undefined reference to `ostream::operator<<(char con=
st*)'
xfdata.o(.text+0x4e6): undefined reference to `ostream::operator<<(char con=
st*)'
xfdata.o(.text+0x4ef): undefined reference to `ostream::operator<<(char con=
st*)'
xfdata.o(.text+0x4f7): undefined reference to `endl(ostream&)'
xfdata.o(.text+0x503): undefined reference to `cout'
xfdata.o(.text+0x508): undefined reference to `ostream::operator<<(char con=
st*)'
xfdata.o(.text+0x513): undefined reference to `endl(ostream&)'
xfdata.o(.text+0x526): undefined reference to `ostream::operator<<(char con=
st*)'
xfdata.o(.text+0x52e): undefined reference to `endl(ostream&)'
xfdata.o(.text+0x53b): undefined reference to `ostream::operator<<(char con=
st*)'
xfdata.o(.text+0x543): undefined reference to `endl(ostream&)'
xfdata.o(.text+0x54f): undefined reference to `cout'
xfdata.o(.text+0x554): undefined reference to `ostream::operator<<(char con=
st*)'
xfdata.o(.text+0x55c): undefined reference to `endl(ostream&)'
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/misc/kdeadmin3/work/kdeadmin-3.1.4/kxconfig
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/misc/kdeadmin3/work/kdeadmin-3.1.4/kxconfig


Dave

>
>---------- Forwarded message ----------
>Date: Wed, 8 Oct 2003 11:49:50 -0500 (CDT)
>From: Heron Gallegos <gallegos@csxxi.net.mx>
>To: tech-pkg@netbsd.org
>Cc: reed@reedmedia.net
>Subject: Re: Problems building kde3 (1.6ZC on i386)
>
>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
>
>
>
>
>

--
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
Computing Services Dept         Phone/Fax: 0151-794-3731/3759
The University of Liverpool     Email: dtyson@liv.ac.uk
Chadwick Tower, Peach Street    WWW:   http://www.liv.ac.uk/~dtyson
Liverpool L69 7ZF               Open Source O/S: www.netbsd.org
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D