Bug 141188 - [EFL] Build failed after r179113
Summary: [EFL] Build failed after r179113
Status: RESOLVED INVALID
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit EFL (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-02-02 20:37 PST by Hunseop Jeong
Modified: 2015-02-03 07:18 PST (History)
6 users (show)

See Also:


Attachments
patch (1.24 KB, patch)
2015-02-03 06:18 PST, Hyungwook Lee
no flags Details | Formatted Diff | Diff
patch (1.19 KB, patch)
2015-02-03 06:23 PST, Hyungwook Lee
no flags Details | Formatted Diff | Diff
patch (1.25 KB, patch)
2015-02-03 06:25 PST, Hyungwook Lee
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Hunseop Jeong 2015-02-02 20:37:21 PST
/usr/include/libpng12/png.h:2659: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:2667: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:2675: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" : \
                                ^

Introduce the build fail after removing the -Wno-error=literal-suffix.
My gcc version is gcc (Ubuntu/Linaro 4.8.1-10ubuntu9) 4.8.1.


================= in https://bugs.webkit.org/show_bug.cgi?id=140886 =====================
Comment 1 Csaba Osztrogonác 2015-01-26 05:48:46 PST 
Created attachment 245344 [details]
Patch

Let's remove these flags, we don't need them after http://trac.webkit.org/changeset/179110
==========================================================================================

Dear Csaba Osztrogonác,

Is it related with the gcc version?
Comment 1 Hyungwook Lee 2015-02-03 06:18:43 PST
Created attachment 245935 [details]
patch
Comment 2 Hyungwook Lee 2015-02-03 06:19:39 PST
I've same errors and I've uploaded my local patch for all.
Comment 3 Hyungwook Lee 2015-02-03 06:23:04 PST
Created attachment 245936 [details]
patch
Comment 4 Hyungwook Lee 2015-02-03 06:25:00 PST
Created attachment 245937 [details]
patch
Comment 5 Csaba Osztrogonác 2015-02-03 06:26:37 PST
No, it isn't related to GCC version, but the non-C++11 compatible libpng version.
I assume you still have Ubuntu 13.10, which isn't supported long time ago.

https://wiki.ubuntu.com/Releases - End of life of 13.10: July 17, 2014
https://lists.ubuntu.com/archives/ubuntu-announce/2014-June/000185.html

I suggest you should upgrade your system or fix your png.h locally,
it is only 1-1 space in 3 lines. ;)

I don't like the idea to disable literal-suffix warnings for all sources
and for GTK and EFL too because of a non supported distribution.
Comment 6 Hyungwook Lee 2015-02-03 06:37:36 PST
I agree with you that the root cause is the non-C++11 compatible libpng version.

Thanks for your feedback.
Comment 7 Gyuyoung Kim 2015-02-03 07:18:16 PST
(In reply to comment #6)
> I agree with you that the root cause is the non-C++11 compatible libpng
> version.
> 
> Thanks for your feedback.

Closed this bug because of Ossy's review. I agree with Ossy's comment.