Hi,

I've fixed the bug. I plan to do NMU to fix this bug.

I'll wait for 10 days if no one says no.
And I'll upload it to delay/10 queue.

The attachment is the debdiff and build log.

Yours,
Paul
diff -Nru gramophone2-0.8.13a/debian/changelog 
gramophone2-0.8.13a/debian/changelog
--- gramophone2-0.8.13a/debian/changelog        2022-12-13 05:48:33.000000000 
+0800
+++ gramophone2-0.8.13a/debian/changelog        2024-04-01 05:23:29.000000000 
+0800
@@ -1,3 +1,14 @@
+gramophone2 (0.8.13a-3.3) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * Fix FTBFS caused by -Werror=implicit-function-declaration
+    (Closes: #1066674)
+    - Add debian/patches/fix-ftbfs-implicit-function-declaration.patch
+    - Update debian/patches/clang_FTBFS.patch
+    - Update debian/patches/GRAMophone.y.diff
+
+ -- Ying-Chun Liu (PaulLiu) <paul...@debian.org>  Mon, 01 Apr 2024 05:23:29 
+0800
+
 gramophone2 (0.8.13a-3.2) unstable; urgency=low
 
   [ Ying-Chun Liu (PaulLiu) <paul...@debian.org> ]
diff -Nru gramophone2-0.8.13a/debian/patches/clang_FTBFS.patch 
gramophone2-0.8.13a/debian/patches/clang_FTBFS.patch
--- gramophone2-0.8.13a/debian/patches/clang_FTBFS.patch        2022-12-13 
05:48:33.000000000 +0800
+++ gramophone2-0.8.13a/debian/patches/clang_FTBFS.patch        2024-04-01 
05:23:29.000000000 +0800
@@ -1,9 +1,29 @@
 Description: fix FTBFS with clang [-Wreturn-type]
 Author: Nicolas Sévelin-Radiguet <nic...@free.fr>
 Last-Update: 2014-09-06
---- a/midifile.c
-+++ b/midifile.c
-@@ -156,7 +156,7 @@
+Index: gramophone2-0.8.13a/midifile.c
+===================================================================
+--- gramophone2-0.8.13a.orig/midifile.c
++++ gramophone2-0.8.13a/midifile.c
+@@ -78,6 +78,17 @@ static int read16bit();
+ static int to16bit();
+ static char *msg();
+ 
++int mferror(char *);
++int readheader();
++int readtrack();
++int chanmessage(int, int, int);
++int msginit();
++int msgadd(int);
++int metaevent(int);
++int sysex();
++int msgleng();
++int badbyte(int);
++
+ /*
+  * Write multi-length bytes to MIDI format files
+  */
+@@ -156,7 +167,7 @@ readheader()               /* read a header chunk */
        int format, ntrks, division;
  
        if ( readmt("MThd") == EOF )
diff -Nru 
gramophone2-0.8.13a/debian/patches/fix-ftbfs-implicit-function-declaration.patch
 
gramophone2-0.8.13a/debian/patches/fix-ftbfs-implicit-function-declaration.patch
--- 
gramophone2-0.8.13a/debian/patches/fix-ftbfs-implicit-function-declaration.patch
    1970-01-01 08:00:00.000000000 +0800
+++ 
gramophone2-0.8.13a/debian/patches/fix-ftbfs-implicit-function-declaration.patch
    2024-04-01 05:23:29.000000000 +0800
@@ -0,0 +1,84 @@
+Description: Fix FTBFS caused by -Werror=implicit-function-declaration
+ In dpkg 1.22.6, it enabled -Werror=implicit-function-declaration.
+ Thus we need to make sure every function has its definition.
+Bug-Debian: http://bugs.debian.org/1066674
+Author: Ying-Chun Liu (PaulLiu) <paul...@debian.org>
+Last-Update: 2024-04-01
+Index: gramophone2-0.8.13a/midifile.h
+===================================================================
+--- gramophone2-0.8.13a.orig/midifile.h
++++ gramophone2-0.8.13a/midifile.h
+@@ -32,6 +32,11 @@ extern int (*Mf_writetempotrack)();
+ float mf_ticks2sec();
+ unsigned long mf_sec2ticks();
+ void mfwrite();
++int mf_write_midi_event(unsigned long, unsigned int, unsigned int, unsigned 
char *, unsigned long);
++int mf_write_meta_event(unsigned long, unsigned char, unsigned char *, 
unsigned long);
++void mf_write_tempo(unsigned long);
++int eputc(unsigned char);
++int biggermsg();
+ 
+ /* MIDI status commands most significant bit is 1 */
+ #define note_off              0x80
+Index: gramophone2-0.8.13a/global.h
+===================================================================
+--- gramophone2-0.8.13a.orig/global.h
++++ gramophone2-0.8.13a/global.h
+@@ -181,3 +181,33 @@ typedef struct macro_data {
+ } macro;
+ 
+ macro macros[NUM_MACRO];
++
++void usageError(void);
++unsigned int hash(char *v, unsigned char sentinel);
++void initGRAMophone(void);
++void init_local_flag(void);
++void init_player(void);
++int grammyvm();
++void print_local_params(unsigned char i);
++void print_composition_info();
++void print_global_params();
++void sntx_err(unsigned int error, char *msg);
++void dhInsert(pnote_var noteVar, char *text, unsigned char sentinel, unsigned 
char created_by_body);
++pnote_var dhSearch(char *v, unsigned char sentinel);
++char *dhSearch2(char *v);
++void code_update(unsigned int cc, unsigned int _goto);
++void gen_code(unsigned int op, unsigned int op1);
++void gen_code2(unsigned int op);
++void gen_code3(unsigned int op, unsigned type, unsigned op1);
++void gen_code4(unsigned int op, unsigned op1, unsigned op2, unsigned type);
++void gen_note_code(unsigned int op, unsigned int note, unsigned int type1,
++                 unsigned int op1, unsigned int type2, unsigned int op2,
++                 unsigned int type3, unsigned int op3, unsigned int type4,
++                 unsigned int op4);
++void gen_exp1_code(unsigned int op, unsigned int type1, unsigned int op1,
++                 unsigned int type2, unsigned int op2);
++void gen_exp2_code(unsigned int op, unsigned int op1, unsigned int type,
++                 unsigned int op2);
++void gen_exp3_code(unsigned int op, unsigned int type, unsigned int op1);
++void gen_exp4_code(unsigned int op);
++
+Index: gramophone2-0.8.13a/GRAMophone.c
+===================================================================
+--- gramophone2-0.8.13a.orig/GRAMophone.c
++++ gramophone2-0.8.13a/GRAMophone.c
+@@ -23,6 +23,7 @@
+  */
+ 
+ #include "global.h"
++#include "GRAMophone.tab.h"
+ 
+ void version() {
+   printf("\n---------------------------------------------------------\n");    
+Index: gramophone2-0.8.13a/GRAMophone.l
+===================================================================
+--- gramophone2-0.8.13a.orig/GRAMophone.l
++++ gramophone2-0.8.13a/GRAMophone.l
+@@ -38,6 +38,7 @@ char *string_buf_ptr;
+ unsigned int countStr;
+ unsigned int row=1;
+ void count();
++int check_id();
+ %}
+ 
+ %x comment comment2 string incl
diff -Nru gramophone2-0.8.13a/debian/patches/GRAMophone.y.diff 
gramophone2-0.8.13a/debian/patches/GRAMophone.y.diff
--- gramophone2-0.8.13a/debian/patches/GRAMophone.y.diff        2020-03-28 
07:55:12.000000000 +0800
+++ gramophone2-0.8.13a/debian/patches/GRAMophone.y.diff        2024-04-01 
05:23:29.000000000 +0800
@@ -1,6 +1,17 @@
---- a/GRAMophone.y
-+++ b/GRAMophone.y
-@@ -105,7 +105,7 @@
+Index: gramophone2-0.8.13a/GRAMophone.y
+===================================================================
+--- gramophone2-0.8.13a.orig/GRAMophone.y
++++ gramophone2-0.8.13a/GRAMophone.y
+@@ -50,6 +50,8 @@
+    unsigned int ec, cc, ccCond;
+    pnote_var noteVarTemp, noteVarTempBis;
+    unsigned char i, j=0, w=0;
++   int yyerror();
++   int back();
+ %}
+ 
+ %start composition
+@@ -105,7 +107,7 @@ expression
                }
        |MINUS expression       %prec UMINUS
                {
@@ -9,3 +20,30 @@
                }
        |expression MULT expression
                {
+@@ -504,7 +506,7 @@ define_part
+               {
+                 if(++macroCount>NUM_MACRO)
+                   sntx_err(TOO_MANY_MACROS, "");
+-                dhInsert(NULL, idTemp, 2);
++                dhInsert(NULL, idTemp, 2, 0);
+                 isDef=0;
+               }
+        define_part
+@@ -888,7 +890,7 @@ assign
+ inizialization
+       :
+               {
+-                dhInsert(noteVarTemp, "", isGlobal);
++                dhInsert(noteVarTemp, "", isGlobal, 0);
+               }
+       |ASSIGN expression
+               {
+@@ -920,7 +922,7 @@ inizialization
+                 }
+                 //printf("%s %d\n", noteVarTemp->name, $$); DEBUG LINE!
+                 noteVarTemp->value=$$;
+-                dhInsert(noteVarTemp, "", isGlobal);
++                dhInsert(noteVarTemp, "", isGlobal, 0);
+               }
+       ;
+ 
diff -Nru gramophone2-0.8.13a/debian/patches/series 
gramophone2-0.8.13a/debian/patches/series
--- gramophone2-0.8.13a/debian/patches/series   2022-12-13 05:48:33.000000000 
+0800
+++ gramophone2-0.8.13a/debian/patches/series   2024-04-01 05:23:29.000000000 
+0800
@@ -2,3 +2,4 @@
 GRAMophone.y.diff
 grammyVM.c.diff
 clang_FTBFS.patch
