string.h causes FTBFS with gcc-4.4

Bug #385317 reported by Michael Terry
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
libwibble (Debian)
Fix Released
Unknown
libwibble (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Wibble's string.h uses vasprintf but does not #include <cstdio>.

It causes issues like the following when compiling debtags:

"In file included from /usr/include/wibble/test.h:3,
                 from /usr/include/wibble/exception.h:25,
                 from /usr/include/ept/apt/apt.h:27,
                 from Printer.h:35,
                 from SmartSearcher.cc:22:
/usr/include/wibble/string.h: In function 'std::string wibble::str::fmt(std::string, ...)':
/usr/include/wibble/string.h:63: error: 'vasprintf' was not declared in this scope"

Debdiff coming shortly.

Tags: ftbfs patch

Related branches

Michael Terry (mterry)
Changed in libwibble (Ubuntu):
assignee: nobody → Michael Terry (mterry)
status: New → In Progress
Revision history for this message
Michael Terry (mterry) wrote :
Changed in libwibble (Ubuntu):
assignee: Michael Terry (mterry) → nobody
status: In Progress → Confirmed
Changed in libwibble (Debian):
status: Unknown → New
Revision history for this message
Colin Watson (cjwatson) wrote :

Thanks for your contribution. Please don't add patch systems to packages that don't have them already; general convention in Ubuntu is that we stick with existing packaging. I'd be happy to sponsor this if you just applied the patch directly to the source package.

Revision history for this message
Michael Terry (mterry) wrote :

OK, here's an updated version (and I ran update-maintainer this time!). :)

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

This bug was fixed in the package libwibble - 0.1.22ubuntu1

---------------
libwibble (0.1.22ubuntu1) karmic; urgency=low

  * wibble/string.h:
    - Fix gcc-4.4 FTBFS by including <cstdio> (LP: #385317)

 -- Michael Terry <email address hidden> Wed, 10 Jun 2009 09:33:30 -0400

Changed in libwibble (Ubuntu):
status: Confirmed → Fix Released
Artur Rona (ari-tczew)
tags: added: patch
Changed in libwibble (Debian):
status: New → Fix Released
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.