Subject: Re: 1.6.2 compile mysql-4.1.7 failed
To: Juan RP <juan@xtraeme.nopcode.org>
From: Water NB <netbsd78@126.com>
List: tech-pkg
Date: 12/30/2004 12:52:37
On Wed, Dec 29, 2004 at 04:21:35PM +0100, Juan RP wrote:
> On Wed, 29 Dec 2004 22:55:15 +0800
> Water NB <netbsd78@126.com> wrote:
> 
> > 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.
> 
> Make sure you have at least revision 1.21 of mysql4-client/Makefile.common,
> it should compile fine with an up to date pkgsrc.
> 

I download pkgsrc.tar.gz on Dec 29, 2004.
My Makefile.common is 1.27 0024/12/17.

Even when i change Makefile.common to revision 1.21, there is the same
error as 1.27.