[BusyBox 0000728]: [PORTABILITY] GNU libc asprintf dependency
bugs at busybox.net
bugs at busybox.net
Tue Feb 28 08:27:04 UTC 2006
A NOTE has been added to this issue.
======================================================================
http://busybox.net/bugs/view.php?id=728
======================================================================
Reported By: rfelker
Assigned To: BusyBox
======================================================================
Project: BusyBox
Issue ID: 728
Category: Other
Reproducibility: always
Severity: minor
Priority: normal
Status: acknowledged
======================================================================
Date Submitted: 02-18-2006 10:18 PST
Last Modified: 02-28-2006 00:27 PST
======================================================================
Summary: [PORTABILITY] GNU libc asprintf dependency
Description:
libbb/bb_asprintf.c fails to compile without GNU vasprintf. A simple
fallback is to first call snprintf with NULL string argument to get the
length (excluding terminator byte), malloc, then call snprintf again with
the new buffer.
======================================================================
----------------------------------------------------------------------
vodz - 02-20-06 03:19
----------------------------------------------------------------------
Its require the auto configure infrastructure.
I don`t know, how detect supporting asprintf in libbb internally in the
compiling process.
----------------------------------------------------------------------
rfelker - 02-28-06 00:27
----------------------------------------------------------------------
I've found other dependencies on GNU functions too, like strndup (that one
is stupid though since it obviously should be replaced by bb_xstrdup). IMO
one possible solution is to have a manual configuration option to disable
dependence on all GNU-specific functions and use portable replacements for
them (at a possible but minor size/performance penalty).
Issue History
Date Modified Username Field Change
======================================================================
02-18-06 10:18 rfelker New Issue
02-18-06 10:18 rfelker Status new => assigned
02-18-06 10:18 rfelker Assigned To => BusyBox
02-20-06 03:19 vodz Note Added: 0001122
02-20-06 03:19 vodz Status assigned => acknowledged
02-20-06 03:19 vodz Resolution open => suspended
02-28-06 00:27 rfelker Note Added: 0001145
======================================================================
More information about the busybox-cvs
mailing list