Bug#1066258: syrthes: FTBFS: convert2syrthes4.c:191:9: error: implicit declaration of function ‘ouvrir_syr’ [-Werror=implicit-function-declaration]
Lucas Nussbaum
lucas at debian.org
Wed Mar 13 11:45:30 GMT 2024
Source: syrthes
Version: 4.3.5+20200129-dfsg1-1
Severity: serious
Justification: FTBFS
Tags: trixie sid ftbfs
User: lucas at debian.org
Usertags: ftbfs-20240313 ftbfs-trixie ftbfs-impfuncdef
Hi,
During a rebuild of all packages in sid, your package failed to build
on amd64.
This is most likely caused by a change in dpkg 1.22.6, that enabled
-Werror=implicit-function-declaration. For more information, see
https://wiki.debian.org/qa.debian.org/FTBFS#A2024-03-13_-Werror.3Dimplicit-function-declaration
Relevant part (hopefully):
> gcc -c -D _FILE_OFFSET_BITS=64 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -D_SYRTHES_MPI_ -DMED -I /usr/lib/x86_64-linux-gnu/openmpi/include -I/usr/include -I/usr/lib/x86_64-linux-gnu/hdf5/openmpi/include lecture_sim.c -o ../../../../build//lecture_sim.o
> convert2syrthes4.c: In function ‘main’:
> convert2syrthes4.c:191:9: error: implicit declaration of function ‘ouvrir_syr’ [-Werror=implicit-function-declaration]
> 191 | if (ouvrir_syr(&maillage,nom_syr) != 0) return 1;
> | ^~~~~~~~~~
> lecture_sim.c: In function ‘lecture_tableau_sim_entier’:
> lecture_sim.c:186:29: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long int’ [-Wformat=]
> 186 | printf("_tab[%d] = %d\n",j,_tab[j]);
> | ~^ ~~~~~~~
> | | |
> | int long int
> | %ld
> lecture_sim.c:188:18: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long int’ [-Wformat=]
> 188 | printf("%d != %d\n",_tab[0],l_seg);
> | ~^ ~~~~~~~
> | | |
> | int long int
> | %ld
> lecture_sim.c:195:31: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long int’ [-Wformat=]
> 195 | printf("_tab[%d+1] = %d\n",j,_tab[j+1]);
> | ~^ ~~~~~~~~~
> | | |
> | int long int
> | %ld
> lecture_sim.c:202:29: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long int’ [-Wformat=]
> 202 | printf("_tab[%d] = %d\n",i,_tab[0]);
> | ~^ ~~~~~~~
> | | |
> | int long int
> | %ld
> convert2syrthes4.c:197:16: error: implicit declaration of function ‘conversion_neu’ [-Werror=implicit-function-declaration]
> 197 | case 1 : if (conversion_neu(&maillage,iargv[m+1]) != 0) return 1; break;
> | ^~~~~~~~~~~~~~
> lecture_sim.c: In function ‘lire_sim’:
> lecture_sim.c:391:32: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long int’ [-Wformat=]
> 391 | printf("m[ 30] NIVEAU = %d\n", m[29]);
> | ~^ ~~~~~
> | | |
> | int long int
> | %ld
> lecture_sim.c:392:32: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long int’ [-Wformat=]
> 392 | printf("m[ 31] ETAT = %d\n", m[30]);
> | ~^ ~~~~~
> | | |
> | int long int
> | %ld
> convert2syrthes4.c:198:16: error: implicit declaration of function ‘conversion_msh’ [-Werror=implicit-function-declaration]
> 198 | case 2 : if (conversion_msh(&maillage,iargv[m+1]) != 0) return 1; break;
> | ^~~~~~~~~~~~~~
> lecture_sim.c:393:32: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long int’ [-Wformat=]
> 393 | printf("m[ 32] NTACM = %d\n", m[31]);
> | ~^ ~~~~~
> | | |
> | int long int
> | %ld
> convert2syrthes4.c:200:16: error: implicit declaration of function ‘conversion_med’ [-Werror=implicit-function-declaration]
> 200 | case 3 : if (conversion_med(&maillage,iargv[m+1], nom_syr) != 0) return 1; break;
> | ^~~~~~~~~~~~~~
> convert2syrthes4.c:202:16: error: implicit declaration of function ‘conversion_sim’ [-Werror=implicit-function-declaration]
> 202 | case 4 : if (conversion_sim(&maillage,&maillnodes,&maillnodebord,iargv[m+1], nom_syr) != 0) return 1; break;
> | ^~~~~~~~~~~~~~
> convert2syrthes4.c:203:16: error: implicit declaration of function ‘conversion_ide’ [-Werror=implicit-function-declaration]
> 203 | case 5 : if (conversion_ide(&maillage,iargv[m+1], nom_syr) != 0) return 1; break;
> | ^~~~~~~~~~~~~~
> convert2syrthes4.c:219:7: error: implicit declaration of function ‘reouvrir_syr’ [-Werror=implicit-function-declaration]
> 219 | if (reouvrir_syr(&maillage, nom_syr) != 0) return 1;
> | ^~~~~~~~~~~~
> lecture_sim.c:699:9: error: implicit declaration of function ‘extrbord2’ [-Werror=implicit-function-declaration]
> 699 | extrbord2(*maillnodes,maillnodebord,nrefac);
> | ^~~~~~~~~
> convert2syrthes4.c:223:7: error: implicit declaration of function ‘ecrire_entete_syr’ [-Werror=implicit-function-declaration]
> 223 | if (ecrire_entete_syr(&maillage) != 0) return 1;
> | ^~~~~~~~~~~~~~~~~
> lecture_sim.c:701:9: error: implicit declaration of function ‘extrbord3’ [-Werror=implicit-function-declaration]
> 701 | extrbord3(*maillnodes,maillnodebord,nrefac);
> | ^~~~~~~~~
> convert2syrthes4.c:228:9: error: implicit declaration of function ‘ouvrir_neu’ [-Werror=implicit-function-declaration]
> 228 | if (ouvrir_neu(&maillage,iargv[m+1]) != 0) return 1;
> | ^~~~~~~~~~
> convert2syrthes4.c:229:9: error: implicit declaration of function ‘modif_noeuds_neusyr’ [-Werror=implicit-function-declaration]
> 229 | if (modif_noeuds_neusyr(&maillage) != 0) return 1;
> | ^~~~~~~~~~~~~~~~~~~
> convert2syrthes4.c:230:9: error: implicit declaration of function ‘fermer_neu’; did you mean ‘fermer_syr’? [-Werror=implicit-function-declaration]
> 230 | if (fermer_neu(&maillage) != 0) return 1;
> | ^~~~~~~~~~
> | fermer_syr
> convert2syrthes4.c:234:9: error: implicit declaration of function ‘ouvrir_msh’ [-Werror=implicit-function-declaration]
> 234 | if (ouvrir_msh(&maillage,iargv[m+1]) != 0) return 1;
> | ^~~~~~~~~~
> convert2syrthes4.c:235:9: error: implicit declaration of function ‘modif_noeuds_mshsyr’ [-Werror=implicit-function-declaration]
> 235 | if (modif_noeuds_mshsyr(&maillage) != 0) return 1;
> | ^~~~~~~~~~~~~~~~~~~
> convert2syrthes4.c:236:9: error: implicit declaration of function ‘fermer_msh’; did you mean ‘fermer_syr’? [-Werror=implicit-function-declaration]
> 236 | if (fermer_msh(&maillage) != 0) return 1;
> | ^~~~~~~~~~
> | fermer_syr
> convert2syrthes4.c: In function ‘conversion_sim’:
> convert2syrthes4.c:257:7: error: implicit declaration of function ‘ouvrir_sim’ [-Werror=implicit-function-declaration]
> 257 | if (ouvrir_sim(maillage, nomfich) != 0) return 1;
> | ^~~~~~~~~~
> convert2syrthes4.c:258:7: error: implicit declaration of function ‘lire_sim’ [-Werror=implicit-function-declaration]
> 258 | if (lire_sim(maillage,maillnodes,maillnodebord) != 0) return 1;
> | ^~~~~~~~
> convert2syrthes4.c:260:7: error: implicit declaration of function ‘ecrire_coord_syr’ [-Werror=implicit-function-declaration]
> 260 | if (ecrire_coord_syr(maillage) != 0) return 1;
> | ^~~~~~~~~~~~~~~~
> convert2syrthes4.c:261:7: error: implicit declaration of function ‘ecrire_elem_syr’ [-Werror=implicit-function-declaration]
> 261 | if (ecrire_elem_syr(maillage) != 0) return 1;
> | ^~~~~~~~~~~~~~~
> convert2syrthes4.c:264:8: error: implicit declaration of function ‘ecrire_elem_de_bord_syr’ [-Werror=implicit-function-declaration]
> 264 | if(ecrire_elem_de_bord_syr(maillage) != 0) return 1;
> | ^~~~~~~~~~~~~~~~~~~~~~~
> convert2syrthes4.c:266:7: error: implicit declaration of function ‘fermer_sim’; did you mean ‘fermer_syr’? [-Werror=implicit-function-declaration]
> 266 | if (fermer_sim(maillage) != 0) return 1;
> | ^~~~~~~~~~
> | fermer_syr
> convert2syrthes4.c: In function ‘conversion_ide’:
> convert2syrthes4.c:276:7: error: implicit declaration of function ‘ouvrir_ide’ [-Werror=implicit-function-declaration]
> 276 | if (ouvrir_ide(maillage, nomfich) != 0) return 1;
> | ^~~~~~~~~~
> convert2syrthes4.c:277:7: error: implicit declaration of function ‘lire_ideas’ [-Werror=implicit-function-declaration]
> 277 | if (lire_ideas(maillage) != 0) return 1;
> | ^~~~~~~~~~
> convert2syrthes4.c:285:7: error: implicit declaration of function ‘fermer_ide’; did you mean ‘fermer_syr’? [-Werror=implicit-function-declaration]
> 285 | if (fermer_ide(maillage) != 0) return 1;
> | ^~~~~~~~~~
> | fermer_syr
> convert2syrthes4.c: In function ‘conversion_neu’:
> convert2syrthes4.c:296:8: error: implicit declaration of function ‘lire_entete_neu’ [-Werror=implicit-function-declaration]
> 296 | if (lire_entete_neu(maillage) != 0) return 1;
> | ^~~~~~~~~~~~~~~
> convert2syrthes4.c:298:8: error: implicit declaration of function ‘lire_coord_neu’ [-Werror=implicit-function-declaration]
> 298 | if (lire_coord_neu(maillage) != 0) return 1;
> | ^~~~~~~~~~~~~~
> convert2syrthes4.c:299:8: error: implicit declaration of function ‘lire_noeuds_colores_neu’ [-Werror=implicit-function-declaration]
> 299 | if (lire_noeuds_colores_neu(maillage) != 0) return 1;
> | ^~~~~~~~~~~~~~~~~~~~~~~
> convert2syrthes4.c:301:8: error: implicit declaration of function ‘lire_elem_neu’ [-Werror=implicit-function-declaration]
> 301 | if (lire_elem_neu(maillage) != 0) return 1;
> | ^~~~~~~~~~~~~
> convert2syrthes4.c:302:8: error: implicit declaration of function ‘lire_zones_neu’ [-Werror=implicit-function-declaration]
> 302 | if (lire_zones_neu(maillage) != 0) return 1;
> | ^~~~~~~~~~~~~~
> convert2syrthes4.c:304:8: error: implicit declaration of function ‘lire_cl_neu’ [-Werror=implicit-function-declaration]
> 304 | if (lire_cl_neu(maillage) != 0) return 1;
> | ^~~~~~~~~~~
> convert2syrthes4.c: In function ‘conversion_msh’:
> convert2syrthes4.c:323:8: error: implicit declaration of function ‘lire_entete_msh’ [-Werror=implicit-function-declaration]
> 323 | if (lire_entete_msh(maillage) != 0) return 1;
> | ^~~~~~~~~~~~~~~
> convert2syrthes4.c:325:8: error: implicit declaration of function ‘lire_coord_msh’ [-Werror=implicit-function-declaration]
> 325 | if (lire_coord_msh(maillage) != 0) return 1;
> | ^~~~~~~~~~~~~~
> convert2syrthes4.c:326:8: error: implicit declaration of function ‘lire_noeuds_colores_msh’ [-Werror=implicit-function-declaration]
> 326 | if (lire_noeuds_colores_msh(maillage) != 0) return 1;
> | ^~~~~~~~~~~~~~~~~~~~~~~
> convert2syrthes4.c:328:8: error: implicit declaration of function ‘lire_elem_msh’ [-Werror=implicit-function-declaration]
> 328 | if (lire_elem_msh(maillage) != 0) return 1;
> | ^~~~~~~~~~~~~
> convert2syrthes4.c:329:8: error: implicit declaration of function ‘lire_zones_msh’ [-Werror=implicit-function-declaration]
> 329 | if (lire_zones_msh(maillage) != 0) return 1;
> | ^~~~~~~~~~~~~~
> convert2syrthes4.c:331:8: error: implicit declaration of function ‘lire_cl_msh’ [-Werror=implicit-function-declaration]
> 331 | if (lire_cl_msh(maillage) != 0) return 1;
> | ^~~~~~~~~~~
> convert2syrthes4.c: In function ‘conversion_med’:
> convert2syrthes4.c:348:7: error: implicit declaration of function ‘ouvrir_med’ [-Werror=implicit-function-declaration]
> 348 | if (ouvrir_med(maillage, nomfich, nomsyr) != 0) return 1;
> | ^~~~~~~~~~
> convert2syrthes4.c:349:7: error: implicit declaration of function ‘lire_entete_med’ [-Werror=implicit-function-declaration]
> 349 | if (lire_entete_med(maillage) != 0) return 1;
> | ^~~~~~~~~~~~~~~
> convert2syrthes4.c:351:7: error: implicit declaration of function ‘lire_coord_med’ [-Werror=implicit-function-declaration]
> 351 | if (lire_coord_med(maillage) != 0) return 1;
> | ^~~~~~~~~~~~~~
> convert2syrthes4.c:352:7: error: implicit declaration of function ‘lire_noeuds_colores_med’ [-Werror=implicit-function-declaration]
> 352 | if (lire_noeuds_colores_med(maillage) != 0) return 1;
> | ^~~~~~~~~~~~~~~~~~~~~~~
> convert2syrthes4.c:354:7: error: implicit declaration of function ‘lire_elem_med’ [-Werror=implicit-function-declaration]
> 354 | if (lire_elem_med(maillage) != 0) return 1;
> | ^~~~~~~~~~~~~
> convert2syrthes4.c:355:7: error: implicit declaration of function ‘lire_zones_med’ [-Werror=implicit-function-declaration]
> 355 | if (lire_zones_med(maillage) != 0) return 1;
> | ^~~~~~~~~~~~~~
> convert2syrthes4.c:357:7: error: implicit declaration of function ‘lire_cl_med’ [-Werror=implicit-function-declaration]
> 357 | if (lire_cl_med(maillage) != 0) return 1;
> | ^~~~~~~~~~~
> convert2syrthes4.c:358:7: error: implicit declaration of function ‘ecrire_correspondance_syr_med’ [-Werror=implicit-function-declaration]
> 358 | if (ecrire_correspondance_syr_med(maillage) !=0 ) return 1;
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> convert2syrthes4.c:363:7: error: implicit declaration of function ‘fermer_med’; did you mean ‘fermer_syr’? [-Werror=implicit-function-declaration]
> 363 | if (fermer_med(maillage) != 0) return 1;
> | ^~~~~~~~~~
> | fermer_syr
> cc1: some warnings being treated as errors
> make[3]: *** [Makefile:28: ../../../../build//convert2syrthes4.o] Error 1
The full build log is available from:
http://qa-logs.debian.net/2024/03/13/syrthes_4.3.5+20200129-dfsg1-1_unstable.log
All bugs filed during this archive rebuild are listed at:
https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20240313;users=lucas@debian.org
or:
https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20240313&fusertaguser=lucas@debian.org&allbugs=1&cseverity=1&ctags=1&caffected=1#results
A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!
If you reassign this bug to another package, please mark it as 'affects'-ing
this package. See https://www.debian.org/Bugs/server-control#affects
If you fail to reproduce this, please provide a build log and diff it with mine
so that we can identify if something relevant changed in the meantime.
More information about the debian-science-maintainers
mailing list