Subject: print/pdflib build failure on MacOS X 10.3.4
To: None <tech-pkg@netbsd.org>
From: Mark E. Perkins <perkinsm@bway.net>
List: tech-pkg
Date: 06/14/2004 21:47:03
Greetings,
I'm trying to install graphics/gnuplot, which depends on print/pdflib. The 
build for pdflib fails for want of 'Files.h' (as shown below). The correct 
'Files.h' appears to be in 
/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/Headers
but is not recognized. If I manually link it into work/.buildlink/include, 
I just get more errors because of other missing header files.

Any help with this would be appreciated.

pkgsrc updated 13 June; MacOSX 10.3.4 with all current patches.

Thanks,
Mark

-----------
p_config.h:142:1: warning: "PDF_PLATFORM" redefined
<command line>:8:1: warning: this is the location of the previous definition
../libtool --silent --mode=compile gcc -c  -Dunix -no-cpp-precomp 
-I/Volumes/NetBSD/pkg/include -DHAVE_DLFCN_H=1  -O2 
-I/Volumes/NetBSD/pkg/include   -DPDF_PLATFORM=\""Mac OS X"\"    p_annots.c
In file included from p_intern.h:43,
                  from p_annots.c:38:
p_config.h:142:1: warning: "PDF_PLATFORM" redefined
<command line>:8:1: warning: this is the location of the previous definition
../libtool --silent --mode=compile gcc -c  -Dunix -no-cpp-precomp 
-I/Volumes/NetBSD/pkg/include -DHAVE_DLFCN_H=1  -O2 
-I/Volumes/NetBSD/pkg/include   -DPDF_PLATFORM=\""Mac OS X"\"    p_basic.c
In file included from p_intern.h:43,
                  from p_basic.c:42:
p_config.h:142:1: warning: "PDF_PLATFORM" redefined
<command line>:8:1: warning: this is the location of the previous definition
p_basic.c:61:19: Files.h: No such file or directory
p_basic.c: In function `pdf_close_file':
p_basic.c:772: error: `FCBPBRec' undeclared (first use in this function)
p_basic.c:772: error: (Each undeclared identifier is reported only once
p_basic.c:772: error: for each function it appears in.)
p_basic.c:772: error: parse error before "fcbInfo"
p_basic.c:773: error: `Str32' undeclared (first use in this function)
p_basic.c:775: error: `FInfo' undeclared (first use in this function)
p_basic.c:776: error: `FSSpec' undeclared (first use in this function)
p_basic.c:799: error: `fcbInfo' undeclared (first use in this function)
p_basic.c:800: error: structure has no member named `handle'
p_basic.c:801: error: `name' undeclared (first use in this function)
p_basic.c:804: error: `fSpec' undeclared (first use in this function)
p_basic.c:805: error: `noErr' undeclared (first use in this function)
p_basic.c:806: error: `fInfo' undeclared (first use in this function)
gnumake[1]: *** [p_basic.lo] Error 1
gnumake: *** [pdflib] Error 2
*** Error code 2

Stop.
bmake: stopped in /usr/pkgsrc/print/pdflib
*** Error code 1