Bug 5447 - sa-compile generates invalid code for Windows compiler
Summary: sa-compile generates invalid code for Windows compiler
Alias: None
Product: Spamassassin
Classification: Unclassified
Component: sa-compile (show other bugs)
Version: 3.2.0
Hardware: All Windows XP
: P5 normal
Target Milestone: Undefined
Assignee: SpamAssassin Developer Mailing List
Depends on:
Reported: 2007-05-04 13:25 UTC by Bret Miller
Modified: 2007-08-19 14:43 UTC (History)
0 users

Attachment Type Modified Status Actions Submitter/CLA Status
modified sa-compile text/plain None Bret Miller [NoCLA]

Note You need to log in before you can comment on or make changes to this bug.
Description Bret Miller 2007-05-04 13:25:25 UTC
Microsoft Visual Studio 2003 won't take external function prototypes as part of
the CODE: section of body0.xs. The prototypes need to go in the PREINIT:
section. This would be a fairly simple mod, assuming that other compilers don't
object. While I can't easily create a patch file to do it, I could modify
sa-compile and upload the modified version if it would be helpful.
Comment 1 Justin Mason 2007-05-04 13:27:53 UTC
yep, that would be useful -- thanks!  if you can port it to work on win32, I'd
be very happy.
Comment 2 Bret Miller 2007-05-04 13:30:07 UTC
Created attachment 3934 [details]
modified sa-compile
Comment 3 Justin Mason 2007-08-19 14:43:45 UTC
this is fixed in 3.2.3, right?  reopen otherwise.  cheers ;)