SA Bugzilla – Bug 5435
compiled rule library - referenced symbol not found
Last modified: 2007-05-04 01:07:37 UTC
On Solaris 8, SA v3.2.0-rc2, after running sa-compile and uncommenting the Rule2XSBody plugin, I got the following error: # spamassassin --lint ld.so.1: /usr/local/bin/spamassassin: fatal: relocation error: file /var/lib/spamassassin/compiled/3.002000/auto/Mail/SpamAssassin/CompiledRegexps/ body_0/body_0.so: symbol Mail_SpamAssassin_CompiledRegexps_body_0_scan17: referenced symbol not found Killed The only suspicious part of the sa-compile output was the following: Wide character in print at /usr/local/bin/sa-compile line 372, <$fh> line 6480. It doesn't seem to be a problem finding the dynamic libraries: # ldd /var/lib/spamassassin/compiled/3.002000/auto/Mail/ SpamAssassin/CompiledRegexps/body_0/body_0.so libc.so.1 => /usr/lib/libc.so.1 libdl.so.1 => /usr/lib/libdl.so.1 /usr/platform/SUNW,Ultra-5_10/lib/libc_psr.so.1
Created attachment 3921 [details] Output from sa-compile
could you post all the output from sa-compile?
ah, sorry, you did ;)
Created attachment 3922 [details] re2c segfaults on scanner17.re More information: re2c segfaults on scanner17.re, which causes scanner17.c to be empty, which would explain why the symbol is not found. Any ideas as to why it segfaults?
that sounds like a bug in re2c, I'm afraid. are you using the latest version?
I was running re2c v0.11.0 from sunfreeware. I replaced it with v0.11.3 built from source and now it works correctly (although it took 4-1/2 hours to compile). I guess you can close the bug...
ok, cool. if anyone else runs into it, hopefully they'll search the BZ and find this report.
Please see http://sourceforge.net/tracker/index.php?func=detail&aid=1708378&group_id=96864&atid=616200 As the developer writes, 0.11.3 could generate wrong code. This is fixed in 0.12.0 (now released), so I guess it's best to upgrade.