typedef ice (clamav build failure on snow leopard buildbot)

Daniel J. Luke dluke at geeklair.net
Thu Sep 19 14:23:44 PDT 2013


https://build.macports.org/builders/buildports-snowleopard-x86_64/builds/20785/steps/compile/logs/stdio

clamav has a header that does:

typedef unsigned char Byte;

and includes a header (/opt/local/include/zconf.h) which also does the same thing. This makes the compiler unhappy.

I'm not sure why, but I didn't see this problem on my 10.8 box (maybe clang is more forgiving here?) It looks like zconf.h has Byte in a #if !defined(__MACTYPES__), so I can probably patch clamav to define that before including zconf.h ... but ick.

Anyone else have some idea on how to deal with this and/or knows why I only got an error from the snow leopard buildbot? [I'm running a build on my 10.5 machine right now for comparison].
--
Daniel J. Luke                                                                   
+========================================================+                        
| *---------------- dluke at geeklair.net ----------------* |                          
| *-------------- http://www.geeklair.net -------------* |                          
+========================================================+                        
|   Opinions expressed are mine and do not necessarily   |                          
|          reflect the opinions of my employer.          |                          
+========================================================+





More information about the macports-dev mailing list