Re: error: 'deletions_type' has not been declared

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Martin Gansser wrote on 2021/01/19 18:34:
Hi,

when compiling on Fedora 33 vdr-live [1] with the new tntnet-3.0.0 and cxxtools-3.0.0 I get the following error messages:

CC pages/ menu.o
CC pages/ recordings.o
recordings.ecpp: In member function 'virtual unsigned int {anonymous}::_component_::operator()(tnt::HttpRequest&, tnt::HttpReply&, tnt::QueryParams&)':
recordings.ecpp:76:6: error: 'deletions_type' has not been declared
    76 | for (deletions_type::const_iterator it = deletions.begin(); it != deletions.end(); ++it) {
       |      ^~~~~~~~~~~~~~
recordings.ecpp:76:61: error: 'it' was not declared in this scope; did you mean 'int'?
    76 | for (deletions_type::const_iterator it = deletions.begin(); it != deletions.end(); ++it) {
       |                                                             ^~
       |                                                             int
recordings.ecpp: In member function 'virtual unsigned int {anonymous}::_component_::recordings_item_type::operator()(tnt::HttpRequest&, tnt::HttpReply&, tnt::QueryParams&)':
recordings.ecpp:250:8: error: 'path_type' has not been declared
   250 |   for (path_type::const_iterator i = path.begin(); i != path.end(); ++i) {
       |        ^~~~~~~~~
recordings.ecpp:250:52: error: 'i' was not declared in this scope
   250 |   for (path_type::const_iterator i = path.begin(); i != path.end(); ++i) {
       |                                                    ^
make[1]: *** [Makefile:34: recordings.o] Error 1
make: *** [Makefile:191: pages] Error 2

[1] https://martinkg.fedorapeople.org/ErrorReports/vdr-live.spec
[2] https://martinkg.fedorapeople.org/ErrorReports/tntnet-3.0-1.fc33.src.rpm
[3] https://martinkg.fedorapeople.org/ErrorReports/cxxtools-3.0-1.fc33.src.rpm

Any hints how to solve this ?


First of all, the above cxxtools.src fails to build on F34/x86_64, F34/i686 and F33/i386.
cxxtools.src seems to build on F33/x86_64, but I've not tried tntnet build further.

Then, reading vdr-live source, firstly "ecppc" program (in tntnet) converts *.ecpp file to
*.cpp file, then converted .cpp file is compiled by g++.
recordings.cpp generated with ecppc (in tntnet 2.2.1) actually contains the definition for
type "deletions_type" . I guess in *.ecpp file, "deletions_type" means the type of "deletions"
variable, so "ecppc" 2.2.1 defines "deletions_type" as such in generated cxx source.

So I guess ecppc in tntnet 3 is somehow broken. I guess you can check the actually generated
"recordings.cpp" file. (Note that generated "recordings.cpp" contains something like

#line 1 "recordings.ecpp"

so while g++ actually compiles recordings.cpp, the error messages looks like errors happened
on the original .ecpp file.)

Regards,
Mamoru
_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Users]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]

  Powered by Linux