+fix-ftbfs-implicit-function-declaration.patch
dpkg-source: info: using patch list from debian/patches/series
dpkg-source: info: applying Makefile.diff
dpkg-source: info: applying GRAMophone.y.diff
dpkg-source: info: applying grammyVM.c.diff
dpkg-source: info: applying clang_FTBFS.patch
dpkg-source: info: applying fix-ftbfs-implicit-function-declaration.patch
test -x debian/rules
rm -f debian/stamp-makefile-build debian/stamp-makefile-install
make -C . -k clean
make[1]: Entering directory '/tmp/d3/gramophone2-0.8.13a'
rm -f y* lex* GRAMophone.tab.* gramophone2
make[1]: Leaving directory '/tmp/d3/gramophone2-0.8.13a'
dh_clean 
/usr/bin/make -f debian/rules reverse-config
make[1]: Entering directory '/tmp/d3/gramophone2-0.8.13a'
make[1]: 'reverse-config' is up to date.
make[1]: Leaving directory '/tmp/d3/gramophone2-0.8.13a'
if [ -d "." ]; then \
  cd . && QUILT_PATCHES=/tmp/d3/gramophone2-0.8.13a/debian/patches quilt 
--quiltrc /dev/null pop -a -R || test $? = 2 ; \
fi
Removing patch fix-ftbfs-implicit-function-declaration.patch
Restoring global.h
Restoring midifile.h
Restoring GRAMophone.c
Restoring GRAMophone.l

Removing patch clang_FTBFS.patch
Restoring midifile.c

Removing patch grammyVM.c.diff
Restoring grammyVM.c

Removing patch GRAMophone.y.diff
Restoring GRAMophone.y

Removing patch Makefile.diff
Restoring Makefile

