bugGNU gettext - Bugs: bug #40192, libc is linked explicitly to...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #40192: libc is linked explicitly to libintl

Submitted by:  Michael Forney <mforney>
Submitted on:  Sun 06 Oct 2013 06:20:21 AM UTC  
 
Category: BuildSeverity: 3 - Normal
Item Group: NoneStatus: None
Privacy: PublicAssigned to: None
Open/Closed: Open

Sun 06 Oct 2013 06:20:21 AM UTC, original submission:

When building libintl, -lc is passed to the libtool command line, causing it to show up in libintl.la, resulting in various linking order issues when packages use AM_GNU_GETTEXT to set LIBINTL. This is because libc.so could appear before other objects, and mask their symbols.

As far as I understand, -lc should never be passed explicitly because it is always included by default at the end of the linker command line where it belongs.

According to this comment:
http://git.savannah.gnu.org/cgit/gettext.git/tree/gettext-runtime/m4/intl.m4?id=6e109a82373b9f5c16591f87ffe3689b8749ee9e#n136

it is done so -no-undefined can be passed to libtool. However, libc is implicitly linked, so this should not be an issue (at least on modern systems).

Perhaps on some platforms passing -lc is necessary, so if removing LTLIBC and any references to it is not an option, I suggest passing -lc only when required, and not by default.

Michael Forney <mforney>

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by haible (Updated the item)
  • -unavailable- added by mforney (Submitted the item)
  •  

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

    Only logged-in users can vote.

     

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

     

     

    Follows 1 latest change.

    Date Changed By Updated Field Previous Value => Replaced By
    Sun 27 Nov 2016 01:50:10 AM UTChaibleCategoryNone=>Build

    Back to the top


    Powered by Savane 3.1-cleanup1