Re: KDE 2.0 - Building qt-X11-2.1.1 (generic) qxml.cpp compile fails


Subject: Re: KDE 2.0 - Building qt-X11-2.1.1 (generic) qxml.cpp compile fails
From: Patrick Callahan (pac1@tiac.net)
Date: Sat Nov 11 2000 - 07:49:37 MST


KDE Build from scratch:

Building qt and KDE2 from Scratch on YDL CS 1.2 stock installation with
bzip2 and lesstif
       and
Building qt and KDE2 from scratch on YDL CS 1.2 after complete yup
update (this is supposed to be the equivalent of CS 1.2.1)

Current status of both games: Failing on make for qt-x11-2.2.1 module
qxml.cpp
        See below for current error message

 Strategies:

    - Find and fix cause or get workaround of make error on qxml.cpp
        (failed at one point with messages about running out of memory -

compiler bug?)
        (unable to reproduce messages about memory but compile still
fails. see below...)

    - Try qt make after modifying make file to remove optimization
         (may be an old strategy - found on kde web site for KDE 1.x)

    - Learn about RPM 4 and download the built qt libraries.
        see http://www.metaltux.org/~core/files/RPMS/combined/ below

    - Consider putting stock CS 1.2 KDE build on hold and continuing the

KDE2 CS Build project only with yupped CS 1.2

Current Configuration:

        YellowDog Linux CS 1.2 installed with development tools
        YellowDog Linux CS 1.2
/mnt/cdrom/YellowDog/RPMS/lesstif-0.89.9-2.1.ppc.rpm

/mnt/cdrom/YellowDog/RPMS/lesstif-clients-0.89.9-2.1.ppc.rpm
         bzip2 built and installed from sources

current qt ./configure results:
Thread support....... no
GIF support.......... no
MNG support.......... no
JPEG support......... no
NAS sound support.... no
Session management... yes

Creating makefiles...
Qt is now configured for building. Just run make.
To reconfigure, run make clean and configure.

%make

lots of compiles
...

Current qt Make Error Message: CS 1.2 Stock and Yupped:

    [root@localhost qt]# make
    make[1]: Entering directory `/usr/local/qt-2.2.1'
    cd src/moc; make
    make[2]: Entering directory `/usr/local/qt-2.2.1/src/moc'
    make[2]: Nothing to be done for `all'.
    make[2]: Leaving directory `/usr/local/qt-2.2.1/src/moc'
    rm -f bin/moc
    cp src/moc/moc bin/moc
     make -f src-mt.mk
    make[2]: Entering directory `/usr/local/qt-2.2.1'
    (not building threaded Qt)
    make[2]: Leaving directory `/usr/local/qt-2.2.1'
    cd src; make
    make[2]: Entering directory `/usr/local/qt-2.2.1/src'
    g++ -c -I/usr/X11R6/include -I/usr/local/qt/include
-I/usr/X11R6/include -pipe-O2 -fPIC
    -DQT_BUILTIN_GIF_READER=0 -DQT_NO_IMAGEIO_JPEG -DQT_NO_IMAGEIO_MNG
-I
    /usr/local/qt/src/3rdparty/zlib -I/usr/local/qt/src/3rdparty/libpng
-I/usr/X11R6
    /include -o xml/qxml.o xml/qxml.cpp
   {standard input}: Assembler messages:
   {standard input}:19042: Error: operand out of range (33680 not
between -32768 and 32767)
  {standard input}:63441: Error: operand out of range (-33092 not
between -32768 and 32767)
   make[2]: *** [xml/qxml.o] Error 1
    make[2]: Leaving directory `/usr/local/qt-2.2.1/src'
    make[1]: *** [sub-src] Error 2
    make[1]: Leaving directory `/usr/local/qt-2.2.1'
    make: *** [init] Error 2

Steps taken to get to this point:

        Download qt-x11-2.2.1 from www.kde.org mirror

http://ftp.sourceforge.net/pub/mirrors/kde//stable/latest/distribution/tar/generic/src/

                qt-x11-2.2.1.tar.gz 12-Oct-2000 23:04 8.2M GZIP
compressed docume>

        su root # users don't have the mana to build in /usr/lib
which is where the directions say to build
        cd /usr/lib
        cp /downloads/qt-x11-2.2.1* ./
        tar -xzvf qt-x11-2.2.1.tar.gz
        cd qt-2.2.1
        cat INSTALL
        cat >.profile <<EOF # careful -- This is going in /root!
        QTDIR=/usr/local/qt

PATH=/usr/lib/qt-2.1.0/bin:/usr/sbin:/sbin:/usr/sbin:/usr/bin:/bin:/usr/X11R6/bin:/root/bin

        MANPATH=/usr/lib/qt-2.1.0/man:
        LD_LIBRARY_PATH=/usr/lib/qt-2.1.0/lib:

        export QTDIR PATH MANPATH LD_LIBRARY_PATH
        EOF
        ln -s qt-2.2.1 qt
        source ./.profile
        ./configure
        echo $QTDIR
        make

g++ -c -I/usr/X11R6/include -I/usr/local/qt/include
-I/usr/X11R6/include -pipe
-O2 -fPIC -DQT_BUILTIN_GIF_READER=0 -DQT_NO_IMAGEIO_JPEG
-DQT_NO_IMAGEIO_MNG -I/usr/local/qt/src/3rdparty/zlib
-I/usr/local/qt/src/3rdparty/libpng -I/usr/X11R6/include -o xml/qxml.o
xml/qxml.cpp
{standard input}: Assembler messages:
{standard input}:19042: Error: operand out of range (33680 not between
-32768 and 32767)
{standard input}:63441: Error: operand out of range (-33092 not between
-32768 and 32767)
make[2]: *** [xml/qxml.o] Error 1
make[2]: Leaving directory `/usr/local/qt-2.2.1/src'
make[1]: *** [sub-src] Error 2
make[1]: Leaving directory `/usr/local/qt-2.2.1'
make: *** [init] Error 2

the error message can be produced repeatedly by rerunning make in the qt

directory.

http://www.metaltux.org/~core/files/RPMS/combined/

     qt-2.2.1-5.ppc.rpm 03-Nov-2000 14:16 4.2M
     qt-Xt-2.2.1-5.ppc.rpm 03-Nov-2000 14:16 18k
     qt-designer-2.2.1-5...> 03-Nov-2000 14:16 673k
     qt-devel-2.2.1-5.ppc..> 03-Nov-2000 14:16 7.3M
     qt-static-2.2.1-5.pp..> 03-Nov-2000 14:16 5.1M

These are rpm 4 rpms. I will need to learn about rpm 4 vs rpm 3

currently with yupped CS 1.2:

$ rpm --version
RPM version 3.0.4



This archive was generated by hypermail 2a24 : Sat Nov 11 2000 - 07:49:24 MST