Dan,
When I started building MySQL on Solaris 7, I first went to
www.sunfreeware.com and installed all the necessary development tools I
could find. I have had no problems building a number of MySQL versions.
>Dan Mahoney writes:
> > I am attempting to get MySQL running on a Sparc 20 running
> > Solaris 7, to take the load off my current Linux box. I
> > got 3.22.30, ran "./configure --prefix=/usr/local/mysql"
> > and ran "make".
> >
> > Make ran for a while then printed:
> > checking size of char... 0
> > configure: error: no size for char type
> >
> > The last 20 line of config.log are:
> > configure:5044: checking for inline
> > configure:5058: gcc -c -O6 -DDBUG_OFF -DHAVE_CURSES_H
-I/export/na02/src/mysql-3.22.30/include conftest.c 1>&5
> > configure:5084: checking for off_t
> > configure:5117: checking for size_t
> > configure:5150: checking for st_rdev in struct stat
> > configure:5163: gcc -c -O6 -DDBUG_OFF -DHAVE_CURSES_H
-I/export/na02/src/mysql-3.22.30/include conftest.c 1>&5
> > configure:5184: checking whether time.h and sys/time.h may both be
included
> > configure:5198: gcc -c -O6 -DDBUG_OFF -DHAVE_CURSES_H
-I/export/na02/src/mysql-3.22.30/include conftest.c 1>&5
> > configure:5219: checking whether struct tm is in sys/time.h or time.h
> > configure:5232: gcc -c -O6 -DDBUG_OFF -DHAVE_CURSES_H
-I/export/na02/src/mysql-3.22.30/include conftest.c 1>&5
> > configure:5255: checking size of char
> > configure:5274: gcc -o conftest -O6 -DDBUG_OFF -DHAVE_CURSES_H
-I/export/na02/src/mysql-3.22.30/include conftest.c -ldl -lnsl -lm
-lsocket -lz -lcrypt -lgen -lpthread -lthread 1>&5
> > configure: failed program was:
> > #line 5263 "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);
> > }
> >
> > Any ideas what's wrong here? I just installed gcc 2.95.2 (it
> > installed with no error messages). And when I try to compile &
> > run the program shown at the end of config.log it does both
> > with no errors - it writes "1" into conftestval.
> >
> > Dan Mahoney
> > dmahoney@stripped
>
>
>You should run :
>
>gcc -o conftest -O6 -DDBUG_OFF -DHAVE_CURSES_H
>-I/export/na02/src/mysql-3.22.30/include conftest.c -ldl -lnsl -lm
>-lsocket -lz -lcrypt -lgen -lpthread -lthread
>
>on this progarm
>
>#include <stdio.h>
>main()
>{
> FILE *f=fopen("conftestval", "w");
> if (!f) exit(1);
> fprintf(f, "%d\n", sizeof(char));
> exit(0);
>}
>
>and see what error messages you get.
>
>If you ask me, most probably you do not have zlib. You can download it
>from ftp.gnu.org.
>
>Regards,
>
>Sinisa
>
>+----------------------------------------------------------------------+
>| TcX ____ __ _____ _____ ___ == mysql@stripped |
>| /*/\*\/\*\ /*/ \*\ /*/ \*\ |*| Sinisa Milivojevic |
>| /*/ /*/ /*/ \*\_ |*| |*||*| mailto:sinisa@stripped |
>| /*/ /*/ /*/\*\/*/ \*\|*| |*||*| Larnaka, Cyprus |
>| /*/ /*/ /*/\*\_/*/ \*\_/*/ |*|____ |
>| ^^^^^^^^^^^^/*/^^^^^^^^^^^\*\^^^^^^^^^^^ |
>| /*/ \*\ Developers Team |
>+----------------------------------------------------------------------+
>
>
>
>--
>---------------------------------------------------------------------
>Please check "http://www.mysql.com/Manual_chapter/manual_toc.html" before
>posting. To request this thread, e-mail mysql-thread25323@stripped
>
>To unsubscribe, send a message to:
> <mysql-unsubscribe-cj=interlog.com@stripped>
>
>
>
Christopher R. Jones, P.Eng.
14 Oneida Avenue
Toronto, Ontario M5J 2E3
Tel. 416 203-7465
Fax. 416 203-3044
Email cj@stripped