[CLAM] CLAM under Mac OS X.3
Francois Thibault
francois.thibault at mail.mcgill.ca
Fri Nov 7 09:35:40 PST 2003
Hi all,
Using CLAM under redhat for a couple of months but now i'd like it to
work on OS X. It should be a lot easier since apparently GCC 3.3
(provided with panther) is much closer to linux gcc.
I cannot get xerces 1.7.0 to compile and their are obviously no
binaries of this for the new mac system. The previous post by Maarten
does not work anymore (see below), well other errors occur after
that...
> Okay, just a quick note about xerces-c-1.7.0 compilation on Mac OS X:
>
> You should set the XERCERCROOT env. variable to the directory of
> xerces-c-src1_7_0. In my case:
>
> $ setenv XERCESCROOT /Users/admin/src/xerces-c-src1_7_0
> (or export XERCESCROOT=/Users/admin/src/xerces-c-src1_7_0 in case you
> use
> bash)
>
> Now, go to $XERCESCROOT/src/xercesc and run
>
> $ ./runConfigure -p macosx
>
> Apply, the patch below (remove std from the call to snprint), and run
> make. For
> me this worked. I did not install the library in the system, but kept
> it next
> to CLAM, as described in my previous mail.
>
> Maarten
>
> ---
> xerces-c-src1_7_0.orig/src/xercesc/util/Platforms/MacOS/
> MacOSPlatformUtils.cpp Thu Mar 7 23:45:28 2002
> +++
> xerces-c-src1_7_0/src/xercesc/util/Platforms/MacOS/
> MacOSPlatformUtils.cpp Tue May 27 14:20:25 2003
> @@ -393,7 +393,7 @@
> reasonStr = "Unknown error source";
>
> char text[256];
> - std::snprintf(text, sizeof(text), "Xerces Panic Error: %s",
> reasonStr);
> + ::snprintf(text, sizeof(text), "Xerces Panic Error: %s",
> reasonStr);
>
> //
> // The default handling of panics is not very friendly.
Has anyone managed to compile xerces with gcc 3,3 in 10.3? Is it in the
plan for CLAM to support more recent versions of xerces (2.3.0) ?
I have included the details of the errors in a log file with this
message.
Any help regarding this much appreciated.
Francois
Francois Thibault
McGill University
francois.thibault at mail.mcgill.ca
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: errorlog.txt
URL: <http://lists.clam-project.org/pipermail/clam-users-clam-project.org/attachments/20031107/6b42829d/attachment-0004.txt>
-------------- next part --------------
Francois Thibault
Music Technology Student
McGill University
francois.thibault at mail.mcgill.ca
More information about the clam-users
mailing list