This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Problems compiing with g++ / c++


I just reinstalled pth from gnu.org and did and ldconfig.. 

same luck !


On Tue, 2003-03-18 at 18:48, LLeweLLyn Reese wrote:
> "Anthony R. Mattke" <tonhe at adelphia dot net> writes:
> 
> > I've just attempted recompling gcc 2.95.3.
> > 
> > I used this as my configure
> > 
> > --prefix=/usr
> > --enable-shared 
> > --with-gnu-ld
> > --enable-threads
> > --verbose
> > --target=i386-slackware-linux
> > --host=i386-slackware-linux
> > --with-gxx-include-dir=/usr/include/g++-3
> > --with-local-prefix=/usr/local
> > 
> > now, compile g++ and c++ works great (AFAIK, mozilla is still compiling) but compiling some c source seems to be broken.
> > 
> > 
> > Attempting to build glib (part of gtk/gnome) i ran into a problem running ./configure.. )
> > 
> > checking for pthread.h... yes
> > checking for thread implementation... posix
> > checking for pthread_attr_init in -lpthread... no
> > checking for pthread_attr_init in -lpthreads... no
> > checking for pthread_attr_init in -lthread... no
> > checking for pthread_attr_init in -lc_r... no
> > checking for pthread_attr_init... no
> > checking for __d10_pthread_attr_init in -lthread... no
> > checking for __pthread_attr_init_system in -lpthread... no
> > configure: error: I can't find the libraries for the thread implementation
> >                 posix. Please choose another thread implementation or
> >                 provide information on your thread implementation.
> >                 You can also run 'configure --disable-threads'
> >                 to compile without thread support.
> > 
> > What in the world is going on now ? i set --enable-threads..
> 
> --enable-threads does not provide a threads library. Instead, it makes
>   the C++ and objective-C runtimes compatible with threads. I suggest
>   you install the linuxthreads package for your linux distro.
-- 
Anthony R. Mattke <tonhe at adelphia dot net>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]