>>>>> "Jim" == Jim Brown <Sys-Admin@stripped> writes:
Jim> CHECK THE SUBJECT FOR VERSION AND OS
It would be much better if you had followed the guidelines at
http://www.tcx.se/Manual_chapter/manual_Questions.html#Asking_questions
It would have saved us all a lot of time!
Jim> Could someone explain to me where the `configure' script is going
Jim> wrong? Here is the last 20 lines of the `config.log' file. I'm
Jim> envoking it with the following: "./configure --prefix=/usr/local/mysql
Jim> --with-mysqld-user=mysqld". I've confirmed the existance of
Jim> `/usr/lib/libm.a'. I'm unable to install "glibc-2.1.2". It says there is
Jim> no port for this OS version I know someone has built this because there
Jim> is a binary version that can be downloaded but I want to build it with
Jim> my own settings.
<cut>
Jim> configure:5187: gcc -c -g -O -DDBUG_ON -DSAFE_MUTEX conftest.c 1>&5
Jim> configure:5210: checking size of char
Jim> configure:5229: gcc -o conftest -g -O -DDBUG_ON -DSAFE_MUTEX
Jim> conftest.c -ldl -lnsl -lm -lsocket -lz -lcrypt -lgen -lpthread
Jim> -lthread 1>&5
Jim> configure: failed program was:
Jim> #line 5218 "configure"
Jim> #include "confdefs.h"
Jim> #include <stdio.h>
Jim> main()
Jim> {
Jim> FILE *f=fopen("conftestval", "w");
Jim> if (!f) exit(1);
Jim> fprintf(f, "%d\n", sizeof(char));
Jim> exit(0);
Jim> }
To find out whats wrong, you should try to compile the following
program (saved as conftest.c):
#include <stdio.h>
main()
{
FILE *f=fopen("conftestval", "w");
if (!f) exit(1);
fprintf(f, "%d\n", sizeof(char));
exit(0);
}
With the following compile line:
gcc -o conftest -g -O -DDBUG_ON -DSAFE_MUTEX conftest.c -ldl -lnsl
-lm -lsocket -lz -lcrypt -lgen -lpthread -lthread
This will tell you what's wrong.
You don't need glibc, but you may need to upgrade gcc to 2.95.2 if you
want to compile any program that uses the configure script
Regards,
Monty