Help I'm having trouble compiling imap together with SSL... when I configure and compile PHP it returns no errors.. but then when compile apache I get the following errors:

/usr/lib/libimap.so: undefined reference to `mm_expunged'
/usr/lib/libimap.so: undefined reference to `mm_diskerror'
/usr/lib/libimap.so: undefined reference to `mm_lsub'
/usr/lib/libimap.so: undefined reference to `mm_flags'
/usr/lib/libimap.so: undefined reference to `mm_fatal'
/usr/lib/libimap.so: undefined reference to `mm_nocritical'
/usr/lib/libimap.so: undefined reference to `mm_notify'
/usr/lib/libimap.so: undefined reference to `mm_searched'
/usr/lib/libimap.so: undefined reference to `mm_status'
/usr/lib/libimap.so: undefined reference to `mm_login'
/usr/lib/libimap.so: undefined reference to `mm_list'
/usr/lib/libimap.so: undefined reference to `mm_critical'
/usr/lib/libimap.so: undefined reference to `mm_exists'
/usr/lib/libimap.so: undefined reference to `mm_log'
/usr/lib/libimap.so: undefined reference to `mm_dlog'

anyone got any advice?

------------------