./configure goes into infinite loop on mit-pthreads

./configure goes into infinite loop on mit-pthreads

Post by VaX# » Sun, 02 Mar 2003 04:26:45



MySQL

Part of configure reads:

(cd mit-pthreads; sh ./configure)

I invoked configure as so:

sh -v ./configure 2> /tmp/foo

This leaves the following at the end of /tmp/foo while its running:

./configure: mit-pthreads: No such file or directory
./configure: mit-pthreads: No such file or directory
./configure: mit-pthreads: No such file or directory
./configure: mit-pthreads: No such file or directory

If I let this go on for long enough it becomes wedged and doesn't
respond to ctrl-C (SIGINT).  It would appear to be some kind of resource
problem.  After hitting control-Z and kill %1 a couple of times, it dies,
and leaves this near the end of /tmp/foo:

/tmp/foo:./configure: mit-pthreads: No such file or directory
/tmp/foo:./configure: mit-pthreads: No such file or directory
/tmp/foo:
/tmp/foo:# IMPORTANT - do not modify LIBS past this line - this hack is the on
ly way
/tmp/foo:# I know to add the static NSS magic if we have static NSS libraries
with
/tmp/foo:# glibc - Sasha
/tmp/foo:
/tmp/foo:LDFLAGS="$LDFLAGS $OTHER_LIBC_LIB"
/tmp/foo:LIBS="$LIBS $STATIC_NSS_FLAGS"
...
/tmp/foo:  rm -f core core.* *.core &&
/tmp/foo:  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
/tmp/foo:    exit $exit_status

Apparently if the mit-pthreads directory doesn't exist, (I can't find it
in the distrubution), the line quoted at the beginning of this article
erroneously starts ./configure again and ends up in a transfinite loop.
I suggest, at a minimum, that the line reads:
(cd mit-pthreads && sh ./configure)

---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)



Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

 
 
 

1. ./configure --withorwithout-mit-pthreads

I switched my server from linux debian to NetBSD 1.6.

All when fine until I tried to do ./configure for the mysql-3.23.52
from the source tar.gz.

Problem is, it keeps looping saying "can't cd to mit-pthreads".  I did
my homework and seeked a solution on mailing list, google etc and got
nothing good.  I installed mit-pthread 1.60b6 from the 1.6 packages
collection of netbsd without any success, it's still whinning about not
being able to change directory mit-pthreads....    I tried ./configure
--without-mit-pthread but even if in the docs it says linux need linux
threads and others like freebsd and solaris need maybe mit-pthreads I
thought I could get around without it (not logic but hey, I tried).

Then lot's of bad stuff is said about using mit pthreads with mysql...
I haven't quite completely understood what were the differences but...
Can you tell me if there's a patch something I could do to compile it
anyway and get to use it with the stability it's supposed to have when
compiled without problems etc...

(oh btw, I tried the beta 4.0.4 version... not working either).
It is telling me the same thing on and on and on (./configure will never
stop)
It restart from the beginning over and over... until a deadly kill -9 or
whatever.

Have a pleasant day, hope to get feedbacks soon!

---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)



Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

2. Very interesting problem

3. Help with FreeBSD 4.2 Native Threads (was: Compile broken: mysql-3.23.38/mit-pthreads)

4. SetThreadPriority fails ?!

5. <synopsis of the problem (one line)> no mit-pthreads directory

6. problem with sending fax from pbrush in win-os/2

7. MIT-Pthreads

8. 2503i ISDN Config

9. Compile broken: mysql-3.23.38/mit-pthreads

10. mysqlgui crash caused by infinite loop

11. Same table aliased twice causes infinite loop

12. Infinite Loop

13. Infinite loop crashes server