Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 936312 - dev-libs/octetos-db-abstract: build: clientdb.hh:69:41: error: expected initializer before ':' token
Summary: dev-libs/octetos-db-abstract: build: clientdb.hh:69:41: error: expected initi...
Status: UNCONFIRMED
Alias: None
Product: GURU
Classification: Unclassified
Component: Package issues (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: GURU project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-07-19 17:22 UTC by Vitaly Zdanevich
Modified: 2024-07-20 15:46 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vitaly Zdanevich 2024-07-19 17:22:37 UTC
End of the build log:


clientdb.cc: In function 'void octetos::db::setPort(unsigned int)':
clientdb.cc:179:17: error: invalid use of 'this' in non-member function
  179 |                 this->port = port;
      |                 ^~~~
clientdb.cc: At global scope:
clientdb.cc:181:22: error: 'Datconnect' has not been declared
  181 |                 void Datconnect::setAutocommit(bool a)
      |                      ^~~~~~~~~~
clientdb.cc: In function 'void octetos::db::setAutocommit(bool)':
clientdb.cc:183:25: error: 'autocommit' was not declared in this scope; did you mean 'setAutocommit'?
  183 |                         autocommit = a;
      |                         ^~~~~~~~~~
      |                         setAutocommit
clientdb.cc: At global scope:
clientdb.cc:199:14: error: 'Datconnect' has not been declared
  199 |         bool Datconnect::getAutocommit()const
      |              ^~~~~~~~~~
clientdb.cc:199:41: error: non-member function 'bool octetos::db::getAutocommit()' cannot have cv-qualifier
  199 |         bool Datconnect::getAutocommit()const
      |                                         ^~~~~
clientdb.cc: In function 'bool octetos::db::getAutocommit()':
clientdb.cc:201:24: error: 'autocommit' was not declared in this scope; did you mean 'setAutocommit'?
  201 |                 return autocommit;
      |                        ^~~~~~~~~~
      |                        setAutocommit
clientdb.cc: At global scope:
clientdb.cc:209:14: error: 'Datconnect' has not been declared
  209 |         bool Datconnect::read(const std::string& file)
      |              ^~~~~~~~~~
clientdb.cc: In function 'bool octetos::db::read(const std::string&)':
clientdb.cc:240:17: error: 'host' was not declared in this scope
  240 |                 host = (const std::string&)root["Datconnect"]["host"];
      |                 ^~~~
clientdb.cc:241:17: error: 'user' was not declared in this scope
  241 |                 user = (const std::string&)root["Datconnect"]["user"];
      |                 ^~~~
clientdb.cc:242:17: error: 'password' was not declared in this scope; did you mean 'setPassword'?
  242 |                 password = (const std::string&)root["Datconnect"]["password"];
      |                 ^~~~~~~~
      |                 setPassword
clientdb.cc:243:17: error: 'database' was not declared in this scope; did you mean 'setDatabase'?
  243 |                 database = (const std::string&)root["Datconnect"]["database"];
      |                 ^~~~~~~~
      |                 setDatabase
clientdb.cc:244:17: error: 'port' was not declared in this scope
  244 |                 port = (int)root["Datconnect"]["port"];
      |                 ^~~~
clientdb.cc: At global scope:
clientdb.cc:248:14: error: 'Datconnect' has not been declared
  248 |         bool Datconnect::write(const std::string& file)
      |              ^~~~~~~~~~
clientdb.cc: In function 'bool octetos::db::write(const std::string&)':
clientdb.cc:254:89: error: 'driver' was not declared in this scope; did you mean 'Driver'?
  254 |                 datconn.add("driver", libconfig::Setting::TypeString) = getDriverString(driver);
      |                                                                                         ^~~~~~
      |                                                                                         Driver
clientdb.cc:255:71: error: 'host' was not declared in this scope
  255 |                 datconn.add("host", libconfig::Setting::TypeString) = host;
      |                                                                       ^~~~
clientdb.cc:256:71: error: 'user' was not declared in this scope
  256 |                 datconn.add("user", libconfig::Setting::TypeString) = user;
      |                                                                       ^~~~
clientdb.cc:257:75: error: 'password' was not declared in this scope; did you mean 'setPassword'?
  257 |                 datconn.add("password", libconfig::Setting::TypeString) = password;
      |                                                                           ^~~~~~~~
      |                                                                           setPassword
clientdb.cc:258:75: error: 'database' was not declared in this scope; did you mean 'setDatabase'?
  258 |                 datconn.add("database", libconfig::Setting::TypeString) = database;
      |                                                                           ^~~~~~~~
      |                                                                           setDatabase
clientdb.cc:259:73: error: 'port' was not declared in this scope
  259 |                 datconn.add("port", libconfig::Setting::TypeInt) = (int)port;
      |                                                                         ^~~~
clientdb.cc: At global scope:
clientdb.cc:277:20: error: 'Datconnect' has not been declared
  277 |         TypeServer Datconnect::getDriver() const
      |                    ^~~~~~~~~~
clientdb.cc:277:44: error: non-member function 'octetos::db::TypeServer octetos::db::getDriver()' cannot have cv-qualifier
  277 |         TypeServer Datconnect::getDriver() const
      |                                            ^~~~~
clientdb.cc: In function 'octetos::db::TypeServer octetos::db::getDriver()':
clientdb.cc:279:20: error: 'driver' was not declared in this scope; did you mean 'Driver'?
  279 |             return driver;
      |                    ^~~~~~
      |                    Driver
clientdb.cc: At global scope:
clientdb.cc:282:14: error: 'Datconnect' has not been declared
  282 |         void Datconnect::set(TypeServer driver,const std::string& host, unsigned int port,const std::string& database,const std::string& usuario,const std::string& password)
      |              ^~~~~~~~~~
clientdb.cc: In function 'void octetos::db::set(TypeServer, const std::string&, unsigned int, const std::string&, const std::string&, const std::string&)':
clientdb.cc:284:13: error: invalid use of 'this' in non-member function
  284 |             this->host = host;
      |             ^~~~
clientdb.cc:285:13: error: invalid use of 'this' in non-member function
  285 |             this->user = usuario;
      |             ^~~~
clientdb.cc:286:13: error: invalid use of 'this' in non-member function
  286 |             this->password = password;
      |             ^~~~
clientdb.cc:287:13: error: invalid use of 'this' in non-member function
  287 |             this->database = database;
      |             ^~~~
clientdb.cc:288:13: error: invalid use of 'this' in non-member function
  288 |             this->port = port;
      |             ^~~~
clientdb.cc:289:13: error: invalid use of 'this' in non-member function
  289 |             this->driver = driver;
      |             ^~~~
clientdb.cc: At global scope:
clientdb.cc:303:21: error: 'Datconnect' has not been declared
  303 |         std::string Datconnect::toString() const
      |                     ^~~~~~~~~~
clientdb.cc:303:44: error: non-member function 'std::string octetos::db::toString()' cannot have cv-qualifier
  303 |         std::string Datconnect::toString() const
      |                                            ^~~~~
clientdb.cc: In function 'std::string octetos::db::toString()':
clientdb.cc:306:17: error: 'host' was not declared in this scope
  306 |             if(!host.empty())
      |                 ^~~~
clientdb.cc:310:16: error: 'port' was not declared in this scope
  310 |             if(port > 0)
      |                ^~~~
clientdb.cc:315:17: error: 'database' was not declared in this scope; did you mean 'setDatabase'?
  315 |             if(!database.empty())
      |                 ^~~~~~~~
      |                 setDatabase
clientdb.cc:319:17: error: 'password' was not declared in this scope; did you mean 'setPassword'?
  319 |             if(!password.empty())
      |                 ^~~~~~~~
      |                 setPassword
clientdb.cc: At global scope:
clientdb.cc:327:9: error: 'Datconnect' does not name a type
  327 |         Datconnect::Datconnect()
      |         ^~~~~~~~~~
clientdb.cc:330:9: error: 'Datconnect' does not name a type
  330 |         Datconnect::Datconnect(const Datconnect& obj)
      |         ^~~~~~~~~~
clientdb.cc:340:9: error: 'Datconnect' does not name a type
  340 |         Datconnect::Datconnect(TypeServer driver,const std::string& host, unsigned int port,const std::string& database,const std::string& usuario,const std::string& password)
      |         ^~~~~~~~~~
clientdb.cc:350:28: error: 'Datconnect' has not been declared
  350 |         const std::string& Datconnect::getHost()const
      |                            ^~~~~~~~~~
clientdb.cc:350:49: error: non-member function 'const std::string& octetos::db::getHost()' cannot have cv-qualifier
  350 |         const std::string& Datconnect::getHost()const
      |                                                 ^~~~~
clientdb.cc: In function 'const std::string& octetos::db::getHost()':
clientdb.cc:352:20: error: 'host' was not declared in this scope
  352 |             return host;
      |                    ^~~~
clientdb.cc: At global scope:
clientdb.cc:354:28: error: 'Datconnect' has not been declared
  354 |         const std::string& Datconnect::getUser()const
      |                            ^~~~~~~~~~
clientdb.cc:354:49: error: non-member function 'const std::string& octetos::db::getUser()' cannot have cv-qualifier
  354 |         const std::string& Datconnect::getUser()const
      |                                                 ^~~~~
clientdb.cc: In function 'const std::string& octetos::db::getUser()':
clientdb.cc:356:20: error: 'user' was not declared in this scope
  356 |             return user;
      |                    ^~~~
clientdb.cc: At global scope:
clientdb.cc:358:28: error: 'Datconnect' has not been declared
  358 |         const std::string& Datconnect::getPassword()const
      |                            ^~~~~~~~~~
clientdb.cc:358:53: error: non-member function 'const std::string& octetos::db::getPassword()' cannot have cv-qualifier
  358 |         const std::string& Datconnect::getPassword()const
      |                                                     ^~~~~
clientdb.cc: In function 'const std::string& octetos::db::getPassword()':
clientdb.cc:360:20: error: 'password' was not declared in this scope; did you mean 'setPassword'?
  360 |             return password;
      |                    ^~~~~~~~
      |                    setPassword
clientdb.cc: At global scope:
clientdb.cc:362:28: error: 'Datconnect' has not been declared
  362 |         const std::string& Datconnect::getDatabase()const
      |                            ^~~~~~~~~~
clientdb.cc:362:53: error: non-member function 'const std::string& octetos::db::getDatabase()' cannot have cv-qualifier
  362 |         const std::string& Datconnect::getDatabase()const
      |                                                     ^~~~~
clientdb.cc: In function 'const std::string& octetos::db::getDatabase()':
clientdb.cc:364:20: error: 'database' was not declared in this scope; did you mean 'setDatabase'?
  364 |             return database;
      |                    ^~~~~~~~
      |                    setDatabase
clientdb.cc: At global scope:
clientdb.cc:366:22: error: 'Datconnect' has not been declared
  366 |         unsigned int Datconnect::getPort()const
      |                      ^~~~~~~~~~
clientdb.cc:366:43: error: non-member function 'unsigned int octetos::db::getPort()' cannot have cv-qualifier
  366 |         unsigned int Datconnect::getPort()const
      |                                           ^~~~~
clientdb.cc: In function 'unsigned int octetos::db::getPort()':
clientdb.cc:368:20: error: 'port' was not declared in this scope
  368 |             return port;
      |                    ^~~~
clientdb.cc: At global scope:
clientdb.cc:388:15: error: 'Connector' does not name a type; did you mean 'Connection'?
  388 |         const Connector&Connector:: operator=(const Connector& obj)
      |               ^~~~~~~~~
      |               Connection
clientdb.cc:400:14: error: 'Connector' has not been declared
  400 |         bool Connector::is_ipv4_address(const std::string& str)
      |              ^~~~~~~~~
clientdb.cc:422:14: error: 'Connector' has not been declared
  422 |         bool Connector::is_ipv6_address(const std::string& str)
      |              ^~~~~~~~~
clientdb.cc:458:14: error: 'Connector' has not been declared
  458 |         bool Connector::is_valid_domain_name(const std::string& str)
      |              ^~~~~~~~~
clientdb.cc:497:9: error: 'Connector' does not name a type; did you mean 'Connection'?
  497 |         Connector::Connector()
      |         ^~~~~~~~~
      |         Connection
clientdb.cc:500:9: error: 'Connector' does not name a type; did you mean 'Connection'?
  500 |         Connector::~Connector()
      |         ^~~~~~~~~
      |         Connection
clientdb.cc:503:20: error: 'Connector' has not been declared
  503 |         Connection Connector::getConnection()const
      |                    ^~~~~~~~~
clientdb.cc:503:46: error: non-member function 'void* octetos::db::getConnection()' cannot have cv-qualifier
  503 |         Connection Connector::getConnection()const
      |                                              ^~~~~
clientdb.cc: In function 'void* octetos::db::getConnection()':
clientdb.cc:505:20: error: 'conn' was not declared in this scope
  505 |             return conn;
      |                    ^~~~
clientdb.cc: At global scope:
clientdb.cc:507:15: error: 'Datconnect' does not name a type
  507 |         const Datconnect* Connector::getDatconection() const
      |               ^~~~~~~~~~
make[2]: *** [Makefile:470: liboctetos_db_abstract_la-clientdb.lo] Error 1
make[2]: Leaving directory '/var/tmp/portage/dev-libs/octetos-db-abstract-0.6.0_alpha/work/octetos-db-abstract-0.6.0-alpha/src'
make[1]: *** [Makefile:463: all-recursive] Error 1
make: *** [Makefile:374: all] Error 2