Bug#1077425: calculix-cgx: FTBFS: ptrList.h:218:21: error: assignment of member ‘delObj’ in read-only object

Lucas Nussbaum lucas at debian.org
Mon Jul 29 06:41:16 BST 2024


Source: calculix-cgx
Version: 2.21+dfsg-1
Severity: serious
Justification: FTBFS
Tags: trixie sid ftbfs
User: lucas at debian.org
Usertags: ftbfs-20240728 ftbfs-trixie

Hi,

During a rebuild of all packages in sid, your package failed to build
on amd64.


Relevant part (hopefully):
> g++  userFunction.o  AsplitA.o AsplitL.o adjustMidsideNode.o compareStrings.o XFunktions.o badelems.o bodyMesh2.o bsort.o bsortf.o bsorti.o calcNormalen.o calcPrinc.o calcPvector.o calcWeight.o checkIfNumber.o cgx.o compare.o copyEntity.o corrad.o dataGeo.o dataMesh.o defineEntity.o dispLists.o elemChecker.o extFunktions.o extGL.o fillBody2.o frecord.o foamFaces.o gl3grades.o getGeoDataTria.o graph.o ifind.o iinsert.o improveBadTr3.o improveMesh.o iniMeshData.o intpol.o intpol2.o intpol3.o iremove.o linelength.o m_copy.o m_sub.o mergEntity.o mesh2d.o meshSet.o meshSurf.o messages.o near3d.o normdist.o nurbl2seq.o orient.o p_angle.o parser.o pickFunktions.o plotFunktions.o readAnsysList.o readEdges.o readfrd.o readFoam.o readStdCmap.o readStl.o readVtk.o readccx.o readDuns.o readNastran.o readNG.o readTG.o readIsaac.o readstep.o readWf.o rectcyl.o renumberfrd.o selectDisplayFaces.o sendMpc.o sendSet.o setFunktions.o shapeFunctions.o spline.o splitElementsToTets.o stof.o stoi.o stopClock.o stos.o strfind.o strsplt.o sins.o surfMesh2.o sword.o trackball.o v_distA.o v_rec2cyl.o v_add.o v_angle.o v_angle_ref.o v_betrag.o v_matmult.o v_norm.o v_prod.o v_result.o v_scal.o v_rot.o v_sprod.o m_prod.o m_prodtr.o write2aba.o write2ansys.o write2aster.o write2darwin.o write2dolfyn.o write2isaac.o write2duns.o write2frd.o write2foam.o write2nas.o write2samcef.o write2tochnog.o writefbd.o writebp.o contact.o makeTriFromElems.o uselibSNL.cpp generateTet.cpp  -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wl,-z,relro -I. -L/usr/lib64 -lGL -lGLU -lglut -lSNL -L/usr/X11R6/lib64 -lX11 -lXi -lXmu -lXext -lXt -lSM -lICE -lm -lpthread -o  cgx
> cc1plus: warning: ‘-Werror=’ argument ‘-Werror=implicit-function-declaration’ is not valid for C++
> In file included from /usr/include/snlSurface.h:27,
>                  from uselibSNL.cpp:35:
> /usr/include/ptrList.h: In member function ‘ptrListItem<T>& ptrListItem<T>::operator=(const ptrListItem<T>&)’:
> /usr/include/ptrList.h:218:21: error: assignment of member ‘delObj’ in read-only object
>   218 |         item.delObj = false;
>       |         ~~~~~~~~~~~~^~~~~~~
> uselibSNL.cpp: In function ‘void vl_result(double*, double*, double*)’:
> uselibSNL.cpp:84:14: warning: ISO C++17 does not allow ‘register’ storage class specifier [-Wregister]
>    84 | register int i;
>       |              ^
> uselibSNL.cpp: In function ‘double vl_betrag(double*)’:
> uselibSNL.cpp:128:16: warning: ISO C++17 does not allow ‘register’ storage class specifier [-Wregister]
>   128 |   register int i;
>       |                ^
> uselibSNL.cpp: In function ‘void vl_scal(double*, double*, double*)’:
> uselibSNL.cpp:144:16: warning: ISO C++17 does not allow ‘register’ storage class specifier [-Wregister]
>   144 |   register int i;
>       |                ^
> uselibSNL.cpp: In function ‘void vl_add(double*, double*, double*)’:
> uselibSNL.cpp:155:16: warning: ISO C++17 does not allow ‘register’ storage class specifier [-Wregister]
>   155 |   register int i;
>       |                ^
> uselibSNL.cpp: In function ‘int rotateBall(int, int, int, double, double)’:
> uselibSNL.cpp:1958:10: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
>  1958 |   delSet("-tmp");
>       |          ^~~~~~
> uselibSNL.cpp:1959:19: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
>  1959 |   pntset=pre_seta("-tmp1","i",0);
>       |                   ^~~~~~~
> uselibSNL.cpp:1959:27: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
>  1959 |   pntset=pre_seta("-tmp1","i",0);
>       |                           ^~~
> uselibSNL.cpp:1965:27: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
>  1965 |       getNewName( buffer, "p" );
>       |                           ^~~
> uselibSNL.cpp:1969:19: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
>  1969 |       seta(pntset,"p",p);
>       |                   ^~~
> uselibSNL.cpp:1979:16: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
>  1979 |     ipax1=pnt( "+pax11",cg_sphere[0],cg_sphere[1],cg_sphere[2], 0 );
>       |                ^~~~~~~~
> uselibSNL.cpp:1980:16: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
>  1980 |     ipax2=pnt( "+pax12",pax1[0],pax1[1],pax1[2], 0 );
>       |                ^~~~~~~~
> uselibSNL.cpp:1993:16: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
>  1993 |     ipax1=pnt( "+pax21",cg_sphere[0],cg_sphere[1],cg_sphere[2], 0 );
>       |                ^~~~~~~~
> uselibSNL.cpp:1994:16: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
>  1994 |     ipax2=pnt( "+pax22",pax2[0],pax2[1],pax2[2], 0 );
>       |                ^~~~~~~~
> uselibSNL.cpp:2018:10: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
>  2018 |   delSet("-tmp1");
>       |          ^~~~~~~
> uselibSNL.cpp: In function ‘int trimNurbs(int, int, double)’:
> uselibSNL.cpp:2346:12: warning: too many arguments for format [-Wformat-extra-args]
>  2346 |     printf(" ERROR: nurbs not valid\n",nurbs[nr].name);
>       |            ^~~~~~~~~~~~~~~~~~~~~~~~~~~
> cc1plus: warning: ‘-Werror=’ argument ‘-Werror=implicit-function-declaration’ is not valid for C++
> generateTet.cpp: In function ‘int generateTetFromSet(int, double, int, int)’:
> generateTet.cpp:106:10: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
>   106 |   delSet("+snodSet");
>       |          ^~~~~~~~~~
> generateTet.cpp:107:10: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
>   107 |   delSet("+velemSet");
>       |          ^~~~~~~~~~~
> generateTet.cpp:108:20: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
>   108 |   snodSet=pre_seta("+snodSet","i",0);
>       |                    ^~~~~~~~~~
> generateTet.cpp:108:31: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
>   108 |   snodSet=pre_seta("+snodSet","i",0);
>       |                               ^~~
> generateTet.cpp:118:37: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
>   118 |     for(k=0; k<3; k++) seta(snodSet,"n",e_enqire[set[setNr].elem[i]].nod[k]);
>       |                                     ^~~
> generateTet.cpp:133:14: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
>   133 |     { errMsg("ERROR: realloc failure in generateTet\n"); return(0); }
>       |              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> generateTet.cpp:176:21: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
>   176 |     if ( (  readNG( "test.vol", anz_ng, &setx, &node_ng, &elem_ng, NULL)) == -1)
>       |                     ^~~~~~~~~~
> generateTet.cpp:226:14: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
>   226 |     { errMsg("ERROR: realloc failure in generateTet\n"); return(0); }
>       |              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> generateTet.cpp:297:51: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
>   297 |       for (j=0; j<set[setNr].anz_e; j++) setr( k, "e", set[setNr].elem[j]);
>       |                                                   ^~~
> generateTet.cpp:316:89: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
>   316 |     else { elem_define(anz,&e_enqire, anz->enext++, 3, cgxtet, 1, eattr ); seta( setNr, "e", anz->emax ); }
>       |                                                                                         ^~~
> generateTet.cpp:330:39: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
>   330 |     fixMidsideNodes( set[setNr].name, "gen" );
>       |                                       ^~~~~
> generateTet.cpp:333:22: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
>   333 |     snodSet=pre_seta("+snodSet","i",0);
>       |                      ^~~~~~~~~~
> generateTet.cpp:333:33: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
>   333 |     snodSet=pre_seta("+snodSet","i",0);
>       |                                 ^~~
> generateTet.cpp:350:26: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
>   350 |             seta(snodSet,"n",e_enqire[set[setNr].elem[k]].nod[nodseq_te10[n*3+1]]);
>       |                          ^~~
> generateTet.cpp:356:39: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
>   356 |     fixMidsideNodes( set[setNr].name, "" );
>       |                                       ^~
> generateTet.cpp: In function ‘int generateTetFromBody(int, double, int, int)’:
> generateTet.cpp:412:10: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
>   412 |   delSet("+snodSet");
>       |          ^~~~~~~~~~
> generateTet.cpp:413:10: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
>   413 |   delSet("+mnodSet");
>       |          ^~~~~~~~~~
> generateTet.cpp:414:10: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
>   414 |   delSet("+velemSet");
>       |          ^~~~~~~~~~~
> generateTet.cpp:415:20: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
>   415 |   snodSet=pre_seta("+snodSet","i",0);
>       |                    ^~~~~~~~~~
> generateTet.cpp:415:31: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
>   415 |   snodSet=pre_seta("+snodSet","i",0);
>       |                               ^~~
> generateTet.cpp:416:20: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
>   416 |   mnodSet=pre_seta("+mnodSet","i",0);
>       |                    ^~~~~~~~~~
> generateTet.cpp:416:31: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
>   416 |   mnodSet=pre_seta("+mnodSet","i",0);
>       |                               ^~~
> generateTet.cpp:417:18: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
>   417 |   setNr=pre_seta("+velemSet","i",0);
>       |                  ^~~~~~~~~~~
> generateTet.cpp:417:30: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
>   417 |   setNr=pre_seta("+velemSet","i",0);
>       |                              ^~~
> generateTet.cpp:428:41: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
>   428 |         for(k=0; k<3; k++) seta(mnodSet,"n",e_enqire[surf[s].elem[i]].nod[k+3]);
>       |                                         ^~~
> generateTet.cpp:435:39: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
>   435 |       for(k=0; k<3; k++) seta(snodSet,"n",e_enqire[surf[s].elem[i]].nod[k]);
>       |                                       ^~~
> generateTet.cpp:451:14: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
>   451 |     { errMsg("ERROR: realloc failure in generateTet\n"); return(0); }
>       |              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> generateTet.cpp:521:21: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
>   521 |     if ( (  readNG( "test.vol", anz_ng, &setx, &node_ng, &elem_ng, NULL)) == -1)
>       |                     ^~~~~~~~~~
> generateTet.cpp:579:14: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
>   579 |     { errMsg("ERROR: realloc failure in generateTet\n"); return(0); }
>       |              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> generateTet.cpp:652:82: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
>   652 |     elem_define(anz,&e_enqire, anz->enext++, 3, cgxtet, 1, eattr ); seta( setNr, "e", anz->emax );
>       |                                                                                  ^~~
> generateTet.cpp:663:39: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
>   663 |     fixMidsideNodes( set[setNr].name, "gen" );
>       |                                       ^~~~~
> generateTet.cpp:665:23: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
>   665 |     snodSet2=pre_seta("+snodSet2","i",0);
>       |                       ^~~~~~~~~~~
> generateTet.cpp:665:35: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
>   665 |     snodSet2=pre_seta("+snodSet2","i",0);
>       |                                   ^~~
> generateTet.cpp:683:25: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
>   683 |           seta(snodSet2,"n",e_enqire[set[setNr].elem[k]].nod[nodseq_te10[n*3+1]]);
>       |                         ^~~
> generateTet.cpp:691:41: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
>   691 |       for (n=0; n<10; n++) seta( setNr, "n", e_enqire[set[setNr].elem[k]].nod[n] );
>       |                                         ^~~
> generateTet.cpp:694:39: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
>   694 |     fixMidsideNodes( set[setNr].name, "" );
>       |                                       ^~
> generateTet.cpp:700:40: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
>   700 |       for (n=0; n<4; n++) seta( setNr, "n", e_enqire[set[setNr].elem[k]].nod[n] );
>       |                                        ^~~
> generateTet.cpp:704:55: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
>   704 |   for (k = 0; k < set[snodSet].anz_n; k++) setr(setNr,"n",set[snodSet].node[k]);
>       |                                                       ^~~
> generateTet.cpp:705:55: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
>   705 |   for (k = 0; k < set[mnodSet].anz_n; k++) setr(setNr,"n",set[mnodSet].node[k]);
>       |                                                       ^~~
> generateTet.cpp:713:10: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
>   713 |   delSet("+snodSet");
>       |          ^~~~~~~~~~
> generateTet.cpp:714:10: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
>   714 |   delSet("+mnodSet");
>       |          ^~~~~~~~~~
> generateTet.cpp:715:10: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
>   715 |   delSet("+velemSet");
>       |          ^~~~~~~~~~~
> make[2]: *** [Makefile:31: cgx] Error 1


The full build log is available from:
http://qa-logs.debian.net/2024/07/28/calculix-cgx_2.21+dfsg-1_unstable.log

All bugs filed during this archive rebuild are listed at:
https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20240728;users=lucas@debian.org
or:
https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20240728&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