Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 477318 Details for
Bug 621726
app-text/texlive-core-2017-r1: fails to compile using clang (C++11)
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
c++11 patch
pdftoepdf-c++11.patch (text/plain), 1.25 KB, created by
Fabian Groffen
on 2017-06-20 12:13:07 UTC
(
hide
)
Description:
c++11 patch
Filename:
MIME Type:
Creator:
Fabian Groffen
Created:
2017-06-20 12:13:07 UTC
Size:
1.25 KB
patch
obsolete
>pdftoepdf.w: work around generation removing too much whitespace > >The error observed with Clang 3.9.1 (x86_64-apple-darwin16.6.0) is > >texlive-20170524-source/texk/web2c/luatexdir/image/pdftoepdf.w:74:34: >error: > invalid suffix on literal; C++11 requires a space between literal and > identifier [-Wreserved-user-defined-literal] >snprintf(ck,PDF_CHECKSUM_SIZE,"%"PRIu64"_%"PRIu64,(uint64_t)size,(uint64... > ^ > >Adding newlines does the trick, because the generation keeps them, and >the compiler as suck sees whitespace between the literal and identifier. >This is of course a kludge, the original code is correct, the generator >should probably be fixed. > > >--- texlive-20170524-source/texk/web2c/luatexdir/image/pdftoepdf.w >+++ texlive-20170524-source/texk/web2c/luatexdir/image/pdftoepdf.w >@@ -71,7 +71,11 @@ > ck = (char *) malloc(PDF_CHECKSUM_SIZE); > if (ck == NULL) > formatted_error("pdf inclusion","out of memory while processing '%s'", a); >- snprintf(ck, PDF_CHECKSUM_SIZE, "%" PRIu64 "_%" PRIu64, (uint64_t) size,(uint64_t) mtime); >+ snprintf(ck, PDF_CHECKSUM_SIZE, "%" >+PRIu64 >+ "_%" >+PRIu64 >+, (uint64_t) size,(uint64_t) mtime); > } else { > switch (fe) { > case FE_FAIL:
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 621726
: 477318