No patches applied
rm -rf ./.pc
rm -f debian/stamp-patch*
dpkg-source: info: using source format '3.0 (quilt)'
dpkg-source: info: using patch list from debian/patches/series
dpkg-source: info: applying Makefile.diff
dpkg-source: info: applying GRAMophone.y.diff
dpkg-source: info: applying grammyVM.c.diff
dpkg-source: info: applying clang_FTBFS.patch
dpkg-source: info: applying fix-ftbfs-implicit-function-declaration.patch
dpkg-source: info: building gramophone2 using existing 
./gramophone2_0.8.13a.orig.tar.gz
dpkg-source: info: using patch list from debian/patches/series
dpkg-source: info: building gramophone2 in gramophone2_0.8.13a-3.3.debian.tar.xz
dpkg-source: info: building gramophone2 in gramophone2_0.8.13a-3.3.dsc
I: Generated dsc will be overwritten by build result; not generating 
changes file
dpkg-source: info: unapplying fix-ftbfs-implicit-function-declaration.patch
dpkg-source: info: unapplying clang_FTBFS.patch
dpkg-source: info: unapplying grammyVM.c.diff
dpkg-source: info: unapplying GRAMophone.y.diff
dpkg-source: info: unapplying Makefile.diff
W: /home/paulliu/.pbuilderrc does not exist
W: cgroups are not available on the host, not using them.
I: pbuilder: network access will be disabled during build
I: Current time: Mon Apr  1 10:11:02 CST 2024
I: pbuilder-time-stamp: 1711937462
I: Building the build Environment
I: extracting base tarball [/var/cache/pbuilder/base.tgz]
I: copying local configuration
I: mounting /proc filesystem
I: mounting /sys filesystem
I: creating /{dev,run}/shm
I: mounting /dev/pts filesystem
I: redirecting /dev/ptmx to /dev/pts/ptmx
I: policy-rc.d already exists
I: Obtaining the cached apt archive contents
I: Copying source file
I: copying [../gramophone2_0.8.13a-3.3.dsc]
I: copying [../gramophone2_0.8.13a.orig.tar.gz]
I: copying [../gramophone2_0.8.13a-3.3.debian.tar.xz]
I: Extracting source
dpkg-source: warning: extracting unsigned source package 
(gramophone2_0.8.13a-3.3.dsc)
dpkg-source: info: extracting gramophone2 in gramophone2-0.8.13a
dpkg-source: info: unpacking gramophone2_0.8.13a.orig.tar.gz
dpkg-source: info: unpacking gramophone2_0.8.13a-3.3.debian.tar.xz
dpkg-source: info: using patch list from debian/patches/series
dpkg-source: info: applying Makefile.diff
dpkg-source: info: applying GRAMophone.y.diff
dpkg-source: info: applying grammyVM.c.diff
dpkg-source: info: applying clang_FTBFS.patch
dpkg-source: info: applying fix-ftbfs-implicit-function-declaration.patch
I: using fakeroot in build.
I: Installing the build-deps
 -> Attempting to satisfy build-dependencies
 -> Creating pbuilder-satisfydepends-dummy package
Package: pbuilder-satisfydepends-dummy
Version: 0.invalid.0
Architecture: amd64
Maintainer: Debian Pbuilder Team <pbuilder-ma...@lists.alioth.debian.org>
Description: Dummy package to satisfy dependencies with aptitude - created by 
pbuilder
 This package was created automatically by pbuilder to satisfy the
 build-dependencies of the package being currently built.
Depends: debhelper (>= 10), cdbs, bison, flex, dpkg-dev (>= 1.16.1~), quilt
dpkg-deb: building package 'pbuilder-satisfydepends-dummy' in 
'/tmp/satisfydepends-aptitude/pbuilder-satisfydepends-dummy.deb'.
Selecting previously unselected package pbuilder-satisfydepends-dummy.
(Reading database ... 14239 files and directories currently installed.)
Preparing to unpack .../pbuilder-satisfydepends-dummy.deb ...
Unpacking pbuilder-satisfydepends-dummy (0.invalid.0) ...
dpkg: pbuilder-satisfydepends-dummy: dependency problems, but configuring 
anyway as you requested:
 pbuilder-satisfydepends-dummy depends on debhelper (>= 10); however:
  Package debhelper is not installed.
 pbuilder-satisfydepends-dummy depends on cdbs; however:
  Package cdbs is not installed.
 pbuilder-satisfydepends-dummy depends on bison; however:
  Package bison is not installed.
 pbuilder-satisfydepends-dummy depends on flex; however:
  Package flex is not installed.
 pbuilder-satisfydepends-dummy depends on quilt; however:
  Package quilt is not installed.

Setting up pbuilder-satisfydepends-dummy (0.invalid.0) ...
Reading package lists...
Building dependency tree...
Reading state information...
Initializing package states...
Writing extended state information...
Building tag database...
pbuilder-satisfydepends-dummy is already installed at the requested version 
(0.invalid.0)
pbuilder-satisfydepends-dummy is already installed at the requested version 
(0.invalid.0)
The following NEW packages will be installed:
  autoconf{a} automake{a} autopoint{a} autotools-dev{a} bison{a} 
bsdextrautils{a} cdbs{a} debhelper{a} dh-autoreconf{a} 
dh-strip-nondeterminism{a} diffstat{a} dwz{a} ed{a} file{a} flex{a} gettext{a} 
gettext-base{a} groff-base{a} intltool-debian{a} libarchive-zip-perl{a} 
libdebhelper-perl{a} libelf1t64{a} libexpat1{a} 
libfile-stripnondeterminism-perl{a} libicu72{a} libmagic-mgc{a} libmagic1t64{a} 
libpipeline1{a} libpython3-stdlib{a} libpython3.11-minimal{a} 
libpython3.11-stdlib{a} libreadline8t64{a} libsub-override-perl{a} libtool{a} 
libuchardet0{a} libxml2{a} m4{a} man-db{a} media-types{a} netbase{a} 
po-debconf{a} python3{a} python3-minimal{a} python3-pkg-resources{a} 
python3-scour{a} python3.11{a} python3.11-minimal{a} quilt{a} 
readline-common{a} scour{a} sensible-utils{a} tzdata{a} 
The following packages are RECOMMENDED but will NOT be installed:
  ca-certificates curl less libarchive-cpio-perl libfl-dev libltdl-dev 
