- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- C library for vsnprintf
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-25-2006 08:49 PM
05-25-2006 08:49 PM
I'm trying to compile povray on a c3000 under hpux 11.11. but it reports that the C library is too old and does not support vsnprintf(..) function. Does anybody know if there is a C library available which support vsnprintf function?
thanks in advance.
YZ
Solved! Go to Solution.
- Tags:
- vsnprintf
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-25-2006 09:11 PM
05-25-2006 09:11 PM
Re: C library for vsnprintf
here is the link for c library;
http://www.mibsoftware.com/userkt/inn/dev/inn2.0-beta/inn/include/clibrary.h
regards;
mustafa
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-25-2006 09:11 PM
05-25-2006 09:11 PM
Re: C library for vsnprintf
Are you trying to compile with Ansi-C or bundled compiler ? Probably, you can try with GCC.
http://h21007.www2.hp.com/dspp/tech/tech_TechSoftwareDetailPage_IDX/1,1703,547,00.html
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-29-2006 09:26 PM
05-29-2006 09:26 PM
Re: C library for vsnprintf
related to the vsnprintf-check.
As I am totally new to unix things, could anybody give me some clue that
how can I modify it please.
Thanks in advance.
------------------------------------------
#AC_FUNC_STRFTIME
#AC_FUNC_VPRINTF
# vsnprintf
if test x"$enable_vsnprintf_check" != x"no"; then
echo "$as_me:$LINENO: checking for vsnprintf">&5
echo $ECHO_N "checking for vsnprintf... $ECHO_C">&6
if test "${ac_cv_func_vsnprintf+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C">&6
else
cat>conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h. */
_ACEOF
cat confdefs.h>>conftest.$ac_ext
cat>>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char vsnprintf (); below.
Prefer
#ifdef __STDC__
# include
#else
# include
#endif
/* Override any gcc2 internal prototype to avoid an error. */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char vsnprintf ();
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
#if defined (__stub_vsnprintf) || defined (__stub___vsnprintf)
choke me
#else
char (*f) () = vsnprintf;
#endif
#ifdef __cplusplus
}
#endif
int
main ()
{
return f != vsnprintf;
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"")>&5
(eval $ac_link) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status">&5
(exit $ac_status); } &&
{ ac_try='test -s conftest$ac_exeext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"")>&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status">&5
(exit $ac_status); }; }; then
ac_cv_func_vsnprintf=yes
else
echo "$as_me: failed program was:">&5
sed 's/^/| /' conftest.$ac_ext>&5
ac_cv_func_vsnprintf=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_func_vsnprintf">&5
echo "${ECHO_T}$ac_cv_func_vsnprintf">&6
if test $ac_cv_func_vsnprintf = yes; then
:
else
{ { echo "$as_me:$LINENO: error:
*** This system does not provide the C99 vsnprintf() function which
*** is required to compile $PACKAGE_NAME. You should consider updating
*** your C library as it is too old. Alternatively you might install
*** a specific library implementing the (v)snprintf family of functions.
*** Searching the web should give you appropriate pointers.
***
*** In case you want to try compiling $PACKAGE_NAME while your system
lacks
*** this function (meaning that compilation *will* fail unless you
provide
*** a replacement function), try the --disable-vsnprintf-check option.
">&5
echo "$as_me: error:
*** This system does not provide the C99 vsnprintf() function which
*** is required to compile $PACKAGE_NAME. You should consider updating
*** your C library as it is too old. Alternatively you might install
*** a specific library implementing the (v)snprintf family of functions.
*** Searching the web should give you appropriate pointers.
***
*** In case you want to try compiling $PACKAGE_NAME while your system
lacks
*** this function (meaning that compilation *will* fail unless you
provide
*** a replacement function), try the --disable-vsnprintf-check option.
">&2;}
{ (exit 1); exit 1; }; }
---------------------------------------------------
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-30-2006 01:40 PM
05-30-2006 01:40 PM
Solutionin libc but for some reason there wasn't a
prototype for it in stdio.h. Perhaps you're
in a similar situation. Get up to date on
libc and/or C DevKit patches.
Failing that, do a 'nm /usr/lib/libc.sl' to
see if vsnprintf is already in your libc.
If so, and you're just missing the prototype,
then either disable the autoconf check for
vsnprintf (I dunno how to do that) or simply
provide the prototype yourself:
extern int vsnprintf(char *, __size_t, const char *, __va_list);
If vsnprintf is not in your libc and there
aren't any patches for it, you could write
a pass-through version of vsnprintf which
just calls vsprintf. However you'd lose
the buffer safety properties of vsnprintf.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-31-2006 01:53 AM
05-31-2006 01:53 AM
Re: C library for vsnprintf
YZ