budowanie kde-base wywala sie

Paweł Sikora pluto w ds14.agh.edu.pl
Nie, 1 Lut 2004, 23:33:34 CET


On Sunday 01 of February 2004 21:37, Jakub Bogusz wrote:
> On Sun, Feb 01, 2004 at 08:44:54PM +0100, Piotr Szymanski wrote:
> > Hi,
> >
> > Piotr Szymanski(Sunday 01 of February 2004 20:36):
> > > niestety nie ma problemu
> > > Sprawdze wieczorem.
> >
> > configure:46998: checking for smbc_new_context in -lsmbclient
> > configure:47028: athlon-pld-linux-gcc -o conftest -ansi -W -Wall
> > -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes
> > -Wwrite-strings -D_XOPEN_SO
> > URCE=500 -D_BSD_SOURCE -O2  -march=athlon-xp -mcpu=athlon-xp -mfpmath=sse
> > -mmmx -msse -m3dnow -mno-sse2 -Os -fomit-frame-pointer -pipe
> > -Wformat-security -Wm
> > issing-format-attribute -D_GNU_SOURCE  -DQT_THREAD_SUPPORT  -D_REENTRANT
> > -s -L/usr/X11R6/lib -L/usr/lib  conftest.c -lsmbclient   >&5
> > /usr/bin/../lib/libdb-4.2.so: undefined reference to
> > `pthread_condattr_setpshared'
> > /usr/bin/../lib/libdb-4.2.so: undefined reference to
> > `pthread_mutexattr_destroy'
> > /usr/bin/../lib/libdb-4.2.so: undefined reference to
> > `pthread_mutexattr_setpshared'
> > /usr/bin/../lib/libdb-4.2.so: undefined reference to
> > `pthread_mutexattr_init' /usr/bin/../lib/libdb-4.2.so: undefined
> > reference to `pthread_mutex_trylock'
>
> db z wątkami? to z ftp?
> Mi się zbudowało db nie używające libpthread.
> (skoro używa, to powinno być zlinkowane z -lpthread - ale dlaczego
> używa?)

--enable-posixmutexes  (domyslnie ./configure nie wlacza tej opcji)

To force Berkeley DB to use the POSIX pthread mutex interfaces for underlying
mutex support, enter --enable-posixmutexes as an argument to configure.
This is rarely necessary: POSIX mutexes will be selected automatically
on systems where they are the preferred implementation.

The --enable-posixmutexes configuration argument is normally used in two ways:
First, when there are multiple mutex implementations available and the POSIX
mutex implementation is not the preferred one (for example, on Solaris where
the LWP mutexes are used by default). Second, by default the Berkeley DB
library will only select the POSIX mutex implementation if it supports mutexes
shared between multiple processes, as described for the
pthread_condattr_setpshared and pthread_mutexattr_setpshared interfaces.
The --enable-posixmutexes configuration argument can be used to force
the selection of POSIX mutexes in this case, which can improve application
performance significantly when the alternative mutex implementation is
a non-blocking one (for example test-and-set assembly instructions).
However, configuring to use POSIX mutexes when the implementation does not
have inter-process support will only allow the creation of private database
environments, that is, environments where the DB_PRIVATE flag is specified
to the DB_ENV->open method.

Specifying the --enable-posixmutexes configuration argument may require
that Berkeley DB be linked with the -lpthread library.

-- 
The only thing necessary for the triumph of evil
  is for good men to do nothing.
                                           - Edmund Burke



Więcej informacji o liście dyskusyjnej pld-devel-pl