Error compiling kdelibs-2.0.*: "undefined reference to mainParse in kio/.libs/"

Error compiling kdelibs-2.0.*: "undefined reference to mainParse in kio/.libs/"

Post by Scott Alft » Fri, 12 Jan 2001 02:27:10

Hash: SHA1

I'm building up a K6-optimized LFS system and wanted to put KDE 2 on it, so
I downloaded the source and went to work.  Qt and kdesupport compiled with
no problems, but "make all" conks out while building kdelibs with this

make[4]: Entering directory `/home/salfter/kde-2.0/kdelibs-2.0/kio/klauncher'
/bin/sh ../../libtool --mode=link g++  -O2 -fno-exceptions -fno-check-new -Wall -pedantic -W -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -Wno-long-long -fno-builtin -O2 -march=k6 -fomit-frame-pointer -frtti -DQT_CLEAN_NAMESPACE -DQT_NO_COMPAT -DQT_NO_ASCII_CAST   -o klauncher -L/usr/X11R6/lib -L/usr/local/kde2/lib  -R /usr/local/kde2/lib -R /usr/X11R6/lib dummy.o
g++ -O2 -fno-exceptions -fno-check-new -Wall -pedantic -W -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -Wno-long-long -fno-builtin -O2 -march=k6 -fomit-frame-pointer -frtti -DQT_CLEAN_NAMESPACE -DQT_NO_COMPAT -DQT_NO_ASCII_CAST -o .libs/klauncher dummy.o  -L/usr/X11R6/lib -L/usr/local/kde2/lib ./.libs/ /home/salfter/kde-2.0/kdelibs-2.0/kio/.libs/ /home/salfter/kde-2.0/kdelibs-2.0/kio/.libs/ /home/salfter/kde-2.0/kdelibs-2.0/kdeui/.libs/ -L/usr/lib/gcc-lib/i586-pc-linux-gnu/2.95.2 /home/salfter/kde-2.0/kdelibs-2.0/kdesu/.libs/ /home/salfter/kde-2.0/kdelibs-2.0/kdecore/.libs/ -ldl /home/salfter/kde-2.0/kdelibs-2.0/dcop/.libs/ -lqt -ljpeg -lXext -lX11 -lSM -lICE -lutil -lz -lstdc++ -lm -lc -lgcc -Wl,--rpath -Wl,/usr/local/kde2/lib -Wl,--rpath -Wl,/usr/X11R6/lib
/home/salfter/kde-2.0/kdelibs-2.0/kio/.libs/ undefined reference to `mainParse'
collect2: ld returned 1 exit status
make[4]: *** [klauncher] Error 1
make[4]: Leaving directory `/home/salfter/kde-2.0/kdelibs-2.0/kio/klauncher'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/salfter/kde-2.0/kdelibs-2.0/kio/klauncher'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/salfter/kde-2.0/kdelibs-2.0/kio'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/salfter/kde-2.0/kdelibs-2.0'
make: *** [all-recursive-am] Error 2

I'm running Linux 2.4.0-test12 (with reiserfs patched in) and XFree86 4.0.2.
gcc/g++ 2.95.2 and glibc 2.1.3 are also installed.  Nearly everything has
been compiled with -march=k6 -fomit-frame-pointer -O2, and those are the
options I'm using to try to compile KDE.  (Qt libs & includes have been
copied to /usr/lib and /usr/include, respectively.)  Both KDE 2.0 and 2.0.1
stop at the same point with the same error.  Any ideas why it might be doing

(The system that's doing the compile is a P5-133 with 64 megs of RAM and 4
gigs of disk.  Once a complete system with all services is built up, it'll
replace a SuSE 6.4 installation on my server, a K6-2-300 with 64 megs of RAM
and 10 gigs of disk.  The system that will actually run X and KDE is a
K6-III-450 with 256 megs of RAM and an ATI Radeon 32MB DDR (which XF86 4.0.2
has so far handled pretty well); it netboots Linux and mounts the server's
root filesystem via ClusterNFS (this machine's hard drive has Win98 on it
for running stuff that needs Win9x to run).)

 / v \
(IIGS(  Scott Alfter (remove Voyager's hull number for email address)
Version: GnuPG v1.0.2 (GNU/Linux)
Comment: For info see