Package: libsmdkim-dev
Version: 2.6.0.dfsg-1
Severity: normal

I've just tried compiling a very simple test program to use libsmdkim-dev,
and unfortunately it is not able to compile without access to include
files that are in the dkim-milter source code, but not packaged in Debian:

#include <sys/types.h>
#include <sys/stat.h>
#include <stdlib.h>
#include <fcntl.h>
#include <errno.h>
#include <stdio.h>
#include <string.h>
#include <sysexits.h>
#include <unistd.h>

#include <dkim.h>

int main(int argc,char **argv) {

        return 1;

}

cc -I/usr/include/libsmdkim  -c -o test.o test.c
In file included from test.c:18:
/usr/include/libsmdkim/dkim.h:641: error: expected declaration specifiers or 
'...' before 'bool'
/usr/include/libsmdkim/dkim.h:789: error: expected '=', ',', ';', 'asm' or 
'__attribute__' before 'dkim_sig_hdrsigned'
/usr/include/libsmdkim/dkim.h:1100: error: expected declaration specifiers or 
'...' before 'bool'


In order to make it compile, I had to do the following:

Add <sm/string.h> to the included headers, then pull in the directories in the
dkim-milter source code where sm/string.h and sm/os/sm_os_linux.h are located,
and symlink sm_os_linux.h to sm_os.h:

#include <sys/types.h>
#include <sys/stat.h>
#include <stdlib.h>
#include <fcntl.h>
#include <errno.h>
#include <stdio.h>
#include <string.h>
#include <sysexits.h>
#include <unistd.h>

#include <sm/string.h>

#include <dkim.h>

int main(int argc,char **argv) {

}

cc -I/usr/include/libsmdkim -I/var/tmp/dkim-milter-2.6.0.dfsg/include 
-I/var/tmp/dkim-milter-2.6.0.dfsg/include/sm/os   -c -o test.o test.c
cc   test.o   -o test


This leads me to suspect that libsmdkim-dev is not usable without these
header files being included in the Debian package. Are you able to include
them?

Thanks,

Paul

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)

Kernel: Linux 2.6.26-1-686 (SMP w/1 CPU core)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/bash

Versions of packages libsmdkim-dev depends on:
ii  libsmdkim2                  2.6.0.dfsg-1 DomainKeys Identified Mail (DKIM) 

libsmdkim-dev recommends no packages.

libsmdkim-dev suggests no packages.

-- no debconf information



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to