Bug#1030687: libgiac-dev: giac/plot.h needs lacks typedef for uchar

Adrian Bunk bunk at debian.org
Mon Feb 6 13:53:21 GMT 2023


Package: libgiac-dev
Version: 1.9.0.35+dfsg2-1
Severity: serious
Tags: ftbfs
X-Debbugs-Cc: Rogo <rogo95 at proton.me>, Tobias Hansen <thansen at debian.org>
Control: affects -1 src:sagemath

Minimal testcase for a problem from #1020576 breaking the sagemath build:

$ cat test.cc
#include <giac/giac.h>
$ g++ -c test.cc
In file included from /usr/include/giac/giac.h:37,
                 from test.cc:1:
/usr/include/giac/plot.h:842:6: error: variable or field ‘blend’ declared void
  842 | void blend(uchar r1,uchar g1,uchar b1,uchar r2,uchar g2,uchar b2,double t,uchar &r,uchar &g,uchar &b);
      |      ^~~~~
/usr/include/giac/plot.h:842:12: error: ‘uchar’ was not declared in this scope; did you mean ‘u_char’?
...


Adding (as in giac/signalprocessing.h)
  typedef unsigned char uchar;
at the top of giac.h or plot.h fixes the problem.

This bug is a regression from bullseye.


More information about the debian-science-maintainers mailing list