libmail-sendmail-perl lynx wget 
0 packages upgraded, 52 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/27.3 MB of archives. After unpacking 105 MB will be used.
Writing extended state information...
debconf: delaying package configuration, since apt-utils is not installed
Selecting previously unselected package m4.
(Reading database ... 
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 14239 files and directories currently installed.)
Preparing to unpack .../archives/m4_1.4.19-4_amd64.deb ...
Unpacking m4 (1.4.19-4) ...
Selecting previously unselected package flex.
Preparing to unpack .../flex_2.6.4-8.2+b2_amd64.deb ...
Unpacking flex (2.6.4-8.2+b2) ...
Selecting previously unselected package libpython3.11-minimal:amd64.
Preparing to unpack .../libpython3.11-minimal_3.11.8-3+b2_amd64.deb ...
Unpacking libpython3.11-minimal:amd64 (3.11.8-3+b2) ...
Selecting previously unselected package libexpat1:amd64.
Preparing to unpack .../libexpat1_2.6.2-1_amd64.deb ...
Unpacking libexpat1:amd64 (2.6.2-1) ...
Selecting previously unselected package python3.11-minimal.
Preparing to unpack .../python3.11-minimal_3.11.8-3+b2_amd64.deb ...
Unpacking python3.11-minimal (3.11.8-3+b2) ...
Setting up libpython3.11-minimal:amd64 (3.11.8-3+b2) ...
Setting up libexpat1:amd64 (2.6.2-1) ...
Setting up python3.11-minimal (3.11.8-3+b2) ...
Selecting previously unselected package python3-minimal.
(Reading database ... 
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 14740 files and directories currently installed.)
Preparing to unpack .../0-python3-minimal_3.11.8-1_amd64.deb ...
Unpacking python3-minimal (3.11.8-1) ...
Selecting previously unselected package media-types.
Preparing to unpack .../1-media-types_10.1.0_all.deb ...
Unpacking media-types (10.1.0) ...
Selecting previously unselected package netbase.
Preparing to unpack .../2-netbase_6.4_all.deb ...
Unpacking netbase (6.4) ...
Selecting previously unselected package tzdata.
Preparing to unpack .../3-tzdata_2024a-1_all.deb ...
Unpacking tzdata (2024a-1) ...
Selecting previously unselected package readline-common.
Preparing to unpack .../4-readline-common_8.2-4_all.deb ...
Unpacking readline-common (8.2-4) ...
Selecting previously unselected package libreadline8t64:amd64.
Preparing to unpack .../5-libreadline8t64_8.2-4_amd64.deb ...
Adding 'diversion of /lib/x86_64-linux-gnu/libhistory.so.8 to 
/lib/x86_64-linux-gnu/libhistory.so.8.usr-is-merged by libreadline8t64'
Adding 'diversion of /lib/x86_64-linux-gnu/libhistory.so.8.2 to 
/lib/x86_64-linux-gnu/libhistory.so.8.2.usr-is-merged by libreadline8t64'
Adding 'diversion of /lib/x86_64-linux-gnu/libreadline.so.8 to 
/lib/x86_64-linux-gnu/libreadline.so.8.usr-is-merged by libreadline8t64'
Adding 'diversion of /lib/x86_64-linux-gnu/libreadline.so.8.2 to 
/lib/x86_64-linux-gnu/libreadline.so.8.2.usr-is-merged by libreadline8t64'
Unpacking libreadline8t64:amd64 (8.2-4) ...
Selecting previously unselected package libpython3.11-stdlib:amd64.
Preparing to unpack .../6-libpython3.11-stdlib_3.11.8-3+b2_amd64.deb ...
Unpacking libpython3.11-stdlib:amd64 (3.11.8-3+b2) ...
Selecting previously unselected package python3.11.
Preparing to unpack .../7-python3.11_3.11.8-3+b2_amd64.deb ...
Unpacking python3.11 (3.11.8-3+b2) ...
Selecting previously unselected package libpython3-stdlib:amd64.
Preparing to unpack .../8-libpython3-stdlib_3.11.8-1_amd64.deb ...
Unpacking libpython3-stdlib:amd64 (3.11.8-1) ...
Setting up python3-minimal (3.11.8-1) ...
Selecting previously unselected package python3.
(Reading database ... 
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 15734 files and directories currently installed.)
Preparing to unpack .../00-python3_3.11.8-1_amd64.deb ...
Unpacking python3 (3.11.8-1) ...
Selecting previously unselected package sensible-utils.
Preparing to unpack .../01-sensible-utils_0.0.22_all.deb ...
Unpacking sensible-utils (0.0.22) ...
Selecting previously unselected package libmagic-mgc.
Preparing to unpack .../02-libmagic-mgc_1%3a5.45-3_amd64.deb ...
Unpacking libmagic-mgc (1:5.45-3) ...
Selecting previously unselected package libmagic1t64:amd64.
Preparing to unpack .../03-libmagic1t64_1%3a5.45-3_amd64.deb ...
Unpacking libmagic1t64:amd64 (1:5.45-3) ...
Selecting previously unselected package file.
Preparing to unpack .../04-file_1%3a5.45-3_amd64.deb ...
Unpacking file (1:5.45-3) ...
Selecting previously unselected package gettext-base.
Preparing to unpack .../05-gettext-base_0.21-14+b1_amd64.deb ...
Unpacking gettext-base (0.21-14+b1) ...
Selecting previously unselected package libuchardet0:amd64.
Preparing to unpack .../06-libuchardet0_0.0.8-1+b1_amd64.deb ...
Unpacking libuchardet0:amd64 (0.0.8-1+b1) ...
Selecting previously unselected package groff-base.
Preparing to unpack .../07-groff-base_1.23.0-3+b1_amd64.deb ...
Unpacking groff-base (1.23.0-3+b1) ...
Selecting previously unselected package bsdextrautils.
Preparing to unpack .../08-bsdextrautils_2.39.3-11_amd64.deb ...
Unpacking bsdextrautils (2.39.3-11) ...
Selecting previously unselected package libpipeline1:amd64.
Preparing to unpack .../09-libpipeline1_1.5.7-2_amd64.deb ...
Unpacking libpipeline1:amd64 (1.5.7-2) ...
Selecting previously unselected package man-db.
Preparing to unpack .../10-man-db_2.12.0-4_amd64.deb ...
Unpacking man-db (2.12.0-4) ...
Selecting previously unselected package autoconf.
Preparing to unpack .../11-autoconf_2.71-3_all.deb ...
Unpacking autoconf (2.71-3) ...
Selecting previously unselected package autotools-dev.
Preparing to unpack .../12-autotools-dev_20220109.1_all.deb ...
Unpacking autotools-dev (20220109.1) ...
Selecting previously unselected package automake.
Preparing to unpack .../13-automake_1%3a1.16.5-1.3_all.deb ...
Unpacking automake (1:1.16.5-1.3) ...
Selecting previously unselected package autopoint.
Preparing to unpack .../14-autopoint_0.21-14_all.deb ...
Unpacking autopoint (0.21-14) ...
Selecting previously unselected package bison.
Preparing to unpack .../15-bison_2%3a3.8.2+dfsg-1+b1_amd64.deb ...
Unpacking bison (2:3.8.2+dfsg-1+b1) ...
Selecting previously unselected package python3-pkg-resources.
Preparing to unpack .../16-python3-pkg-resources_68.1.2-2_all.deb ...
Unpacking python3-pkg-resources (68.1.2-2) ...
Selecting previously unselected package python3-scour.
Preparing to unpack .../17-python3-scour_0.38.2-4.1_all.deb ...
Unpacking python3-scour (0.38.2-4.1) ...
Selecting previously unselected package scour.
Preparing to unpack .../18-scour_0.38.2-4.1_all.deb ...
Unpacking scour (0.38.2-4.1) ...
Selecting previously unselected package cdbs.
Preparing to unpack .../19-cdbs_0.4.166_all.deb ...
Unpacking cdbs (0.4.166) ...
Selecting previously unselected package libdebhelper-perl.
Preparing to unpack .../20-libdebhelper-perl_13.15.3_all.deb ...
Unpacking libdebhelper-perl (13.15.3) ...
Selecting previously unselected package libtool.
Preparing to unpack .../21-libtool_2.4.7-7_all.deb ...
Unpacking libtool (2.4.7-7) ...
Selecting previously unselected package dh-autoreconf.
Preparing to unpack .../22-dh-autoreconf_20_all.deb ...
Unpacking dh-autoreconf (20) ...
Selecting previously unselected package libarchive-zip-perl.
Preparing to unpack .../23-libarchive-zip-perl_1.68-1_all.deb ...
Unpacking libarchive-zip-perl (1.68-1) ...
Selecting previously unselected package libsub-override-perl.
Preparing to unpack .../24-libsub-override-perl_0.10-1_all.deb ...
Unpacking libsub-override-perl (0.10-1) ...
Selecting previously unselected package libfile-stripnondeterminism-perl.
Preparing to unpack .../25-libfile-stripnondeterminism-perl_1.13.1-1_all.deb ...
Unpacking libfile-stripnondeterminism-perl (1.13.1-1) ...
Selecting previously unselected package dh-strip-nondeterminism.
Preparing to unpack .../26-dh-strip-nondeterminism_1.13.1-1_all.deb ...
Unpacking dh-strip-nondeterminism (1.13.1-1) ...
Selecting previously unselected package libelf1t64:amd64.
Preparing to unpack .../27-libelf1t64_0.191-1_amd64.deb ...
Unpacking libelf1t64:amd64 (0.191-1) ...
Selecting previously unselected package dwz.
Preparing to unpack .../28-dwz_0.15-1+b1_amd64.deb ...
Unpacking dwz (0.15-1+b1) ...
Selecting previously unselected package libicu72:amd64.
Preparing to unpack .../29-libicu72_72.1-4+b1_amd64.deb ...
Unpacking libicu72:amd64 (72.1-4+b1) ...
Selecting previously unselected package libxml2:amd64.
Preparing to unpack .../30-libxml2_2.9.14+dfsg-1.3+b2_amd64.deb ...
Unpacking libxml2:amd64 (2.9.14+dfsg-1.3+b2) ...
Selecting previously unselected package gettext.
Preparing to unpack .../31-gettext_0.21-14+b1_amd64.deb ...
Unpacking gettext (0.21-14+b1) ...
Selecting previously unselected package intltool-debian.
Preparing to unpack .../32-intltool-debian_0.35.0+20060710.6_all.deb ...
Unpacking intltool-debian (0.35.0+20060710.6) ...
Selecting previously unselected package po-debconf.
Preparing to unpack .../33-po-debconf_1.0.21+nmu1_all.deb ...
Unpacking po-debconf (1.0.21+nmu1) ...
Selecting previously unselected package debhelper.
Preparing to unpack .../34-debhelper_13.15.3_all.deb ...
Unpacking debhelper (13.15.3) ...
Selecting previously unselected package diffstat.
Preparing to unpack .../35-diffstat_1.66-1_amd64.deb ...
Unpacking diffstat (1.66-1) ...
Selecting previously unselected package ed.
Preparing to unpack .../36-ed_1.20.1-1_amd64.deb ...
Unpacking ed (1.20.1-1) ...
Selecting previously unselected package quilt.
Preparing to unpack .../37-quilt_0.67+really0.67-4_all.deb ...
Unpacking quilt (0.67+really0.67-4) ...
Setting up media-types (10.1.0) ...
Setting up libpipeline1:amd64 (1.5.7-2) ...
Setting up libicu72:amd64 (72.1-4+b1) ...
Setting up bsdextrautils (2.39.3-11) ...
Setting up libmagic-mgc (1:5.45-3) ...
Setting up libarchive-zip-perl (1.68-1) ...
Setting up libdebhelper-perl (13.15.3) ...
Setting up libmagic1t64:amd64 (1:5.45-3) ...
Setting up gettext-base (0.21-14+b1) ...
Setting up m4 (1.4.19-4) ...
Setting up file (1:5.45-3) ...
Setting up libelf1t64:amd64 (0.191-1) ...
Setting up tzdata (2024a-1) ...

