Subject: pkg/10882: Mysql-server-3.22.32 / mit-pthreads does not support netbsd 1.5
To: None <gnats-bugs@gnats.netbsd.org>
From: None <kivinen@ssh.fi>
List: netbsd-bugs
Date: 08/22/2000 17:53:13
>Number:         10882
>Category:       pkg
>Synopsis:       Mysql-server-3.22.32 does not compile, failing in mit-pthreads
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Aug 22 17:54:00 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator:     Tero Kivinen
>Release:        NetBSD 1.5 Alpha 2
>Organization:
SSH Communications Security
>Environment:
System: NetBSD kaakeli.ssh.fi 1.5_ALPHA2 NetBSD 1.5_ALPHA2 (KAAKELI) #1: Sat Aug 19 09:08:46 EEST 2000 kivinen@kaakeli.ssh.fi:/usr/src/sys/arch/i386/compile/KAAKELI i386

>Description:

	Mysql-server-3.22.32 does not compile because mit-pthreads
	included in the package does not understand netbsd version
	1.5. 

>How-To-Repeat:

	cd pkgsrc/databases/mysql-server; make

>Fix:

	Change netbsd1.4 to netbsd1.[45] in
	mysql-3.22.32/mit-pthreads/config/configure.in and rerun
	autoconf in that directory. After that the package compiles
	better, but still it fails to link with error:

c++ -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -O3 -DDBUG_OFF -fno-implicit-templates -Wl,-R/usr/pkg/lib -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/pkg/lib -o mysqld item.o item_sum.o item_buff.o item_func.o item_cmpfunc.o item_strfunc.o item_timefunc.o thr_malloc.o field.o key.o sql_class.o sql_list.o net_serv.o net_pkg.o lock.o my_lock.o sql_string.o sql_map.o mysqld.o password.o hash_filo.o hostname.o sql_lex.o convert.o sql_parse.o sql_yacc.o sql_base.o dfunc.o sql_select.o sql_insert.o sql_update.o sql_delete.o procedure.o item_uniq.o sql_test.o log.o init.o derror.o sql_acl.o unireg.o time.o opt_range.o opt_sum.o records.o filesort.o handler.o sql_db.o crebas.o sql_table.o sql_crypt.o sql_load.o mf_iocache.o field_conv.o sql_show.o sql_udf.o ../isam/libnisam.a ../merge/libmerge.a ../heap/libheap.a ../mysys/libmysys.a ../dbug/libdbug.a ../regex/libregex.a ../strings/libmystrings.a ../mit-pthreads/obj/libpthread.a -lm -lz -lcrypt
/usr/lib/libstdc++.so(.text+0x363f4): multiple definition of `_etext'
/usr/lib/libstdc++.so(.data+0x6134): multiple definition of `_edata'
/usr/lib/libstdc++.so(.bss+0xfffff71c): multiple definition of `_end'
../mit-pthreads/obj/libpthread.a(strerror.o): In function `strerror':
strerror.o(.text+0x17): warning: reference to compatibility sys_errlist[]; include <errno.h> for correct reference
strerror.o(.text+0xe): warning: reference to compatibility sys_nerr; include <errno.h> for correct reference
collect2: ld returned 1 exit status
>Release-Note:
>Audit-Trail:
>Unformatted: