I'm trying to install ghostscript-eps 8.71-5 from source on a fresh install of 
fink 0.34.1 and a fresh install of mountain lion.  I am getting a conflict with 
the printf macro during the build process, as the following compile command 
results in 4 errors of the same nature:


gcc  -DHAVE_MKSTEMP -DHAVE_HYPOT   -DHAVE_FONTCONFIG -O2 
-I/sw/lib/fontconfig2/include -I/sw/include  -Wall -Wstrict-prototypes -Wundef 
-Wmissing-declarations -Wmissing-prototypes -Wwrite-strings 
-Wno-strict-aliasing -Wdeclaration-after-statement -fno-builtin -fno-common 
-DHAVE_STDINT_H -DGX_COLOR_INDEX_TYPE="unsigned long int" -I/sw/include 
-DUSE_LIBICONV_GNU -DUSE_LIBPAPER  -I./obj -I./base  -I/sw/include 
-DUSE_LIBICONV_GNU -DUSE_LIBPAPER -o ./obj/gdevcups.o -c cups/gdevcups.c
In file included from cups/gdevcups.c:74:
In file included from /usr/include/cups/raster.h:27:
In file included from /usr/include/cups/cups.h:34:
In file included from /usr/include/dispatch/dispatch.h:50:
/usr/include/dispatch/object.h:122:27: error: expected ')'
__attribute__((__format__(printf,2,3)))
                          ^
./base/gsio.h:47:24: note: expanded from macro 'printf'
#define printf Function._printf_.unavailable
                       ^

Not sure how, but fink decided to use the system cups headers:
$ fink list | grep -i cups
 i      cups-dev        1.0600-1        [virtual package representing CUPS 
headers]
        ghostscript-esp 8.71-5  Ghostscript with better CJK and cups support
        libgnomecups-dev        0.2.3-9 The GNOME cups library
        libgnomecups-shlibs     0.2.3-9 The GNOME cups library
 p      system-cups-dev         [virtual package]



Any ideas on how to stop ghostscript's printf conflicting with the system's 
cups headers?

Thank you!
-Donovan
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Fink-users mailing list
[email protected]
List archive:
http://news.gmane.org/gmane.os.macosx.fink.user
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-users

Reply via email to