On Tue, 27 Jan 2004, Andreas Schweitzer wrote:
Hi,
Since I'm still not sure if you are subscribed I send it to you and the list :-)
configure reports: checking target system type... rs6000-ibm-aix4.2.1.0
as far the system concerns.
The error during configure is: checking whether threads work with -pthread... no. Now we will try some libraries. checking for library containing pthread_create... no configure: WARNING: *** No pthreads found. ***
I have a slightly later version of the AIX native threads library. And as you hinted in your previous mail, the name of the library is slightly different. (libpthread.a vs. libpthreads.a). However, on *my* system, both libraries exist as a link and point to a third file.
gcc -v yields: Reading specs from /usr/local/lib/gcc-lib/rs6000-ibm-aix4.2.1.0/2.95.3/specs gcc version 2.95.3 20010315 (release)
Too bad that your version of gcc does not know the -pthread option and react accordingly. At least for relatively recent versions, gcc can be configured to be called with -pthread and do the OS-correct thing.
Anyways, so far this doesn't really help you :-). Here are possible solutions :
1) In /usr/lib : Link libpthreads.a to libpthread.a 2) Don't just call configure but do the following : export LDFLAGS='-lpthreads' ; ./configure 3) Apply one of the attached patches. If you use 0.7.3, try the patch against configure (configure.diff), if you run CVS use the patch against configure.in (configure.in.diff3)
Note to all: the latter patch should be considered for general inclusion !
Please test, as I have VERY limited ways of testing that.
Excellent Andreas! Please let me know when Riccardo confirms the patch to work on his system to include it in CVS. Cheers Jorge.-