Subject: pkg/14538: skkserv fails to build on Darwin
To: None <gnats-bugs@gnats.netbsd.org>
From: None <Yuji@netbsd.org, Yamano@netbsd.org>
List: netbsd-bugs
Date: 11/10/2001 22:46:46
>Number:         14538
>Category:       pkg
>Synopsis:       skkserv fails to build on Darwin
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    pkg-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Sat Nov 10 22:48:00 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     yyamano@netbsd.org
>Release:        Darwin 1.4 with agc's bootstrap script
>Organization:
>Environment:
Darwin localhost 1.4 Darwin Kernel Version 1.4: Sun Sep  9 15:39:59 PDT 2001; root:xnu/xnu-201.obj~1/RELEASE_PPC  Power Macintosh powerpc                       
>Description:
skkserv fails to build on Darwin because of lacking malloc.h.

===> Building for skkserv-3.9.4nb1
for subdir in skkserv jisyo-tools; do  echo making all in $subdir;  (cd $subdir && bmake CC='cc -pipe' CFLAGS='-g' LDFLAGS='-L/usr/pkg/lib'  EMACS='emacs' JISYO='SKK-JISYO.L' JISYODIR='/usr/pkg/share/skk'  ELISPDIR='/usr/pkg/share/emacs/site-lisp' TEXI2DVI='texi2dvi' all) || exit 1;  done
making all in skkserv
making all in jisyo-tools
cc -pipe -I. -I.. -g -o skkdic-sort skkdic-sort.c
skkdic-sort.c:26: header file 'malloc.h' not found
cpp-precomp: warning: errors during smart preprocessing, retrying in basic mode
*** Error code 1

>How-To-Repeat:
On Darwin, setup pkgsrc by agc's bootstrap script and apply pkg/14536's
patch, and type:

% cd /pkgsrc/japanese/skkserv
% bmake
>Fix:
Here is the patch to fix the problem.

--- jisyo-tools/skkdic-sort.c.orig      Sun Nov 11 00:17:26 2001                
+++ jisyo-tools/skkdic-sort.c   Sun Nov 11 00:18:12 2001                        
@@ -22,7 +22,7 @@                                                               
  */                                                                            
                                                                                
 #include <stdio.h>                                                             
-#ifndef NO_MALLOC_H                                                            
+#ifdef HAVE_MALLOC_H                                                           
 #include <malloc.h>                                                            
 #endif                                                                         
>Release-Note:
>Audit-Trail:
>Unformatted: