bugGNU gettext - Bugs: bug #46844, gettext 0.19.7 fails to compile,...

 
 

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

bug #46844: gettext 0.19.7 fails to compile, OS X 10.7 & 10.8

Submitted by:  Dominyk <domt4>
Submitted on:  Thu 07 Jan 2016 03:07:54 PM UTC  
 
Category: BuildSeverity: 3 - Normal
Item Group: NoneStatus: None
Privacy: PublicAssigned to: None
Open/Closed: Open

Sat 28 May 2016 12:44:06 AM UTC, comment #3:

Thanks for the analysis and the patch. I have pushed it as:
http://git.savannah.gnu.org/cgit/gettext.git/commit/?id=7a8f93d8de8f24a303c5aec30ceb696700a503ec

Daiki Ueno <ueno>
Project Administrator
Fri 27 May 2016 07:12:57 PM UTC, comment #2:

This failure does not only occur with older versions of OS X. The system version of libxml2 in Debian 7.10 is 2.8.0, which is missing the two functions listed above. According to the changelog for libxml2, these functions were introduced in the following releases:

  • xmlOutputBufferGetContent(): introduced in libxml2 2.9.0
  • xmlXPathSetContextNode(): introduced in libxml2 2.9.1

The attached patch adds a test to check whether the system version of libxml2 includes xmlXPathSetContextNode() (i.e. whether it is version 2.9.1 or later). If it is not then the included version of libxml2 is used instead.

(file #37292)

Daniel Burr <dburr>
Thu 07 Jan 2016 09:23:59 PM UTC, comment #1:

Thanks for reporting that. We should probably make the libxml2 check tighter, so that it fails when the required functions are not compiled in the library.

Anyway, I guess a work around would be adding --with-included-libxml to configure.

Daiki Ueno <ueno>
Project Administrator
Thu 07 Jan 2016 03:07:54 PM UTC, original submission:

Hey folks,

Only tested OS X 10.7 and 10.8 but it seems the latest gettext release won't build on OS X on anything older than 10.9 (Mavericks). Everything newer than 10.8 (Mountain Lion) builds fine.

Tried with the system Clang, LLVM-GCC & tried with a modern GNU GCC-5, which isn't system provided. The error doesn't seem to be compiler related.

Failure point is:
```
Undefined symbols for architecture x86_64:
"_xmlOutputBufferGetContent", referenced from:
__its_collect_text_content in libgettextsrc_la-its.o
"_xmlXPathSetContextNode", referenced from:
__its_get_content in libgettextsrc_la-its.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
```

The problem seems to be with the libxml version on those platforms, which for Mountain Lion is 2.7.8. OS X Mavericks and upwards use at least 2.9.0, where there are no such issues. Building against a manual newer libxml also resolves the issue.

Just reporting in case this wasn't an intended breakage.

Dominyk <domt4>

 

Attached Files
file #37292:  libxml-2.9.1-check.patch added by dburr (2KiB - text/x-patch - Add check for xmlXPathSetContextNode())

 

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 dburr (Updated the item)
  • -unavailable- added by ueno (Posted a comment)
  • -unavailable- added by domt4 (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 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sun 27 Nov 2016 12:08:27 PM UTChaibleCategoryNone=>Build
    Fri 27 May 2016 07:12:57 PM UTCdburrAttached File-=>Added libxml-2.9.1-check.patch, #37292

    Back to the top


    Powered by Savane 3.1-cleanup1