bugGNU Octave - Bugs: bug #43899, MXE: libxml2 version 2.9.2 won't...

 
 

bug #43899: MXE: libxml2 version 2.9.2 won't build, 2.9.1 builds OK

Submitter:  Philip Nienhuis <philipnienhuis>
Submitted:  Sun 28 Dec 2014 09:38:31 PM UTC
   
 
Category:  Configuration and Build System Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Build Failure
Status:  Fixed Assigned to:  lostbard
Originator Name:  Philip Nienhuis Open/Closed:  * Closed
Release:  * other Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Jump to the original submission

Thu 01 Jan 2015 01:42:25 PM UTC, comment #16: 
John Donoghue <lostbard>
Group Member
Thu 01 Jan 2015 01:12:35 PM UTC, comment #15: 

The bug was reported on the libxml2 bugzilla:
https://bugzilla.gnome.org/show_bug.cgi?id=739532

John Donoghue <lostbard>
Group Member
Thu 01 Jan 2015 10:36:06 AM UTC, comment #14: 

Yep that works.

Philip Nienhuis <philipnienhuis>
Group Member
Thu 01 Jan 2015 01:38:00 AM UTC, comment #13: 

ok - I see the issue.

Patch libxml2.mk with the attached patch and let me know if that works




(file #32742)

John Donoghue <lostbard>
Group Member
Wed 31 Dec 2014 07:41:21 PM UTC, comment #12: 

I just guess you mean the one in tmp-libxml2/libxml2-2.9.2/, I've attached it.


(file #32741)

Philip Nienhuis <philipnienhuis>
Group Member
Wed 31 Dec 2014 06:35:06 PM UTC, comment #11: 

How about the 2.9.2 config.log file from libxml2 when it fails - it still looks to me that it is the one obvious thing different on your machine to mine.

The config.log file might say where it failed for detecting gzread.


John Donoghue <lostbard>
Group Member
Wed 31 Dec 2014 04:18:28 PM UTC, comment #10: 

With a fresh mxe-octave clone from today, libxml2 broke again, in the exact same way AFAICS.

(Just did:
hg clone .....
autoconf ; ./configure ; make nsis-installer JOBS=9  )

So, while my build box may be "anomalous", it is at least consistent :-(

Would you have a suggestion on where to dig further?

Philip Nienhuis <philipnienhuis>
Group Member
Wed 31 Dec 2014 03:45:45 PM UTC, comment #9: 

My mint Linux didn't have any issues either.

John Donoghue <lostbard>
Group Member
Tue 30 Dec 2014 04:14:20 PM UTC, comment #8: 

Sure, in attached archive "libxml2_issues.zip" I have put:

subdirs:

-org/> zlib & xz build logs & very first libxml2 build log

-libxml2_2.9.1/ libxml_2.9.1 build log

-after_libxml2_2.9.1_install/ most recent libxml2_2.9.2 build log

The thing you didn't ask (yet) is to re-clone mxe-otave & start over again. I think I'll do that overnight.


(file #32736)

Philip Nienhuis <philipnienhuis>
Group Member
Tue 30 Dec 2014 01:09:21 PM UTC, comment #7: 

According to the changelog for libxml 2.9.2 [1]: "Fix zlib and lzma libraries check via command line".


Not sure why it works fine for me and not you though. I will retry on my mint box and see if it acts any different there.

Can you send the config.log file for the 2.9.2 build?


[1] http://xmlsoft.org/news.html

John Donoghue <lostbard>
Group Member
Tue 30 Dec 2014 12:42:00 PM UTC, comment #6: 

(You mean: 2.9.2 :-) )

No, exact same errors.

Philip Nienhuis <philipnienhuis>
Group Member
Mon 29 Dec 2014 10:23:41 PM UTC, comment #5: 

If you try a rebuild of 1.9.2 does it work?

John Donoghue <lostbard>
Group Member
Mon 29 Dec 2014 09:20:57 PM UTC, comment #4: 

For the next libxml2 build log, that for version 1.9.1, I see:


:
Checking zlib
checking zlib.h usability... yes
checking zlib.h presence... yes
checking for zlib.h... yes
checking for gzread in -lz... yes
Checking lzma
:


and in the log/ directory I see:

lrwxrwxrwx 1 philip philip    18 Dec 28 17:01 xz -> 20141228_163208/xz
lrwxrwxrwx 1 philip philip    20 Dec 28 16:55 zlib -> 20141228_163208/zlib


...so xz and zlib were built and present. I can't find any spurious stuff in the xz and zlib logs. I assume that the fact that they have entries in the installed_packages/ subdir indicates they were built fine.

Hmmm. I have to conclude that on my box, somehow, MXE got confused.
But why a different libxml2 version makes all the difference is beyond me...

I'll leave this report open for a little longer, perhaps I can pinpoint the issue somewhere.

Philip Nienhuis <philipnienhuis>
Group Member
Mon 29 Dec 2014 05:44:51 PM UTC, comment #3: 

Thanks for looking into this.

Right, I can follow you, but I wonder why libxml2 v. 1.9.1 compiles fine then.
I'll look in the log for that (+ original build logs) but only later when I can reboot into Linux.

Philip Nienhuis <philipnienhuis>
Group Member
Mon 29 Dec 2014 05:12:50 PM UTC, comment #2: 

libxml built fine for me on my fedora box using the latest mxe sources.

Looking at your log file, the difference I see that is perhaps related to your issue is in the config.


On my machine:


Checking zlib
checking zlib.h usability... yes
checking zlib.h presence... yes
checking for zlib.h... yes
checking for gzread in -lz... yes
Checking lzma
checking for LZMA... yes


From your log:


Checking zlib
checking zlib.h usability... yes
checking zlib.h presence... yes
checking for zlib.h... yes
checking for gzread in -lz... no
Checking lzma
checking for LZMA... yes



As part of make nsis-installer, did xz and zlib get compiled and installed? (not including build-xz).

zlib should probably be a dependency for libxml2 as it uses it.


John Donoghue <lostbard>
Group Member
Mon 29 Dec 2014 03:00:48 PM UTC, comment #1: 

I'm building a new clean build using your process.

John Donoghue <lostbard>
Group Member
Sun 28 Dec 2014 09:38:31 PM UTC, original submission:  

With freshly cloned MXE 7a6637aa3aae tip "installer: ran octave through explorer when running at end of install (Bug 43824)" libxml2 doesn't get built (cross-built) for 32 bits.
Reverting to libxml2 v 2.9.1 (i.e., reverting cs 713653a0cc35 "libxml2: update to 2.9.2") makes the MXE build continue.

Interestingly/intriguingly, a "--enable-64" build the day before worked fine (also with a fresh clone).

After "hg clone" I merely did:
autoconf
./configure
make nsis-installer JOBS=9

MXE build log for libxml2 v.2.9.2 attached.

Philip Nienhuis <philipnienhuis>
Group Member

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #32742:  libxmlfix.patch added by lostbard (791B - text/x-patch)
file #32741:  config.log added by philipnienhuis (157KiB - text/x-log)
file #32736:  libxml2_issues.zip added by philipnienhuis (65KiB - application/zip)
file #32726:  libxml2.zip added by philipnienhuis (7KiB - application/x-sdlc)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by lostbard (Posted a comment)
  • -email is unavailable- added by philipnienhuis (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.

    Only group members can vote.

     

    Follow 7 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2015-01-01 lostbard StatusNone Fixed
        Assigned toNone lostbard
        Open/ClosedOpen Closed
    2015-01-01 lostbard Attached File- Added libxmlfix.patch, #32742
    2014-12-31 philipnienhuis Attached File- Added config.log, #32741
    2014-12-30 philipnienhuis Attached File- Added libxml2_issues.zip, #32736
    2014-12-28 philipnienhuis Attached File- Added libxml2.zip, #32726

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code