Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 915492 - sci-visualization/gnuplot-5.4.9[-cairo,-gd] - ../.../post.trm: error: expected declaration specifiers or before string constant
Summary: sci-visualization/gnuplot-5.4.9[-cairo,-gd] - ../.../post.trm: error: expecte...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Ulrich Müller
URL:
Whiteboard:
Keywords: REGRESSION
Depends on:
Blocks: glibc-2.38
  Show dependency tree
 
Reported: 2023-10-09 16:05 UTC by Toralf Förster
Modified: 2023-10-09 19:31 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info.txt (emerge-info.txt,17.39 KB, text/plain)
2023-10-09 16:06 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,137.48 KB, text/plain)
2023-10-09 16:06 UTC, Toralf Förster
Details
environment (environment,112.21 KB, text/plain)
2023-10-09 16:06 UTC, Toralf Förster
Details
etc.portage.tar.xz (etc.portage.tar.xz,26.66 KB, application/x-xz)
2023-10-09 16:06 UTC, Toralf Förster
Details
logs.tar.xz (logs.tar.xz,13.73 KB, application/x-xz)
2023-10-09 16:06 UTC, Toralf Förster
Details
sci-visualization:gnuplot-5.4.9:20231009-060739.log (sci-visualization:gnuplot-5.4.9:20231009-060739.log,51.04 KB, text/plain)
2023-10-09 16:06 UTC, Toralf Förster
Details
temp.tar.xz (temp.tar.xz,31.08 KB, application/x-xz)
2023-10-09 16:06 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2023-10-09 16:05:59 UTC
too long lines were shrinked:

x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I..  -I../term -I../term -DBINDIR=\"/usr/bin\" -DX11_DRIVER_DIR=\"/usr/libexec/gnuplot/5.4\" -DQT_DRIVER_DIR=\"/usr/libexec/gnuplot/5.4\" -DGNUPLOT_SHARE_DIR=\"/usr/share/gnuplot/5.4\" -DGNUPLOT_PS_DIR=\"/usr/share/gnuplot/5.4/PostScript\" -DGNUPLOT_JS_DI
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I..  -I../term -I../term -DBINDIR=\"/usr/bin\" -DX11_DRIVER_DIR=\"/usr/libexec/gnuplot/5.4\" -DQT_DRIVER_DIR=\"/usr/libexec/gnuplot/5.4\" -DGNUPLOT_SHARE_DIR=\"/usr/share/gnuplot/5.4\" -DGNUPLOT_PS_DIR=\"/usr/share/gnuplot/5.4/PostScript\" -DGNUPLOT_JS_DI
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I..  -I../term -I../term -DBINDIR=\"/usr/bin\" -DX11_DRIVER_DIR=\"/usr/libexec/gnuplot/5.4\" -DQT_DRIVER_DIR=\"/usr/libexec/gnuplot/5.4\" -DGNUPLOT_SHARE_DIR=\"/usr/share/gnuplot/5.4\" -DGNUPLOT_PS_DIR=\"/usr/share/gnuplot/5.4/PostScript\" -DGNUPLOT_JS_DI
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I..  -I../term -I../term -DBINDIR=\"/usr/bin\" -DX11_DRIVER_DIR=\"/usr/libexec/gnuplot/5.4\" -DQT_DRIVER_DIR=\"/usr/libexec/gnuplot/5.4\" -DGNUPLOT_SHARE_DIR=\"/usr/share/gnuplot/5.4\" -DGNUPLOT_PS_DIR=\"/usr/share/gnuplot/5.4/PostScript\" -DGNUPLOT_JS_DI
In file included from term.h:298,
                 from term.c:1211:
../term/post.trm:4016:11: error: expected declaration specifiers or ... before string constant
 4016 |     fputs("%%%%BeginImage\n", gppsfile);
      |           ^~~~~~~~~~~~~~~~~~

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_no_multilib_hardened-20231007-091504

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-13 *
clang/llvm (if any):
Python 3.11.6
Available Ruby profiles:
  [1]   ruby31 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.73.0 *
php cli (if any):
go version go1.21.1 linux/amd64

  HEAD of ::gentoo
commit cbfb9f527d52692cc1aaf4767c4fa1d929e7e35d
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Mon Oct 9 06:01:58 2023 +0000

    2023-10-09 06:01:57 UTC

emerge -qpvO sci-visualization/gnuplot
[ebuild     U ] sci-visualization/gnuplot-5.4.9 [5.4.8] USE="libcaca libcerf readline -X (-aqua) -bitmap -cairo -doc -examples -gd -ggi -latex -lua -qt5 -regis -wxwidgets" LUA_SINGLE_TARGET="lua5-1 -lua5-3 -lua5-4"
Comment 1 Toralf Förster gentoo-dev 2023-10-09 16:06:00 UTC
Created attachment 872408 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2023-10-09 16:06:04 UTC
Created attachment 872409 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2023-10-09 16:06:08 UTC
Created attachment 872410 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2023-10-09 16:06:10 UTC
Created attachment 872411 [details]
etc.portage.tar.xz
Comment 5 Toralf Förster gentoo-dev 2023-10-09 16:06:11 UTC
Created attachment 872412 [details]
logs.tar.xz
Comment 6 Toralf Förster gentoo-dev 2023-10-09 16:06:13 UTC
Created attachment 872413 [details]
sci-visualization:gnuplot-5.4.9:20231009-060739.log
Comment 7 Toralf Förster gentoo-dev 2023-10-09 16:06:15 UTC
Created attachment 872414 [details]
temp.tar.xz
Comment 8 Ulrich Müller gentoo-dev 2023-10-09 17:58:56 UTC
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/
Comment 9 Larry the Git Cow gentoo-dev 2023-10-09 19:31:09 UTC
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(+)