BusyBox Bug and Patch Tracking
BusyBox
  

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0005404 [buildroot] Other major always 10-13-08 09:04 10-13-08 09:04
Reporter tpetazzoni View Status public  
Assigned To buildroot
Priority normal Resolution open  
Status assigned   Product Version
Summary 0005404: Bogus check on internal toolchain configuration
Description package/libglib2/libglib2.mk and package/libglib2/Config.in both test BR2_ENABLE_LOCALE to know whether libiconv shoud be compiled (when BR2_ENABLE_LOCALE is not set, the toolchain doesn't have support for locales, so an external iconv library is needed, while when BR2_ENABLE_LOCALE is set, we can use the internal iconv implementation of the C library).

The problem is that these checks are completely bogus when using an external toolchain, which is a common use case with Buildroot. BR2_ENABLE_LOCALE is not set, but the toolchain might have iconv support. So, because of libglib2's dependency, Buildroot compiles GNU libiconv and installs it to the staging_dir. The configure script of libglib then detects that an internal iconv implementation is available and decides to use. But the compilation of libglib2 fails later due to the following test in glib/gconvert.c:

#if !defined(USE_LIBICONV_GNU) && defined (_LIBICONV_H)
#error GNU libiconv not in use but included iconv.h is from libiconv
#endif

USE_LIBICONV_GNU is not defined because the ./configure script has found that the internal implementation of iconv by the C library was present. _LIBICONV_H is defined because GNU libiconv has been installed in the staging_dir, including its header file.

I don't know how such a problem should be handled. What's the Buildroot policy for that kind of internal vs. external toolchain configuration issues ?
Additional Information
Attached Files

- Relationships

There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
10-13-08 09:04 tpetazzoni New Issue
10-13-08 09:04 tpetazzoni Status new => assigned
10-13-08 09:04 tpetazzoni Assigned To  => buildroot


Copyright © 2000 - 2006 Mantis Group
Powered by Mantis Bugtracker