some one who compiled mysql on Solaris 9 on a Sparc platform using gcc 3.2 ?
am 27.09.2002 15:19:31 von Gunter Geis
Hello
I tryed to compile mysql 3.23.52 with gcc 3.2 on Solaris 9 on a Sparc
paltform.
I got the following 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
Any body there who knows why it compiles using gcc 2.95.3 ?
I downloaded both compiler packages as precompiled versions from
www.sunfreeware.com
Thanks
Gunter
>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
------------------------------------------------------------ ---------
Before posting, please check:
http://www.mysql.com/manual.php (the manual)
http://lists.mysql.com/ (the list archive)
To request this thread, e-mail bugs-thread12622@lists.mysql.com
To unsubscribe, e-mail
Re: some one who compiled mysql on Solaris 9 on a Sparc platform using gcc 3.2 ?
am 27.09.2002 19:58:10 von Melvyn Sopacua
Hi,
At 15:19 27-9-2002, Gunter Geis wrote:
>Hello
>I tryed to compile mysql 3.23.52 with gcc 3.2 on Solaris 9 on a Sparc
>paltform.
>I got the following 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
>
>
>
>Any body there who knows why it compiles using gcc 2.95.3 ?
You gave the awnser yourself.
gcc3 has various optimisation bugs on various platforms. Better stick
with 2.95 untill you absolutely have to use gcc3.
See here for more hints:
http://www.google.com/search?q=gcc3+%2B%22-O3%22
Change your optimization to -O0 and you should be fine.
>I downloaded both compiler packages as precompiled versions from
>www.sunfreeware.com
>
>Thanks
>
>Gunter
>
>
> >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
>
>
>
>
>
>
>
>----------------------------------------------------------- ----------
>Before posting, please check:
> http://www.mysql.com/manual.php (the manual)
> http://lists.mysql.com/ (the list archive)
>
>To request this thread, e-mail bugs-thread12622@lists.mysql.com
>To unsubscribe, e-mail
Best regards,
Melvyn Sopacua
WebMaster IDG.nl
_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
If it applies, where it applies - this email is a personal
contribution and does not reflect the views of my employer
IDG.nl.
\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\
------------------------------------------------------------ ---------
Before posting, please check:
http://www.mysql.com/manual.php (the manual)
http://lists.mysql.com/ (the list archive)
To request this thread, e-mail bugs-thread12624@lists.mysql.com
To unsubscribe, e-mail
some one who compiled mysql on Solaris 9 on a Sparc platform using gcc 3.2 ?
am 01.10.2002 08:12:55 von Michael Widenius
Hi!
>>>>> "Gunter" == Gunter Geis writes:
Gunter> Hello
Gunter> I tryed to compile mysql 3.23.52 with gcc 3.2 on Solaris 9 on a Sparc
Gunter> paltform.
Gunter> I got the following error message:
Gunter> g++ -DMYSQL_SERVER
Gunter> -DDEFAULT_MYSQL_HOME="\"/usr/local\""
Gunter> -DDATADIR="\"/usr/local/var\""
Gunter> -DSHAREDIR="\"/u
Gunter> sr/local/share/mysql\"" -DHAVE_CONFIG_H
Gunter> -I./../include
Gunter> -I./../regex -I. -I../include -I..
Gunter> -I. -O3
Gunter> -DDBUG_OFF -fno-implicit-templates -fno-exceptions -fno-rtti
Gunter> -DHAVE_RWLOCK_T
Gunter> -c mysqld.cc
Gunter> mysqld.cc: In function `void* handle_connections_sockets(void*)':
Gunter> mysqld.cc:2410: invalid conversion from `size_socket*' to `socklen_t*'
Gunter> mysqld.cc:2476: invalid conversion from `size_socket*' to `socklen_t*'
This means that the code in configure that tries to deduce what
argument accept() uses fails with gcc 3.2. This is probably a bug in
configure but can also be a bug in the include files that you got with
gcc 3.2
We will try to fix this in the near future but until then you have
better to use gcc 2.95.3 on Solaris (or patch config.h with the
correct type for SOCKET_SIZE (should be the type used for the last
argument to accept).
Regards,
Monty
------------------------------------------------------------ ---------
Before posting, please check:
http://www.mysql.com/manual.php (the manual)
http://lists.mysql.com/ (the list archive)
To request this thread, e-mail bugs-thread12628@lists.mysql.com
To unsubscribe, e-mail