I tried to configure MySQL like this:

./configure --prefix=/usr/local/mysql --with-charset=sjis

After a hundred lines or so of install verifications, it quits the
installation with the following:

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!


I DID find the file libm.a in /usr/lib.

Here's some information from mysqlbug:

>Environment:
    <machine, os, target, libraries (multiple lines)>
System: SunOS j-sky 5.6 Generic_105182-21 i86pc i386 i86pc
Architecture: i86pc

Some paths:  /usr/local/bin/perl /usr/ccs/bin/make /usr/local/bin/gmake
/usr/local/bin/gcc /usr/ucb/cc
GCC: Reading specs from
/usr/local/lib/gcc-lib/i386-pc-solaris2.6/2.8.1/specs
gcc version 2.8.1
Compilation info: CC='gcc'  CFLAGS=''  CXX='gcc'  CXXFLAGS=''  LDFLAGS=''
LIBC: 
-rw-r--r--   1 bin      bin       1479124 Jul  1  2000 /lib/libc.a
lrwxrwxrwx   1 root     root           11 Oct 17  2000 /lib/libc.so ->
./libc.so.1
-rwxr-xr-x   1 bin      bin        891812 Jul  1  2000 /lib/libc.so.1
-rw-r--r--   1 bin      bin       1479124 Jul  1  2000 /usr/lib/libc.a
lrwxrwxrwx   1 root     root           11 Oct 17  2000 /usr/lib/libc.so ->
./libc.so.1
-rwxr-xr-x   1 bin      bin        891812 Jul  1  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.004_04 built for i86pc-solaris






Here are the last several rows from config.log

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif

int main()
{
  int8 i;
  return 0;
}

configure:5442: checking LinuxThreads
configure:5483: checking DEC threads
configure:5496: checking DEC 3.2 threads
configure:5525: checking SCO threads
configure:5626: checking SCO UnixWare7 native threads
configure:5670: checking Siemens threads
configure:5699: checking Solaris threads
configure:5711: checking named thread libs:
configure:5835: checking for strtok_r in -lpthread
configure:5854: gcc -o conftest   -DHAVE_RWLOCK_T   conftest.c -lpthread
-lz -lcrypt -lgen -lsocket -lnsl -lm  -lpthread -lthread 1>&5
configure:5995: checking for strtok_r
configure:6023: gcc -o conftest   -DHAVE_RWLOCK_T   conftest.c -lz -lcrypt
-lgen -lsocket -lnsl -lm  -lpthread -lthread 1>&5
configure:6057: checking for dlopen in -ldl
configure:6076: gcc -o conftest   -DHAVE_RWLOCK_T   conftest.c -ldl   1>&5
configure:6109: checking for restartable system calls
configure:6135: gcc -o conftest   -DHAVE_RWLOCK_T   conftest.c -lz -lcrypt
-lgen -lsocket -lnsl -lm  -lpthread -lthread 1>&5
configure: In function `main':
configure:6127: warning: passing arg 2 of `signal' from incompatible pointer
type
configure: failed program was:
#line 6117 "configure"
#include "confdefs.h"
/* Exit 0 (true) if wait returns something other than -1,
   i.e. the pid of the child, which means that wait was restarted
   after getting the signal.  */
#include <sys/types.h>
#include <signal.h>
ucatch (isig) { }
main () {
  int i = fork (), status;
  if (i == 0) { sleep (3); kill (getppid (), SIGINT); sleep (3); exit (0); }
  signal (SIGINT, ucatch);
  status = wait(&i);
  if (status == -1) wait(&i);
  exit (status == -1);
}

configure:6264: checking need of special linking flags
configure:6274: checking for working const
configure:6328: gcc -c -O3 -DDBUG_OFF   -DHAVE_RWLOCK_T  conftest.c 1>&5
configure:6349: checking for inline
configure:6363: gcc -c -O3 -DDBUG_OFF   -DHAVE_RWLOCK_T  conftest.c 1>&5
configure:6389: checking for off_t
configure:6422: checking for st_rdev in struct stat
configure:6435: gcc -c -O3 -DDBUG_OFF   -DHAVE_RWLOCK_T  conftest.c 1>&5
configure:6456: checking whether time.h and sys/time.h may both be included
configure:6470: gcc -c -O3 -DDBUG_OFF   -DHAVE_RWLOCK_T  conftest.c 1>&5
configure:6491: checking whether struct tm is in sys/time.h or time.h
configure:6504: gcc -c -O3 -DDBUG_OFF   -DHAVE_RWLOCK_T  conftest.c 1>&5
configure:6527: checking size of char
configure:6546: gcc -o conftest -O3 -DDBUG_OFF   -DHAVE_RWLOCK_T
conftest.c -lz -lcrypt -lgen -lsocket -lnsl -lm  -lpthread -lthread 1>&5
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);
}


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