List:General Discussion« Previous MessageNext Message »
From:Sasha Pachev Date:June 15 1999 8:37am
Subject:Re: Please help
View as plain text  
I've had the same problem, and I did solve it but do not remember off
the top of my head what I did exactly to make it work. It had something
to do with a  library conflict  Here is the sequence of steps I took
that led me to the solution:


- Copy and paste the source of the last fail program to a file called
test.c:

 #include <stdio.h>
 main()
 {
   FILE *f=fopen("conftestval", "w");
   if (!f) exit(1);
   fprintf(f, "%d\n", sizeof(char));
   exit(0);
 }

- compile it with the exact same options as the one that failed. I think
it actually compiles without errors
- run it and get a segfault
- do ldd test and see what libraries it needs and where it finds them,
if at all.
- Make sure that all the libraries are installed, and are the right
version

If you do not what to mess with it, just get a binary distribution.
There is really no need to build MySQL from source for the platforms
where the binary is available unless you want to hack it.


System Administrator wrote:
> 
> Hi,
> I was to use mysql as my first database for my server.  I am new to
> database, so please help.
> configure returns error and give core dump.  Attached is the config.log
> file.  Please, if there is any solution for the error, advise me.
> Thank you.
> 
> I tried to use the binary one, it runs with no problem.  But, when i tried
> to compile php with mysql (binary one), it also had error.
> 
> System Administrator
> Unlimited Network Connections
> http://www.unlimitnet.com
> 
>   ------------------------------------------------------------------------
> This file contains any messages produced by compilers while
> running configure, to aid debugging if configure makes a mistake.
> 
> configure:732: checking host system type
> configure:753: checking target system type
> configure:771: checking build system type
> configure:806: checking for a BSD compatible install
> configure:859: checking whether build environment is sane
> configure:894: checking whether make sets ${MAKE}
> configure:940: checking for working aclocal
> configure:953: checking for working autoconf
> configure:966: checking for working automake
> configure:979: checking for working autoheader
> configure:992: checking for working makeinfo
> configure:1065: checking whether to enable maintainer-specific portions of Makefiles
> configure:1107: checking whether build environment is sane
> configure:1123: checking whether make sets ${MAKE}
> configure:1189: checking for gcc
> configure:1302: checking whether the C compiler (gcc   ) works
> configure:1318: gcc -o conftest     conftest.c  1>&5
> configure:1344: checking whether the C compiler (gcc   ) is a cross-compiler
> configure:1349: checking whether we are using GNU C
> configure:1377: checking whether gcc accepts -g
> configure:1413: checking for c++
> configure:1445: checking whether the C++ compiler (c++   ) works
> configure:1461: c++ -o conftest     conftest.C  1>&5
> configure:1487: checking whether the C++ compiler (c++   ) is a cross-compiler
> configure:1492: checking whether we are using GNU C++
> configure:1520: checking whether c++ accepts -g
> configure:1552: checking how to run the C preprocessor
> configure:1677: checking for ranlib
> configure:1785: checking for ld used by GCC
> configure:1848: checking if the linker (/usr/bin/ld) is GNU ld
> configure:1864: checking for BSD-compatible nm
> configure:1901: checking whether ln -s works
> ltconfig:601: checking for object suffix
> ltconfig:602: gcc -c    conftest.c 1>&5
> ltconfig:742: checking if gcc PIC flag -fPIC works
> ltconfig:743: gcc -c   -fPIC -DPIC  conftest.c 1>&5
> ltconfig:795: checking if gcc supports -c -o file.o
> ltconfig:796: gcc -c   -o out/conftest2.o  conftest.c 1>&5
> ltconfig:828: checking if gcc supports -c -o file.lo
> ltconfig:829: gcc -c   -c -o conftest.lo  conftest.c 1>&5
> ltconfig:880: checking if gcc supports -fno-rtti -fno-exceptions
> ltconfig:881: gcc -c   -fno-rtti -fno-exceptions -c conftest.c  conftest.c
> 1>&5
> ltconfig:924: checking if gcc static flag -static works
> ltconfig:925: gcc -o conftest     -static conftest.c  1>&5
> ld version cygnus-2.6 (with BFD 2.6.0.14)
> ltconfig:1557: checking if global_symbol_pipe works
> ltconfig:1558: gcc -c    conftest.c 1>&5
> ltconfig:1561: eval "/usr/bin/nm -B conftest.o | sed -n -e 's/^.*[     
> ]\([ABCDGISTW]\)[       ][      ]*\(\)\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2\3 \3/p' >
> conftest.nm"
> ltconfig:1613: gcc -o conftest   -fno-builtin -fno-rtti -fno-exceptions   conftest.c
> conftstm.o 1>&5
> configure:2093: checking for a BSD compatible install
> configure:2151: checking for bison
> configure:2196: checking for  uname
> configure:2230: checking operating system
> configure:2382: checking if we should use skip-locking as default for linux-gnulibc1
> configure:2399: checking for ln
> configure:2436: checking for ln
> configure:2474: checking for mv
> configure:2510: checking for rm
> configure:2546: checking for cp
> configure:2582: checking for sed
> configure:2618: checking for cmp
> configure:2654: checking for chmod
> configure:2690: checking for hostname
> configure:2726: checking for perl5
> configure:2762: checking for perl
> configure:2808: checking for ps
> configure:2842: checking how to check if pid exists
> configure:2874: checking for kill
> configure:2908: checking for kill switches
> configure:2925: checking for gcc option to accept ANSI C
> configure:2960: gcc  -c    conftest.c 1>&5
> configure:3128: checking for dirent.h that defines DIR
> configure:3141: gcc -c    conftest.c 1>&5
> configure:3166: checking for opendir in -ldir
> configure:3185: gcc -o conftest     conftest.c -ldir   1>&5
> ld: cannot open -ldir: No such file or directory
> configure: failed program was:
> #line 3174 "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();
> 
> int main() {
> opendir()
> ; return 0; }
> configure:3249: checking for ANSI C header files
> configure:3262: gcc -E  conftest.c >/dev/null 2>conftest.out
> configure:3329: gcc -o conftest     conftest.c  1>&5
> configure:3353: checking for sys/wait.h that is POSIX.1 compatible
> configure:3374: gcc -c    conftest.c 1>&5
> configure:3403: checking for fcntl.h
> configure:3413: gcc -E  conftest.c >/dev/null 2>conftest.out
> configure:3403: checking for float.h
> configure:3413: gcc -E  conftest.c >/dev/null 2>conftest.out
> configure:3403: checking for floatingpoint.h
> configure:3413: gcc -E  conftest.c >/dev/null 2>conftest.out
> configure:3409: floatingpoint.h: No such file or directory
> configure: failed program was:
> #line 3408 "configure"
> #include "confdefs.h"
> #include <floatingpoint.h>
> configure:3403: checking for ieeefp.h
> configure:3413: gcc -E  conftest.c >/dev/null 2>conftest.out
> configure:3409: ieeefp.h: No such file or directory
> configure: failed program was:
> #line 3408 "configure"
> #include "confdefs.h"
> #include <ieeefp.h>
> configure:3403: checking for limits.h
> configure:3413: gcc -E  conftest.c >/dev/null 2>conftest.out
> configure:3403: checking for memory.h
> configure:3413: gcc -E  conftest.c >/dev/null 2>conftest.out
> configure:3403: checking for pwd.h
> configure:3413: gcc -E  conftest.c >/dev/null 2>conftest.out
> configure:3403: checking for select.h
> configure:3413: gcc -E  conftest.c >/dev/null 2>conftest.out
> configure:3409: select.h: No such file or directory
> configure: failed program was:
> #line 3408 "configure"
> #include "confdefs.h"
> #include <select.h>
> configure:3403: checking for stdlib.h
> configure:3413: gcc -E  conftest.c >/dev/null 2>conftest.out
> configure:3403: checking for stddef.h
> configure:3413: gcc -E  conftest.c >/dev/null 2>conftest.out
> configure:3403: checking for strings.h
> configure:3413: gcc -E  conftest.c >/dev/null 2>conftest.out
> configure:3403: checking for string.h
> configure:3413: gcc -E  conftest.c >/dev/null 2>conftest.out
> configure:3403: checking for synch.h
> configure:3413: gcc -E  conftest.c >/dev/null 2>conftest.out
> configure:3409: synch.h: No such file or directory
> configure: failed program was:
> #line 3408 "configure"
> #include "confdefs.h"
> #include <synch.h>
> configure:3403: checking for sys/mman.h
> configure:3413: gcc -E  conftest.c >/dev/null 2>conftest.out
> configure:3403: checking for sys/timeb.h
> configure:3413: gcc -E  conftest.c >/dev/null 2>conftest.out
> configure:3403: checking for sys/types.h
> configure:3413: gcc -E  conftest.c >/dev/null 2>conftest.out
> configure:3403: checking for sys/un.h
> configure:3413: gcc -E  conftest.c >/dev/null 2>conftest.out
> configure:3403: checking for sys/vadvise.h
> configure:3413: gcc -E  conftest.c >/dev/null 2>conftest.out
> configure:3409: sys/vadvise.h: No such file or directory
> configure: failed program was:
> #line 3408 "configure"
> #include "confdefs.h"
> #include <sys/vadvise.h>
> configure:3403: checking for sys/wait.h
> configure:3403: checking for term.h
> configure:3413: gcc -E  conftest.c >/dev/null 2>conftest.out
> configure:3409: term.h: No such file or directory
> configure: failed program was:
> #line 3408 "configure"
> #include "confdefs.h"
> #include <term.h>
> configure:3403: checking for unistd.h
> configure:3413: gcc -E  conftest.c >/dev/null 2>conftest.out
> configure:3403: checking for utime.h
> configure:3413: gcc -E  conftest.c >/dev/null 2>conftest.out
> configure:3403: checking for sys/utime.h
> configure:3413: gcc -E  conftest.c >/dev/null 2>conftest.out
> configure:3409: sys/utime.h: No such file or directory
> configure: failed program was:
> #line 3408 "configure"
> #include "confdefs.h"
> #include <sys/utime.h>
> configure:3403: checking for termio.h
> configure:3413: gcc -E  conftest.c >/dev/null 2>conftest.out
> configure:3403: checking for termios.h
> configure:3413: gcc -E  conftest.c >/dev/null 2>conftest.out
> configure:3403: checking for sched.h
> configure:3413: gcc -E  conftest.c >/dev/null 2>conftest.out
> configure:3403: checking for crypt.h
> configure:3413: gcc -E  conftest.c >/dev/null 2>conftest.out
> configure:3409: crypt.h: No such file or directory
> configure: failed program was:
> #line 3408 "configure"
> #include "confdefs.h"
> #include <crypt.h>
> configure:3403: checking for alloca.h
> configure:3413: gcc -E  conftest.c >/dev/null 2>conftest.out
> configure:3446: checking for floor in -lm
> configure:3465: gcc -o conftest     conftest.c -lm   1>&5
> configure:3543: checking for gethostbyname_r in -lnsl_r
> configure:3562: gcc -o conftest     conftest.c -lnsl_r  -lm  1>&5
> ld: cannot open -lnsl_r: No such file or directory
> configure: failed program was:
> #line 3551 "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 gethostbyname_r();
> 
> int main() {
> gethostbyname_r()
> ; return 0; }
> configure:3592: checking for gethostbyname_r in -lnsl
> configure:3611: gcc -o conftest     conftest.c -lnsl  -lm  1>&5
> ld: cannot open -lnsl: No such file or directory
> configure: failed program was:
> #line 3600 "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 gethostbyname_r();
> 
> int main() {
> gethostbyname_r()
> ; return 0; }
> configure:3642: checking for socket in -lsocket
> configure:3661: gcc -o conftest     conftest.c -lsocket   1>&5
> ld: cannot open -lsocket: No such file or directory
> configure: failed program was:
> #line 3650 "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 socket();
> 
> int main() {
> socket()
> ; return 0; }
> configure:3691: checking for p2open in -lgen
> configure:3710: gcc -o conftest     conftest.c -lgen   1>&5
> ld: cannot open -lgen: No such file or directory
> configure: failed program was:
> #line 3699 "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 p2open();
> 
> int main() {
> p2open()
> ; return 0; }
> configure:3739: checking for bind in -lbind
> configure:3758: gcc -o conftest     conftest.c -lbind   1>&5
> ld: cannot open -lbind: No such file or directory
> configure: failed program was:
> #line 3747 "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 bind();
> 
> int main() {
> bind()
> ; return 0; }
> configure:3787: checking for crypt in -lcrypt
> configure:3806: gcc -o conftest     conftest.c -lcrypt   1>&5
> ld: cannot open -lcrypt: No such file or directory
> configure: failed program was:
> #line 3795 "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 crypt();
> 
> int main() {
> crypt()
> ; return 0; }
> configure:3835: checking for compress in -lno
> configure:3854: gcc -o conftest     conftest.c -lno   1>&5
> ld: cannot open -lno: No such file or directory
> configure: failed program was:
> #line 3843 "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 compress();
> 
> int main() {
> compress()
> ; return 0; }
> configure:3949: checking LinuxThreads
> configure:3967: gcc -c    conftest.c 1>&5
> configure:4178: checking named thread libs:
> configure:4301: checking for strtok_r in -lpthread
> configure:4320: gcc -o conftest     conftest.c -lpthread  -lm    -lpthread
> 1>&5
> /tmp/cca224881.o: In function `main':
> /tmp/cca224881.o(.text+0x4): undefined reference to `strtok_r'
> configure: failed program was:
> #line 4309 "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 strtok_r();
> 
> int main() {
> strtok_r()
> ; return 0; }
> configure:4352: checking for strtok_r in -lc_r
> configure:4371: gcc -o conftest     conftest.c -lc_r  -lm    -lpthread 1>&5
> ld: cannot open -lc_r: No such file or directory
> configure: failed program was:
> #line 4360 "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 strtok_r();
> 
> int main() {
> strtok_r()
> ; return 0; }
> configure:4405: checking for strtok_r
> configure:4433: gcc -o conftest     conftest.c -lm    -lpthread 1>&5
> /tmp/cca225171.o: In function `main':
> /tmp/cca225171.o(.text+0x4): undefined reference to `strtok_r'
> configure: failed program was:
> #line 4410 "configure"
> #include "confdefs.h"
> /* System header to define __stub macros and hopefully few prototypes,
>     which can conflict with char strtok_r(); below.  */
> #include <assert.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 strtok_r();
> 
> int main() {
> 
> /* The GNU C library defines this for functions which it implements
>     to always fail with ENOSYS.  Some functions are actually named
>     something starting with __ and the normal name is an alias.  */
> #if defined (__stub_strtok_r) || defined (__stub___strtok_r)
> choke me
> #else
> strtok_r();
> #endif
> 
> ; return 0; }
> configure:4405: checking for pthread_init
> configure:4433: gcc -o conftest     conftest.c -lm    -lpthread 1>&5
> /tmp/cca225301.o: In function `main':
> /tmp/cca225301.o(.text+0x4): undefined reference to `pthread_init'
> configure: failed program was:
> #line 4410 "configure"
> #include "confdefs.h"
> /* System header to define __stub macros and hopefully few prototypes,
>     which can conflict with char pthread_init(); below.  */
> #include <assert.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 pthread_init();
> 
> int main() {
> 
> /* The GNU C library defines this for functions which it implements
>     to always fail with ENOSYS.  Some functions are actually named
>     something starting with __ and the normal name is an alias.  */
> #if defined (__stub_pthread_init) || defined (__stub___pthread_init)
> choke me
> #else
> pthread_init();
> #endif
> 
> ; return 0; }
> configure:4529: checking for dlopen in -ldl
> configure:4548: gcc -o conftest     conftest.c -ldl  -lm    -lpthread 1>&5
> configure:4578: checking for restartable system calls
> configure:4604: gcc -o conftest     conftest.c -ldl -lm    -lpthread 1>&5
> configure: In function `main':
> configure:4596: warning: passing arg 2 of `signal' from incompatible pointer type
> configure:4719: checking for Sun style big file support
> configure:4737: checking need of special linking flags
> configure:4747: checking for working const
> configure:4801: gcc -c -O6   -DDBUG_OFF  conftest.c 1>&5
> configure:4822: checking for inline
> configure:4836: gcc -c -O6   -DDBUG_OFF  conftest.c 1>&5
> configure:4862: checking for off_t
> configure:4895: checking for size_t
> configure:4928: checking for st_rdev in struct stat
> configure:4941: gcc -c -O6   -DDBUG_OFF  conftest.c 1>&5
> configure:4962: checking whether time.h and sys/time.h may both be included
> configure:4976: gcc -c -O6   -DDBUG_OFF  conftest.c 1>&5
> configure:4997: checking whether struct tm is in sys/time.h or time.h
> configure:5010: gcc -c -O6   -DDBUG_OFF  conftest.c 1>&5
> configure:5033: checking size of char
> configure:5052: gcc -o conftest -O6   -DDBUG_OFF   conftest.c -ldl -lm    -lpthread
> 1>&5
> configure: failed program was:
> #line 5041 "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);
> }
> 
>   ------------------------------------------------------------------------
> ---------------------------------------------------------------------
> Please check "http://www.mysql.com/Manual_chapter/manual_toc.html" before
> posting. To request this thread, e-mail mysql-thread5229@stripped
> 
> To unsubscribe, send a message to the address shown in the
> List-Unsubscribe header of this message. If you cannot see it,
> e-mail mysql-unsubscribe@stripped instead.

-- 
Sasha Pachev
http://www.sashanet.com/ (home)
http://www.direct1.com/ (work)
Thread
Please helpSystem Administrator15 Jun
  • Re: Please helpSasha Pachev15 Jun
    • Re: Please helpSystem Administrator16 Jun