Hello

I'm Gunter and I tried to compile the mysql Database on Solaris 9 for
Ultra Sparc arcitecture.
I use the precompiled gcc 3.2 compiler form www.sunfreeware.com.
This Compiler is linked to use the as and ld fom the Solaris operating
system.
Also I use the autoconf and the other gnu tools from this site.
Becaus the precompiled version of mysql uses a version of the
libstdc++.so.3.0.0
and on my system there is the libstdc++.so.5.0.0 version installed, I
can not use the precompiled version.

When I tried to compile the source distribution I got severel diferent
errormessages in dependency
for what I configured.

I know that error reports shuold be made by msqlbug and sended directly,
but the SUN I compiled it is a
stand alone mashine without an smtp configured.
So I copied and pasted the poutput of mysqlbug to an e-mail programm on
an other machine and send it directly, but
the mail returned as undeliverabe.

The result is, that I subscribe to this mailing list.

I used the minimum configure parameters --prefix=/usr/local/mysql
It is also reproduceable with:

./configure --prefix=/usr/local/mysql --enable-thread-safe-client
--enable-local-infile --disable-shared

The error mesage I got:

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

g++ -DMYSQL_SERVER
-DDEFAULT_MYSQL_HOME="\"/usr/local/mysql\""
-DDATADIR="\"/usr/local/mysql/var\""
-DSHAREDIR="\"/usr/local/mysql/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 sql_lex.cc


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 8, 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


Also I used some other configurations and got some linker errors.

If I use CC=gcc CXX=gcc ./configure --enable-thread-safe-client
--enable-local-infile --disable-shared

There will be a link error with the option  Wl, --defsym which is
interpreted by the linker as -d efsym
with the result that teh compilation fails with the error message:


gcc -O3 -DDBUG_OFF -fno-implicit-templates -fno-exceptions -fno-rtti
-DUSE_MYSYS_NEW -DHAVE_RWLOCK_T -o mysql mysql.o readline.o sql_string.o
completion_hash.o ../readline/libreadline.a -lcurses
../libmysql/.libs/libmysqlclient.a -lz -lcrypt -lgen -lsocket -lnsl -lm
-Wl,--defsym -Wl,__cxa_pure_virtual=0 -lz -lcrypt -lgen -lsocket -lnsl
-lm
/usr/ccs/bin/ld: illegal option -- -
ld: fatal: option -d has illegal argument `efsym'
usage: ld [-6:abc:d:e:f:h:il:mo:p:rstu:z:B:CD:F:GI:L:M:N:P:Q:R:S:VY:?]
file(s)


Is there a save, working  configuration for Solaris 9 on Ultra platform
using the gcc3.2 ?

Thank you for reading

Gunter


---------------------------------------------------------------------
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 <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to