Subject: Re: pkgsrc FreeBSD 6.1-RELEASE/i386 bulk build results
To: None <pkgsrc-bulk@NetBSD.org>
From: Takahiro Kambe <taca@back-street.net>
List: pkgsrc-bulk
Date: 09/13/2006 13:14:26
In message <20060911171026.41D5213A7E1@danbala.tuwien.ac.at>
	on Mon, 11 Sep 2006 19:10:26 +0200 (CEST),
	Thomas Klausner <wiz@NetBSD.org> wrote:
> 142a134
> > databases/ruby-mysql               neumann@s-direktnet.de
> 
> mysql.c: In function `Init_mysql':
> mysql.c:2015: error: `ulong' undeclared (first use in this function)
> mysql.c:2015: error: (Each undeclared identifier is reported only once
> mysql.c:2015: error: for each function it appears in.)
> mysql.c:2015: error: syntax error before numeric constant
> mysql.c:2018: error: syntax error before numeric constant
It also happens on DragonFly BSD with mysql5-client.

- FreeBSD and DragonFly BSD dosen't have "ulong" in <sys/types.h>.
- ${PREFIX}/include/mysql/mysql.h uses "ulong" (as "unsigned long")
  but it dosen't define "ulong" itself.
- ${PREFIX}/include/mysql/my_global.h has handling of "ulong" depends
  on ${PREFIX}/include/mysql/my_config.h.
  (But it contains "include <my_config.h>", not <mysql/my_config.h>,
  adding -I${PREFIX}/include/mysql needs to compile.

Hmm, what is the right solution?

-- 
Takahiro Kambe <taca@back-street.net>