gary@stripped wrote:
>
> Note bug report says CC=gcc, but setenv says CC=cc
> and CXX=gcc, but setenv CXX CC !
>
> configure error follows
>
> >Description:
> vr3 371# tar xvf mysql-3.22.25.tar
> vr3 372# ln -s mysql-3.22.25 mysql
> vr3 373# cd mysql
> vr3 374# setenv CC cc
> vr3 375# setenv CXX CC
> vr3 376# ./configure
>
> >> snip snip
>
> checking whether time.h and sys/time.h may both be included... no
> checking whether struct tm is in sys/time.h or time.h... sys/time.h
> checking size of char... 0
> configure: error: No size for char type.
> A likely cause for this could be that there isn't any
> static libraries installed. You can verify this by checking if you have libm.a
> in /lib, /usr/lib or some other standard place. If this is the problem,
> install the static libraries and try again. If this isn't the problem,
> examine config.log for possible errors. If you want to report this, use
> 'scripts/mysqlbug' and include at least the last 20 rows from config.log!
>
> vr3 377# ls -la /usr/lib/libm.a
> -r--r--r-- 1 root sys 226148 Jul 20 18:09 /usr/lib/libm.a
>
> vr3 378# tail -50 config.log
> configure:5045: checking size of char
> configure:5064: CC -o conftest -O -DDBUG_OFF conftest.c 1>&5
> cc-1213 CC: ERROR File = /usr/include/stdio.h, Line = 43
> The declaration contains a duplicate specifier.
>
> typedef unsigned int size_t;
> ^
>
> cc-1349 CC: WARNING File = /usr/include/stdio.h, Line = 43
> The indicated declaration requires a typedef name.
>
> typedef unsigned int size_t;
> ^
>
> cc-1084 CC: ERROR File = /usr/include/stdio.h, Line = 82
> The indicated declaration has an invalid combination of type specifiers.
>
> typedef __int64_t off_t; /* byte offset type */
> ^
>
> cc-1020 CC: ERROR File = configure, Line = 5058
> The identifier "exit" is undefined.
>
> if (!f) exit(1);
> ^
>
> cc-1020 CC: ERROR File = configure, Line = 5060
> The identifier "exit" is undefined.
>
> exit(0);
> ^
>
> 4 errors detected in the compilation of "conftest.c".
> configure: failed program was:
> #line 5053 "configure"
> #include "confdefs.h"
> #include <stdio.h>
> main()
> {
> FILE *f=fopen("conftestval", "w");
> if (!f) exit(1);
> fprintf(f, "%d\n", sizeof(char));
> exit(0);
> }
>
>
> >How-To-Repeat:
>
> >Fix:
>
>
> >Submitter-Id: <submitter ID>
> >Originator:
> >Organization:
>
> Gary Quinn, VR Centre Technical Manager
> University of Teesside SG Network Admin
> Borough Road, Middlesbrough Go Player
> Cleveland, TS1 3BA mailto:Gary@stripped
> +44 (0)1642 384303 fax 384310 http://vr.tees.ac.uk
> >
> >MySQL support: [none | licence | email support | extended email support ]
> >Synopsis:mysql configure error
> >Severitiy: critical
> >Priority: medium
> >Category: mysql
> >Class: sw-bug
> >Release: mysql-3.22.25 (Source distribution)
>
> >Environment:
>
> System: IRIX64 vr3 6.5 04151556 IP28
>
> Some paths: /bin/perl /bin/make /usr/sbin/gcc /bin/cc
> GCC: Reading specs from /usr/gnu/lib/gcc-lib/mips-sgi-irix6-o32/2.8.1/specs
> gcc version 2.8.1
> Compilation info: CC='gcc' CFLAGS='' CXX='gcc' CXXFLAGS='' LDFLAGS=''
> Configure command: ./configure --with-unix-socket-path=/var/tmp/mysql.sock
> --with-low-memory --with-mit-threads=yes
> Perl: This is perl, version 5.004_04 built for irix-n32
>
If this is really gcc that you are compiling it with, you must have a
really strange installation - re-install gcc. If this is not gcc, make
sure you have gcc installed.
Before you do anything, try this:
rm config.cache
CC=gcc CXX=g++ ./configure
And see if this will fix it.
--
Sasha Pachev
http://www.sashanet.com/ (home)
http://www.direct1.com/ (work)