i plan to install MySQL 3.22.32 on Solaris 8(SPARC).after gunzip&tar,i got an error when i "./configure --prefix=/usr/local/mysql":
...
checking for strtok_r... yes
checking for dlopen in -ldl... yes
checking for restartable system calls... configure: error: can not run test program while cross compiling
then i look the config.log file,something like that:
configure:3308: gcc -c conftest.c 1>&5
configure:3333: checking for opendir in -ldir
configure:3352: gcc -o conftest conftest.c -ldir 1>&5
ld: fatal: library -ldir: not found
ld: fatal: File processing errors. No output written to conftest
collect2: ld returned 1 exit status
configure: failed program was:
#line 3341 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char opendir();
what should i do?
...
checking for strtok_r... yes
checking for dlopen in -ldl... yes
checking for restartable system calls... configure: error: can not run test program while cross compiling
then i look the config.log file,something like that:
configure:3308: gcc -c conftest.c 1>&5
configure:3333: checking for opendir in -ldir
configure:3352: gcc -o conftest conftest.c -ldir 1>&5
ld: fatal: library -ldir: not found
ld: fatal: File processing errors. No output written to conftest
collect2: ld returned 1 exit status
configure: failed program was:
#line 3341 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char opendir();
what should i do?