Source: wp2latex
Version: 3.100-1
Severity: serious
Tags: upstream
Justification: 4.
Dear Maintainer,
the package fails to build from source since gcc-11 is the default compiler:
g++ -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=.
-fstack-protector-strong -Wformat -Werror=format-security -fno-rtti
-fno-exceptions -DUSE_TEMP_STRINGS -D_REENTRANT -fpermissive -DPOINTER_SIZE=64
-O2 -Dpng_sizeof=sizeof -Wall -I../atoms/include/ -DERROR_HANDLER -c cpbldr.cc
-o cpbldr.o
In file included from cplib.cc:8,
from cpbldr.cc:8:
../atoms/include/stringa.h:191:30: warning: friend declaration of ‘temp_string
del(const string&, int, int)’ specifies default arguments and isn’t a
definition [-fpermissive]
191 | friend temp_string del(const string &s,int from, int len=1);
| ^~~
../atoms/include/stringa.h: In member function ‘string&
string::operator*=(unsigned int)’:
../atoms/include/stringa.h:269:63: error: cannot bind non-const lvalue
reference of type ‘temp_string&’ to an rvalue of type ‘temp_string’
269 | inline string & string::operator*=(unsigned n)
{*this=multiply(*this,n);return(*this);}
| ~~~~~~~~^~~~~~~~~
../atoms/include/stringa.h:90:42: note: initializing argument 1 of ‘string&
string::operator=(temp_string&)’
90 | string &operator=(temp_string &s);
| ~~~~~~~~~~~~~^
In file included from ../atoms/include/dbllist.h:12,
from cplib.cc:9,
from cpbldr.cc:8:
../atoms/include/lists.h: At global scope:
../atoms/include/lists.h:99:23: warning: friend declaration of ‘int
AddSTRSorted(list&, TSorter, const char*, int)’ specifies default arguments and
isn’t a definition [-fpermissive]
99 | friend int AddSTRSorted(list & l,TSorter sorter, const char
*str, int AllowDupl=0);
| ^~~~~~~~~~~~
cpbldr.cc: In function ‘doublelist ReadCodeGenerator(const char*)’:
cpbldr.cc:47:17: error: cannot bind non-const lvalue reference of type
‘temp_string&’ to an rvalue of type ‘temp_string’
47 | key = copy(s,1,i-1);
| ~~~~^~~~~~~~~
In file included from cplib.cc:8,
from cpbldr.cc:8:
../atoms/include/stringa.h:90:42: note: initializing argument 1 of ‘string&
string::operator=(temp_string&)’
90 | string &operator=(temp_string &s);
| ~~~~~~~~~~~~~^
cpbldr.cc:56:21: error: cannot bind non-const lvalue reference of type
‘temp_string&’ to an rvalue of type ‘temp_string’
56 | key = copy(key,0, Semicolon-key());
| ~~~~^~~~~~~~~~~~~~~~~~~~~~~~
In file included from cplib.cc:8,
from cpbldr.cc:8:
../atoms/include/stringa.h:90:42: note: initializing argument 1 of ‘string&
string::operator=(temp_string&)’
90 | string &operator=(temp_string &s);
| ~~~~~~~~~~~~~^
cpbldr.cc:80:24: error: cannot bind non-const lvalue reference of type
‘temp_string&’ to an rvalue of type ‘temp_string’
80 | key = copy(s,1,i-1);
| ~~~~^~~~~~~~~
In file included from cplib.cc:8,
from cpbldr.cc:8:
../atoms/include/stringa.h:90:42: note: initializing argument 1 of ‘string&
string::operator=(temp_string&)’
90 | string &operator=(temp_string &s);
| ~~~~~~~~~~~~~^
cpbldr.cc:87:28: error: cannot bind non-const lvalue reference of type
‘temp_string&’ to an rvalue of type ‘temp_string’
87 | key = copy(key,0, Semicolon-key());
| ~~~~^~~~~~~~~~~~~~~~~~~~~~~~
In file included from cplib.cc:8,
from cpbldr.cc:8:
../atoms/include/stringa.h:90:42: note: initializing argument 1 of ‘string&
string::operator=(temp_string&)’
90 | string &operator=(temp_string &s);
| ~~~~~~~~~~~~~^
cpbldr.cc: In function ‘string CheckPlainString(const string&)’:
cpbldr.cc:149:27: error: cannot bind non-const lvalue reference of type
‘temp_string&’ to an rvalue of type ‘temp_string’
149 | plain = plain + ch;
| ~~~~~~^~~~
In file included from cplib.cc:8,
from cpbldr.cc:8:
../atoms/include/stringa.h:90:42: note: initializing argument 1 of ‘string&
string::operator=(temp_string&)’
90 | string &operator=(temp_string &s);
| ~~~~~~~~~~~~~^
cpbldr.cc:153:24: error: cannot bind non-const lvalue reference of type
‘temp_string&’ to an rvalue of type ‘temp_string’
153 | plain=plain+ch;
| ~~~~~^~~
In file included from cplib.cc:8,
from cpbldr.cc:8:
../atoms/include/stringa.h:90:42: note: initializing argument 1 of ‘string&
string::operator=(temp_string&)’
90 | string &operator=(temp_string &s);
| ~~~~~~~~~~~~~^
cpbldr.cc:161:24: error: cannot bind non-const lvalue reference of type
‘temp_string&’ to an rvalue of type ‘temp_string’
161 | plain=plain+ch;
| ~~~~~^~~
In file included from cplib.cc:8,
from cpbldr.cc:8:
../atoms/include/stringa.h:90:42: note: initializing argument 1 of ‘string&
string::operator=(temp_string&)’
90 | string &operator=(temp_string &s);
| ~~~~~~~~~~~~~^
cpbldr.cc:165:24: error: cannot bind non-const lvalue reference of type
‘temp_string&’ to an rvalue of type ‘temp_string’
165 | plain=plain+ch;
| ~~~~~^~~
In file included from cplib.cc:8,
from cpbldr.cc:8:
../atoms/include/stringa.h:90:42: note: initializing argument 1 of ‘string&
string::operator=(temp_string&)’
90 | string &operator=(temp_string &s);
| ~~~~~~~~~~~~~^
cpbldr.cc:219:43: error: cannot bind non-const lvalue reference of type
‘temp_string&’ to an rvalue of type ‘temp_string’
219 | plain=(char)(num%8+'0')+plain;
| ~~~~~~~~~~~~~~~~~^~~~~~
In file included from cplib.cc:8,
from cpbldr.cc:8:
../atoms/include/stringa.h:90:42: note: initializing argument 1 of ‘string&
string::operator=(temp_string&)’
90 | string &operator=(temp_string &s);
| ~~~~~~~~~~~~~^
cpbldr.cc:222:27: error: cannot bind non-const lvalue reference of type
‘temp_string&’ to an rvalue of type ‘temp_string’
222 | plain="\\"+plain;
| ~~~~^~~~~~
In file included from cplib.cc:8,
from cpbldr.cc:8:
../atoms/include/stringa.h:90:42: note: initializing argument 1 of ‘string&
string::operator=(temp_string&)’
90 | string &operator=(temp_string &s);
| ~~~~~~~~~~~~~^
cpbldr.cc:223:30: error: cannot bind non-const lvalue reference of type
‘temp_string&’ to an rvalue of type ‘temp_string’
223 | plain=(char)1+plain;
| ~~~~~~~^~~~~~
In file included from cplib.cc:8,
from cpbldr.cc:8:
../atoms/include/stringa.h:90:42: note: initializing argument 1 of ‘string&
string::operator=(temp_string&)’
90 | string &operator=(temp_string &s);
| ~~~~~~~~~~~~~^
cpbldr.cc: In function ‘void WriteCodeGenerator(doublelist&, const char*, const
char*)’:
cpbldr.cc:338:27: error: cannot bind non-const lvalue reference of type
‘temp_string&’ to an rvalue of type ‘temp_string’
338 | s2 = replacesubstring(s2,"\n","\n\t");
| ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~
In file included from cplib.cc:8,
from cpbldr.cc:8:
../atoms/include/stringa.h:90:42: note: initializing argument 1 of ‘string&
string::operator=(temp_string&)’
90 | string &operator=(temp_string &s);
| ~~~~~~~~~~~~~^
I'm in discussion w/ upstream maintainer to solve the issue.
Hilmar