Skip to contentSkip to conversation

libxml2 fixes

PATCH New Brad House 4 participants 11 messages Aug 6, 2007 – Aug 8, 2007

lore
Share & tools
lore

Brad House

author
#0 lore raw

PATCH 1/1 libxml2 fixes

There are a few issues with libxml2.
- It depends on BR2_USE_WCHAR (which in reality, it doesn't)
- xml2-config exports the wrong paths
- it tries to build everything, python modules, etc
- libxml2.la is installed, which has a wrong path, causes issues when linking using libtool, just remove it.

Here's a patch to clean that up...

-Brad
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: libxml2-fixes.patch
Url: http://busybox.net/lists/buildroot/attachments/20070806/c8e1dbac/attachment.diff

#1 lore raw

PATCH 1/1 libxml2 fixes

----- Original Message -----
From: "Brad House" <[email protected]>
To: <[email protected]>
Sent: Monday, August 06, 2007 5:10 PM
Subject: [Buildroot] [patch] libxml2 fixes

Quoted 7 lines

There are a few issues with libxml2.
- It depends on BR2_USE_WCHAR (which in reality, it doesn't)
- xml2-config exports the wrong paths
- it tries to build everything, python modules, etc
- libxml2.la is installed, which has a wrong path, causes issues when linking using libtool, just remove it.

Quoted 5 lines

Here's a patch to clean that up...

-Brad

When I tried to build libxml2 using a toolchain without wchar support
it failed, when it is built with a toolchain supporting wchar, it completes the build.

Best Regards
Ulf Samuelsson

author
#2 lore raw

PATCH 1/1 libxml2 fixes

Quoted 2 lines

When I tried to build libxml2 using a toolchain without wchar support
it failed, when it is built with a toolchain supporting wchar, it completes the build.

When was this and with what version of libxml2, and on what architecture? On x86 and arm, that is not the case from my experience.
Can you also provide some more information on the actual error message?

Thanks.
-Brad

#3 lore raw

PATCH 1/1 libxml2 fixes

From: "Brad House" <[email protected]>
To: "Ulf Samuelsson" <[email protected]>
Cc: <[email protected]>
Sent: Monday, August 06, 2007 10:57 PM
Subject: Re: [Buildroot] [patch] libxml2 fixes

Quoted 4 lines
Quoted 2 lines

When I tried to build libxml2 using a toolchain without wchar support
it failed, when it is built with a toolchain supporting wchar, it completes the build.

When was this?

2-3 weeks ago.

Quoted 1 line

and with what version of libxml2?

libxml2 version from buildroot.

Quoted 1 line

and on what architecture?

generic-arm architecture.

Quoted 2 lines

On x86 and arm, that is not the case from my experience.
Can you also provide some more information on the actual error message?

I killed that toolchain, so I do not have the error handy
You can easily generate a new gcc-4.2.0/binutils-2.17 toolchain based on uClibc 0.29 without wchar for generic-arm.

Quoted 4 lines

Thanks.
-Brad

Best Regards
Ulf Samuelsson

author
#4 lore raw

PATCH 1/1 libxml2 fixes

Quoted 13 lines
Quoted 3 lines
Quoted 2 lines

When I tried to build libxml2 using a toolchain without wchar support
it failed, when it is built with a toolchain supporting wchar, it completes the build.

When was this?

2-3 weeks ago.

Quoted 1 line

and with what version of libxml2?

libxml2 version from buildroot.

Quoted 1 line

and on what architecture?

Quoted 8 lines

generic-arm architecture.

Quoted 2 lines

On x86 and arm, that is not the case from my experience.
Can you also provide some more information on the actual error message?

I killed that toolchain, so I do not have the error handy
You can easily generate a new gcc-4.2.0/binutils-2.17 toolchain based on uClibc 0.29 without wchar for generic-arm.

Perhaps the rest of my patch resolved those issues as I am unable to recreate your issue when using my patch. I just verified that I do NOT have BR2_USE_WCHAR
enabled (Toolchain Options ---> Enable WCHAR support is NOT checked). I could not
get libxml2 to compile at all without apply patches, but it didn't give any issues related to wchar that I could see, it was because it was trying to build stuff like the python module ...

-Brad

#5 lore raw

PATCH 1/1 libxml2 fixes

In reply to Brad House

Hi Brad,

After i applied ur patch, i am getting an error when compilling libxml2
as missing xml-config file

<snip>
<snip>

rm -f /home/guru/project/original/toolchains/buildroot/build_arm/staging_dir/usr/lib/libxml2.la /home/guru/project/original/toolchains/buildroot/toolchain_build_arm/bin/sed
-i -e 's:prefix=/usr:prefix=/home/guru/project/original/toolchains/buildroot/build_arm/staging_dir/usr:'

\
        -e

's:includedir=/usr/include:includedir=/home/guru/project/original/toolchains/buildroot/build_arm/staging_dir/usr/include:' \

/home/guru/project/original/toolchains/buildroot/build_arm/staging_dir/usr/bin/xml2-config /home/guru/project/original/toolchains/buildroot/toolchain_build_arm/bin/sed:
can't read /home/guru/project/original/toolchains/buildroot/build_arm/staging_dir/usr/bin/xml2-config:
No such file or directory
make: *** [/home/guru/project/original/toolchains/buildroot/build_arm/libxml2-2.6.29/libxml2.la] Error

But i see that xml-config is in my buildroot/build_arm/libxml2-2.6.29
directory. i think its not copied to build_arm/staging_dir/usr/bin/. kindly let me know if i can manually copy the same or i should add/make any changes.

Regards
Gururaja

Signature · 2 lines
View this message in context: http://www.nabble.com/-patch--libxml2-fixes-tf4224762.html#a12028348
Sent from the BuildRoot mailing list archive at Nabble.com.
author
#6 lore raw

PATCH 1/1 libxml2 fixes

Quoted 12 lines

After i applied ur patch, i am getting an error when compilling libxml2
as missing xml-config file

<snip>
<snip>

/home/guru/project/original/toolchains/buildroot/build_arm/staging_dir/usr/bin/xml2-config:
No such file or directory
make: *** [/home/guru/project/original/toolchains/buildroot/build_arm/libxml2-2.6.29/libxml2.la] Error

Quoted 4 lines

But i see that xml-config is in my buildroot/build_arm/libxml2-2.6.29
directory. i think its not copied to build_arm/staging_dir/usr/bin/. kindly let me know if i can manually copy the same or i should add/make any changes.

Well, the 'make install' inside the libxml2.mk is responsible for copying over the xml2-config to your staging_dir's usr/bin directory.

Can you run:
make libxml2-clean
rm -rf build_arm/libxml2-2.6.29

then run 'make' and see if libxml2 builds and installs? Perhaps it didn't re-run the configuration step after the patch...

If that doesn't work, I'll go ahead and probably get rid of the 'make install', and just copy the files over directly (that's what Gumstix's fork of buildroot does, and they may have had an actual reason for it). Odd I can't reproduce your situation though.

-Brad

#7 lore raw

PATCH 1/1 libxml2 fixes

Quoted 5 lines · Brad House

Can you run:
make libxml2-clean
rm -rf build_arm/libxml2-2.6.29

BTW, make libxml2-dirclean will properly remove and clean out the source build directory for you.

-Steve

#8 lore raw

PATCH 1/1 libxml2 fixes

Hi All,

I tried Make libxml2-clean, make libxml2-dirclean & then make libxml2 but
still xml-config was not copied. but when tried make libxml2-headers it copied xml-config properly. dont know why. anyway thanks for all your help.

Hope someone can help me like this with glib libintl issue .

Regards
Gururaja

Signature · 2 lines
View this message in context: http://www.nabble.com/-patch--libxml2-fixes-tf4224762.html#a12044831
Sent from the BuildRoot mailing list archive at Nabble.com.
author
#9 lore raw

PATCH 1/1 libxml2 fixes

Quoted 5 lines

I tried Make libxml2-clean, make libxml2-dirclean & then make libxml2 but
still xml-config was not copied. but when tried make libxml2-headers it copied xml-config properly. dont know why. anyway thanks for all your help.

Hope someone can help me like this with glib libintl issue .

Odd, still can't reproduce...
It looks like Ulf committed the libxml2 patch, so you might try to update your svn and see if it works there...

I just did

make libxml2-clean
make libxml2-dirclean
make libxml2

Tried it with both the headers option on and off ...
Maybe you're svn is out of sync somehow, not really sure... I'd probably need to see more of your debug output (where your <snip>'s were in the original e-mail).

-Brad

#10 lore raw

PATCH 1/1 libxml2 fixes

In reply to Brad House

----- Original Message -----
From: "Brad House" <[email protected]>
To: <[email protected]>
Sent: Monday, August 06, 2007 5:10 PM
Subject: [Buildroot] [patch] libxml2 fixes

Quoted 9 lines

There are a few issues with libxml2.
- It depends on BR2_USE_WCHAR (which in reality, it doesn't)
- xml2-config exports the wrong paths
- it tries to build everything, python modules, etc
- libxml2.la is installed, which has a wrong path, causes issues when linking using libtool, just remove it.

Here's a patch to clean that up...

Seems the Python support could be the culprit.
While compiling "libxml.c" it complains that

    ".../python2.5/unicodeobject.h:118:21" wchar.h: No such file or directory.

Best Regards
Ulf Samuelsson