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

Submitter:  Dominyk <domt4>
Submitted:  Thu 07 Jan 2016 03:07:54 PM UTC
   
 
Category:  Build Severity:  3 - Normal
Item Group:  None Status:  Fix Released
Privacy:  Public Assigned to:  ueno
Open/Closed:  Closed

Thu 09 May 2019 07:22:15 PM UTC, comment #5: 

The fix is contained in the gettext-0.19.8.1 release.

Bruno Haible <haible>
Group administrator
Wed 03 Jan 2018 02:59:27 PM UTC, comment #4: 

The current gettext git compiles fine on Mac OS X 10.5 and 10.12.
=> Closing.

Bruno Haible <haible>
Group administrator
Sat 28 May 2016 12:44:06 AM UTC, comment #3: 
Daiki Ueno <ueno>
Group 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>
Group 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>

 

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

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
  • -email is unavailable- added by haible (Updated the item)
  • -email is unavailable- added by dburr (Updated the item)
  • -email is unavailable- added by ueno (Posted a comment)
  • -email is unavailable- added by domt4 (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 6 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2023-01-04 haible StatusFixed Fix Released
    2018-01-03 haible StatusNone Fixed
        Assigned toNone ueno
        Open/ClosedOpen Closed
    2016-11-27 haible CategoryNone Build
    2016-05-27 dburr Attached File- Added libxml-2.9.1-check.patch, #37292

    Back to the top

    Powered by Savane 3.13-cf05.
    Corresponding source code