Current default time zone: 'Etc/UTC'
Local time is now:      Mon Apr  1 02:11:58 UTC 2024.
Universal Time is now:  Mon Apr  1 02:11:58 UTC 2024.
Run 'dpkg-reconfigure tzdata' if you wish to change it.

Setting up autotools-dev (20220109.1) ...
Setting up ed (1.20.1-1) ...
Setting up diffstat (1.66-1) ...
Setting up autopoint (0.21-14) ...
Setting up autoconf (2.71-3) ...
Setting up dwz (0.15-1+b1) ...
Setting up sensible-utils (0.0.22) ...
Setting up libuchardet0:amd64 (0.0.8-1+b1) ...
Setting up bison (2:3.8.2+dfsg-1+b1) ...
update-alternatives: using /usr/bin/bison.yacc to provide /usr/bin/yacc (yacc) 
in auto mode
Setting up libsub-override-perl (0.10-1) ...
Setting up netbase (6.4) ...
Setting up readline-common (8.2-4) ...
Setting up libxml2:amd64 (2.9.14+dfsg-1.3+b2) ...
Setting up automake (1:1.16.5-1.3) ...
update-alternatives: using /usr/bin/automake-1.16 to provide /usr/bin/automake 
(automake) in auto mode
Setting up libfile-stripnondeterminism-perl (1.13.1-1) ...
Setting up flex (2.6.4-8.2+b2) ...
Setting up gettext (0.21-14+b1) ...
Setting up libtool (2.4.7-7) ...
Setting up quilt (0.67+really0.67-4) ...
Setting up intltool-debian (0.35.0+20060710.6) ...
Setting up dh-autoreconf (20) ...
Setting up libreadline8t64:amd64 (8.2-4) ...
Setting up dh-strip-nondeterminism (1.13.1-1) ...
Setting up groff-base (1.23.0-3+b1) ...
Setting up po-debconf (1.0.21+nmu1) ...
Setting up libpython3.11-stdlib:amd64 (3.11.8-3+b2) ...
Setting up man-db (2.12.0-4) ...
Not building database; man-db/auto-update is not 'true'.
Setting up libpython3-stdlib:amd64 (3.11.8-1) ...
Setting up python3.11 (3.11.8-3+b2) ...
Setting up debhelper (13.15.3) ...
Setting up python3 (3.11.8-1) ...
Setting up python3-pkg-resources (68.1.2-2) ...
Setting up python3-scour (0.38.2-4.1) ...
Setting up scour (0.38.2-4.1) ...
Setting up cdbs (0.4.166) ...
Processing triggers for libc-bin (2.37-15.1) ...
Reading package lists...
Building dependency tree...
Reading state information...
Reading extended state information...
Initializing package states...
Writing extended state information...
Building tag database...
 -> Finished parsing the build-deps
