hsjung1305 / stressapptest

Automatically exported from code.google.com/p/stressapptest
Apache License 2.0
0 stars 0 forks source link

./configure generates misleading pthread error message #10

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
  1. On system that is lacking static version of librt and/or libaio
  2. ./configure

What is the expected output? What do you see instead?
  Error message is "checking if pthreads is supported... configure: error:
Cannot find a proper pthread library".  But pthread library is installed
and there are no problems there.

config.log shows the real problem:
  configure:6039: checking if pthreads is supported
  configure:6066: gcc -o conftest -g -O2   conftest.c  -static -lrt
-pthread -laio >&5
  /usr/bin/ld: cannot find -lrt
  collect2: ld returned 1 exit status

i.e. librt.a is missing.

After installing static librt, I get same problem with libaio.  Gives
misleading pthread message again.  Problem is that default libaio is shared
library.

What version of the product are you using? On what operating system?

  stressapptest-1.0.3_autoconf

  Fedora 12.

Please provide any additional information below.

On Fedora 12, to get a static version of librt.a, you need to install the
"glibc-static" package.  For static version of libaio, you need to install
the "libaio-devel" package.

Question: does conftest.c really need to be compiled with the -static flag?

Original issue reported on code.google.com by dom.layf...@gmail.com on 1 Jun 2010 at 6:12

GoogleCodeExporter commented 9 years ago
Hi, I am trying to install “stressapptest-1.0.3_autoconf” on a 64 bit 
RedHat 5.5. I am using the InstallationGuide on google to help me go through 
the process. When I run the first command ‘tar zxvf 
stressapptest-1.0.3_autoconf.tar.gz’ everything goes well, then  I try the 
second one ‘./configure’ and I get an error message saying “checking if 
pthreads is supported… configure: error: Cannot find a proper pthread library 
See ‘config.log’ for more details.” I have looked into the config.log 
file and did not find it very useful for solving this case. 

Do you have a solution or a list of commands that I can go through to fix this 
problem ? if so it would be really appreciated. 

                                                                                                                                                                                    Thanks !

Original comment by kandelam...@gmail.com on 9 Jul 2010 at 7:29

GoogleCodeExporter commented 9 years ago
Hi, how do you install the libaio-devel package? Thank you!

Original comment by two...@gmail.com on 25 Aug 2010 at 12:55

GoogleCodeExporter commented 9 years ago
It depends on the distro. "apt-get install libaio-dev", or "emerge libaio" are 
possibilities.

The easiest thing you can do is disable static compilation by removing 
"-static" at configure.ac:115

http://www.google.com/codesearch/p?hl=en#qyI_0-rqcKk/trunk/configure.ac&q=static
%20package:http://stressapptest%5C.googlecode%5C.com&sa=N&cd=16&ct=rc&l=115

Probably the default build does not need to be static, and the ./configure 
output needs to be fixed in any case.

Original comment by nick.j.s...@gmail.com on 25 Aug 2010 at 3:48

GoogleCodeExporter commented 9 years ago
SLAX Linux v 6.1.2

stressapptest-1.0.3_autoconf
stressapptest-1.0.2_autoconf

Configure terminated by following message:
checking if pthreads is supported... configure: error: Cannot find a proper 
pthread library

#ls /usr/lib/libpthread*
/usr/lib/libpthread.a  /usr/lib/libpthread.so  /usr/lib/libpthread_nonshared.a

Original comment by sayboo...@gmail.com on 13 Nov 2010 at 8:45

GoogleCodeExporter commented 9 years ago
Hello
I tried to install this stress tool on RHEL 5.5 x86-64. And this issue occured.
After the package "libaio-devel-0.3.106-5.x86_64" the configuration successful.
Thanks

Original comment by read...@gmail.com on 24 Feb 2011 at 7:57

GoogleCodeExporter commented 9 years ago
By the way
the package "libaio-devel-0.3.106-5.x86_64" is in the DVD Disk of RHEL 5.5.

Original comment by read...@gmail.com on 24 Feb 2011 at 7:58

GoogleCodeExporter commented 9 years ago
I was installing the Stressapp test 1.0.0.  I had a problem to run ./configure. 
 There were some messages saying that "checking for g++, c++, gpp, aCC, CC, 
cxx, cl.exe .....NO"  Please help me out.  

Original comment by ez...@yahoo.com on 8 Oct 2011 at 8:14

GoogleCodeExporter commented 9 years ago
Libraries are properly checked one by one in the current version, fixing the 
incorrect pthreads failure. Also dynamic linking is the default. So this issue 
should have been fixed some time ago.

Original comment by nick.j.s...@gmail.com on 11 Feb 2014 at 9:23