FS#12318 - fdm doesnt build with tdb from extra

Attached to Project: Community Packages
Opened by Greg (dolby) - Tuesday, 02 December 2008, 10:24 GMT
Last edited by Abhishek Dasgupta (abhidg) - Tuesday, 12 May 2009, 11:54 GMT
Task Type Bug Report
Category
Status Closed
Assigned To Jeff Mickey (codemac)
Architecture x86_64
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

It used to work when Archlinux didnt ship the tdb included in samba.
I made a bug report upstream:

http://sourceforge.net/tracker/index.php?func=detail&aid=2376572&group_id=174568&atid=869744
This task depends upon

Closed by  Abhishek Dasgupta (abhidg)
Tuesday, 12 May 2009, 11:54 GMT
Reason for closing:  Fixed
Additional comments about closing:  fdm 1.6-1
Comment by Greg (dolby) - Thursday, 04 December 2008, 01:50 GMT
Its fixed in upstream CVS.
Comment by Andrea Scarpino (BaSh) - Sunday, 14 December 2008, 14:23 GMT
samba 3.2.6 is out but tdb haven't a maintainer.
codemac, can you adopt and update it?
Comment by Greg (dolby) - Sunday, 14 December 2008, 15:12 GMT
IMO the one who maintains samba should also maintain tdb
Comment by Greg (dolby) - Monday, 22 December 2008, 17:19 GMT
fdm 1.6 is out & should solve this.
Comment by Greg (dolby) - Tuesday, 06 January 2009, 16:50 GMT
I am attaching the scripts i use. Feel free to use them to build the package.
Comment by Greg (dolby) - Thursday, 22 January 2009, 20:47 GMT
Heres a new and improved version
Comment by Abhishek Dasgupta (abhidg) - Saturday, 21 February 2009, 07:02 GMT
Build failure (fdm 1.6, tdb 3.3.0):

gcc -L/usr/lib -lresolv -lssl -ltdb -lz -o fdm fdm.o attach.o buffer.o cleanup.o command.o connect.o io.o log.o netrc.o child-deliver.o child-fetch.o child.o pcre.o re.o privsep.o replace.o shm-mmap.o strb.o db-tdb.o xmalloc-debug.o xmalloc.o timer.o deliver-add-header.o deliver-drop.o deliver-keep.o deliver-maildir.o deliver-mbox.o deliver-pipe.o deliver-remove-header.o deliver-rewrite.o deliver-smtp.o deliver-stdout.o deliver-tag.o deliver-add-to-cache.o deliver-remove-from-cache.o deliver-write.o deliver-imap.o fetch-imap.o fetch-imappipe.o fetch-maildir.o fetch-nntp.o fetch-pop3.o fetch-pop3pipe.o fetch-stdin.o fetch-mbox.o pop3-common.o imap-common.o mail-state.o mail-time.o mail.o file.o cache-op.o match-all.o match-age.o match-attachment.o match-command.o match-in-cache.o match-matched.o match-regexp.o match-size.o match-string.o match-tagged.o match-unmatched.o match-account.o parent-deliver.o parent-fetch.o lookup.o lookup-passwd.o lookup-courier.o y.tab.o parse-fn.o lex.o compat/strlcpy.o compat/strlcat.o compat/strtonum.o
db-tdb.o: In function `db_clear':
db-tdb.c:(.text+0x1d): undefined reference to `tdb_traverse'
db-tdb.o: In function `db_print':
db-tdb.c:(.text+0x4c): undefined reference to `tdb_traverse'
db-tdb.o: In function `db_size':
db-tdb.c:(.text+0x7d): undefined reference to `tdb_traverse'
db-tdb.o: In function `db_expire':
db-tdb.c:(.text+0x109): undefined reference to `tdb_traverse'
db-tdb.o: In function `db_expire_item':
db-tdb.c:(.text+0x18e): undefined reference to `tdb_delete'
db-tdb.o: In function `db_remove':
db-tdb.c:(.text+0x261): undefined reference to `tdb_delete'
db-tdb.o: In function `db_contains':
db-tdb.c:(.text+0x291): undefined reference to `tdb_exists'
db-tdb.o: In function `db_add':
db-tdb.c:(.text+0x305): undefined reference to `tdb_store'
db-tdb.o: In function `db_open':
db-tdb.c:(.text+0x35d): undefined reference to `tdb_open'
db-tdb.o: In function `db_clear_item':
db-tdb.c:(.text+0xbb): undefined reference to `tdb_delete'
db-tdb.o: In function `db_close':
db-tdb.c:(.text+0x325): undefined reference to `tdb_close'
collect2: ld returned 1 exit status
make: *** [fdm] Error 1
Comment by Greg (dolby) - Saturday, 21 February 2009, 07:10 GMT
It use to build with previous versions. Maybe its related to  FS#13379 
Comment by Greg (dolby) - Saturday, 21 February 2009, 07:16 GMT Comment by Abhishek Dasgupta (abhidg) - Saturday, 21 February 2009, 07:51 GMT
This is a bug in the Arch tdb package. /usr/lib/libtdb.so in the tdb
package points to /usr/lib/libtdb.so.1.1.1 which does not exist. After
making /usr/lib/libtdb.so a symlink to /usr/lib/libtdb.so.1.1.2, the
fdm package builds correctly. Possibly this is also the cause of
bug #13379; although in my case, /usr/lib/libtdb.so.1 is correctly
symlinked.
Comment by Abhishek Dasgupta (abhidg) - Saturday, 21 February 2009, 07:56 GMT Comment by Greg (dolby) - Saturday, 21 February 2009, 08:12 GMT
Damn didnt even bother to check the package :/
Comment by yvonney (yvonney) - Friday, 13 March 2009, 08:17 GMT
I believe the tdb symlink issue was recently fixed. Would this mean that fdm fdm 1.4-1 could be updated to 1.6.
Comment by Greg (dolby) - Saturday, 09 May 2009, 11:38 GMT
It needs another patch to compile with new gcc versions.
Comment by Greg (dolby) - Saturday, 09 May 2009, 11:39 GMT
Plus the mandir section from the above patch
Comment by Abhishek Dasgupta (abhidg) - Saturday, 09 May 2009, 14:06 GMT
updated fdm to 1.6 with the above patch.
x86_64 package needs to be built.
Comment by Greg (dolby) - Sunday, 10 May 2009, 20:46 GMT
Thanks Abhishek. Maybe you could close this and someone to rebuild x86_64 in the mailing list or something?
Comment by Abhishek Dasgupta (abhidg) - Monday, 11 May 2009, 03:47 GMT
I'll build the x86_64 package tomorrow when I get home;
after that I'll close this.

Loading...