2 messages in com.mysql.lists.bugsis a problem of gcc3.2 or the librari...
FromSent OnAttachments
Gunter Geis24 Sep 2002 04:06 
Gunter Geis24 Sep 2002 06:13 
Subject:is a problem of gcc3.2 or the libraries delived with gcc 3.2 Re:invalid conversion from `size_socket*' to `socklen_t*'
From:Gunter Geis (ge@iap.uni-frankfurt.de)
Date:09/24/2002 06:13:06 AM
List:com.mysql.lists.bugs

Hello

Here Gunter again. Not realy answering my question but I found a workaround.

I just deinstalled the gcc 3.2 and reinstalled the 2.95.3 gcc.

All compiled fine. make test runs fine and make install runs also fine.

The database runs now and I can connect to it.

I don't know why? Is there someone who knows why gcc 3.2 dose not work ?

Gunter

Hello mysql Team

I apologise for sending you an error report in this form but the Ultra SUN on which I tried to compile the mysql database dose not have a configured smtp client nor dose sendmail run on it. So I copied the output of "mysqlbug" to this e-mail and hoping to deliver you all the neccessary informations.

Sincerly

Gunter Geis

Description:

I just configured and make mysql 3.23.54 after a while during compilation the compilation stops with an error message:

g++ -DMYSQL_SERVER -DDEFAULT_MYSQL_HOME="\"/usr/local\"" -DDATADIR="\"/usr/local/var\"" -DSHAREDIR="\"/u sr/local/share/mysql\"" -DHAVE_CONFIG_H -I./../include -I./../regex -I. -I../include -I.. -I. -O3 -DDBUG_OFF -fno-implicit-templates -fno-exceptions -fno-rtti -DHAVE_RWLOCK_T -c mysqld.cc mysqld.cc: In function `void* handle_connections_sockets(void*)': mysqld.cc:2410: invalid conversion from `size_socket*' to `socklen_t*' mysqld.cc:2476: invalid conversion from `size_socket*' to `socklen_t*' make[3]: *** [mysqld.o] Error 1 make[3]: Leaving directory `/opt/mysql-3.23.52/sql' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/opt/mysql-3.23.52/sql' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/opt/mysql-3.23.52' make: *** [all-recursive-am] Error 2

A similar error message was created when I configured with some options(the options recommended for Solaris), but on an other file (sql_lex.cc also located in sql dir) Here in line 85 the "symbols" and in line 87 "sql_functions" was undefined. After configuring whithout any options the file sql_lex.cc compiled but the first mentioned error in mysqld.cc occoured.

I also see that in the default compiler flags there is "-mcpu=pentiumpro" but the SUN Ultra 5 uses a Ultra II Processor.

How-To-Repeat:

Just unpack the distribution and call configure whithout any options. Than call make.

Fix:

Submitter-Id: Dont have one Originator: Super-User Organization: institute of applied physiks Frankfurt germany MySQL support: none Synopsis: dose not compile Severity: critical Priority: medium Category: mysql Class: sw-bug Release: mysql-3.23.52 (Source distribution)

Environment: Sun Ultra 5, Solaris 9, Sun Untra 5,libc as delivered with

the OS also the newest librarys which are delivered with the gcc 3.2 from

www.sunfreeware.com libstdc++.so.5.0.0 libg2c.so.0.0.0 libgcj.so.3.0.0

System: SunOS cnna 5.9 Generic sun4u sparc SUNW,Ultra-5_10 Architecture: sun4

Some paths: /usr/local/bin/perl /usr/local/bin/make /usr/local/bin/gcc /usr/ucb/cc GCC: Reading specs from /usr/local/lib/gcc-lib/sparc-sun-solaris2.9/3.2/specs Configured with: ../configure --with-as=/usr/ccs/bin/as --with-ld=/usr/ccs/bin/ld --disable-nls Thread model: posix gcc version 3.2 Compilation info: CC='gcc' CFLAGS='-Wimplicit -Wreturn-type -Wswitch -Wtrigraphs -Wcomment -W -Wchar-subscripts -Wformat -Wparentheses -Wsign-compare -Wwrite-strings -Wunused -mcpu=pentiumpro -O3 -fno-omit-frame-pointer' CXX='gcc' CXXFLAGS='-Wimplicit -Wreturn-type -Wswitch -Wtrigraphs -Wcomment -W -Wchar-subscripts -Wformat -Wparentheses -Wsign-compare -Wwrite-strings -Woverloa ded-virtual -Wsign-promo -Wreorder -Wctor-dtor-privacy -Wnon-virtual-dtor -felide-constructors - fno-exceptions -fno-rtti -mcpu=pentiumpro -O3 -fno-omit-frame-pointer' LDFLAGS=''

LIBC: -rw-r--r-- 1 root bin 1828460 Apr 6 21:46 /lib/libc.a lrwxrwxrwx 1 root root 11 Aug 20 13:32 /lib/libc.so -> ./libc.so.1 -rwxr-xr-x 1 root bin 855484 Apr 6 21:46 /lib/libc.so.1 -rw-r--r-- 1 root bin 1828460 Apr 6 21:46 /usr/lib/libc.a lrwxrwxrwx 1 root root 11 Aug 20 13:32 /usr/lib/libc.so -> ./libc.so.1 -rwxr-xr-x 1 root bin 855484 Apr 6 21:46 /usr/lib/libc.so.1

Configure command: ./configure --prefix=/usr/local/mysql --enable-assembler --with-extra-charsets=complex --enable-thread-safe-client --with-innodb --with-berkeley-db --enable-thread-safe-client 'CFLAGS=-Wimplicit -Wreturn-type -Wswitch -Wtrigraphs -Wcomment -W -Wchar-subscripts -Wformat -Wparentheses -Wsign-compare -Wwrite-strings -Wunused -mcpu=pentiumpro -O3 -fno -omit-frame-pointer' 'CXXFLAGS=-Wimplicit -Wreturn-type -Wswitch -Wtrigraphs -Wcomment -W -Wchar -subscripts -Wformat -Wparentheses -Wsign-compare -Wwrite-strings -Woverloaded-virtual -Wsign-promo -Wreorder -Wctor-dtor-privacy -Wnon-virtual-dtor -felide-constructors -fno-exceptions -fno-rtti -mcpu=pentiumpro -O3 -fno-omit-frame-pointer' CXX=gcc

To request this thread, e-mail bugs@lists.mysql.com To unsubscribe, e-mail <bugs@lists.mysql.com>