Subject: mail/pine build failure on MacOS X 10.2.8
To: None <tech-pkg@netbsd.org>
From: Mark E. Perkins <perkinsm@bway.net>
List: tech-pkg
Date: 05/18/2004 21:56:31
Greetings,
editors/pico now builds successfully on MacOS X 10.2.8 (thanks, Grant), but 
mail/pine dies as shown below. A bit of Googling uncovers the fact that 
various UTType functions are defined in a file named UTType.h, which is 
apparently available starting with Mac OS X 10.3.

Is there anything that can be done about this, or am I stuck w/o Pine until 
I can upgrade these machines to Panther?

Thanks,
Mark

------------
ln -s osdep/os-osx.c os.c
gcc -O2 -I/usr/include -I/Volumes/NetBSD/pkg/include  -L/usr/lib 
-L/Volumes/NetBSD/pkg/lib   -g -DDEBUG -DDEBUGJOURNAL  -DENABLE_LDAP 
-Dconst= -DSYSTYPE=\"OSX\" -I/Volumes/NetBSD/pkg/include/c-client 
-no-cpp-precomp -I/usr/include -I/Volumes/NetBSD/pkg/include -c os.c
os.c: In function `mime_get_os_mimetype_from_ext':
os.c:1262: error: `UTTypeCreatePreferredIdentifierForTag' undeclared (first 
use in this function)
os.c:1262: error: (Each undeclared identifier is reported only once
os.c:1262: error: for each function it appears in.)
os.c:1269: error: `UTTypeCreatePreferredIdentifierForTag' used prior to 
declaration
os.c:1269: error: `kUTTagClassFilenameExtension' undeclared (first use in 
this function)
os.c:1270: warning: assignment makes pointer from integer without a cast
os.c:1274: error: `kUTTagClassMIMEType' undeclared (first use in this function)
os.c:1274: warning: assignment makes pointer from integer without a cast
os.c: In function `mime_get_os_ext_from_mimetype':
os.c:1305: error: `UTTypeCreatePreferredIdentifierForTag' undeclared (first 
use in this function)
os.c:1311: error: `UTTypeCreatePreferredIdentifierForTag' used prior to 
declaration
os.c:1311: error: `kUTTagClassMIMEType' undeclared (first use in this function)
os.c:1312: warning: assignment makes pointer from integer without a cast
os.c:1316: error: `kUTTagClassFilenameExtension' undeclared (first use in 
this function)
os.c:1316: warning: assignment makes pointer from integer without a cast
*** Error code 1

Stop.
make: stopped in /Volumes/NetBSD/pkgsrc/mail/pine/work/pine4.60/pine
*** Error code 1

Stop.
bmake: stopped in /Volumes/NetBSD/pkgsrc/mail/pine
*** Error code 1

Stop.
bmake: stopped in /Volumes/NetBSD/pkgsrc/mail/pine