I've been trying to do this stuff for a few months with some successes, and 
some mysterious failures- here's a link to a forum at pclinuxonline with lots 
of great info on this subject. I still haven't solved the kdelibs and base 
rebuilding either. Your Duron needs the tbird opt flag. 

There are more optflags you should investigate- you can add them to the stock 
Mandrakes, and you really should create a building tree in your /home 
directory  so you can build as user intead of root. My posts are under 
wrc1944.

Robert Crawford

http://www.pclinuxonline.com/modules.php?mop=modload&name=Forums&file=viewforum&forum=11


On Tuesday 24 June 2003 04:27, Huw Blackwell wrote:
> Okay guys,
>
> A bit stumped by this one, I am trying to optimize Mandrake 9.1 for my
> computer by re-compiling the rpm source pacakges. I've hit a bit of a
> brick wall with kdelibs, which of course, kde base is dependant on (so
> I need this sorted before I can get any more of kde done).
>
> Compiling kdelibs-3.1-58mdk.src.rpm on an AMD Duron 750, 128Mb Ram Via
> kt133 chipset.
>
> Opt flags are standard Mandake issue, as found in /usr/lib/rpm/rpmrc
> the rebuild just targeting athlon architecture.
>
> Auto Conf 2.5
>
> This works for all optimizations I have done so far. (XFree86, GCC,
> QT)
>
> Libqt3-3.11, libqt3-common-3.11,libarts-devel and libartts-1.1.0
> installed.
>
> All required dependancy files installed as listed on Mandrake src.rpm
> page for this src.rpm.
>
> QT libs listed in /etc/ld.conf
>
> ldconfig run as root just in case this was a problem.
>
> Here what I think is the relevant part of the error message when
> compiling.
>
> libkhtmlhtml_la.all_cpp.cpp' || echo './'`libkhtmlhtml_la.all_cpp.cpp
> /bin/sh ../../libtool --silent --mode=link --tag=CXX
> athlon-mandrake-linux-gnu-g++  -Wnon-virtual-dtor -Wno-long-long
> -Wundef -Wall -pedantic -W -Wpointer-arith -Wmissing-prototypes
> -Wwrite-strings -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align
> -Wconversion -DNDEBUG -DNO_DEBUG -O2 -O2 -fomit-frame-pointer -pipe
> -march=athlon -fno-exceptions -fno-check-new  -DQT_NO_TRANSLATION
> -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_COMPAT    -o
> libkhtmlhtml.la   libkhtmlhtml_la.all_cpp.lo
> make[3]: Leaving directory
> `/home/hwb/RPM/BUILD/kdelibs-3.1/khtml/html'
> Making all in rendering
> make[3]: Entering directory
> `/home/hwb/RPM/BUILD/kdelibs-3.1/khtml/rendering'
> cd ../.. && /bin/sh ./config.status khtml/rendering/Makefile depfiles
> config.status: creating khtml/rendering/Makefile
> config.status: executing depfiles commands
> make[3]: Leaving directory
> `/home/hwb/RPM/BUILD/kdelibs-3.1/khtml/rendering'
> make[3]: Entering directory
> `/home/hwb/RPM/BUILD/kdelibs-3.1/khtml/rendering'
> /usr/lib/qt3/bin/moc ./render_form.h -o render_form.moc
> /usr/lib/qt3/bin/moc ./render_frames.h -o render_frames.moc
> /usr/lib/qt3/bin/moc ./render_replaced.h -o render_replaced.moc
> creating libkhtmlrender_la.all_cpp.cpp ...
> source='libkhtmlrender_la.all_cpp.cpp'
> object='libkhtmlrender_la.all_cpp.lo' libtool=yes \
> depfile='.deps/libkhtmlrender_la.all_cpp.Plo'
> tmpdepfile='.deps/libkhtmlrender_la.all_cpp.TPlo' \
> depmode=gcc3 /bin/sh ../../admin/depcomp \
> /bin/sh ../../libtool --silent --mode=compile --tag=CXX
> athlon-mandrake-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I../..
> -I../../kimgio -I../../kio -I../../dcop -I../../kfile -I../../khtml
> -I../.. -I../../dcop -I../../libltdl -I../../kdecore -I../../kdeui
> -I../../kio -I../../kio/kio -I../../kio/kfile -I../..
> -I/usr/lib/qt3/include -I/usr/X11R6/include    -DQT_THREAD_SUPPORT
> -D_REENTRANT   -Wnon-virtual-dtor -Wno-long-long -Wundef -Wall
> -pedantic -W -Wpointer-arith -Wmissing-prototypes -Wwrite-strings
> -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion
> -DNDEBUG -DNO_DEBUG -O2 -O2 -fomit-frame-pointer -pipe -march=athlon
> -fno-exceptions -fno-check-new  -DQT_NO_TRANSLATION
> -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_COMPAT  -c -o
> libkhtmlrender_la.all_cpp.lo `test -f 'libkhtmlrender_la.all_cpp.cpp'
>
> || echo './'`libkhtmlrender_la.all_cpp.cpp
>
> In file included from libkhtmlrender_la.all_cpp.cpp:5:
> render_object.cpp: In member function `void
> khtml::RenderObject::recalcMinMaxWidths()':
> render_object.cpp:1025: warning: `int cmin' might be used
> uninitialized in this function
> render_object.cpp:1025: warning: `int cmax' might be used
> uninitialized in this function
> In file included from libkhtmlrender_la.all_cpp.cpp:12:
> table_layout.cpp: In member function `int
> khtml::FixedTableLayout::calcWidthArray(int)':
> table_layout.cpp:92: warning: unused parameter `int tableWidth'
> In file included from libkhtmlrender_la.all_cpp.cpp:14:
> render_form.cpp:31:20: kspell.h: No such file or directory
> In file included from libkhtmlrender_la.all_cpp.cpp:14:
> render_form.cpp: In destructor `virtual
> khtml::TextAreaWidget::~TextAreaWidget()':
> render_form.cpp:1186: invalid use of undefined type `struct KSpell'
> ../../khtml/rendering/render_form.h:37: forward declaration of `struct
> KSpell'
> In file included from libkhtmlrender_la.all_cpp.cpp:14:
> render_form.cpp: In member function `void
> khtml::TextAreaWidget::slotCheckSpelling()':
> render_form.cpp:1225: invalid use of undefined type `struct KSpell'
> ../../khtml/rendering/render_form.h:37: forward declaration of `struct
> KSpell'
> render_form.cpp:1226: invalid use of undefined type `struct KSpell'
> ../../khtml/rendering/render_form.h:37: forward declaration of `struct
> KSpell'
> render_form.cpp: In member function `void
> khtml::TextAreaWidget::slotSpellCheckReady(KSpell*)':
> render_form.cpp:1231: invalid use of undefined type `struct KSpell'
> ../../khtml/rendering/render_form.h:37: forward declaration of `struct
> KSpell'
> render_form.cpp:1232: no matching function for call to
> `khtml::TextAreaWidget::connect(KSpell*&, const char[25],
> khtml::TextAreaWidget* const, const char[39])'
> /usr/lib/qt3/include/qobject.h:116: candidates are: static bool
> QObject::connect(const QObject*, const char*, const QObject*, const
> char*)
> /usr/lib/qt3/include/qobject.h:227:                 bool
> QObject::connect(const QObject*, const char*, const char*) const
> make[3]: *** [libkhtmlrender_la.all_cpp.lo] Error 1
> make[3]: Leaving directory
> `/home/hwb/RPM/BUILD/kdelibs-3.1/khtml/rendering'
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory `/home/hwb/RPM/BUILD/kdelibs-3.1/khtml'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/home/hwb/RPM/BUILD/kdelibs-3.1'
> make: *** [all] Error 2
> error: Bad exit status from /home/hwb/RPM/tmp/rpm-tmp.55586 (%build)
>
>
> RPM build errors:
>     Bad exit status from /home/hwb/RPM/tmp/rpm-tmp.55586 (%build)
> [EMAIL PROTECTED] SRPMS]$
>
> I Can't find any reference to this anywhere on the web.
> @ wits end
>
> Any pointers would be apprieciated, even suggestions for a suitable
> mailing list. I have the full compiliation text
> which I can mail to you as an attachment if this is not sufficient.
>
> Thanks
>
> Huw


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com

Reply via email to