We help IT Professionals succeed at work.

How I can enable pthread support in G++ on solaris 9

cidyl asked
Last Modified: 2013-12-27
I downloaded solaris 9 software companion image and install it on my newly build solaris 9 (Sparc). When I try install ORBacus on it, ORBacus runconfiger can't find g++ 2.95.3 come with pthread support, so runconfigure abortion, can't generate configure file.

My question is: How I can enable Pthread support after G++ installed from prepacked package?

Watch Question

what's the actual error message from the configure utility?

the latest version of gcc is 3.3.2; not sure if that will make a difference.

and are you sure /usr/lib/libpthread.so* exists? (well, it should, but you never know)


checking size of int... 4
checking for long... yes
checking size of long... 4
checking for float... yes
checking size of float... 4
checking for double... yes
checking size of double... 8
checking for bool... yes
checking size of bool... 1
checking for wchar_t... yes
checking size of wchar_t... 4
checking for long long... yes
checking size of long long... 8
checking for long double... yes
checking size of long double... 16
checking whether byte ordering is bigendian... yes
checking for library suffix... .so
checking how to build libraries... with g++ -xarch=v9 -g -O3 -fPIC -shared -o
checking how to install libraries... with ${INSTALL} -m 644
checking whether c++ compiler supports RTTI... yes
checking whether c++ compiler supports exception handling... yes
checking whether c++ compiler supports namespaces... yes
checking for exception... yes
checking for exception.h... no
checking for terminate.h... no
checking for unexpected.h... no
checking for new... yes
checking for iostream... yes
checking for sstream... yes
checking for fstream... yes
checking for iomanip... yes
checking whether c++ compiler supports iostream in namespace std... yes
checking whether c++ compiler supports wide character stream I/O... no
checking whether c++ compiler supports STL in namespace std... yes
checking whether c++ compiler supports std::set_*... yes
checking whether c++ compiler can explicitly instantiate templates... yes
checking whether c++ compiler supports typename... yes
checking for FSU threads... no
checking for MIT or regular POSIX threads... no
checking for sched.h... yes
checking for sys/sched.h... no
configure: error: Operating system does not support threads!
configure: error: /bin/bash './configure' failed for jtc

There are some information when I run configure with ". ./go" instruction. The result shouws Operating system don't support threads, but it is not true, system actually come with POSIX thread support, I tested it with some dummy programming to make sure Pthread is working well

I don't know why configure programming con't detect Pthread support.


the configure script also has some dummy programming embedded in it that tries to compile in thread support.  if that part of the configure script is failing, you'll need to scroll through it to find out why it failed...  most likely it's trying to reference a library that is in a different place.



Thank you for your response, it was got done. I re-compiled gcc compiler by configure with --enable-threads=posix. It works well.

Looks gcc 2.95.3 solaris package comes without pthread support by default, so I need to re-compile it.

This one is on us!
(Get your first solution completely free - no credit card required)
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.


Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.