Subject: 1.6.2 compile mysql-4.1.7 failed
To: None <tech-pkg@NetBSD.org>
From: Water NB <netbsd78@126.com>
List: tech-pkg
Date: 12/29/2004 22:55:15
My netbsd is 1.6.2 and when I try to update mysql-4.1.7, it report error
as below:

Making all in libmysql_r
gmake[2]: Entering directory
`/usr/pkgsrc/databases/mysql4-client/work/mysql-4.1
.7/libmysql_r'
/bin/sh ../libtool --preserve-dup-deps --mode=compile cc
-DDEFAULT_CHARSET_HOME=
"\"/usr/pkg\"" -DDATADIR="\"/var/mysql\""
-DSHAREDIR="\"/usr/pkg/share/mysql\""
-DDONT_USE_RAID -DMYSQL_CLIENT  -I. -I. -I.. -I../include    -Dunix
-I/usr/inclu
de  -O3 -DDBUG_OFF -O2 -DUSE_OLD_FUNCTIONS -I/usr/include   -Dunix -c -o
my_pthr
ead.lo `test -f 'my_pthread.c' || echo './'`my_pthread.c
 cc -DDEFAULT_CHARSET_HOME=\"/usr/pkg\" -DDATADIR=\"/var/mysql\"
 -DSHAREDIR=\"/u
 sr/pkg/share/mysql\" -DDONT_USE_RAID -DMYSQL_CLIENT -I. -I..
 -I../include -Dunix
  -O3 -DDBUG_OFF -O2 -DUSE_OLD_FUNCTIONS -c my_pthread.c  -fPIC -DPIC -o
  .libs/my
  _pthread.o
  my_pthread.c: In function `my_pthread_setprio':
  my_pthread.c:37: storage size of `tmp_sched_param' isn't known
  my_pthread.c:40: `SCHED_OTHER' undeclared (first use in this function)
  my_pthread.c:40: (Each undeclared identifier is reported only once
  my_pthread.c:40: for each function it appears in.)
  my_pthread.c: In function `my_pthread_getprio':
  my_pthread.c:49: storage size of `tmp_sched_param' isn't known
  my_pthread.c: In function `my_pthread_attr_setprio':
  my_pthread.c:66: storage size of `tmp_sched_param' isn't known
  gmake[2]: *** [my_pthread.lo] Error 1
  gmake[2]: Leaving directory
  `/usr/pkgsrc/databases/mysql4-client/work/mysql-4.1.
  7/libmysql_r'
  gmake[1]: *** [all-recursive] Error 1
  gmake[1]: Leaving directory
  `/usr/pkgsrc/databases/mysql4-client/work/mysql-4.1.
  7'
  gmake: *** [all] Error 2
  *** Error code 2

  Stop.
  make: stopped in /usr/pkgsrc/databases/mysql4-client
  *** Error code 1

  Stop.
  make: stopped in /usr/pkgsrc/databases/mysql4-client
  *** Error code 1

  Stop.
  make: stopped in /usr/pkgsrc/databases/mysql4-client
  *** Error code 1

  Stop.


I compared and found :
macro SCHED_OTHER, it is defined in NetBSD-2.0, not in NetBSD-1.6.2