bugGNU gettext - Bugs: bug #32087, libpthread linkage detection on...

 
 

bug #32087: libpthread linkage detection on Solaris

Submitted by:  Peter FELECAN <pfelecan>
Submitted on:  Mon 10 Jan 2011 10:31:30 AM UTC  
Votes:  1  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: None
Privacy: PublicAssigned to: None
Open/Closed: Open

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Mon 10 Jan 2011 10:31:30 AM UTC, original submission:

While I package gdb on Solaris 10 for the Open CSW project
(http://www.opencsw.org/) I found that the dynamic detection for
linking with pthread library by creating an ephemeral thread triggers
an assertion in gdb's thread management. This is clearly a bug in gdb
which I'll report on the corresponding system.

However, this behavior can be avoided by changing the detection
method.

Solaris 9 and previous had an issue with defining the POSIX thread
related symbols in libc but with non operational code. For this
reason, a test in the configure process is made in
gettext-runtime/m4/threadlib.m4 and if it detects that we are
configuring on Solaris the dynamic detection in activated in the
threadlib.c code in 3 sub-directories.

On Solaris 10 and later releases the original reason is no more
pertinent as the defined symbols in libc are correct. I tested
this on SPARC and Intel using the code in threadlib.c and without
linking with libpthread.

Consequently I propose a 2 pronged patch:

1. if the package is configured on Solaris 10 or later do not
activate PTHREAD_IN_USE_DETECTION_HARD.
(thread_configure_solaris10.patch)

2. if the package is configured and built on Solaris 9 or previous but
run on Solaris 10 or later the test using the ephemeral thread is
not necessary.
(thread_run_solaris10.patch)

Peter FELECAN <pfelecan>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

Attached Files

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by pjodrr (Voted in favor of this item)
  • -unavailable- added by pfelecan (Submitted the item)
  • -unavailable- added by pfelecan
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 1 encouragement so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 06 May 2011 10:02:44 AM UTCpjodrrCarbon-Copy-=>Added pjodrr
    Mon 10 Jan 2011 10:31:30 AM UTCpfelecanAttached File-=>Added thread_configure_solaris10.patch, #22382
      Attached File-=>Added thread_run_solaris10.patch, #22383
      Carbon-Copy-=>Added pfelecan

    Back to the top


    Powered by Savane 3.1-cleanup