Description:
        Unable to compile on a 64bit Solaris 7 machine with gcc.
How-To-Repeat:
./configure

<configure output snipped>

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!

config.log's last entries were:

configure:6444: checking size of char
configure:6463: gcc -o conftest -O6 -DDBUG_OFF   -DHAVE_CURSES_H -I/export/home/
staff/mark/Apachetoolbox-1.5.12/src/mysql-3.23.33/include -DHAVE_RWLOCK_T   conf
test.c -ldl -lz -lcrypt -lgen -lsocket -lnsl -lm  -lpthread -lthread 1>&5
configure: failed program was:
#line 6452 "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:
        compiled conftest.c (from the config.log output), and noticed the 
program conftest died upon running due to the libz library not being in the libraries 
search path.  Fix: move libz to /usr/lib or /lib,  OR add it's path into 
LD_LIBRARY_PATH

(Libz was in /usr/local/lib,  which under Solaris is not searched for .so libraries.  
The static library for libz was installed, too. 

Submitter-Id:   [EMAIL PROTECTED]    
Originator: Mark Godfrey        
Organization: Cyber Ware Ltd
Synopsis:       Unable to compile from sources
Severity:       critical
Priority:       low
Category:       mysql
Class:          sw-bug
Release:        mysql-3.23.33 (Source distribution)

Environment:
System: SunOS speakno.cyberware.co.uk 5.7 Generic_106541-12 sun4u sparc SUNW,Ultra-2
Architecture: sun4

Some paths:  /usr/bin/perl /usr/local/bin/make /usr/local/bin/gmake /usr/local/bin/gcc
GCC: Reading specs from /usr/local/lib/gcc-lib/sparc-sun-solaris2.7/2.7.2.3/specs
gcc version 2.7.2.3
Compilation info: CC='gcc'  CFLAGS=''  CXX='gcc'  CXXFLAGS=''  LDFLAGS=''
LIBC: 
-rw-r--r--   1 root     bin      1694308 Nov  3 06:06 /lib/libc.a
lrwxrwxrwx   1 root     root          11 Jul  1  1999 /lib/libc.so -> ./libc.so.1
-rwxr-xr-x   1 root     bin      1115940 Nov  3 06:06 /lib/libc.so.1
-rw-r--r--   1 root     bin      1694308 Nov  3 06:06 /usr/lib/libc.a
lrwxrwxrwx   1 root     root          11 Jul  1  1999 /usr/lib/libc.so -> ./libc.so.1
-rwxr-xr-x   1 root     bin      1115940 Nov  3 06:06 /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 
--without-berkeley-db
Perl: This is perl, version 5.004_04 built for sun4-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