Could you adding -fno-strict-aliasing to your CFLAGS and CXXFLAGS?
If that works, then Monty & co. should look at:
http://egcs.cygnus.com/news/alias.html
Tim
At 17:18, 19990813, jgauthier@stripped wrote:
>>Description:
> mysql fails compile with gcc 2.95, but not egcs 1.1.2
> it seems to me, that gcc 2.95 C++ syntax (or something)
> is more strict, and now aborts instead of continuing on.
> the problem occurs with unireg.cc:
> c++ -DMYSQL_SERVER
> -DDEFAULT_MYSQL_HOME="\"/opt/mysql\"" -DDATADIR="\"/opt/mysql/var\""
> -DSHAREDIR="\"/opt/mysql/share/mysql\""
> -DHAVE_CONFIG_H -I./../include -I./../regex -I. -I../include
> -I.. -I. -fno-implicit-templates -O3 -DDBUG_OFF -D_FILE_OFFSET_BITS=64 -c
> unireg.cc
> unireg.cc: In function int rea_create_table(char *, HA_CREATE_INFO *,
> List<create_field> &, unsigned int, KEY *)':
> unireg.cc:104: passing unsigned char *' as argument 1 of strlen(const char
> *)' changes signedness
> (apologies for the formatting)
>
>
>>How-To-Repeat:
> compile with gcc 2.95
>>Fix:
> ?
>
>>Submitter-Id: <submitter ID>
>>Originator:
>>Organization:
>
>>MySQL support: none
>>Synopsis: mysql fails compile with gcc-2.95
>>Severity: serious
>>Priority: medium
>>Category: mysql
>>Class: sw-bug
>>Release: mysql-3.23.1-alpha (Source distribution) (also with .2)
>>Server: /opt/mysql/bin/mysqladmin Ver 7.11 Distrib 3.23.1-alpha, for pc-linux-gnu
> on i586
>TCX Datakonsult AB, by Monty
>
>Server version 3.23.1-alpha
>Protocol version 10
>Connection Localhost via UNIX socket
>UNIX socket /tmp/mysql.sock
>Uptime: 11 days 3 hours 45 min 29 sec
>
>Threads: 1 Questions: 244 Slow queries: 0 Opens: 9 Flush tables: 1 Open tables:
> 5
>>Environment:
>
>System: Linux intranet.cablestogo.com 2.2.10 #2 Tue Jun 29 07:59:53 EDT 1999 i586
> unknown
>Architecture: i586
>
>Some paths: /usr/bin/perl /usr/bin/make /usr/bin/gmake /usr/bin/gcc /usr/bin/cc
>GCC: Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/specs
>gcc version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)
>Compilation info: CC='gcc' CFLAGS='' CXX='c++' CXXFLAGS='' LDFLAGS=''
>Configure command: ./configure --prefix=/opt/mysql
>Perl: This is perl, version 5.005_03 built for i386-linux
>
>^ the above isn't correct, as i'm not compiling on the same host
>I subscribe from.
>
>
>---------------------------------------------------------------------
>Please check "http://www.mysql.com/Manual_chapter/manual_toc.html" before
>posting. To request this thread, e-mail mysql-thread10176@stripped
>
>To unsubscribe, send a message to the address shown in the
>List-Unsubscribe header of this message. If you cannot see it,
>e-mail mysql-unsubscribe@stripped instead.
>