Hi,
I'm looking at using the maildrop libraries for an application I'm working
on, and have a few problems getting a basic test working. When I compile,
I get the following errors:
$ gcc -o mdtest -lrfc822 -lrfc2045 mdtest.c
/usr/lib/gcc/i386-redhat-linux/3.4.6/../../../librfc822.so: undefined
reference to `unicode_convert_fromchset'
/usr/lib/gcc/i386-redhat-linux/3.4.6/../../../librfc2045.so: undefined
reference to `libmail_str_pid_t'
/usr/lib/gcc/i386-redhat-linux/3.4.6/../../../librfc2045.so: undefined
reference to `libmail_str_time_t'
/usr/lib/gcc/i386-redhat-linux/3.4.6/../../../librfc822.so: undefined
reference to `unicode_ISO8859_1'
/usr/lib/gcc/i386-redhat-linux/3.4.6/../../../librfc822.so: undefined
reference to `unicode_xconvert'
/usr/lib/gcc/i386-redhat-linux/3.4.6/../../../librfc2045.so: undefined
reference to `libmail_str_size_t'
/usr/lib/gcc/i386-redhat-linux/3.4.6/../../../librfc2045.so: undefined
reference to `rfc2045_error'
/usr/lib/gcc/i386-redhat-linux/3.4.6/../../../librfc822.so: undefined
reference to `unicode_find'
collect2: ld returned 1 exit status
I downloaded maildrop.2.0.3 onto a CentOS 4.4 system (2.6.9-42.EL kernel),
unpacked and compiled with:
./configure --with-devel
make
make install-strip
make install-man
I later added a 'make install' for good measure.
The first problem I saw was including rfc2045.h:
/usr/local/include/rfc2045.h:12:57: ../rfc2045/rfc2045_config.h: No such
file or directory
I edited /usr/local/include/rfc2045.h to point to this file:
#include "/usr/local/src/maildrop-2.0.3/rfc2045/rfc2045_config.h"
/* VPATH build */
The source code is as follows:
#include <stdio.h>
#include <rfc822.h>
#include <rfc2047.h>
#include <rfc2045.h>
int main(int argc, char *argv) {
printf("Hello World\n");
}
I've checked for the symbols it can not find, and all appear to be in the
rfc2047 source. It appears as if rfc2047 has not been included in the
library.
Has anyone else had the same problem or know what could be causing this?
Dave