dotgnu-pnet
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Pnet-developers] [bug #19237] pnet-0.8.0 configuration may fail to reco


From: anonymous
Subject: [Pnet-developers] [bug #19237] pnet-0.8.0 configuration may fail to recognize the correct thread model under glibc>=2.4
Date: Thu, 08 Mar 2007 08:28:13 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.2) Gecko/20070226 BonEcho/2.0.0.2

URL:
  <http://savannah.gnu.org/bugs/?19237>

                 Summary: pnet-0.8.0 configuration may fail to recognize the
correct thread model under glibc>=2.4
                 Project: DotGNU Portable.NET
            Submitted by: None
            Submitted on: Thursday 03/08/2007 at 08:28 UTC
                Category: None
                Severity: 3 - Normal
              Item Group: None
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

Apologies if I'm wrong.

When building pnet-0.8.0 under glibc>=2.4 the configuration
process may fail in the absence of an explicit
--enable-threads=... option.

glibc>=2.4 has dropped support for linuxthreads (almost) and
supports only NPTL.

As a consequence, in order to build gcc against glibc>=2.4
one has to use --disable-threads (or the equivalent
--enable-threads=single). This, in turn, implies that "gcc
-v" will emit:

     Using built-in specs.
     Target: i686-pc-linux-gnu
     Configured with: ../configure \
                --prefix=/usr/local/gcc-4.1.2 \
                --disable-threads --enable-__cxa_atexit
     vvvvvvvvvvvvvvvvvvvv
     Thread model: single
     ^^^^^^^^^^^^^^^^^^^^
     gcc version 4.1.2

Now, pnet-0.8.0/configure will capture the correct thread
model in either presence or absence of --enable-threads
option, since it tests the $host variable to make a decision
when --enable-threads has not been given.

However, in pnet-0.8.0/libgc/configure the $host variable is
not tested and only the output of "gcc -v" is considered (in
the absence of --enable-threads option). Since "gcc -v"
returns "Thread model: single" when built against
glibc>=2.4, pnet-0.8.0/libgc/configure assumes no threads
and compilation crashes.

No problem if one configures with --enable-threads=posix,
but I'm wondering whether things should go smoothly also
when one issues a simple "configure" without any option (as
it used to work in the past).







    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?19237>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]