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

> Scratch the last message about changing <iostream> to <iostream.h>
> If you leave the definition of <iostream> alone and just add a
> 'using namespace std;'  It compiles and links OK.
>
> Off to look for the next showstopper :-)

It seems kdeadmin was compiled right.

Now the problem is pkgsrc/misc/kdeedu3

1)
work/kdeedu-3.1.4/kvoctrain/kvoctrain/queryoption-dialogs/ThreshOptPage.cpp
line 67

2)
work/kdeedu-3.1.4/kvoctrain/kvoctrain/entry-dialogs/EntryDlg.cpp
line 112, also there is not 'using namespace std;'

3)
work/kdeedu-3.1.4/kvoctrain/kvoctrain/kvt-core/kvoctraindoc.cpp
line 129, and this include is before the line 'using namespace std;'
(I dont know if this is a problem)

4)
work/kdeedu-3.1.4/kvoctrain/kvoctrain/kvt-core/UsageManager.cpp
line 62

5)
work/kdeedu-3.1.4/kvoctrain/kvoctrain/kvt-core/QueryManager.cpp
line 74

and then 'make' and the result is here:

/bin/sh ../../../libtool --silent --mode=link --tag=CXX c++
-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
-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 -o
libkvoctraincore.la   langset.lo LineList.lo kvoctrainexpr.lo
kvoctraindoc.lo kvd_rh_kvtml.lo kvd_rb_kvtml1.lo kvd_rb_kvtml2.lo
kvd_wkvtml.lo kvd_csv.lo kvd_lex.lo kvd_vcb.lo GrammerManager.lo
UsageManager.lo QueryManager.lo MultipleChoice.lo kvt-xml/libkvtxml.la
gmake[5]: Leaving directory
`/usr/pkgsrc/misc/kdeedu3/work/kdeedu-3.1.4/kvoctrain/kvoctrain/kvt-core'
gmake[4]: Leaving directory
`/usr/pkgsrc/misc/kdeedu3/work/kdeedu-3.1.4/kvoctrain/kvoctrain/kvt-core'
Making all in statistik-dialogs
gmake[4]: Entering directory
`/usr/pkgsrc/misc/kdeedu3/work/kdeedu-3.1.4/kvoctrain/kvoctrain/statistik-dialogs'
gmake[4]: Nothing to be done for `all'.
gmake[4]: Leaving directory
`/usr/pkgsrc/misc/kdeedu3/work/kdeedu-3.1.4/kvoctrain/kvoctrain/statistik-dialogs'
gmake[4]: Entering directory
`/usr/pkgsrc/misc/kdeedu3/work/kdeedu-3.1.4/kvoctrain/kvoctrain'
/bin/sh ../../libtool --silent --mode=link --tag=CXX c++
-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
-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 -o kvoctrain
-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  kva_io.o kvoctrain.o kvoctrainview.o rowtable.o
main.o kva_init.o kva_config.o kva_header.o kva_clip.o kva_query.o
./docprop-dialogs/libdocpropdlg.la ./entry-dialogs/libentrydlg.la
./kvt-core/libkvoctraincore.la ./kvt-core/kvt-xml/libkvtxml.la
./option-dialogs/liboptiondlg.la ./query-dialogs/libquerydlg.la
./queryoption-dialogs/libqueryoptiondlg.la
./statistik-dialogs/libstatdlg.la ./common-dialogs/libcommondlg.la -lkhtml
./kvt-core/.libs/libkvoctraincore.a(XmlReader.o): In function
`XmlReader::readAttributes(std::list<XmlAttribute,
std::allocator<XmlAttribute> >&)':
XmlReader.o(.text+0xd74): undefined reference to `cerr'
XmlReader.o(.text+0xd79): undefined reference to `ostream::operator<<(char
const*)'
XmlReader.o(.text+0xd82): undefined reference to `endl(ostream&)'
XmlReader.o(.text+0xdbb): undefined reference to `cerr'
XmlReader.o(.text+0xdc0): undefined reference to `ostream::operator<<(char
const*)'
XmlReader.o(.text+0xdc9): undefined reference to `endl(ostream&)'
XmlReader.o(.text+0xdff): undefined reference to `cerr'
XmlReader.o(.text+0xe04): undefined reference to `ostream::operator<<(char
const*)'
XmlReader.o(.text+0xe0d): undefined reference to
`ostream::operator<<(int)'
XmlReader.o(.text+0xe16): undefined reference to `endl(ostream&)'
gmake[4]: *** [kvoctrain] Error 1
gmake[4]: Leaving directory
`/usr/pkgsrc/misc/kdeedu3/work/kdeedu-3.1.4/kvoctrain/kvoctrain'
gmake[3]: *** [all-recursive] Error 1
gmake[3]: Leaving directory
`/usr/pkgsrc/misc/kdeedu3/work/kdeedu-3.1.4/kvoctrain/kvoctrain'
gmake[2]: *** [all-recursive] Error 1
gmake[2]: Leaving directory
`/usr/pkgsrc/misc/kdeedu3/work/kdeedu-3.1.4/kvoctrain'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/usr/pkgsrc/misc/kdeedu3/work/kdeedu-3.1.4'
gmake: *** [all] Error 2
*** Error code 2

Stop.

I dont know what happens here.
If somebody have the solution, please share.

Heron Gallegos