>Description:
Unable to compile a binary for mysql-3.23.38.

>How-To-Repeat:
Downloaded mysql-3.23.38.tar.gz.  Used gunzip, then gtar to
uncompress.  No errors indicated.

Used the command from the mysql instruction manual:
CFLAGS="-O3" CXX=gcc CXXFLAGS="-O3 -felide-constructors -fno-exceptions
-fno-rtti" ./configure --prefix=/usr/local/mysql --enable-assembler
--with-mysqld-ldflags=-all-static

All went well for a quite a while.  The last messages from the install
command to the screen were:
---------------------------------------------------------------------
checking DEC threads... no
checking DEC 3.2 threads... no
checking SCO threads... no
checking SCO UnixWare7 native threads... no
checking Siemens threads... no
checking Solaris threads... yes
checking named thread libs:... -lpthread -lthread
checking for strtok_r in -lpthread... yes
checking for strtok_r... yes
checking for dlopen in -ldl... yes
checking for restartable system calls... no
checking need of special linking flags... none
checking for working const... yes
checking for inline... inline
checking for off_t... yes
checking for st_rdev in struct stat... yes
checking whether time.h and sys/time.h may both be included... yes
checking whether struct tm is in sys/time.h or time.h... 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!
-------------------------------------------------------------------------
Note that there is a libm.a file in /usr/lib and in /lib with permission
setting of -rw-r--r--, userid bin, groupid bin.
-------------------------------------------------------------------------
The last part of the conf.log is:
-------------------------------------------------------------------------
configure:6422: checking for st_rdev in struct stat
configure:6435: gcc -c -O3 -DDBUG_OFF -O3  -DHAVE_CURSES_H
-I/export/mysql/mysq$
configure:6456: checking whether time.h and sys/time.h may both be
included
configure:6470: gcc -c -O3 -DDBUG_OFF -O3  -DHAVE_CURSES_H
-I/export/mysql/mysq$
configure:6491: checking whether struct tm is in sys/time.h or time.h
configure:6504: gcc -c -O3 -DDBUG_OFF -O3  -DHAVE_CURSES_H
-I/export/mysql/mysq$
configure:6527: checking size of char
configure:6546: gcc -o conftest -O3 -DDBUG_OFF -O3  -DHAVE_CURSES_H
-I/export/m$
configure: failed program was:
#line 6535 "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:
        

>Submitter-Id:  [EMAIL PROTECTED]
>Originator:    Super-User
>Organization:
 
>MySQL support: [none]
>Synopsis:      <Cannot install mysql from source distribution>
>Severity:      
>Priority:      
>Category:      mysql
>Class:         
>Release:       mysql-3.23.38 (Source distribution)

>Environment:
        
System: SunOS organa 5.7 Generic_106542-11 i86pc i386 i86pc
Architecture: i86pc

Some paths:  /usr/local/bin/perl /usr/local/bin/make /usr/local/bin/gmake 
/usr/local/bin/gcc
GCC: Reading specs from /usr/local/lib/gcc-lib/i386-pc-solaris2.7/2.95.1/specs
gcc version 2.95.1 19990816 (release)
Compilation info: CC='gcc'  CFLAGS=''  CXX='gcc'  CXXFLAGS=''  LDFLAGS=''
LIBC: 
-rw-r--r--   1 bin      bin      1558792 May 19  2000 /lib/libc.a
lrwxrwxrwx   1 root     root          11 Mar 12 17:35 /lib/libc.so -> ./libc.so.1
-rwxr-xr-x   1 bin      bin       951404 May 19  2000 /lib/libc.so.1
-rw-r--r--   1 bin      bin      1558792 May 19  2000 /usr/lib/libc.a
lrwxrwxrwx   1 root     root          11 Mar 12 17:35 /usr/lib/libc.so -> ./libc.so.1
-rwxr-xr-x   1 bin      bin       951404 May 19  2000 /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
Perl: This is perl, version 5.005_03 built for i86pc-solaris

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