Re: mysql-server build errors
In the last episode (Aug 08), Beech Rintoul said: Anyone have a pointer to get this to build? cc -DMYSQL_SERVER -DDEFAULT_MYSQL_HOME=\/usr/local\ -fno-exceptions -fno-rtti -DMYSQLD_NET_RETRY_COUNT=100 -c mysqld.cc /usr/include/tcpd.h: In function `void* handle_connections_sockets(void*)': /usr/include/tcpd.h:137: too many arguments to function `void sock_host()' mysqld.cc:2428: at this point in file It's a bug in the tcpwrappers headers; they declare functions with no parameters, and gcc rightfully complains about using them in c++ code. Remove the --with-libwrap line from the port Makefile as a workaround. -- Dan Nelson [EMAIL PROTECTED] To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-current in the body of the message
Re: mysql-server build errors
Edit line 92 of sql/mysqld.cc: --#ifdef __linux__ ++ #ifdef __FreeBSD__ However that'll only get you past this set of errors. And then it gets tricky and has something to do with the new C++ compiler that I haven't quite wrapped my mind around yet. -Steve - Original Message - From: Beech Rintoul [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, August 08, 2002 2:01 PM Subject: mysql-server build errors Anyone have a pointer to get this to build? -DDEFAULT_MYSQL_HOME=\/usr/local\ -DDATADIR=\/var/db/mysql\ -DSHAREDIR=\/usr/local/share/mysql\ -DHAVE_CONFIG_H -I../bdb/build_unix -I../innobase/include -I./../include -I./../regex -I. -I../include -I.. -I.-DDBUG_OFF -O -pipe -mcpu=pentiumpro -felide-constructors -fno-rtti -fno-exceptions -fno-implicit-templates -fno-exceptions -fno-rtti -DMYSQLD_NET_RETRY_COUNT=100 -c mysqld.cc /usr/include/tcpd.h: In function `void* handle_connections_sockets(void*)': /usr/include/tcpd.h:137: too many arguments to function `void sock_host()' mysqld.cc:2428: at this point in file /usr/include/tcpd.h:75: too many arguments to function `int hosts_access()' mysqld.cc:2429: at this point in file /usr/include/tcpd.h:130: too many arguments to function `char* eval_client()' mysqld.cc:2437: at this point in file *** Error code 1 Beech -- --- Beech Rintoul - IT Manager - Instructor - [EMAIL PROTECTED] /\ ASCII Ribbon Campaign | Anchorage Gospel Rescue Mission \ / - NO HTML/RTF in e-mail | P.O. Box 230510 X - NO Word docs in e-mail | Anchorage, AK 99523-0510 / \ - To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-current in the body of the message To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-current in the body of the message
Re: mysql-server build errors
On Thursday 08 August 2002 11:50 am, Dan Nelson wrote: In the last episode (Aug 08), Beech Rintoul said: Anyone have a pointer to get this to build? cc -DMYSQL_SERVER -DDEFAULT_MYSQL_HOME=\/usr/local\ -fno-exceptions -fno-rtti -DMYSQLD_NET_RETRY_COUNT=100 -c mysqld.cc /usr/include/tcpd.h: In function `void* handle_connections_sockets(void*)': /usr/include/tcpd.h:137: too many arguments to function `void sock_host()' mysqld.cc:2428: at this point in file It's a bug in the tcpwrappers headers; they declare functions with no parameters, and gcc rightfully complains about using them in c++ code. Remove the --with-libwrap line from the port Makefile as a workaround. Thanks...That worked. Beech -- --- Beech Rintoul - IT Manager - Instructor - [EMAIL PROTECTED] /\ ASCII Ribbon Campaign | Anchorage Gospel Rescue Mission \ / - NO HTML/RTF in e-mail | P.O. Box 230510 X - NO Word docs in e-mail | Anchorage, AK 99523-0510 / \ - To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-current in the body of the message
Re: mysql-server build errors
On Thu, Aug 08, 2002 at 12:05:44PM -0800, Beech Rintoul wrote: On Thursday 08 August 2002 11:50 am, Dan Nelson wrote: In the last episode (Aug 08), Beech Rintoul said: Anyone have a pointer to get this to build? cc -DMYSQL_SERVER -DDEFAULT_MYSQL_HOME=\/usr/local\ -fno-exceptions -fno-rtti -DMYSQLD_NET_RETRY_COUNT=100 -c mysqld.cc /usr/include/tcpd.h: In function `void* handle_connections_sockets(void*)': /usr/include/tcpd.h:137: too many arguments to function `void sock_host()' mysqld.cc:2428: at this point in file It's a bug in the tcpwrappers headers; they declare functions with no parameters, and gcc rightfully complains about using them in c++ code. Remove the --with-libwrap line from the port Makefile as a workaround. Thanks...That worked. Worked=mysql actually compiled? Or it got past that section? Removing --with-libwrap certainly gets past that section but on my system it still spews a lot of errors during the final link: item.o(.gnu.linkonce.d._ZTV9Item_buff+0x8): undefined reference to `__cxa_pure_v irtual' item.o(.gnu.linkonce.d._ZTV17Item_result_field+0x28): undefined reference to `__ cxa_pure_virtual' item.o(.gnu.linkonce.d._ZTV17Item_result_field+0x2c): undefined reference to `__ cxa_pure_virtual' item.o(.gnu.linkonce.d._ZTV17Item_result_field+0x30): undefined reference to `__ cxa_pure_virtual' item.o(.gnu.linkonce.d._ZTV17Item_result_field+0x34): undefined reference to `__ cxa_pure_virtual' item.o(.gnu.linkonce.d._ZTV17Item_result_field+0x38): more undefined references to `__cxa_pure_virtual' follow item_sum.o: In function `Item_sum_count_distinct::~Item_sum_count_distinct()': item_sum.o(.text+0x19c7): undefined reference to `operator delete[](void*)' item_sum.o(.text+0x19dc): undefined reference to `operator delete(void*)' item_sum.o: In function `Item_sum_count_distinct::~Item_sum_count_distinct()': item_sum.o(.text+0x1aa7): undefined reference to `operator delete[](void*)' item_sum.o(.text+0x1abc): undefined reference to `operator delete(void*)' item_sum.o: In function `Item_sum_count_distinct::~Item_sum_count_distinct()': item_sum.o(.text+0x1b87): undefined reference to `operator delete[](void*)' [list goes on for a while] This is with -CURRENT from today (8/8). -Steve To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-current in the body of the message
Re: mysql-server build errors
On Thursday 08 August 2002 12:05 pm, Beech Rintoul wrote: On Thursday 08 August 2002 11:50 am, Dan Nelson wrote: In the last episode (Aug 08), Beech Rintoul said: Anyone have a pointer to get this to build? cc -DMYSQL_SERVER -DDEFAULT_MYSQL_HOME=\/usr/local\ -fno-exceptions -fno-rtti -DMYSQLD_NET_RETRY_COUNT=100 -c mysqld.cc /usr/include/tcpd.h: In function `void* handle_connections_sockets(void*)': /usr/include/tcpd.h:137: too many arguments to function `void sock_host()' mysqld.cc:2428: at this point in file It's a bug in the tcpwrappers headers; they declare functions with no parameters, and gcc rightfully complains about using them in c++ code. Remove the --with-libwrap line from the port Makefile as a workaround. Thanks...That worked. I spoke too soon :-( Now it errors at: sql_analyse.o: In function `proc_analyse_init(THD*, st_order*, select_result*, ListItem)': sql_analyse.o(.text+0x1f): undefined reference to `operator new(unsigned)' sql_analyse.o(.gnu.linkonce.d._ZTV10field_info+0x10): undefined reference to `__cxa_pure_virtual' sql_analyse.o(.gnu.linkonce.d._ZTV10field_info+0x14): undefined reference to `__cxa_pure_virtual' sql_analyse.o(.gnu.linkonce.d._ZTV10field_info+0x18): undefined reference to `__cxa_pure_virtual' sql_analyse.o(.gnu.linkonce.d._ZTV10field_info+0x1c): undefined reference to `__cxa_pure_virtual' sql_analyse.o(.gnu.linkonce.d._ZTV10field_info+0x20): undefined reference to `__cxa_pure_virtual' sql_analyse.o(.gnu.linkonce.d._ZTV10field_info+0x24): more undefined references to `__cxa_pure_virtual' followsql_analyse.o: In function `analyse::~analyse()': sql_analyse.o(.gnu.linkonce.t._ZN7analyseD0Ev+0x56): undefined reference to `operator delete(void*)' collect2: ld returned 1 exit status *** Error code 1 Beech -- --- Beech Rintoul - IT Manager - Instructor - [EMAIL PROTECTED] /\ ASCII Ribbon Campaign | Anchorage Gospel Rescue Mission \ / - NO HTML/RTF in e-mail | P.O. Box 230510 X - NO Word docs in e-mail | Anchorage, AK 99523-0510 / \ - To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-current in the body of the message
Re: mysql-server build errors
In the last episode (Aug 08), Beech Rintoul said: On Thursday 08 August 2002 12:05 pm, Beech Rintoul wrote: I spoke too soon :-( Now it errors at: sql_analyse.o: In function `proc_analyse_init(THD*, st_order*, select_result*, ListItem)': sql_analyse.o(.text+0x1f): undefined reference to `operator new(unsigned)' sql_analyse.o(.gnu.linkonce.d._ZTV10field_info+0x10): undefined reference to `__cxa_pure_virtual' Ok, that's a bug in the port Makefile :) Remove line 67 ( CXX=${CC} ). That tells mysql to compile and link as though the sources were C, not C++. I'm amazed it ever built with that flag. -- Dan Nelson [EMAIL PROTECTED] To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-current in the body of the message
Re: mysql-server build errors
On Thursday 08 August 2002 02:06 pm, Dan Nelson wrote: In the last episode (Aug 08), Beech Rintoul said: On Thursday 08 August 2002 12:05 pm, Beech Rintoul wrote: I spoke too soon :-( Now it errors at: sql_analyse.o: In function `proc_analyse_init(THD*, st_order*, select_result*, ListItem)': sql_analyse.o(.text+0x1f): undefined reference to `operator new(unsigned)' sql_analyse.o(.gnu.linkonce.d._ZTV10field_info+0x10): undefined reference to `__cxa_pure_virtual' Ok, that's a bug in the port Makefile :) Remove line 67 ( CXX=${CC} ). That tells mysql to compile and link as though the sources were C, not C++. I'm amazed it ever built with that flag. OK - That finally built and installed...thanks for your help. Someone might want to commit those changes. Beech -- --- Beech Rintoul - IT Manager - Instructor - [EMAIL PROTECTED] /\ ASCII Ribbon Campaign | Anchorage Gospel Rescue Mission \ / - NO HTML/RTF in e-mail | P.O. Box 230510 X - NO Word docs in e-mail | Anchorage, AK 99523-0510 / \ - To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-current in the body of the message