Skip to contentSkip to conversation

New: neon config fails libxml/parser.h: libxml2 requires, but not dependent on, libiconv

Buildroot bugzilla at busybox.net 1 participant 5 messages Mar 22, 2010 – Jul 19, 2010

lore
Share & tools
lore
#0 lore raw

https://bugs.busybox.net/show_bug.cgi?id=1393

Summary: neon config fails libxml/parser.h: libxml2 requires, but
not dependent on, libiconv
Product: buildroot
Version: 2010.02
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P5
Component: Other
AssignedTo: unassigned at buildroot.uclibc.org
ReportedBy: mjhammel at graphics-muse.org
CC: buildroot at uclibc.org
Estimated Hours: 0.0

Running configure for neon:

configure:30827: checking libxml/parser.h usability
configure:30844:
/home/mjhammel/src/cei/ustar/src/../bld/buildroot-2010.02.xcc.bld/staging/usr/bin/powerpc-linux-gcc -Os -pipe -Os --sysroot /home/mjhammel/src/cei/ustar/src/../bld/buildroot-2010.02.bld/staging// -c -Os -pipe -Os --sysroot /home/mjhammel/src/cei/ustar/src/../bld/buildroot-2010.02.bld/staging// -D_LARGEFILE64_SOURCE -DNE_LFS -I/usr/include/libxml2 conftest.c >&5
In file included from /usr/include/libxml2/libxml/parser.h:801,

                 from conftest.c:131:
/usr/include/libxml2/libxml/encoding.h:28:19: error: iconv.h: No such file or
directory
In file included from /usr/include/libxml2/libxml/parser.h:801,
                 from conftest.c:131:

/usr/include/libxml2/libxml/encoding.h:136: error: expected specifier-qualifier-list before 'iconv_t'

Checking encoding.h, iconv.h is included only if LIBXML_ICONV_ENABLED is set:

#ifdef LIBXML_ICONV_ENABLED
#include <iconv.h>
#endif

There are no buildroot options to set this so it must be on by default in the libxml2 build which means that libxml2 should be dependent on libiconv, but it currently is not.

Test run: 2010-03-22
Buildroot version: buildroot-2010.02 on Fedora11

Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
#1 lore raw

[Buildroot] [Bug 1393] neon config fails libxml/parser.h: libxml2 requires, but not dependent on, libiconv

https://bugs.busybox.net/show_bug.cgi?id=1393

Peter Korsgaard <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED

--- Comment #1 from Peter Korsgaard <[email protected]> 2010-04-02 13:46:46 UTC --- The problem rather seems to be that neon somehow end up looking at your host includes, instead of the ones in staging/usr/include.

I cannot reproduce it here, please provide more details about your setup (and your .config)

Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
#2 lore raw

[Buildroot] [Bug 1393] neon config fails libxml/parser.h: libxml2 requires, but not dependent on, libiconv

In reply to bugzilla at busybox.net

https://bugs.busybox.net/show_bug.cgi?id=1393

--- Comment #2 from Michael J. Hammel <[email protected]> 2010-04-02 15:25:16 UTC --- Created an attachment (id=1465)
--> (https://bugs.busybox.net/attachment.cgi?id=1465)
Buildroot config

I build the cross compiler first, separately, using buildroot. Then I build the rootfs. The xcc source and build trees are completely separate from the rootfs source and build trees. I have a metabuild (Makefile, patches, etc.) that does all this for me. The metabuild copies over the buildroot tarball to the build tree, unpacks it, applies patches, copies in the config file (which is a template that is patched by the metabuild so output goes to the correct location), and then compiles the rootfs. The patching of the config file is done so that all developers can build the project the same way without hard coded locations in the config file.

My fix to this problem was to enable libiconv in the config file, as shown in the attachement.

If you'd like to see the metabuild Makefile and includes let me know and I'll attach them separately.

Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
#3 lore raw

[Buildroot] [Bug 1393] neon config fails libxml/parser.h: libxml2 requires, but not dependent on, libiconv

In reply to bugzilla at busybox.net

https://bugs.busybox.net/show_bug.cgi?id=1393

Thomas Petazzoni <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |2010.05

Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
#4 lore raw

[Buildroot] [Bug 1393] neon config fails libxml/parser.h: libxml2 requires, but not dependent on, libiconv

In reply to bugzilla at busybox.net

https://bugs.busybox.net/show_bug.cgi?id=1393

Thomas Petazzoni <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED

--- Comment #3 from Thomas Petazzoni <[email protected]> --- Even though I haven't reproduced the particular problem reported by this bug, I think commit
http://git.buildroot.net/buildroot/commit/?id=4a2dabe9d53e6c361ecdeaba0431ef74a9ad297c
might fix the problem. Don't hesitate to reopen the bug if you can still reproduce it with the latest Buildroot git.

Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.