Click to See Complete Forum and Search --> : undefined reference to `rfc822_parse_msg'


Anon
09-25-2000, 07:42 PM
My setup:
Red Hat Linux 6.2
Apache 1.3.12
Courier IMAP 1.0
PHP 4.0.2

I am trying to compile Apache with php (statically) and imap support. I get the error messages below. Have anybody seen something like this or similar. I have put mail.h linkage.h and rfc822.h within my path. Your help is appreciated.

Thanks

Mario

modules/php4/libphp4.a(php_imap.o): In function `php_if_imap_headerinfo':
/usr/local/php/ext/imap/php_imap.c:1641: undefined reference to `rfc822_parse_msg'
modules/php4/libphp4.a(php_imap.o): In function `php_if_imap_rfc822_parse_headers':
/usr/local/php/ext/imap/php_imap.c:1703: undefined reference to `rfc822_parse_msg'
modules/php4/libphp4.a(php_imap.o): In function `php_if_imap_rfc822_write_address':
/usr/local/php/ext/imap/php_imap.c:2137: undefined reference to `rfc822_write_address'
modules/php4/libphp4.a(php_imap.o): In function `php_if_imap_fetch_overview':
/usr/local/php/ext/imap/php_imap.c:2979: undefined reference to `rfc822_write_address'
modules/php4/libphp4.a(php_imap.o): In function `_php_imap_parse_address':
/usr/local/php/ext/imap/php_imap.c:3627: undefined reference to `rfc822_write_address'
collect2: ld returned 1 exit status

Anon
09-26-2000, 12:14 PM
Well, I found the problem. I was using the rfc822.h from the imap server. Even though I had the correct file from the client files. It was still finding the server rfc822.h. So moral of the story is to make sure when you compile that the right header is used.