>Description:

        I am using the recommended ./configure options as specified by:
        http://www.mysql.com/doc/S/o/Solaris.html.  I am unsure how to
        specifiy the GNU ld - the output from ./configure shows that I am
        using the Solaris ld.  Perhaps that is the problem?  I run GNU make 3.79 
        and GNU m4 1.4, GNU Autoconf 2.13, Automake 1.4.  ./configure
        knows I am using the other GNU tools bison and flex.
        All attempts to compile MySQL 3.23.39 using GCC 2.95.2 or 2.95.3 fail
        with this error:

        make[3]: Entering directory `/usr/local/src/mysql-3.23.39/sql'
gcc -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 -O3 -felide-constructors -fno-exceptions -fno-rtti  
-fno-implicit-templates -fno-exceptions -fno-rtti -DHAVE_CURSES_H 
-I/usr/local/src/mysql-3.23.39/include -DHAVE_RWLOCK_T -c sql_lex.cc
sql_lex.cc: In function `void lex_init()':
sql_lex.cc:85: `symbols' undeclared (first use this function)
sql_lex.cc:85: (Each undeclared identifier is reported only once
sql_lex.cc:85: for each function it appears in.)
sql_lex.cc:87: `sql_functions' undeclared (first use this function)
sql_lex.cc: In function `int find_keyword(LEX *, unsigned int, bool)':
sql_lex.cc:168: implicit declaration of function `int get_hash_symbol(...)'
sql_lex.cc:168: initialization to `SYMBOL *' from `int' lacks a cast
make[3]: *** [sql_lex.o] Error 1

        Platform specs:
        [esm@pritchel /usr/local/src/mysql-3.23.39]$ uname -a
SunOS pritchel 5.7 Generic_106541-08 sun4u sparc SUNW,Ultra-5_10
[esm@pritchel /usr/local/src/mysql-3.23.39]$ which gcc
/usr/local/bin/gcc
[esm@pritchel /usr/local/src/mysql-3.23.39]$ ldd /usr/local/bin/gcc
        libc.so.1 =>     /usr/lib/libc.so.1
        libdl.so.1 =>    /usr/lib/libdl.so.1
        /usr/platform/SUNW,Ultra-5_10/lib/libc_psr.so.1
[esm@pritchel /usr/local/src/mysql-3.23.39]$ gcc -v
Reading specs from /usr/local/lib/gcc-lib/sparc-sun-solaris2.7/2.95.3/specs
gcc version 2.95.3 20010315 (release)
[esm@pritchel /usr/local/src/mysql-3.23.39]$ pkginfo |grep -v SUNW
application GNUautoc       autoconf
application GNUbash        bash
application SMCautom       automake
application SMCbison       bison
application SMCflex        flex
application SMCgcc         gcc
application SMCgzip        gzip
application SMCtar         tar
application SMCtop         top
[esm@pritchel /usr/local/src/mysql-3.23.39]$ env
PWD=/usr/local/src/mysql-3.23.39
TZ=US/Eastern
HOSTNAME=pritchel
LD_LIBRARY_PATH=/usr/local/lib:/usr/lib:/usr/share/lib
MANPATH=/usr/local/man:/usr/local/ssl/man:/usr/bin/man:/usr/dt/share/man:/usr/dt/man:/usr/share/man:/usr/man
PS1=[\u@\h \w]\$ 
USER=esm
MACHTYPE=sparc-sun-solaris2.7
MAIL=/var/mail//esm
OLDPWD=/usr/local/src
LOGNAME=esm
SHLVL=1
SHELL=/bin/sh
HOSTTYPE=sparc
OSTYPE=solaris2.7
HOME=/home/esm
TERM=vt100
PATH=/usr/sbin:/sbin:/usr/local/bin:/usr/ccs/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/sbin:/usr/ccs/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin
SSH_TTY=/dev/pts/14
_=/usr/bin/env


>How-To-Repeat:
        make distclean ; CC=gcc CFLAGS="-O3" \
        CXX=gcc CXXFLAGS="-O3 -felide-constructors -fno-exceptions -fno-rtti" \
        ./configure --prefix=/usr/local/mysql --with-low-memory --enable-assembler
>Fix:
        

>Submitter-Id:  <submitter ID>
>Originator:    Elliot Metsger
>Organization:
 
>MySQL support: [none | licence | email support | extended email support ]
>Synopsis:      Compile failure gcc 2.95.2 and 2.95.3 on sql_lex.cc: In function `void 
>lex_init()':
>Severity:      serious
>Priority:      medium
>Category:      mysql
>Class:         sw-bug
>Release:       mysql-3.23.39 (Source distribution)

>Environment:
        
System: SunOS pritchel 5.7 Generic_106541-08 sun4u sparc SUNW,Ultra-5_10
Architecture: sun4

Some paths:  /usr/local/bin/perl /usr/local/bin/make /usr/local/bin/gcc
GCC: Reading specs from /usr/local/lib/gcc-lib/sparc-sun-solaris2.7/2.95.3/specs
gcc version 2.95.3 20010315 (release)
Compilation info: CC='gcc'  CFLAGS=''  CXX='gcc'  CXXFLAGS=''  LDFLAGS=''
LIBC: 
-rw-r--r--   1 bin      bin      1690732 Oct 14  1999 /lib/libc.a
lrwxrwxrwx   1 root     root          11 Apr 19 10:35 /lib/libc.so -> ./libc.so.1
-rwxr-xr-x   1 bin      bin      1109336 Oct 14  1999 /lib/libc.so.1
-rw-r--r--   1 bin      bin      1690732 Oct 14  1999 /usr/lib/libc.a
lrwxrwxrwx   1 root     root          11 Apr 19 10:35 /usr/lib/libc.so -> ./libc.so.1
-rwxr-xr-x   1 bin      bin      1109336 Oct 14  1999 /usr/lib/libc.so.1
Configure command: ./configure  --with-unix-socket-path=/var/tmp/mysql.sock 
--with-low-memory --with-mit-threads=yes --without-perl --enable-thread-safe-client 
--with-berkeley-db --with-innodb


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