Reading package lists...
Building dependency tree...
Reading state information...
The following additional packages will be installed:
  libfakeroot
The following NEW packages will be installed:
  fakeroot libfakeroot
debconf: delaying package configuration, since apt-utils is not installed
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/103 kB of archives.
After this operation, 385 kB of additional disk space will be used.
Selecting previously unselected package libfakeroot:amd64.
(Reading database ... 
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 18073 files and directories currently installed.)
Preparing to unpack .../libfakeroot_1.34-1_amd64.deb ...
Unpacking libfakeroot:amd64 (1.34-1) ...
Selecting previously unselected package fakeroot.
Preparing to unpack .../fakeroot_1.34-1_amd64.deb ...
Unpacking fakeroot (1.34-1) ...
Setting up libfakeroot:amd64 (1.34-1) ...
Setting up fakeroot (1.34-1) ...
update-alternatives: using /usr/bin/fakeroot-sysv to provide /usr/bin/fakeroot 
(fakeroot) in auto mode
Processing triggers for man-db (2.12.0-4) ...
Not building database; man-db/auto-update is not 'true'.
Processing triggers for libc-bin (2.37-15.1) ...
I: Copying back the cached apt archive contents
I: Building the package
I: Running cd /build/gramophone2-0.8.13a/ && env 
PATH="/usr/sbin:/usr/bin:/sbin:/bin" HOME="/nonexistent" dpkg-buildpackage -us 
-uc  && env PATH="/usr/sbin:/usr/bin:/sbin:/bin" HOME="/nonexistent" 
dpkg-genchanges -S  > ../gramophone2_0.8.13a-3.3_source.changes
dpkg-buildpackage: info: source package gramophone2
dpkg-buildpackage: info: source version 0.8.13a-3.3
dpkg-buildpackage: info: source distribution unstable
dpkg-buildpackage: info: source changed by Ying-Chun Liu (PaulLiu) 
<paul...@debian.org>
 dpkg-source --before-build .
dpkg-buildpackage: info: host architecture amd64
 fakeroot debian/rules clean
test -x debian/rules
rm -f debian/stamp-makefile-build debian/stamp-makefile-install
make -C . -k clean
make[1]: Entering directory '/build/gramophone2-0.8.13a'
rm -f y* lex* GRAMophone.tab.* gramophone2
make[1]: Leaving directory '/build/gramophone2-0.8.13a'
dh_clean 
/usr/bin/make -f debian/rules reverse-config
make[1]: Entering directory '/build/gramophone2-0.8.13a'
make[1]: 'reverse-config' is up to date.
make[1]: Leaving directory '/build/gramophone2-0.8.13a'
if [ -d "." ]; then \
  cd . && QUILT_PATCHES=/build/gramophone2-0.8.13a/debian/patches quilt 
--quiltrc /dev/null pop -a -R || test $? = 2 ; \
fi
Removing patch fix-ftbfs-implicit-function-declaration.patch
Restoring global.h
Restoring midifile.h
Restoring GRAMophone.c
Restoring GRAMophone.l

