linker prepending underscore to each symbol

Bradley Giesbrecht brad at pixilla.com
Mon Apr 12 09:41:37 PDT 2010


Begin forwarded message:

> From: Johannes Berg
>
>> cc  -fPIC -shared -Wall -Wextra -DPLUGINNAME=antispam - 
>> DHAVE_CONFIG_H -
>> I/opt/local/include/dovecot/ -I/opt/local/include/dovecot/src/ -I/ 
>> opt/
>> local/include/dovecot/src/lib/ -I/opt/local/include/dovecot/src/lib-
>> storage/ -I/opt/local/include/dovecot/src/lib-mail/ -I/opt/local/
>> include/dovecot/src/lib-imap/ -I/opt/local/include/dovecot/src/lib-
>> dict/ -I/opt/local/include/dovecot/src/lib-index/ -I/opt/local/ 
>> include/
>> dovecot/src/imap/ signature.o antispam-plugin.o antispam-storage.o
>> dspam-exec.o -o lib90_antispam_plugin.so
>> Undefined symbols:
>>   "_mailbox_get_name", referenced from:
>>       _mailbox_patternmatch in antispam-plugin.o
>>       _mailbox_is_spam in antispam-plugin.o
>>       _mailbox_is_trash in antispam-plugin.o
>>       _mailbox_is_unsure in antispam-plugin.o
>
> Looks like your linker is prepending _ to each symbol, which probably
> don't exist since dovecot itself exports w/o the underscore ... I have
> no idea why it's doing that though.
>
> johannes

Has anyone run into anything like this?

Working on a port for dovecot-antispam plugin 1.3.

http://johannes.sipsolutions.net/download/dovecot-antispam/

There is no configure with this source, edit .config and build (make)  
if this is useful.


// Brad
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-dev/attachments/20100412/2ea86326/attachment.html>


More information about the macports-dev mailing list