Summary: | sci-visualization/gnuplot-5.4.9[-cairo,-gd] - ../.../post.trm: error: expected declaration specifiers or before string constant | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Toralf Förster <toralf> |
Component: | Current packages | Assignee: | Ulrich Müller <ulm> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | sci |
Priority: | Normal | Keywords: | REGRESSION |
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 911592 | ||
Attachments: |
emerge-info.txt
emerge-history.txt environment etc.portage.tar.xz logs.tar.xz sci-visualization:gnuplot-5.4.9:20231009-060739.log temp.tar.xz |
Description
Toralf Förster
![]() Created attachment 872408 [details]
emerge-info.txt
Created attachment 872409 [details]
emerge-history.txt
Created attachment 872410 [details]
environment
Created attachment 872411 [details]
etc.portage.tar.xz
Created attachment 872412 [details]
logs.tar.xz
Created attachment 872413 [details]
sci-visualization:gnuplot-5.4.9:20231009-060739.log
Created attachment 872414 [details]
temp.tar.xz
This happens only with USE="-cairo -gd" and is caused by unbalanced parentheses in term/post.trm (leading to a very confusing error message from the compiler): #ifdef HAVE_DEFLATE_ENCODER if (ps_params->level3) { encoded_image = (void *)PS_encode_png_image(M, N, image, color_mode, bits_per_component, max_colors, cscale, &num_encoded_bytes); } else { #endif encoded_image = PS_encode_image(M, N, image, color_mode, bits_per_component, max_colors, cscale, (ps_params->level1 ? PS_ASCII_HEX : PS_ASCII85), &num_encoded_bytes); } A fix is available upstream: https://sourceforge.net/p/gnuplot/gnuplot-main/ci/b5b668ca442e0d7399e2b432fe5fe5fb4c48a1a2/ The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fbb42d862a08de57da2ed67b7b6fb6661ad706f5 commit fbb42d862a08de57da2ed67b7b6fb6661ad706f5 Author: Ulrich Müller <ulm@gentoo.org> AuthorDate: 2023-10-09 19:28:27 +0000 Commit: Ulrich Müller <ulm@gentoo.org> CommitDate: 2023-10-09 19:30:50 +0000 sci-visualization/gnuplot: Fix unbalanced braces in C source Closes: https://bugs.gentoo.org/915492 Signed-off-by: Ulrich Müller <ulm@gentoo.org> .../gnuplot/files/gnuplot-5.4.9-unbal-braces.patch | 31 ++++++++++++++++++++++ sci-visualization/gnuplot/gnuplot-5.4.9.ebuild | 1 + 2 files changed, 32 insertions(+) |