linking fails now ;-)

Johannes Brügmann jbrueg at t-online.de
Fri Apr 16 22:58:46 CEST 2004


Hello all,

ok, here is the latest try:

      /bin/sh ../../libtool --silent --mode=link --tag=CXX g++
      -Wnon-virtual-dtor -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500
      -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W
      -Wpointer-arith -Wwrite-strings -DNDEBUG -DNO_DEBUG -O2
      -march=athlon-tbird -O3 -pipe -fomit-frame-pointer
      -frerun-cse-after-loop -frerun-loop-opt -fprefetch-loop-arrays
      -funroll-loops -fforce-addr -falign-functions=4 -ffast-math
      -maccumulate-outgoing-args -Wformat-security
      -Wmissing-format-attribute -fno-exceptions -fno-check-new -fno-common
      -DQT_NO_ASCII_CAST   -L/usr/lib -lmng -ljpeg -lpng -lgif -lz -o
      konqueror  -L/usr/X11R6/lib -L/usr/qt/3/lib -L/usr/local/lib
      -export-dynamic main.o mainwindowbase.o mainwindebug.o htmlview.o
      popuphandler.o view.o run.o browseriface.o bookmarks.o preferences.o
      preferencesimpl.o mainwindow_qpe.o mainwindow_x11.o mainwindow_kiosk.o
      mainwindow_tv.o xmltree.o bookmarkeditor.o bookmarkeditorimpl.o
      bookmarkedit.o bookmarkeditimpl.o
      ../../konq-embed/add-ons/kplaintext/libkplaintext_e.la
      ./../dropin/kio/libkiodropin.la  ../lib/libkonqe.la
      ./../kdesrc/kparts/libkparts.la ./../dropin/libdropin.la
      ./../dropin/kparts/libkpartsdropin.la
      ../../konq-embed/kdesrc/khtml/libkhtml.la
      ../dropin/kssl/libkssldropin.la ../kdesrc/kssl/libkssl.la  
      ../../konq-embed/kdesrc/khtml/.libs/libkhtml.so: undefined reference
      to `KJS::Window::retrieveWindow(KHTMLPart*)'
      ../../konq-embed/kdesrc/khtml/.libs/libkhtml.so: undefined reference
      to `kjs_html_init'
      ../../konq-embed/kdesrc/khtml/.libs/libkhtml.so: undefined reference
      to `KJS::Interpreter::globalExec()'
      ../lib/.libs/libkonqe.so: undefined reference to
      `KJS::Object::Object[in-charge](KJS::ObjectImp*)'
      ../lib/.libs/libkonqe.so: undefined reference to `KJS::Object::~Object
      [in-charge]()'
      collect2: ld returned 1 exit status

I added a line at line 40 in konq-embed/src/mainwindow_x11.cc
(s. previous posting)

     41 #include <qregexp.h>

and configured with

      src_compile() {
              local myconf
              if [ "`use qt-embedded`" ]
              then
                      export QTDIR=/opt/qt-embedded
                      export PATH=$QTDIR/bin:$PATH
                      export LDFLAGS="-L/usr/lib -lmng -ljpeg"
                      myconf="--with-qt-dir=$QTDIR --enable-qt-embedded
      --enable-static --disable-shared --prefix=/usr/embedded" 
              else
                      export QTDIR=/usr/qt/3
                      export PATH=$QTDIR/bin:$PATH
                      export LDFLAGS="-L/usr/lib -lmng -ljpeg -lpng -lgif
      -lz"
                      myconf="--disable-debug -disable-closure
      --enable-shared=yes --enable-add-ons=kplaintext --enable-readwrite
      --disable-printing --enable-ftp --enable-cgi --enable-sortdir
      --enable-fast-malloc=yes --enable-sidebar --enable-xmlui
      --enable-fontsubs --enable-jshostext --prefix=/usr/local
      --with-qt-dir=$QTDIR --with-qt-includes=$QTDIR/include
      --with-qt-libraries=$QTDIR/lib --with-javascript=dynamic
      --with-ipv6-lookup=no" 
              fi
              cd ${S}
              econf ${myconf} --host=${CHOST} --with-ssl-dir=/usr || die
              make || die
      }

What is wrong? Is there anything I can try/what I'm doing wrong?
Wasn't libkhtml.so previously compiled by this source? Then why does
linking fail? Should the konq-embed/kdesrc directory point to 
kdebase src directory with the same version as is kdelibs?

Regards,
Johannes
-- 
      Was  ist  der  Mensch,  dass du seiner gedenkst, und des Menschen
      Kind, dass du dich seiner annimmst?
      
      Psalm 8,5
      
      Jesus nahm ein Kind, stellte es mitten unter sie  und  herzte  es
      und  sprach  zu ihnen: Wer ein solches Kind in meinem Namen aufn-
      immt, der nimmt mich auf.
      
      Markus 9,36-37
      


More information about the konq-e mailing list