Problems compiling KDE,kdelibs 2.2.1: Link error (fwd)

Greg Turpin gregturp at attbi.com
Thu Dec 27 23:37:41 PST 2001


Have you applied the ltmain patch?
It's mentioned in the hint.

(ignore me if you have already tried this)
Greg

On Friday 28 December 2001 12:55 am, you wrote:
> Michael De Mey wrote:
> >I've been trying for days now, with no success.
> >Can somebody help me ?
> >
> >gcc version is: 2.95.3
> >binutils: 2.11.2
> >
> >It gives a whole bunch of multiple definition errors, here is the (an
> >extract)  output:
> >
> >make[1]: Entering directory `/usr/src/kde/kdelibs-2.2.1/khtml'
> >/bin/sh ../libtool --mode=link --tag=CXX c++  -fno-exceptions
> > -fno-check-new  -ftemplate-depth-99 -DQT_NO_TRANSLATION
> > -DQT_CLEAN_NAMESPACE -DQT_NO_COMPAT -DQT_NO_ASCII_CAST  -O2 -o
> > libkhtml.la -rpath /usr/local/kde2/lib -version-info 3:0 -module
> > -no-undefined -L/usr/X11R6/lib -L/usr/lib/qt/lib -L/usr/local/kde2/lib 
> > khtmlview.lo khtml_part.lo khtml_run.lo khtml_factory.lo
> > khtml_settings.lo khtml_events.lo khtml_find.lo khtml_ext.lo
> > khtml_pagecache.lo libkhtml_la_meta_unload.lo  ./xml/libkhtmlxml.la
> > ./html/libkhtmlhtml.la 	./rendering/libkhtmlrender.la
> > ./css/libkhtmlcss.la 	./misc/libkhtmlmisc.la ./dom/libkhtmldom.la
> > ./java/libkjava.la 	../kio/libkio.la 	../kparts/libkparts.la
> > 	../kfile/libkfile.la 	../kssl/libkssl.la 	../kdeprint/libkdeprint.la gcc
> > -shared -nostdlib  .libs/khtmlview.o .libs/khtml_part.o .libs/khtml_run.o
> > .libs/khtml_factory.o .libs/khtml_settings.o .libs/khtml_events.o
> > .libs/khtml_find.o .libs/khtml_ext.o .libs/khtml_pagecache.o
> > .libs/libkhtml_la_meta_unload.o -Wl,--whole-archive
> > ./xml/.libs/libkhtmlxml.a ./html/.libs/libkhtmlhtml.a
> > ./rendering/.libs/libkhtmlrender.a ./css/.libs/libkhtmlcss.a
> > ./misc/.libs/libkhtmlmisc.a ./dom/.libs/libkhtmldom.a
> > -Wl,--no-whole-archive  -L/usr/X11R6/lib -L/usr/lib/qt/lib
> > -L/usr/local/kde2/lib ./xml/.libs/libkhtmlxml.a
> > -L/usr/lib/gcc-lib/i586-pc-linux-gnu/2.95.3 -lm -lm -lm -lgcc -lc -lgcc
> > -lm -lgcc -lc -lgcc -lm -lc -lgcc ./html/.libs/libkhtmlhtml.a -lm -lm -lm
> > -lgcc -lc -lgcc -lm -lgcc -lc -lgcc -lm -lc -lgcc
> > ./rendering/.libs/libkhtmlrender.a -lm -lm -lm -lgcc -lc -lgcc -lm -lgcc
> > -lc -lgcc -lm -lc -lgcc ./css/.libs/libkhtmlcss.a -lm -lm -lm -lgcc -lc
> > -lgcc -lm -lgcc -lc -lgcc -lm -lc -lgcc ./misc/.libs/libkhtmlmisc.a -lm
> > -lm -lm -lgcc -lc -lgcc -lm -lgcc -lc -lgcc! -lm -lc -lgcc
> > ./dom/.libs/libkhtmldom.a -lm -lm -lm -lgcc -lc -lgcc -lm -lgcc -lc -lgcc
> > -lm -lc -lgcc ./java/.libs/libkjava.so
> > -L/usr/src/kde/kdelibs-2.2.1/kio/.libs
> > -L/usr/src/kde/kdelibs-2.2.1/kdesu/.libs
> > -L/usr/src/kde/kdelibs-2.2.1/kssl/.libs
> > -L/usr/src/kde/kdelibs-2.2.1/kdeui/.libs
> > -L/usr/src/kde/kdelibs-2.2.1/kdecore/.libs
> > -L/usr/src/kde/kdelibs-2.2.1/dcop/.libs -L/usr/lib ../kio/.libs/libkio.so
> > ../kparts/.libs/libkparts.so -L/usr/src/kde/kdelibs-2.2.1/kfile/.libs
> > ../kfile/.libs/libkfile.so ../kssl/.libs/libkssl.so
> > ../kdeprint/.libs/libkdeprint.so
> > -L/usr/src/kde/kdelibs-2.2.1/kparts/.libs             -lc  -Wl,-soname
> > -Wl,libkhtml.so.3 -o .libs/libkhtml.so.3.0.0
> > ./dom/.libs/libkhtmldom.a(parsestream.o): In function
> > `func_parsebuf::seek_in_line(int)':
> > /usr/src/gcc-build/i586-pc-linux-gnu/libio/../../../gcc-2.95.3/libio/pars
> >estream.cc(.text+0x810): multiple definition of
> > `func_parsebuf::seek_in_line(int)'
> > ./xml/.libs/libkhtmlxml.a(parsestream.o)(.text+0x810):/usr/src/gcc-build/
> >i586-pc-linux-gnu/libio/../../../gcc-2.95.3/libio/parsestream.cc: first
> > defined here ./dom/.libs/libkhtmldom.a(parsestream.o): In function
> > `func_parsebuf::underflow(void)':
> > /usr/src/gcc-build/i586-pc-linux-gnu/libio/../../../gcc-2.95.3/libio/pars
> >estream.cc(.text+0x8f4): multiple definition of
> > `func_parsebuf::underflow(void)'
> > ./xml/.libs/libkhtmlxml.a(parsestream.o)(.text+0x8f4):/usr/src/gcc-build/
> >i586-pc-linux-gnu/libio/../../../gcc-2.95.3/libio/parsestream.cc: first
> > defined here ./dom/.libs/libkhtmldom.a(parsestream.o): In function
> > `parsebuf::seek_in_line(int)':
> > /usr/src/gcc-build/i586-pc-linux-gnu/libio/../../../gcc-2.95.3/libio/pars
> >estream.cc(.text+0xa9c): multiple definition of
> > `parsebuf::seek_in_line(int)'
> > ./xml/.libs/libkhtmlxml.a(parsestream.o)(.text+0xa9c):/usr/src/gcc-build/
> >i586-pc-linux-gnu/libio/../../../gcc-2.95.3/libio/parsestream.cc: first
> > defined here collect2: ld returned 1 exit status
> >make[1]: *** [libkhtml.la] Error 1
> >make: *** [all-recursive] Error 1
> >make[1]: Leaving directory `/usr/src/kde/kdelibs-2.2.1/khtml'
> >
> >
> >
> >--------------
> >Michael De Mey
>
> What flags are you using and did you install all the (latest) needed
> libs (especially libxml and libxslt)?
> I had absolutley no problem building it but then again I got a ton of
> patches from different src rpms (not using the ones I didn't need).Works
> just fine for me.
> Make sure that kdoc is the first package you install.
>
> CFLAGS="$RPM_OPT_FLAGS"  ./configure --prefix=/opt/kde2 \
>
>                         --disable-debug \
>
>                         --enable-final \
>
>                        --with-extra-libs=/usr/lib \
>
>                         --with-extra-includes=/usr/include \
>
>                        --enable-objprelink \
>
>                         --disable-cups \
>
>                       --with-ssl-dir=/usr
>
> Don't forget to export your  QTDIR and KDEDIR paths for packages that
> will come later.
>
> --
> Unsubscribe: send email to listar at linuxfromscratch.org
> and put 'unsubscribe blfs-support' in the subject header of the message
-- 
Unsubscribe: send email to listar at linuxfromscratch.org
and put 'unsubscribe blfs-support' in the subject header of the message



More information about the blfs-support mailing list