bugGNU gettext - Bugs: bug #45527, Build fails on Mac OS X 10.6 and...

 
 

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

bug #45527: Build fails on Mac OS X 10.6 and earlier: Undefined symbols: "_stpncpy"

Submitted by:  Ryan Schmidt <ryandesign>
Submitted on:  Sat 11 Jul 2015 12:39:29 PM UTC  
 
Category: BuildSeverity: 3 - Normal
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: Daiki Ueno <ueno>
Open/Closed: Closed

(Jump to the original submission Jump to the original submission)

Fri 24 Jul 2015 06:51:11 AM UTC, comment #6:

Now that 0.19.5.1 was released, I am closing this. Thanks for the report and confirmation.

Daiki Ueno <ueno>
Project AdministratorIn charge of this item.
Sun 12 Jul 2015 11:08:04 PM UTC, comment #5:

Ok, I've confirmed your fix works too, once git is installed. I'm happy with this solution for now, but hopefully you can release a new version with the fix eventually. I'm not sure how many users on 10.6 or earlier would build gettext themselves. Probably developers are using newer systems by now, and users on those old systems would get gettext from a package manager. Looks like Fink and Homebrew haven't updated their gettext packages to this version yet—Fink is on 0.19.3 and Homebrew is on 0.19.4—so they're not affected by the problem yet.

Ryan Schmidt <ryandesign>
Sun 12 Jul 2015 08:41:45 PM UTC, comment #4:

Oh, oops, it didn't work for us because we aren't actually running ./autogen.sh. And doing so isn't convenient because that requires the git program to be present...

Ryan Schmidt <ryandesign>
Sun 12 Jul 2015 08:35:32 PM UTC, comment #3:

Thanks, but that doesn't seem to fix it. In the mean time, one of our developers has fixed it in MacPorts this way:

https://trac.macports.org/browser/trunk/dports/devel/gettext/files/stpncpy.patch?rev=138553

Ryan Schmidt <ryandesign>
Sat 11 Jul 2015 11:30:15 PM UTC, comment #2:

Ugh, sorry, the gnulib stpncpy module was not imported to libgettextpo. That should be fixed with:
http://git.savannah.gnu.org/cgit/gettext.git/commit/?id=257fad6ebbd4ebe4362f4020dda5c3caff58cdb4

If this is too severe, I can make a new minor release.

Daiki Ueno <ueno>
Project AdministratorIn charge of this item.
Sat 11 Jul 2015 01:10:00 PM UTC, comment #1:

The replacement stpncpy is pulled from gnulib. If the check or replacement code doesn't work on older Mac OS X, I'd suggest to consult the gnulib people (bug-gnulib@gnu.org).

Daiki Ueno <ueno>
Project AdministratorIn charge of this item.
Sat 11 Jul 2015 12:39:29 PM UTC, original submission:

Hello,

I'm the maintainer of gettext in MacPorts. I was recently asked to update gettext in MacPorts to 0.19.5:

https://trac.macports.org/ticket/48307

After doing this, it was found that this does not compile on Mac OS X 10.6 and earlier:

https://trac.macports.org/ticket/48314

The error is:

A full log of the build on 10.4 is attached here:

https://trac.macports.org/attachment/ticket/48314/main.log

I think what's happening is that OS X 10.7 and later include an implementation of stpncpy; gettext includes an implementation of stpncpy for use on earlier systems; but in this particular instance, that gettext implementation of stpncpy isn't being used when it should be. (I see stpncpy.o being used earlier in the build, but not here.)

This is a regression since 0.19.4, which built fine on Mac OS X 10.4 and later.

Ryan Schmidt <ryandesign>

 

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 ueno (Posted a comment)
  • -unavailable- added by ryandesign (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):

     

     

    Follow 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sun 27 Nov 2016 12:06:17 PM UTChaibleCategoryNone=>Build
      Assigned toNone=>ueno
    Fri 24 Jul 2015 06:51:11 AM UTCuenoStatusNone=>Fixed
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1