pkgsrc-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
pkg/29205: converters/antiword build fails on MacOS X 10.[12].x
>Number: 29205
>Category: pkg
>Synopsis: converters/antiword build fails on MacOS X 10.[12].x
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Feb 02 23:03:01 +0000 2005
>Originator: John D. Baker
>Release: MacOS X 10.2.8
>Organization:
>Environment:
Darwin pm8500.technoskunk.fur 6.8 Darwin Kernel Version 6.8: Wed Sep 10
15:20:55 PDT 2003; root:xnu/xnu-344.49.obj~2/RELEASE_PPC Power Macintosh
powerpc
>Description:
building converters/antiword on MacOS X 10.[12].x fails as follows:
===> Building for antiword-0.36.1
gcc -pipe -O2 -DNDEBUG -no-cpp-precomp -c main_u.c
main_u.c: In function `main':
main_u.c:264: error: `LC_CTYPE' undeclared (first use in this function)
main_u.c:264: error: (Each undeclared identifier is reported only once
main_u.c:264: error: for each function it appears in.)
*** Error code 1
Stop.
bmake: stopped in
/Volumes/NetBSD/tmp/pkgsrc/textproc/antiword/work/antiword-0.36.1
*** Error code 1
Stop.
bmake: stopped in /usr/pkgsrc/textproc/antiword
>How-To-Repeat:
bootstrap pkgsrc on MacOS X 10.[12].x
cd .../pkgsrc/converters/antiword
bmake
>Fix:
Like pkg/28501, inclusion of <locale.h> is guarded by a conditional
macro in the affected file "main_u.c".
Ideally, the conditional should have the predefined target OS
identifier added (as was the case for __FreeBSD__ in pkg/28501:
#if defined(__STDC_ISO_10646__) || defined(__NetBSD__) || defined(__FreeBSD__)
#include <locale.h>
#endif /* __STDC_ISO_10646__ */
I have not yet been able to determine the correct predefined symbol
for MacOS X.
As a workaround, I edited the Makefile as follows:
--- work/antiword-0.36.1/Makefile.orig Wed Feb 2 15:55:59 2005
+++ work/antiword-0.36.1/Makefile Wed Feb 2 15:56:21 2005
@@ -18,3 +18,3 @@
-CFLAGS += -D$(DB)
+CFLAGS += -D$(DB) -D__NetBSD__
LDFLAGS =
Home |
Main Index |
Thread Index |
Old Index