[c5c522c] | 1 | $Id: osx.txt,v 1.1 2005/03/11 21:16:03 jonz Exp $ |
---|
| 2 | |
---|
| 3 | MAC OSX NOTES |
---|
| 4 | |
---|
| 5 | DSPAM builds well on OSX, with a few minor caveats, as described below. |
---|
| 6 | |
---|
| 7 | Autogen |
---|
| 8 | If you're building from CVS, you'll need a few tools in order to perform an |
---|
| 9 | autogen. The latest versions of autoconf, automake, and libtool will need to |
---|
| 10 | be installed first. This can be done quite easily using an OSX package tool. |
---|
| 11 | Visit http://www.darwinports.com or http://fink.sf.net for more information. |
---|
| 12 | Once you've installed these latest tools, you'll need to run autogen-glibtool.sh |
---|
| 13 | to generate a new configure script . Be sure that the path to these new binaries |
---|
| 14 | comes first in your path. This is usually /opt/local/bin (darwinports) or |
---|
| 15 | /sw/local/bin (fink). |
---|
| 16 | |
---|
| 17 | Library Patches |
---|
| 18 | OSX complains about libraries containing "common symbols". In order to build |
---|
| 19 | DSPAM with certain backends, it will be necessary to reassemble the library. |
---|
| 20 | The example below shows how to do this with the MySQL client library. If you're |
---|
| 21 | using a different backend, you may need to tailor this to your particular |
---|
| 22 | problem. |
---|
| 23 | |
---|
| 24 | % cd /usr/local/mysql/lib |
---|
| 25 | % mv libmysqlclient.a libmysqlclient.a.original |
---|
| 26 | % mkdir /tmp/mysql |
---|
| 27 | % cd /tmp/mysql |
---|
| 28 | % ar x /usr/local/mysql/lib/libmysqlclient.a.original |
---|
| 29 | % ld -r -d my_error.o |
---|
| 30 | % mv a.out my_error.o |
---|
| 31 | % libtool -o /usr/local/mysql/lib/libmysqlclient.a *.o |
---|
| 32 | |
---|
| 33 | ... ignore any warnings about "no symbols" |
---|
| 34 | |
---|
| 35 | Once you've configured and compiled DSPAM on OSX, see one of the other README |
---|
| 36 | files for more information about integrating it with your favorite MTA. |
---|
| 37 | |
---|