Removing patch clang_FTBFS.patch
Restoring midifile.c

Removing patch grammyVM.c.diff
Restoring grammyVM.c

Removing patch GRAMophone.y.diff
Restoring GRAMophone.y

Removing patch Makefile.diff
Restoring Makefile

No patches applied
rm -rf ./.pc
rm -f debian/stamp-patch*
 dpkg-source -b .
dpkg-source: info: using source format '3.0 (quilt)'
dpkg-source: info: using patch list from debian/patches/series
dpkg-source: info: applying Makefile.diff
dpkg-source: info: applying GRAMophone.y.diff
dpkg-source: info: applying grammyVM.c.diff
dpkg-source: info: applying clang_FTBFS.patch
dpkg-source: info: applying fix-ftbfs-implicit-function-declaration.patch
dpkg-source: info: building gramophone2 using existing 
./gramophone2_0.8.13a.orig.tar.gz
dpkg-source: info: using patch list from debian/patches/series
dpkg-source: info: building gramophone2 in gramophone2_0.8.13a-3.3.debian.tar.xz
dpkg-source: info: building gramophone2 in gramophone2_0.8.13a-3.3.dsc
 debian/rules build
test -x debian/rules
mkdir -p "."
/usr/bin/make -f debian/rules reverse-config
make[1]: Entering directory '/build/gramophone2-0.8.13a'
make[1]: 'reverse-config' is up to date.
make[1]: Leaving directory '/build/gramophone2-0.8.13a'
cd . && QUILT_PATCHES=/build/gramophone2-0.8.13a/debian/patches quilt --quiltrc 
/dev/null push -a || test $? = 2
File series fully applied, ends at patch 
fix-ftbfs-implicit-function-declaration.patch
touch debian/stamp-patched
/usr/bin/make -f debian/rules update-config
make[1]: Entering directory '/build/gramophone2-0.8.13a'
make[1]: 'update-config' is up to date.
make[1]: Leaving directory '/build/gramophone2-0.8.13a'
make -C . 
make[1]: Entering directory '/build/gramophone2-0.8.13a'
flex GRAMophone.l
bison -d GRAMophone.y
GRAMophone.y: warning: 22 shift/reduce conflicts [-Wconflicts-sr]
GRAMophone.y: warning: 39 reduce/reduce conflicts [-Wconflicts-rr]
GRAMophone.y: note: rerun with option '-Wcounterexamples' to generate conflict 
counterexamples
gcc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 
-Werror=implicit-function-declaration 
-ffile-prefix-map=/build/gramophone2-0.8.13a=. -fstack-protector-strong 
-fstack-clash-protection -Wformat -Werror=format-security -fcf-protection 
-fcommon -O2 -Wl,-z,relro -o gramophone2 GRAMophone.c\
                grammyVM.c init.c midicode.c\
                midifile.c expcode.c debug.c errors.c\
                hash.c GRAMophone.tab.c -lm
