Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [patch] libxml2 fixes
@ 2007-08-06 15:10 Brad House
  2007-08-06 20:38 ` Ulf Samuelsson
                   ` (2 more replies)
  0 siblings, 3 replies; 11+ messages in thread
From: Brad House @ 2007-08-06 15:10 UTC (permalink / raw)
  To: buildroot

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 

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Buildroot] [patch] libxml2 fixes
  2007-08-06 15:10 [Buildroot] [patch] libxml2 fixes Brad House
@ 2007-08-06 20:38 ` Ulf Samuelsson
  2007-08-06 20:57   ` Brad House
  2007-08-07  4:38 ` Hebbar
  2007-08-07 17:17 ` Ulf Samuelsson
  2 siblings, 1 reply; 11+ messages in thread
From: Ulf Samuelsson @ 2007-08-06 20:38 UTC (permalink / raw)
  To: buildroot

----- Original Message ----- 
From: "Brad House" <brad@mainstreetsoftworks.com>
To: <buildroot@uclibc.org>
Sent: Monday, August 06, 2007 5:10 PM
Subject: [Buildroot] [patch] 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
>

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

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Buildroot] [patch] libxml2 fixes
  2007-08-06 20:38 ` Ulf Samuelsson
@ 2007-08-06 20:57   ` Brad House
  2007-08-06 21:04     ` Ulf Samuelsson
  0 siblings, 1 reply; 11+ messages in thread
From: Brad House @ 2007-08-06 20:57 UTC (permalink / raw)
  To: buildroot

> 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

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Buildroot] [patch] libxml2 fixes
  2007-08-06 20:57   ` Brad House
@ 2007-08-06 21:04     ` Ulf Samuelsson
  2007-08-06 21:28       ` Brad House
  0 siblings, 1 reply; 11+ messages in thread
From: Ulf Samuelsson @ 2007-08-06 21:04 UTC (permalink / raw)
  To: buildroot

From: "Brad House" <brad@mainstreetsoftworks.com>
To: "Ulf Samuelsson" <ulf@atmel.com>
Cc: <buildroot@uclibc.org>
Sent: Monday, August 06, 2007 10:57 PM
Subject: Re: [Buildroot] [patch] libxml2 fixes


>> 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.

> and with what version of libxml2?

libxml2 version from buildroot.

> and on what architecture?


generic-arm 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?

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.


> 
> Thanks.
> -Brad
>




Best Regards
Ulf Samuelsson

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Buildroot] [patch] libxml2 fixes
  2007-08-06 21:04     ` Ulf Samuelsson
@ 2007-08-06 21:28       ` Brad House
  0 siblings, 0 replies; 11+ messages in thread
From: Brad House @ 2007-08-06 21:28 UTC (permalink / raw)
  To: buildroot

>>> 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.
> 
>> and with what version of libxml2?
> 
> libxml2 version from buildroot.
> 
>> and on what architecture?
> 
> 
> generic-arm 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?
> 
> 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

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Buildroot] [patch] libxml2 fixes
  2007-08-06 15:10 [Buildroot] [patch] libxml2 fixes Brad House
  2007-08-06 20:38 ` Ulf Samuelsson
@ 2007-08-07  4:38 ` Hebbar
  2007-08-07 12:08   ` Brad House
  2007-08-07 17:17 ` Ulf Samuelsson
  2 siblings, 1 reply; 11+ messages in thread
From: Hebbar @ 2007-08-07  4:38 UTC (permalink / raw)
  To: buildroot


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
-- 
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.

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Buildroot] [patch] libxml2 fixes
  2007-08-07  4:38 ` Hebbar
@ 2007-08-07 12:08   ` Brad House
  2007-08-07 12:21     ` Steven J. Hill
  0 siblings, 1 reply; 11+ messages in thread
From: Brad House @ 2007-08-07 12:08 UTC (permalink / raw)
  To: buildroot

>      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 
> 
>    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

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Buildroot] [patch] libxml2 fixes
  2007-08-07 12:08   ` Brad House
@ 2007-08-07 12:21     ` Steven J. Hill
  2007-08-08  0:03       ` Hebbar
  0 siblings, 1 reply; 11+ messages in thread
From: Steven J. Hill @ 2007-08-07 12:21 UTC (permalink / raw)
  To: buildroot

On Tue, Aug 07, 2007 at 08:08:21AM -0400, Brad House wrote:
> 
> 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

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Buildroot] [patch] libxml2 fixes
  2007-08-06 15:10 [Buildroot] [patch] libxml2 fixes Brad House
  2007-08-06 20:38 ` Ulf Samuelsson
  2007-08-07  4:38 ` Hebbar
@ 2007-08-07 17:17 ` Ulf Samuelsson
  2 siblings, 0 replies; 11+ messages in thread
From: Ulf Samuelsson @ 2007-08-07 17:17 UTC (permalink / raw)
  To: buildroot

----- Original Message ----- 
From: "Brad House" <brad@mainstreetsoftworks.com>
To: <buildroot@uclibc.org>
Sent: Monday, August 06, 2007 5:10 PM
Subject: [Buildroot] [patch] 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...
> 


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

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Buildroot] [patch] libxml2 fixes
  2007-08-07 12:21     ` Steven J. Hill
@ 2007-08-08  0:03       ` Hebbar
  2007-08-08  0:10         ` Brad House
  0 siblings, 1 reply; 11+ messages in thread
From: Hebbar @ 2007-08-08  0:03 UTC (permalink / raw)
  To: buildroot


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
-- 
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.

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Buildroot] [patch] libxml2 fixes
  2007-08-08  0:03       ` Hebbar
@ 2007-08-08  0:10         ` Brad House
  0 siblings, 0 replies; 11+ messages in thread
From: Brad House @ 2007-08-08  0:10 UTC (permalink / raw)
  To: buildroot

>  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

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2007-08-08  0:10 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-08-06 15:10 [Buildroot] [patch] libxml2 fixes Brad House
2007-08-06 20:38 ` Ulf Samuelsson
2007-08-06 20:57   ` Brad House
2007-08-06 21:04     ` Ulf Samuelsson
2007-08-06 21:28       ` Brad House
2007-08-07  4:38 ` Hebbar
2007-08-07 12:08   ` Brad House
2007-08-07 12:21     ` Steven J. Hill
2007-08-08  0:03       ` Hebbar
2007-08-08  0:10         ` Brad House
2007-08-07 17:17 ` Ulf Samuelsson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox