snapshot build problems

Matthew D Krajewski mdk at symbies.com
Fri Sep 12 18:12:25 CEST 2003


I don't know if you had the same problem I did (the error output looks
similar), but for some reason my linking phase wasn't including all the
object files it was supposed to, thus spitting out tons of "undefined
reference" errors.

I fixed this by adding the files it needed in a script like the one below
and running it in the konq-embed's src directory.
(I just grabbed the linking command from make's stdout where it failed and
concatenated on the .o files at the end.)

#!/bin/sh
/bin/sh ../../libtool --silent --mode=link --tag=CXX
rm-linux-g++  -Wnon-virtual-dtor -Wno-long-long -Wundef -Wall -pedantic -W -
Wpointer-arith -Wmissing-prototypes -Wwrite-strings -ansi -D_XOPEN_SOURCE=50
0 -D_BSD_SOURCE -Wcast-align -Wconversion -DNDEBUG -DNO_DEBUG -O2 -fno-excep
tions -fno-check-new -fno-rtti -D_QT_QPE_ -DQT_CLEAN_NAMESPACE -DQT_NO_COMPA
T -DQT_NO_ASCII_CAST    -o
konqueror  -L/opt/Qtopia/sharp/lib -L/opt/QtPalmtop/lib  -L/opt/Qtopia/sharp
/lib  main.o mainwindowbase.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 xmltree.o bookmarkeditor.o
bookmarkeditorimpl.o bookmarkedit.o bookmarkeditimpl.o mainwindebug.o
../../konq-embed/kdesrc/khtml/ecma/libkjs_html_i.la
../../konq-embed/kdesrc/kjs/libkjs.la
../../konq-embed/kdesrc/khtml/libkhtml_i.la \
  ../kdesrc/khtml/css/.libs/css_valueimpl.o \
  ../kdesrc/khtml/dom/.libs/html_document.o \
  ../kdesrc/khtml/html/.libs/html_baseimpl.o \
  ../kdesrc/khtml/html/.libs/html_elementimpl.o \
  ../kdesrc/khtml/html/.libs/html_formimpl.o \
  ../kdesrc/khtml/html/.libs/html_headimpl.o \
  ../kdesrc/khtml/html/.libs/html_listimpl.o \
  ../kdesrc/khtml/html/.libs/html_miscimpl.o \
  ../kdesrc/khtml/html/.libs/htmltokenizer.o \
  ../kdesrc/khtml/rendering/.libs/render_applet.o \
  ../kdesrc/khtml/rendering/.libs/render_frames.o \
  ../kdesrc/khtml/rendering/.libs/render_object.o \
  ../kdesrc/khtml/xml/.libs/dom_elementimpl.o \
  ../kdesrc/khtml/xml/.libs/dom_textimpl.o \
  ../kdesrc/khtml/xml/.libs/xml_tokenizer.o \
  ../kdesrc/kio/http/kcookiejar/.libs/kcookieserver.o \
  ../kdesrc/kssl/.libs/ksslcertchain.o

I'm sure there's a more elegant solution, like fooling around with the build
environment, configure, or Makefiles, but I haven't bothered looking for it.
;)
Anyway, I hope this helps.

- Matt K

> -----Original Message-----
> To: konq-e at mail.kde.org
> Subject: snapshot build problems
>
>
> I am trying to build a snapshot from 05 July 2003, but am having
> problems during the link stage. a previous poster
>
> http://lists.kde.org/?l=konq-e&m=102451464804946&w=2
>
> seemed to have a similar problem in which libtool did not use
> arm-linux-ar,
>
> # the archiver
> AR=ar
>
> generating damaged .a files. I made the following change
>
> # the archiver
> AR=arm-linux-ar
>
> and still got compile errors.
>
> has anyone else experienced something similar? I am using the arm
> toolchain (2.95.3) from arm.linux.org.uk. I've included the head of the
> message list (the full list is very very long). any help would be
> greatly appreciated.
>
> thanks,
> ddr
>
>
> main.o: In function `main':
> main.o(.text+0x140c): undefined reference to
> `KCookieServer::KCookieServer(void)'
> main.o(.text+0x1764): undefined reference to `kjs_html_init'
> main.o(.text+0x1818): undefined reference to
> `KCookieServer::~KCookieServer(void)'
> /home/wayzen/Projects/konq-1.0/install/lib/libkhtml_i.a(khtml_part.o):
> In function `KHTMLPart::htmlDocument(void) const':
> khtml_part.o(.text+0x161ec): undefined reference to
> `DOM::HTMLDocument::HTMLDocument(DOM::HTMLDocumentImpl *)'
> khtml_part.o(.text+0x161fc): undefined reference to
> `DOM::HTMLDocument::HTMLDocument(DOM::HTMLDocumentImpl *)'
> /home/wayzen/Projects/konq-1.0/install/lib/libkhtml_i.a(khtml_part.o):
> In function `L46894':
> khtml_part.o(.text+0x30bfc): undefined reference to
> `DOM::HTMLCollectionImpl::HTMLCollectionImpl(DOM::NodeImpl *, int)'
> khtml_part.o(.text+0x30c78): undefined reference to
> `DOM::HTMLCollectionImpl::namedItem(DOM::DOMString const &) const'



More information about the konq-e mailing list