Description:
    I got a MySQL source distribution of 3.23.49 from www.mysql.com. Then I
installed it in the
following steps:
  (1)groupadd mysql
  (2)useradd -g mysql mysql
  (3)gunzip < mysql-3.23.49.tar.gz | tar -xvf -
  (4)cd mysql-3.23.49
  (5)./configure --prefix=/usr/local/mysql
     here, I got the "no size for char type" error! but I actually have
libm.a in "/usr/lib"

How-To-Repeat:
    <code/input/activities to reproduce the problem (multiple lines)>
Fix:
    <how to correct or work around the problem, if known (multiple lines)>

Submitter-Id: <submitter ID>
Originator: zhou jinghui
Organization: Tsinghua Univ. P.R.China
MySQL support: [none | licence | email support | extended email support ]
Synopsis: can't run configure because of "no size for char type"
Severity: critical
Priority: high
Category: mysql
Class:  <[ sw-bug | doc-bug | change-request | support ] (one line)>
Release: mysql-3.23.49a (Official MySQL RPM)
Server: /usr/bin/mysqladmin  Ver 8.23 Distrib 3.23.49a, for pc-linux-gnu on
i686
Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
This software comes with ABSOLUTELY NO WARRANTY. This is free software,
and you are welcome to modify and redistribute it under the GPL license

Server version  3.23.49a
Protocol version 10
Connection  Localhost via UNIX socket
UNIX socket  /var/lib/mysql/mysql.sock
Uptime:   1 hour 30 min 50 sec

Threads: 1  Questions: 4  Slow queries: 0  Opens: 6  Flush tables: 1  Open
tables: 0 Queries per second avg: 0.001
Environment: Pentium III/866, Red Hat 7.2, ...
System: Linux zhoujh 2.4.7-10 #1 Thu Sep 6 17:27:27 EDT 2001 i686 unknown
Architecture: i686

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/2.96/specs
gcc version 2.96 20000731 (Red Hat Linux 7.1 2.96-98)
Compilation info: CC='gcc'  CFLAGS='-O6 -fno-omit-frame-pointer -mpentium'
CXX='gcc'  CXXFLAGS='-O6 -fno-omit-frame-pointer            -felide-construc
tors -fno-exceptions -fno-rtti -mpentium'  LDFLAGS=''
LIBC:
lrwxrwxrwx    1 root     root           13 Jan 20 22:04 /lib/libc.so.6 ->
libc-2.2.4.so
-rwxr-xr-x    2 root     root      1282588 Sep  5  2001 /lib/libc-2.2.4.so
-rw-r--r--    1 root     root     27304836 Sep  5  2001 /usr/lib/libc.a
-rw-r--r--    1 root     root          178 Sep  5  2001 /usr/lib/libc.so
lrwxrwxrwx    1 root     root           10 Jan 20 22:27
/usr/lib/libc-client.a -> c-client.a
Configure command:
./configure --disable-shared --with-mysqld-ldflags=-all-static --with-client
-ldflags=-all-static --with-other-libc=/usr/local/mysql-glibc --without-berk
eley-db --without-innodb --enable-assembler --enable-local-infile --with-mys
qld-user=mysql --with-unix-socket-path=/var/lib/mysql/mysql.sock --prefix=/ 
--with-extra-charsets=complex --exec-prefix=/usr --libexecdir=/usr/sbin --sy
sconfdir=/etc --datadir=/usr/share --localstatedir=/var/lib/mysql --infodir=
/usr/info --includedir=/usr/include --mandir=/usr/man
'--with-comment=Official MySQL RPM' CC=gcc
'CFLAGS=-O6 -fno-omit-frame-pointer -mpentium'
'CXXFLAGS=-O6 -fno-omit-frame-pointer            -felide-constructors -fno-e
xceptions -fno-rtti -mpentium' CXX=gcc


****** The config.log content ******
...
configure:6428: checking for inline
configure:6442: gcc -c -O3 -DDBUG_OFF    conftest.c 1>&5
configure:6468: checking for off_t
configure:6501: checking for st_rdev in struct stat
configure:6514: gcc -c -O3 -DDBUG_OFF    conftest.c 1>&5
configure:6535: checking whether time.h and sys/time.h may both be included
configure:6549: gcc -c -O3 -DDBUG_OFF    conftest.c 1>&5
configure:6570: checking whether struct tm is in sys/time.h or time.h
configure:6583: gcc -c -O3 -DDBUG_OFF    conftest.c 1>&5
configure:6606: checking size of char
configure:6625: gcc -o conftest -O3 -DDBUG_OFF     -rdynamic
conftest.c -lpthread -lz -lcrypt -lnsl -lm  -lpthread 1>&5
/tmp/cc0MsYix.s: Assembler messages:
/tmp/cc0MsYix.s:4: Warning: Unrecognized .section attribute: want a,w,x
/tmp/cc0MsYix.s:4: Warning: Unrecognized .section attribute: want a,w,x
/tmp/cc0MsYix.s:4: Error: Rest of line ignored. First ignored character is
`,'.
configure: failed program was:
#line 6614 "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);
}

sql,query,mysql

[EMAIL PROTECTED]



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