Skip to contentSkip to conversation

libglib2: fix g_print()

PATCH New Benoît Thébaudeau 3 participants 3 messages Dec 17, 2012 – Dec 18, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 libglib2: fix g_print()

If GLib is cross-compiled, the default printf settings that it selects are wrong for glibc. This leads to issues with the g_print() functions, e.g. "Aborted" errors returned by gst-inspect.

This patch fixes this issue by setting printf configuration options compatible with glibc. These options should also be compatible with uClibc.

This solution has been suggested for LTIB by Rogerio Nunes:
https://community.freescale.com/thread/302734

---
 package/libglib2/libglib2.mk |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
package/libglib2/libglib2.mk +2 -1
index 4427431..c3e510b 100644
@@ -40,7 +40,8 @@ LIBGLIB2_CONF_ENV = \
 		ac_cv_func_working_mktime=yes jm_cv_func_working_re_compile_pattern=yes \
 		ac_use_included_regex=no gl_cv_c_restrict=no \
 		ac_cv_path_GLIB_GENMARSHAL=$(HOST_DIR)/usr/bin/glib-genmarshal ac_cv_prog_F77=no \
-		ac_cv_func_posix_getgrgid_r=no \
+		ac_cv_func_posix_getgrgid_r=no glib_cv_long_long_format=ll \
+		ac_cv_func_printf_unix98=yes ac_cv_func_vsnprintf_c99=yes \
 		gt_cv_c_wchar_t=$(if $(BR2_USE_WCHAR),yes,no)
 
 # old uClibc versions don't provide qsort_r
Signature · 1 line
1.7.10.4
#1 lore raw

PATCH 1/1 libglib2: fix g_print()

Quoted 11 lines · Beno?t Th?baudeau

If GLib is cross-compiled, the default printf settings that it selects are wrong for glibc. This leads to issues with the g_print() functions, e.g. "Aborted" errors returned by gst-inspect.

This patch fixes this issue by setting printf configuration options compatible with glibc. These options should also be compatible with uClibc.

This solution has been suggested for LTIB by Rogerio Nunes:
https://community.freescale.com/thread/302734

(fixes our aborts when doing gst-inspect on an i.MX6 platform)

Regards,
Arnout

Signature · 6 lines
Arnout Vandecappelle                               arnout at mind be
Senior Embedded Software Architect                 +32-16-286540
Essensium/Mind                                     http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium                BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint:  7CB5 E4CC 6C2E EFD4 6E3D A754 F963 ECAB 2450 2F1F
#2 lore raw

PATCH 1/1 libglib2: fix g_print()

In reply to Benoît Thébaudeau
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Beno?t" == Beno?t Th?baudeau <[email protected]> writes:

Beno?t> If GLib is cross-compiled, the default printf settings that it Beno?t> selects are wrong for glibc. This leads to issues with the Beno?t> g_print() functions, e.g. "Aborted" errors returned by Beno?t> gst-inspect.

Beno?t> This patch fixes this issue by setting printf configuration Beno?t> options compatible with glibc. These options should also be Beno?t> compatible with uClibc.

Beno?t> This solution has been suggested for LTIB by Rogerio Nunes:
Beno?t> https://community.freescale.com/thread/302734

Committed, thanks.

Signature · 1 line
Bye, Peter Korsgaard