>>>>> "Fraser" == Fraser MacKenzie <fraserm@stripped>
> writes:
Fraser> Hi, I have/had an older version of mysql running (3.21.33 I think) and my
Fraser> sysadmin went and upgraded all his gcc, g++, perl, etc. Now, the DBI
Fraser> stuff is no longer working. I figured, hey, what a great time to do an
Fraser> upgrade. I took the source code, and ran ./configure. Everything seems
Fraser> to go well, until I get the following (note, this is from the config.log
Fraser> file).
Fraser> configure:4349: checking size of char
Fraser> configure:4368: gcc -o conftest -O6 -DDBUG_OFF -rdynamic conftest.c
Fraser> -lnsl -lm -lcrypt -lpthread 1>&5
Fraser> /usr/lib/libpthread.so: undefined reference to `__libc_rewinddir'
Fraser> /usr/lib/libpthread.so: undefined reference to `__libc_readdir_r'
Fraser> /usr/lib/libpthread.so: undefined reference to `__libc_opendir'
Fraser> /usr/lib/libpthread.so: undefined reference to `__libc_seekdir'
Fraser> /usr/lib/libpthread.so: undefined reference to `__libc_readdir'
Fraser> /usr/lib/libpthread.so: undefined reference to `__libc_telldir'
Fraser> /usr/lib/libpthread.so: undefined reference to `_IO_perror'
Fraser> configure: failed program was:
Fraser> #line 4357 "configure"
Fraser> #include "confdefs.h"
Fraser> #include <stdio.h>
Fraser> main()
Fraser> {
Fraser> FILE *f=fopen("conftestval", "w");
Fraser> if (!f) exit(1);
Fraser> fprintf(f, "%d\n", sizeof(char));
Fraser> exit(0);
Fraser> }
<cut>
Fraser> Configure command: ./configure
Fraser> --with-unix-socket-path=/var/tmp/mysql.sock --with-low-memory
Fraser> --with-mit-threads=yes
Hi!
The problem is that you are using --with-mit-threads=yes; This
doesn't work on Linux!
Remove the above configure flag and try again!
Regards,
Monty