[prev in list] [next in list] [prev in thread] [next in thread] 

List:       koffice
Subject:    Re: koffice 1.1 wont compile, undefined references...
From:       Werner Trobin <trobin () kde ! org>
Date:       2001-08-31 9:18:35
[Download RAW message or body]

Thomas wrote:
> 
> hey, i downloaded koffice 1.1 source, and started the compilation process.
> when i run configure, i get the following warning (with some of the previous
> messages):
> 
> checking for Python2.1... header /usr/local/include/python2.1 library
> /usr/local/lib/python2.1/config modules /usr/local/lib/python2.1
> checking if a Python application links... (cached) no
> checking if Python depends on -lm... (cached) no
> checking if Python depends on -lpthread... (cached) no
> checking if Python depends on -ltcl... (cached) no
> checking if Python depends on -lpthread -lm... (cached) no
> checking if Python depends on -lpthread -lm -lutil... (cached) no
> checking if Python depends on -lpthread -lm -ldb-3 -lutil... (cached) no
> checking if Python depends on -lpthread -ldb-3... (cached) no
> checking if Python depends on -lpthread -lm -ldb -ltermcap -lutil... (cached)
> nochecking if Python depends on -lpthread -lm -ldb -lutil... (cached) no
> configure: warning: it seems, Python depends on another library.
>     Pleae use "make LIBPYTHON='-lpython2.1 -lotherlib'" to fix this
>     and contact the authors to let them know about this problem

Okay... please try to make it work the way it's suggested here.
BTW: Removing the file config.cache is a good idea if you install
a new version of Python as you did. I don't know whether configure
checks for Python at all when it finds something in the cache.

As soon as you found the working combination please tell us and
we're going to add it to the checks.

> and when i do a make all, it gets all the way to kivio, but as its compiling
> that, i get the following error (also, included the last call to c++):
> 
> c++ -O2 -fno-exceptions -fno-check-new -DQT_CLEAN_NAMESPACE -DQT_NO_COMPAT
> -DQT_NO_ASCII_CAST -o .libs/libkivioconnectortool.la.closure
> .libs/libkivioconnectortool_la_closure.o .libs/plugin.o
> .libs/tool_connector.o .libs/libkivioconnectortool_la_meta_unload.o
> -L/usr/X11R6/lib -L/opt/kde2.2/lib
> ../../../kivio/kiviopart/.libs/libkiviopart.so
> /home/thomas/koffice-1.1/lib/kofficeui/.libs/libkofficeui.so
> /home/thomas/koffice-1.1/lib/kofficecore/.libs/libkofficecore.so
> /home/thomas/koffice-1.1/lib/store/.libs/libkstore.so
> -L/usr/local/lib/gcc-lib/i586-pc-linux-gnu/2.95.2 -L/usr/local/lib
> /home/thomas/koffice-1.1/lib/kwmf/.libs/libkwmf.so
> /opt/kde2.2/lib/libkdeprint.so /opt/kde2.2/lib/libkparts.so
> /opt/kde2.2/lib/libkfile.so /opt/kde2.2/lib/libksycoca.so
> /opt/kde2.2/lib/libkio.so /opt/kde2.2/lib/libkdesu.so -lutil
> /opt/kde2.2/lib/libkssl.so /opt/kde2.2/lib/libkdeui.so
> /opt/kde2.2/lib/libkdecore.so /opt/kde2.2/lib/libDCOP.so -lqt -lpng -ljpeg
> -lXext -lX11 -lSM -lICE -lz -lpython2.0 -ldl -lresolv
> -L/usr/lib/python2.0/config -lstdc++ -lm -lc -lgcc -Wl,--rpath
> -Wl,/opt/kde2.2/lib/kde2 -Wl,--rpath -Wl,/opt/kde2.2/lib
> ../../../kivio/kiviopart/.libs/libkiviopart.so: undefined reference to
> `pthread_create'
> ../../../kivio/kiviopart/.libs/libkiviopart.so: undefined reference to
> `dbopen'
> ../../../kivio/kiviopart/.libs/libkiviopart.so: undefined reference to
> `pthread_detach'

I'm not sure, but adding -ldb -lpthread might fix it.
 
> i installed the latest python binary from slackware, but that did not work,
> and i downloaded and compiled python 2.1.1, and that also did not work.

...which might be related to your old config.cache.

Ciao,
Werner

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic