Subject: Re: pkg/31483
To: None <tron@netbsd.org, gnats-admin@netbsd.org, pkgsrc-bugs@netbsd.org>
From: Matthias Scheler <tron@NetBSD.org>
List: pkgsrc-bugs
Date: 10/06/2005 10:59:02
The following reply was made to PR pkg/31483; it has been noted by GNATS.

From: Matthias Scheler <tron@NetBSD.org>
To: RUMI Szabolcs <rumi@rtfm.hu>
Cc: NetBSD GNATS <gnats-bugs@netbsd.org>
Subject: Re: pkg/31483
Date: Thu, 6 Oct 2005 11:58:55 +0100

 --pWyiEgJYm5f9v55/
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline
 
 On Thu, Oct 06, 2005 at 10:15:23AM +0100, Matthias Scheler wrote:
 > On Thu, Oct 06, 2005 at 09:55:57AM +0200, RUMI Szabolcs wrote:
 > > checking for int16_t... yes
 > 
 > So it has found "int16_t". The question is why the build fails
 > nevertheless.
 
 I think I found the problem. Various of the source files don't include
 "sys/types.h" and assume instead that it will be pulled in by another
 header file (e.g. "stdio.h") which is of course bogus.
 
 Please try the attached patch for "pkgsrc/audio/libaudiofile/Makefile".
 
 	Kind regards.
 
 -- 
 Matthias Scheler                                  http://scheler.de/~matthias/
 
 --pWyiEgJYm5f9v55/
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: attachment; filename="audiofile.patch"
 
 Index: Makefile
 ===================================================================
 RCS file: /cvsroot/pkgsrc/audio/libaudiofile/Makefile,v
 retrieving revision 1.39
 diff -u -r1.39 Makefile
 --- Makefile	11 Apr 2005 21:44:53 -0000	1.39
 +++ Makefile	6 Oct 2005 10:56:47 -0000
 @@ -20,6 +20,9 @@
  
  DOCDIR=			${PREFIX}/share/doc/libaudiofile
  
 +post-configure:
 +	${ECHO} "#include <sys/types.h>" >> ${WRKSRC}/config.h
 +
  post-install:
  	${INSTALL_DATA_DIR} ${DOCDIR}
  	cd ${WRKSRC}/docs; ${INSTALL_DATA} af* sf* ${DOCDIR}
 
 --pWyiEgJYm5f9v55/--