On Apr 23, 2004, at 8:30 AM, Boyd Lynn Gerber wrote:
I always download the lastest CVS with all patches for the tree of gcc
that I am using. The latest patches to all version of gcc are on the CVS
tree or branch for the version. These are often needed to get MySQL to
work.

Striking out with the 2.95branch, and not getting 3.40 to compile, I opted for 3.3branch.


Looks like the same error (and more):

Making all in share
UX:make: WARNING: No suffix list.
if gcc -pthread -DUNIXWARE_7 -DHAVE_BROKEN_RWLOCK -DMYSQL_SERVER -DDEFA
ULT_MYSQL_HOME="\"/usr/local/mysql\"" -DDATADIR="\"/usr/local/mysql/var\"" -DS
HAREDIR="\"/usr/local/mysql/share/mysql\"" -DHAVE_CONFIG_H -I. -I. -I.. -I../in
nobase/include -I./../include -I./../regex -I. -I../include -I. -I/usr/local/
include -O3 -DDBUG_OFF -I/usr/local/include -DNO_CPLUSPLUS_ALLOCA -fno-impl
icit-templates -fno-exceptions -fno-rtti -DUSE_MYSYS_NEW -DDEFINE_CXA_PURE_VIRTU
AL -MT sql_lex.o -MD -MP -MF ".deps/sql_lex.Tpo" \
-c -o sql_lex.o `test -f 'sql_lex.cc' || echo './'`sql_lex.cc; \
then mv -f ".deps/sql_lex.Tpo" ".deps/sql_lex.Po"; \
else rm -f ".deps/sql_lex.Tpo"; exit 1; \
fi
In file included from item.h:474,
from mysql_priv.h:311,
from sql_lex.cc:20:
item_sum.h:394: error: integer constant is too large for "long" type
In file included from mysql_priv.h:312,
from sql_lex.cc:20:
sql_class.h:169: error: non-local function `volatile pthread_mutex_t*
MYSQL_LOG::get_log_lock()' uses anonymous type
/usr/local/lib/gcc-lib/i686-unknown-sysv5UnixWare7.1.0/3.3.4/include/ sys/types.h
:680: error: `
typedef volatile struct <anonymous> pthread_mutex_t' does not refer to the
unqualified type, so it is not used for linkage
In file included from mysql_priv.h:312,
from sql_lex.cc:20:
sql_class.h:521: error: non-local function `const char*
THD::enter_cond(volatile pthread_cond_t*, volatile pthread_mutex_t*, const
char*)' uses anonymous type
/usr/local/lib/gcc-lib/i686-unknown-sysv5UnixWare7.1.0/3.3.4/include/ sys/types.h
:704: error: `
typedef volatile struct <anonymous> pthread_cond_t' does not refer to the
unqualified type, so it is not used for linkage
In file included from sql_class.h:625,
from mysql_priv.h:312,
from sql_lex.cc:20:
log_event.h:243: error: non-local function `static Log_event*
Log_event::read_log_event(IO_CACHE*, volatile pthread_mutex_t*, bool)' uses
anonymous type
/usr/local/lib/gcc-lib/i686-unknown-sysv5UnixWare7.1.0/3.3.4/include/ sys/types.h
:680: error: `
typedef volatile struct <anonymous> pthread_mutex_t' does not refer to the
unqualified type, so it is not used for linkage
log_event.h:245: error: non-local function `static int
Log_event::read_log_event(IO_CACHE*, String*, volatile pthread_mutex_t*)'
uses anonymous type
/usr/local/lib/gcc-lib/i686-unknown-sysv5UnixWare7.1.0/3.3.4/include/ sys/types.h
:680: error: `
typedef volatile struct <anonymous> pthread_mutex_t' does not refer to the
unqualified type, so it is not used for linkage
In file included from sql_lex.cc:20:
mysql_priv.h:536: error: non-local function `int mysqld_show(THD*, const char*,


show_var_st*, enum_var_type, volatile pthread_mutex_t*)' uses anonymous type
/usr/local/lib/gcc-lib/i686-unknown-sysv5UnixWare7.1.0/3.3.4/include/ sys/types.h
:680: error: `
typedef volatile struct <anonymous> pthread_mutex_t' does not refer to the
unqualified type, so it is not used for linkage
*** Error code 1 (bu21)





The OSTK version contains a few additional fixes to correct problems on
Open UNIX 8.0 and UnixWare 7.1.1 systems. These corrections include:
* a fix for 64 bit integer constant folding
* working UNIX profiling (-p)
* ability to optionally use the tracing thread library, libthreadT.so
* updated system header modification scripts for OU 8.0 and UDK
7.1.1b FS
* providing header modification at installation time - allowing same
package to be installed on different OS versions


  The compilers have been configured:
        *        to support 64 bit integer types
        *        to provide the C++ runtime as an archive and a shared object
        *        for thread safety
        *        the C and C++ runtime is configured for POSIX threads
        *        C++ source code is always compiled with _PTHREAD defined to allow
the Standard Template Library to be used safely by threaded programs.
        *        to generate Dwarf 2 debugging information.
        *        to use the GNU x86 assembler (/usr/gnu/bin/as).
        *        to use the UNIX linker (/usr/ccs/bin/ld)

Since this error is when ULONGLONG_MAX is being used, is this related
to the 64-bit integer stuff mentioned above? If so, does anyone have a
copy of the required patches? Will going to a later version of gcc
help, but not hurt anything else? :-) I hear talk about the "big
changes" between 2.95 and 3.x series, has it settled down finally to
the point that 3.x is preferred to use?

I use gcc-3.4.0 from CVS and it does work. Yes the above is part of the
problem. That is why I said you need all patches both OS and gcc.


Good Luck,

--
Boyd Gerber <[EMAIL PROTECTED]>
ZENEZ   1042 East Fort Union #135, Midvale Utah  84047

--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:    http://lists.mysql.com/[EMAIL PROTECTED]





-- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe: http://lists.mysql.com/[EMAIL PROTECTED]



Reply via email to