linker prepending underscore to each symbol

Ryan Schmidt ryandesign at macports.org
Mon Apr 12 09:57:31 PDT 2010


On Apr 12, 2010, at 11:41, Bradley Giesbrecht wrote:

> 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.

In "Undefined symbols" messages, there is in my experience always an underscore before the symbol name. Therefore I don't think this is the cause of the problem you are experiencing, but rather the way in which you are alerted to the problem on Mac OS X.




More information about the macports-dev mailing list