asprintf() and vasprintf() missing in <cstdio> header file

Bug #290742 reported by Uqbar
2
Affects Status Importance Assigned to Milestone
Ubuntu
Expired
Undecided
Unassigned

Bug Description

While in <stdio.h> I can have asprintf() and vasprintf() declared, in the C++ version of the same header file <cstdio> I don't get it.
By the way, I'm currently running:
Description: Ubuntu 8.04.1
Release: 8.04

Revision history for this message
Lupine (thelupine) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. Unfortunately, we can't fix it because your description didn't include enough information. You may find it helpful to read "How to report bugs effectively" http://www.chiark.greenend.org.uk/~sgtatham/bugs.html. We'd be grateful if you would then provide a more complete description of the problem.

We have instructions on debugging some types of problems at http://wiki.ubuntu.com/DebuggingProcedures

At a minimum, we need:
1. the specific steps or actions you took that caused you to encounter the problem,
2. the behavior you expected, and
3. the behavior you actually encountered (in as much detail as possible).
Thanks!

Revision history for this message
Uqbar (uqbar) wrote :

The asprintf() and vasprintf() prototypes are declared in <stdio.h> header file.
The <cstdio> should be the "adapted" version of the same file for C++ language.
Nonetheless those two prototypes are missing from the <cstdio> header file.
This forces the C++ programmers than need those functions to also #include <stdio.h>.
I would expect to see the C++ prototypes for asprintf() and vasprintf() also in <cstdio>.

em

Revision history for this message
Uqbar (uqbar) wrote :

None interested in this? Weird!

Revision history for this message
Uqbar (uqbar) wrote :

NONE IS LISTENING HERE!

Revision history for this message
Gene Cumm (gene-cumm) wrote :

If I were to guess, a part of the issue with the bug acting "dead" is the lack of a proper package association. I just installed the package that is the owner of the appropriate file in my distro, (K)Ubuntu 10.04. The file /usr/include/c++/4.4/cstdio is owned by libstdc++6-4.4-dev however your version will have a different version of g++/libstdc++ installed. Hardy also gave you the option of four versions. Try using g++-4.2 (and make sure you're using it with `g++ -v` to show version).

http://packages.ubuntu.com/ "Search the contents of packages" "cstdio" " packages that contain files whose names contain the keyword" distribution:"hardy". Also, on your installed system: `locate cstdio` to find the file then `dpkg -S <FILE>` where in my case I did `dpkg -S /usr/include/c++/4.4/cstdio` to find the owner.

Also, is your system completely up to date for Hardy 8.04? It's possible this was solved upstream and it trickled into an update. Looking at mine it appears to also affect me.

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for Ubuntu because there has been no activity for 60 days.]

Changed in ubuntu:
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.