undefined reference to `txn_id'

Adrian Buciuman adibuciuman at gmail.com
Tue Jul 11 07:38:47 EDT 2006


I'm using Slackware too.

BDB headers and BDB library should have the same version. (And this
version  should match the one used in compiling SASL ).

Look in the output from "make all" for command line of gcc and ld !


If nothing else helps:  move unneeded BDB libraries and headers to
some directory, run ldconfig, compile cyrus software, move libraries
and headers back, run ldconfig again. (And make sure that no  user,
daemon etc which need a different BDB is started while compiling
cyrus)

On 7/10/06, Marek Franke <mfranke78 at yahoo.de> wrote:
> Hello,
>
> I'm trying to build cyrus-imapd-2.3.6 on my Slackware 10.0, but it
> always failed (hope these lines are enough):
>
> ../lib/libcyrus.a(cyrusdb_berkeley.o)(.text+0x1695): In function `mycommit':
> /usr/src/Network/cyrus-imapd-2.3.6/lib/cyrusdb_berkeley.c:924: undefined
> reference to `txn_id'
> ../lib/libcyrus.a(cyrusdb_berkeley.o)(.text+0x16b1):/usr/src/Network/cyrus-imapd-2.3.6/lib/cyrusdb_berkeley.c:926:
> undefined reference to `txn_commit'
> ../lib/libcyrus.a(cyrusdb_berkeley.o)(.text+0x1775): In function
> `abort_txn':
> /usr/src/Network/cyrus-imapd-2.3.6/lib/cyrusdb_berkeley.c:963: undefined
> reference to `txn_id'
> ../lib/libcyrus.a(cyrusdb_berkeley.o)(.text+0x178d):/usr/src/Network/cyrus-imapd-2.3.6/lib/cyrusdb_berkeley.c:965:
> undefined reference to `txn_abort'
> collect2: ld returned 1 exit status
> make[1]: *** [imapd] Error 1
> make[1]: Leaving directory `/usr/src/Network/cyrus-imapd-2.3.6/imap'
> make: *** [all] Error 1
>
> I've tried several cyrus-imapd packages (2.3.x) and several Berkeley DB
> packages (precompiled db3 and db4 packages). Currently I'm using
> Berkeley DB 4.4.20 (build on my own). But it always failed to build. And
> I have always set the --with-bdb... variables to the correct path, tried
> --disable-sieve (which will fail first), but it will not build because
> it always failes with txn_id. Hope you can help!
>
> Thanks a lot, Marek
>
>
>
> ___________________________________________________________
> Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de
> ----
> Cyrus Home Page: http://asg.web.cmu.edu/cyrus
> Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
> List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
>


More information about the Info-cyrus mailing list