[Bug 1298779] [NEW] C++11 incompatibility

Dan Kegel dank at kegel.com
Fri Mar 28 05:36:27 UTC 2014


Public bug reported:

In Trusty beta 1, with libpng12-dev 1.2.50-1ubuntu1 installed,  I can't build an app that uses libpng.
Symptom here is

/usr/include/libpng12/png.h:2661:31: error: invalid suffix on literal; C++11 requires a space between literal and identifier [-Werror=literal-suffix]
        fprintf(PNG_DEBUG_FILE,"%s"m PNG_STRING_NEWLINE,(num_tabs==1 ? "\t" : \
                               ^
/usr/include/libpng12/png.h:2669:31: error: invalid suffix on literal; C++11 requires a space between literal and identifier [-Werror=literal-suffix]
        fprintf(PNG_DEBUG_FILE,"%s"m PNG_STRING_NEWLINE,(num_tabs==1 ? "\t" : \
                               ^
/usr/include/libpng12/png.h:2677:31: error: invalid suffix on literal; C++11 requires a space between literal and identifier [-Werror=literal-suffix]
        fprintf(PNG_DEBUG_FILE,"%s"m PNG_STRING_NEWLINE,(num_tabs==1 ? "\t" : \
                               ^

See also https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=676157 for a report
from a year or so ago about the same problem.  I've also seen reports
of others hitting this in Trusty, e.g.
http://farm.openttd.org/browse/OTTD-RLS-LUT32BIT-44;jsessionid=1kl6zmtb50hn3sbdsl3kvbry6

** Affects: libpng (Ubuntu)
     Importance: Undecided
         Status: New

** Attachment added: "apport report file thingy"
   https://bugs.launchpad.net/bugs/1298779/+attachment/4047772/+files/apport.libpng12-dev.643h04u2.apport

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to libpng in Ubuntu.
https://bugs.launchpad.net/bugs/1298779

Title:
  C++11 incompatibility

Status in “libpng” package in Ubuntu:
  New

Bug description:
  In Trusty beta 1, with libpng12-dev 1.2.50-1ubuntu1 installed,  I can't build an app that uses libpng.
  Symptom here is

  /usr/include/libpng12/png.h:2661:31: error: invalid suffix on literal; C++11 requires a space between literal and identifier [-Werror=literal-suffix]
          fprintf(PNG_DEBUG_FILE,"%s"m PNG_STRING_NEWLINE,(num_tabs==1 ? "\t" : \
                                 ^
  /usr/include/libpng12/png.h:2669:31: error: invalid suffix on literal; C++11 requires a space between literal and identifier [-Werror=literal-suffix]
          fprintf(PNG_DEBUG_FILE,"%s"m PNG_STRING_NEWLINE,(num_tabs==1 ? "\t" : \
                                 ^
  /usr/include/libpng12/png.h:2677:31: error: invalid suffix on literal; C++11 requires a space between literal and identifier [-Werror=literal-suffix]
          fprintf(PNG_DEBUG_FILE,"%s"m PNG_STRING_NEWLINE,(num_tabs==1 ? "\t" : \
                                 ^

  See also https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=676157 for a report
  from a year or so ago about the same problem.  I've also seen reports
  of others hitting this in Trusty, e.g.
  http://farm.openttd.org/browse/OTTD-RLS-LUT32BIT-44;jsessionid=1kl6zmtb50hn3sbdsl3kvbry6

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libpng/+bug/1298779/+subscriptions



More information about the foundations-bugs mailing list