List:General Discussion« Previous MessageNext Message »
From:fangchin Date:July 31 2000 5:39am
Subject:checking size of char... 0 configure: error: No size for char type.
View as plain text  
>Description:
	When attempting to build mysql-3.23.21-beta on 
        SunOS teapot 5.7 Generic_106541-11 sun4m sparc SUNW,SPARCstation-5,
        configure fails when doing the character size check:

        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!

>How-To-Repeat:
	The last twenty lines of config.log:
	configure:5756: checking for off_t
	configure:5789: checking for st_rdev in struct stat
	configure:5802: gcc -c -O6 -DDBUG_OFF -O6  -DHAVE_CURSES_H
-I/usr/local/src/pub/databases/mysql/mysql-3.23.21-beta/include -DHAVE_RWLOCK_T 
conftest.c 1>&5
	configure:5823: checking whether time.h and sys/time.h may both be included
	configure:5837: gcc -c -O6 -DDBUG_OFF -O6  -DHAVE_CURSES_H
-I/usr/local/src/pub/databases/mysql/mysql-3.23.21-beta/include -DHAVE_RWLOCK_T 
conftest.c 1>&5
	configure:5858: checking whether struct tm is in sys/time.h or time.h
	configure:5871: gcc -c -O6 -DDBUG_OFF -O6  -DHAVE_CURSES_H
-I/usr/local/src/pub/databases/mysql/mysql-3.23.21-beta/include -DHAVE_RWLOCK_T 
conftest.c 1>&5
	configure:5894: checking size of char
	configure:5913: gcc -o conftest -O6 -DDBUG_OFF -O6  -DHAVE_CURSES_H
-I/usr/local/src/pub/databases/mysql/mysql-3.23.21-beta/include -DHAVE_RWLOCK_T  
conftest.c -ldl -lnsl -lm  -lsocket  -lz -lcrypt -lgen  -lpthread -lthread 1>&5
	configure: failed program was:
	#line 5902 "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);
	}

>Fix:
	not sure yet.

>Submitter-Id:	<submitter ID>
>Originator:	
>Organization:
AZC, Inc. - AZC.COM
>MySQL support: license
>Synopsis:	configure fails checking size of char for Sun 4m Solaris 7
>Severity:	serious
>Priority:	medium
>Category:	mysql
>Class:		sw-bug
>Release:	mysql-3.23.21-beta (Source distribution)

>Environment:
System: SunOS teapot 5.7 Generic_106541-11 sun4m sparc SUNW,SPARCstation-5
Architecture: sun4m

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.7/2.95.2/specs
gcc version 2.95.2 19991024 (release)
Compilation info: CC='gcc'  CFLAGS='-O6'  CXX='gcc'  CXXFLAGS='-O6 -felide-constructors
-fno-exceptions -fno-rtti'  LDFLAGS=''
LIBC: 
-rw-r--r--   1 bin      bin      1693992 May 19 15:10 /lib/libc.a
lrwxrwxrwx   1 root     root          11 Aug  2  1999 /lib/libc.so -> ./libc.so.1
-rwxr-xr-x   1 bin      bin      1115532 May 19 15:10 /lib/libc.so.1
-rw-r--r--   1 bin      bin      1693992 May 19 15:10 /usr/lib/libc.a
lrwxrwxrwx   1 root     root          11 Aug  2  1999 /usr/lib/libc.so -> ./libc.so.1
-rwxr-xr-x   1 bin      bin      1115532 May 19 15:10 /usr/lib/libc.so.1
Configure command: ./configure --prefix=/usr/local --localstatedir=/var/mysql
--without-perl --with-low-memory --with-mysqld-ldflags=-all-static
Perl: This is perl, version 5.005_03 built for sun4-solaris
Thread
checking size of char... 0 configure: error: No size for char type.fangchin31 Jul
  • Re: checking size of char... 0 configure: error: No size for char type.sinisa31 Jul