sortmail won't build: libgdm-dev does not contain gdbm-ndbm.h

Bug #1349095 reported by LukeKendall
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
sortmail (Ubuntu)
New
Undecided
Unassigned

Bug Description

I fetched the latest sortmail source from oneiric:
https://launchpad.net/ubuntu/+source/sortmail/1:2.4-1ubuntu1
1eceebf76c5f9a2f237b809649380fc534c2a32f sortmail_2.4.orig.tar.gz
950478be4125eae7f914adc670528d4428bc5a1c sortmail_2.4-1ubuntu1.diff.gz

and tried to build it.
(I applied the patch)

It won't build, complaining that it needs gdbm-ndbm.h
make gives:
cc -O -DLINUX -I/usr/include/gdbm -c -o sortmail.o sortmail.c
sortmail.c:76:23: fatal error: gdbm-ndbm.h: No such file or directory
 #include <gdbm-ndbm.h>

The patch replaced an include of gdbm/ndbm.h like so:
 -#include <gdbm/ndbm.h>
+#include <gdbm-ndbm.h>

apt-file wrongly reports that libgdm-dev has it:
$ apt-file search gdbm-ndbm.h
libgdbm-dev: /usr/include/gdbm-ndbm.h

It doesn't.

There exists a build of sortmail 2.4-1 for ubuntu trusty, as I can install it and run it (albeit with an old bug), so where is the source for the ubuntu build.

When I looked here, I couldn't find one for the x86 for trusty, though the binary package exists:
https://launchpad.net/ubuntu/+source/sortmail/1:2.4-1ubuntu1

I'm trying to re-fix a problem that I reported (with a fix) here:
http://sourceforge.net/p/sortmail/bugs/3/

1) $ lsb_release -rd
Description: Ubuntu 14.04 LTS
Release: 14.04
2) The problem is building the latest version of the source.
$ apt-cache policy sortmail
sortmail:
  Installed: 1:2.4-1ubuntu1
  Candidate: 1:2.4-1ubuntu1
  Version table:
 *** 1:2.4-1ubuntu1 0
        500 http://au.archive.ubuntu.com/ubuntu/ trusty/universe amd64 Packages
        100 /var/lib/dpkg/status
3) I expected to be able to find the corresponding source code and build it.
4) The build failed.

ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: sortmail 1:2.4-1ubuntu1
ProcVersionSignature: Ubuntu 3.13.0-5.20-generic 3.13.0
Uname: Linux 3.13.0-5-generic x86_64
ApportVersion: 2.14.1-0ubuntu3.2
Architecture: amd64
CurrentDesktop: Unity
Date: Sun Jul 27 22:25:32 2014
InstallationDate: Installed on 2014-01-24 (184 days ago)
InstallationMedia: Ubuntu 14.04 LTS "Trusty Tahr" - Alpha amd64 (20140123)
SourcePackage: sortmail
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
LukeKendall (luke-zeta) wrote :
Revision history for this message
Edward Falk (ed.falk) wrote :

I am the author of Sortmail. I swear by the old gods and the new that dbm is the most unstable library in Unix. I've had to refactor code and Makefile to accommodate changes to that damn library more than everything else put together. Integrating ssl was easier than keeping up with dbm changes.

Anyway, I've just pushed a new Makefile to SourceForge. I don't know who's packaging Sortmail for Debian (I only just found out today that Sortmail is *in* Debian), but they should pick up the latest version.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.