Re: KDE2 - Building KDE2 - Errors


Subject: Re: KDE2 - Building KDE2 - Errors
From: Patrick Callahan (pac1@tiac.net)
Date: Tue Nov 21 2000 - 19:36:41 MST


Searching for information about the specific module and error message
yielded this tidbit from
http://www.monkey.org/openbsd/archive/tech/9801/msg00188.html

"this is a bug of sorts in GCC. Try it without optimization -O."

I reran the build for kdelibs with the following commands:

 export CPPFLAGS='-O0'
 export QTDIR=/usr/lib/qt-2.1.1
 cd /usr/src/kdelibs-2.0
 make -f Makefile.cvs
 ./configure --enable-debug
 make

Now of course everything builds, but all the g++ compiles are being done
without any optimization. Not a good thing for a library. What I'd like
to do instead is to modify the makefile for a the single module that's
causing the trouble, compiling it without optimization while allowing the
other compiles to proceed normally.

What I want to end up with is a set of commands to patch the make file.

What's the first step? Find the makefile and correct it. Done.
Now I want to create a patch that can be added to my script above so it
corrects the makefile just before calling make.

What diff command do I use to create the patch ?
What patch command do I give to apply the patch?

Hey Sam, Did you run into this compile problem?

Patrick Callahan wrote:

> KDE2 Build project:
>
> - Now building kdelibs - problem - compiler error:
>
> make[3]: Entering directory `/usr/src/kdelibs-2.0/kdecore'
> /bin/sh ../libtool --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I..
> -I./../libltd
> l/ -I../dcop -I../kdecore -I../kdeui -I../kssl -I/usr/local/qt/include
> -I/usr/X1
> 1R6/include -I/usr/local/kde/include -O2 -fno-exceptions
> -fno-check-new -Wal
> g++ -DHAVE_CONFIG_H -I. -I. -I.. -I./../libltdl/ -I../dcop -I../kdecore
> -I../kdeui -I../kssl -I/usr/local/qt/include -I/usr/X11R6/include
> -I/usr/local/kde/include -O2 -fno-exceptions -fno-check-new -Wall
> -pedantic -W -Wpointer-arith -Wmissing-prototypes -Wwrite-strings
> -Wno-long-long -fno-builtin -frtti -DQT_CLEAN_NAMESPACE -DQT_NO_COMPAT
> -DQT_NO_ASCII_CAST -Wp,-MD,.deps/kapp.pp -c kapp.cpp -fPIC -DPIC -o
> .libs/kapp.o
> In file included from /usr/include/sys/socket.h:34,
> from /usr/include/netdb.h:31,
> from kapp.cpp:96:
> /usr/include/bits/socket.h:226: warning: ANSI C++ forbids zero-size
> array `__cmsg_data'
> kapp.cpp: In method `void KCheckAccelerators::checkAccelerators()':
> kapp.cpp:130: Internal compiler error:
> kapp.cpp:130: virtual memory exhausted
> make[3]: *** [kapp.lo] Error 1
> make[3]: Leaving directory `/usr/src/kdelibs-2.0/kdecore'
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory `/usr/src/kdelibs-2.0/kdecore'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/usr/src/kdelibs-2.0'
> make: *** [all-recursive-am] Error 2
>
> Current status:
> - all attempts to build rpm-3.0.5 failed
> ../lib/.libs/librpm.so: undefined reference to `bzdopen'
> ../lib/.libs/librpm.so: undefined reference to `bzerror'
> ../lib/.libs/librpm.so: undefined reference to `bzwrite'
> ../lib/.libs/librpm.so: undefined reference to `bzclose'
> ../lib/.libs/librpm.so: undefined reference to `bzread'
> ../lib/.libs/librpm.so: undefined reference to `bzflush'
> ../lib/.libs/librpm.so: undefined reference to `bzopen'
> collect2: ld returned 1 exit status
> make[2]: *** [dump] Error 1
> make[2]: Leaving directory `/usr/src/rpm-3.0.5/tools'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/usr/src/rpm-3.0.5'
> make: *** [all-recursive-am] Error 2
>
> - Built rpm-3.0.6 from sources in order to use source rpms from
> http://www.msoe.edu/~geiseri/kde2/
>
> - installed qt-2.2.1-1a.ppc.rpm
> rpm -i /downloads/qt-2.2.1-1a.ppc.rpm
>
> - expanded downloaded kdelibs sources:
> rpm -Uvh kdelibs-2.0-1a.src.rpm
> bzip2 -d ../local/src/redhat/SOURCES/kdelibs-2.0.tar.bz2
> cd /usr/src
> tar -xvf ../local/src/redhat/SOURCES/kdelibs-2.0.tar
> cd kdelibs-2.0
>
> - started build for kdelibs
>
> export QTDIR=/usr/lib/qt-2.1.1
> make -f Makefile.cvs
> ./configure --enable-debug
> make



This archive was generated by hypermail 2a24 : Tue Nov 21 2000 - 19:36:55 MST