Subject: pkg/6514: problems compiling mysql package with egcs
To: None <gnats-bugs@gnats.netbsd.org>
From: None <nigel@nelgin.nu>
List: netbsd-bugs
Date: 11/30/1998 16:47:00
>Number:         6514
>Category:       pkg
>Synopsis:       problems compiling mysql package with egcs
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    gnats-admin (GNATS administrator)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Nov 30 08:50:00 1998
>Last-Modified:
>Originator:     Nigel Reed
>Organization:
	
>Release:        NetBSD-current Nov 20 1998
>Environment:
	
System: NetBSD c33947-c 1.3I NetBSD 1.3I (NELGIN) #0: Mon Nov 30 08:10:44 CST 1998 nigel@c33947-c:/usr/src/sys/arch/i386/compile/NELGIN i386
built world from sup, then rebuilt world, and then rebuilt kernel.
c33947-c# gcc -v
Using builtin specs.
gcc version egcs-2.91.58 19981101 (egcs-1.1.1 pre-release)


>Description:
c++ -DMYSQL_SERVER -DDEFAULT_MYSQL_HOME="\"/usr/pkg\"" -DDATADIR="\"/var/mysql\"" -DSHAREDIR="\"/usr/pkg/share/mysql\"" -DHAVE_CONFIG_H -I../mit-pthreads/include -I./../include -I./../regex -I. -I../include -I.. -I.  -O -g -O2 -fno-implicit-templates -DDBUG_OFF -c mysqld.cc
In file included from mysqld.cc:40:
select.h:21: redefinition of `struct st_key_part'
select.h:24: previous definition here
select.h:24: previous declaration of `st_key_part::st_key_part(const struct st_key_part &)' with C++ linkage
select.h:24: conflicts with new declaration with C linkage
select.h:24: previous declaration of `struct st_key_part & st_key_part::operator =(const struct st_key_part &)' with C++ linkage
select.h:24: conflicts with new declaration with C linkage
select.h:26: redefinition of `class QUICK_RANGE'
select.h:39: previous definition here
select.h:33: previous declaration of `QUICK_RANGE::QUICK_RANGE(const char *, uint, const char *, uint, uint)' with C++ linkage
select.h:33: conflicts with new declaration with C linkage
select.h:39: previous declaration of `QUICK_RANGE::QUICK_RANGE(const struct QUICK_RANGE &)' with C++ linkage
select.h:39: conflicts with new declaration with C linkage
select.h:39: previous declaration of `struct QUICK_RANGE & QUICK_RANGE::operator =(const struct QUICK_RANGE &)' with C++ linkage
select.h:39: conflicts with new declaration with C linkage
select.h:41: redefinition of `class QUICK_SELECT'
select.h:57: previous definition here
select.h:52: previous declaration of `QUICK_SELECT::QUICK_SELECT(uint)' with C++ linkage
select.h:52: conflicts with new declaration with C linkage
aration of `struct QUICK_SELECT & QUICK_SELECT::operator =(const struct QUICK_SELECT &)' with C++ linkage
select.h:57: conflicts with new declaration with C linkage
select.h:60: redefinition of `class SQL_SELECT'
select.h:77: previous definition here
select.h:72: previous declaration of `SQL_SELECT::SQL_SELECT()' with C++ linkage
select.h:72: conflicts with new declaration with C linkage
select.h:73: previous declaration of `SQL_SELECT::~SQL_SELECT()' with C++ linkage
select.h:73: conflicts with new declaration with C linkage
select.h:74: previous declaration of `bool SQL_SELECT::check_quick()' with C++ linkage
select.h:74: conflicts with new declaration with C linkage
select.h:75: previous declaration of `bool SQL_SELECT::skipp_record()' with C++ linkage
select.h:75: conflicts with new declaration with C linkage
select.h:76: previous declaration of `int SQL_SELECT::test_quick_select(key_map, table_map, ulong)' with C++ linkage
select.h:76: conflicts with new declaration with C linkage
select.h:77: previous declaration of `SQL_SELECT::SQL_SELECT(const struct SQL_SELECT &)' with C++ linkage
select.h:77: conflicts with new declaration with C linkage
select.h:77: previous declaration of `struct SQL_SELECT & SQL_SELECT::operator =(const struct SQL_SELECT &)' with C++ linkage
select.h:77: conflicts with new declaration with C linkage
mysqld.cc: In function `void handle_connections()':
mysqld.cc:938: warning: implicit declaration of function `int select(...)'
gmake[2]: *** [mysqld.o] Error 1
gmake[2]: Leaving directory `/usr/pkgsrc/databases/mysql/work/mysql-3.21.33b/sql'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/usr/pkgsrc/databases/mysql/work/mysql-3.21.33b'
gmake: *** [all-recursive-am] Error 2
*** Error code 2

Stop.
*** Error code 1

Stop.
*** Error code 1

Stop.

>How-To-Repeat:
cd /usr/pkgsrc/databases/mysql
make
Additional note: I wasn't able to try previous send-pr due to vacation.
>Fix:
>Audit-Trail:
>Unformatted: