Subject: pkg/10344: timidity-0.2i build problem
To: None <gnats-bugs@gnats.netbsd.org>
From: None <collver@softhome.net>
List: netbsd-bugs
Date: 06/12/2000 07:08:17
>Number: 10344
>Category: pkg
>Synopsis: timidity-0.2i build problem and fix
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Jun 12 07:09:00 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator: Ben Collver
>Release: 1.4.2
>Organization:
Siskiyou
>Environment:
System: NetBSD tortuga 1.4.2 NetBSD 1.4.2 (TORTUGA) #0: Sat Jun 10 16:26:13 PDT 2000 root@tortuga:/usr/src/sys/arch/i386/compile/TORTUGA i386
>Description:
The build of timidity-0.2i from 6/10/00 pkgsrc fails because the
patched config.h includes /usr/include/machine/endian.h but not
/usr/include/machine/types.h. Here is the relative portion of
the build output:
cc -O2 -Wall -O3 -fomit-frame-pointer -funroll-loops -ffast-math -DDEFAULT_PATH=\"/usr/pkg/lib/timidity\" -DTIMID_VERSION=\"0.2i\" -DAU_SUN -DIA_NCURSES -DTCLTK -DWISH=\"wish8.0\" -DTKPROGPATH=\"/usr/pkg/lib/timidity/tkmidity.tcl\" -I/usr/pkg/include -c controls.c
In file included from config.h:190,
from controls.c:24:
/usr/include/machine/endian.h:97: syntax error before `in_addr_t'
/usr/include/machine/endian.h:97: warning: data definition has no type or storage class
/usr/include/machine/endian.h:98: syntax error before `in_port_t'
/usr/include/machine/endian.h:98: warning: data definition has no type or storage class
/usr/include/machine/endian.h:101: syntax error before `htonl'
/usr/include/machine/endian.h:101: warning: parameter names (without types) in function declaration
/usr/include/machine/endian.h:101: warning: data definition has no type or storage class
/usr/include/machine/endian.h:102: syntax error before `htons'
/usr/include/machine/endian.h:102: warning: parameter names (without types) in function declaration
/usr/include/machine/endian.h:102: warning: data definition has no type or storage class
/usr/include/machine/endian.h:103: syntax error before `ntohl'
/usr/include/machine/endian.h:103: warning: parameter names (without types) in function declaration
/usr/include/machine/endian.h:103: warning: data definition has no type or storage class
/usr/include/machine/endian.h:104: syntax error before `ntohs'
/usr/include/machine/endian.h:104: warning: parameter names (without types) in function declaration
/usr/include/machine/endian.h:104: warning: data definition has no type or storage class
In file included from controls.c:24:
config.h:227: syntax error before `uint32'
config.h:227: warning: type defaults to `int' in declaration of `uint32'
config.h:227: warning: data definition has no type or storage class
config.h:228: syntax error before `int32'
config.h:228: warning: type defaults to `int' in declaration of `int32'
config.h:228: warning: data definition has no type or storage class
config.h:229: syntax error before `uint16'
config.h:229: warning: type defaults to `int' in declaration of `uint16'
config.h:229: warning: data definition has no type or storage class
config.h:230: syntax error before `int16'
config.h:230: warning: type defaults to `int' in declaration of `int16'
config.h:230: warning: data definition has no type or storage class
config.h:231: syntax error before `uint8'
config.h:231: warning: type defaults to `int' in declaration of `uint8'
config.h:231: warning: data definition has no type or storage class
config.h:232: syntax error before `int8'
config.h:232: warning: type defaults to `int' in declaration of `int8'
config.h:232: warning: data definition has no type or storage class
config.h:292: syntax error before `sample_t'
config.h:292: warning: type defaults to `int' in declaration of `sample_t'
config.h:292: warning: data definition has no type or storage class
config.h:293: syntax error before `final_volume_t'
config.h:293: warning: type defaults to `int' in declaration of `final_volume_t'
config.h:293: warning: data definition has no type or storage class
In file included from controls.c:25:
controls.h:67: syntax error before `*'
*** Error code 1
Stop.
*** Error code 1
Stop.
*** Error code 1
Stop.
*** Error code 1
Stop.
>How-To-Repeat:
>Fix:
--- config.h.orig Sun Jun 11 22:53:51 2000
+++ config.h Sun Jun 11 22:53:24 2000
@@ -187,6 +187,7 @@
/* Byte order, defined in <machine/endian.h> for FreeBSD and DEC OSF/1 */
#if defined(DEC) || defined(__NetBSD__)
+#include <machine/types.h>
#include <machine/endian.h>
#endif
>Release-Note:
>Audit-Trail:
>Unformatted: