7 messages in net.sourceforge.lists.courier-maildrop[maildropl] Problems using rfc822 and...
FromSent OnAttachments
Dave HartburnFeb 26, 2007 5:16 am 
Sam VarshavchikFeb 26, 2007 3:15 pm 
Dave HartburnFeb 27, 2007 2:04 am 
Sam VarshavchikFeb 27, 2007 4:06 am 
Dave HartburnFeb 27, 2007 6:04 am 
Sam VarshavchikFeb 27, 2007 3:19 pm 
Dave HartburnFeb 28, 2007 2:28 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:[maildropl] Problems using rfc822 and rfc2045 librariesActions...
From:Dave Hartburn (dave@samndave.org.uk)
Date:Feb 26, 2007 5:16:22 am
List:net.sourceforge.lists.courier-maildrop

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