grammyVM.c: In function 'myputc':
grammyVM.c:1477:5: warning: type of 'c' defaults to 'int' [-Wimplicit-int]
 1477 | int myputc(c) {
      |     ^~~~~~
grammyVM.c: In function 'write_player_track':
grammyVM.c:1481:5: warning: type of 'track' defaults to 'int' [-Wimplicit-int]
 1481 | int write_player_track(track) {
      |     ^~~~~~~~~~~~~~~~~~
midifile.c:118:1: warning: return type defaults to 'int' [-Wimplicit-int]
  118 | mfread()                /* The only non-static function in this file. */
      | ^~~~~~
midifile.c:129:1: warning: return type defaults to 'int' [-Wimplicit-int]
  129 | midifile()
      | ^~~~~~~~
midifile.c:135:1: warning: return type defaults to 'int' [-Wimplicit-int]
  135 | readmt(s)               /* read through the "MThd" or "MTrk" header 
string */
      | ^~~~~~
midifile.c:154:1: warning: return type defaults to 'int' [-Wimplicit-int]
  154 | egetc()                 /* read a single character and abort on EOF */
      | ^~~~~
midifile.c:165:1: warning: return type defaults to 'int' [-Wimplicit-int]
  165 | readheader()            /* read a header chunk */
      | ^~~~~~~~~~
midifile.c:186:1: warning: return type defaults to 'int' [-Wimplicit-int]
  186 | readtrack()              /* read a track chunk */
      | ^~~~~~~~~
midifile.c:301:1: warning: return type defaults to 'int' [-Wimplicit-int]
  301 | badbyte(c)
      | ^~~~~~~
midifile.c:311:1: warning: return type defaults to 'int' [-Wimplicit-int]
  311 | metaevent(type)
      | ^~~~~~~~~
midifile.c: In function 'metaevent':
midifile.c:311:1: warning: type of 'type' defaults to 'int' [-Wimplicit-int]
midifile.c: At top level:
midifile.c:371:1: warning: return type defaults to 'int' [-Wimplicit-int]
  371 | sysex()
      | ^~~~~
midifile.c:378:1: warning: return type defaults to 'int' [-Wimplicit-int]
  378 | chanmessage(status,c1,c2)
      | ^~~~~~~~~~~
midifile.c: In function 'to32bit':
midifile.c:438:1: warning: type of 'c1' defaults to 'int' [-Wimplicit-int]
  438 | to32bit(c1,c2,c3,c4)
      | ^~~~~~~
midifile.c:438:1: warning: type of 'c2' defaults to 'int' [-Wimplicit-int]
midifile.c:438:1: warning: type of 'c3' defaults to 'int' [-Wimplicit-int]
midifile.c:438:1: warning: type of 'c4' defaults to 'int' [-Wimplicit-int]
midifile.c: At top level:
midifile.c:450:1: warning: return type defaults to 'int' [-Wimplicit-int]
  450 | to16bit(c1,c2)
      | ^~~~~~~
midifile.c:469:1: warning: return type defaults to 'int' [-Wimplicit-int]
  469 | read16bit()
      | ^~~~~~~~~
midifile.c:478:1: warning: return type defaults to 'int' [-Wimplicit-int]
  478 | mferror(s)
      | ^~~~~~~
midifile.c:496:1: warning: return type defaults to 'int' [-Wimplicit-int]
  496 | msginit()
      | ^~~~~~~
midifile.c:508:1: warning: return type defaults to 'int' [-Wimplicit-int]
  508 | msgleng()
      | ^~~~~~~
midifile.c:514:1: warning: return type defaults to 'int' [-Wimplicit-int]
  514 | msgadd(c)
      | ^~~~~~
midifile.c:524:1: warning: return type defaults to 'int' [-Wimplicit-int]
  524 | biggermsg()
      | ^~~~~~~~~
midifile.c:861:1: warning: return type defaults to 'int' [-Wimplicit-int]
  861 | eputc(c)
      | ^~~~~
In file included from GRAMophone.y:40:
GRAMophone.l:322:1: warning: return type defaults to 'int' [-Wimplicit-int]
  322 | yywrap() {
      | ^~~~~~
GRAMophone.l: In function 'check_id':
GRAMophone.l:328:23: warning: comparison between pointer and zero character 
constant [-Wpointer-compare]
  328 |   if(dhSearch2(yytext)!='\0')
      |                       ^~
GRAMophone.l:328:6: note: did you mean to dereference the pointer?
  328 |   if(dhSearch2(yytext)!='\0')
      |      ^
make[1]: Leaving directory '/build/gramophone2-0.8.13a'
touch debian/stamp-makefile-build
CDBS WARNING:  DEB_MAKE_CHECK_TARGET unset, not running checks
 fakeroot debian/rules binary
test -x debian/rules
dh_testroot
dh_prep 
dh_installdirs -A 
mkdir -p "."
CDBS WARNING:  DEB_MAKE_CHECK_TARGET unset, not running checks
make -C . install DESTDIR=/build/gramophone2-0.8.13a/debian/tmp/ 
make[1]: Entering directory '/build/gramophone2-0.8.13a'
mkdir -p /build/gramophone2-0.8.13a/debian/tmp//bin
install gramophone2 /build/gramophone2-0.8.13a/debian/tmp//bin
install -d /build/gramophone2-0.8.13a/debian/tmp//share/man/man1
install -m 0644 man/man1/gramophone2.1 
/build/gramophone2-0.8.13a/debian/tmp//share/man/man1
install -d /build/gramophone2-0.8.13a/debian/tmp//share/man/it/man1
install -m 0644 man/it/man1/gramophone2.1 
/build/gramophone2-0.8.13a/debian/tmp//share/man/it/man1      
make[1]: Leaving directory '/build/gramophone2-0.8.13a'
touch debian/stamp-makefile-install
Adding cdbs dependencies to debian/gramophone2.substvars
dh_installdirs -pgramophone2 \
        
dh_installdocs -pgramophone2 ./TODO ./AUTHORS
dh_installexamples -pgramophone2 
dh_installman -pgramophone2 
dh_installinfo -pgramophone2 
dh_installmenu -pgramophone2 
dh_installcron -pgramophone2 
dh_systemd_enable -pgramophone2 
dh_installinit -pgramophone2 
dh_installdebconf -pgramophone2 
dh_installemacsen -pgramophone2 
dh_installcatalogs -pgramophone2 
dh_installpam -pgramophone2 
dh_installlogrotate -pgramophone2 
dh_installlogcheck -pgramophone2 
dh_installchangelogs -pgramophone2 
dh_installudev -pgramophone2 
dh_lintian -pgramophone2 
dh_bugfiles -pgramophone2 
dh_install -pgramophone2 
dh_systemd_start -pgramophone2 
dh_link -pgramophone2 
dh_installmime -pgramophone2 
dh_installgsettings -pgramophone2 
dh_strip -pgramophone2  
dh_strip_nondeterminism -pgramophone2 
dh_compress -pgramophone2 
dh_fixperms -pgramophone2 
dh_makeshlibs -pgramophone2  
dh_installdeb -pgramophone2 
dh_perl -pgramophone2 
dh_shlibdeps -pgramophone2 
dh_gencontrol -pgramophone2  
# only call dh_scour for packages in main
if grep -q '^Component:[[:space:]]*main' /CurrentlyBuilding 2>/dev/null; then 
dh_scour -pgramophone2 ; fi
dh_md5sums -pgramophone2 
dh_builddeb -pgramophone2 
dpkg-deb: building package 'gramophone2' in 
'../gramophone2_0.8.13a-3.3_amd64.deb'.
dpkg-deb: building package 'gramophone2-dbgsym' in 
'../gramophone2-dbgsym_0.8.13a-3.3_amd64.deb'.
 dpkg-genbuildinfo -O../gramophone2_0.8.13a-3.3_amd64.buildinfo
 dpkg-genchanges -O../gramophone2_0.8.13a-3.3_amd64.changes
dpkg-genchanges: info: not including original source code in upload
 dpkg-source --after-build .
dpkg-source: info: unapplying fix-ftbfs-implicit-function-declaration.patch
dpkg-source: info: unapplying clang_FTBFS.patch
dpkg-source: info: unapplying grammyVM.c.diff
dpkg-source: info: unapplying GRAMophone.y.diff
dpkg-source: info: unapplying Makefile.diff
dpkg-buildpackage: info: binary and diff upload (original source NOT included)
dpkg-genchanges: info: not including original source code in upload
I: copying local configuration
I: Copying back the cached apt archive contents
I: unmounting dev/ptmx filesystem
I: unmounting dev/pts filesystem
I: unmounting dev/shm filesystem
I: unmounting proc filesystem
I: unmounting sys filesystem
I: cleaning the build env 
I: removing directory /var/cache/pbuilder/build/1259010 and its 
subdirectories
I: Current time: Mon Apr  1 10:12:25 CST 2024
I: pbuilder-time-stamp: 1711937545

Attachment: OpenPGP_0x44173FA13D058888.asc
Description: OpenPGP public key

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature

Reply via email to