Build of ibam with android toolchain

The build took 00h 01m 02s and was NOT successful.

The program in this build is written in the following languages, according to sloccount:

SLOCLanguage
759 cpp
84 sh
48 makefile
891 total

The process tree of the build process is here.

Several sub-process invocations were improper; see the process tree for details. Summary:

List of Errors

Log

To avoid scrolling, you may jump to the last line of the invocation of makepkg that was used to build this package.

Removed vanilla repositories from pacman.conf and added:
# [tuscan]
# Server = file:///var/cache/pacman/pkg/

CMD: pacman -Syy --noconfirm
# :: Synchronizing package databases...
# downloading tuscan.db...

Copied permanent toolchain into container-local sysroot
# /toolchain_root/arm-linux-androideabi --> /sysroot/arm-linux-androideabi
# /toolchain_root/COPYING3.LIB --> /sysroot/COPYING3.LIB
# /toolchain_root/sysroot --> /sysroot/sysroot
# /toolchain_root/COPYING.RUNTIME --> /sysroot/COPYING.RUNTIME
# /toolchain_root/lib --> /sysroot/lib
# /toolchain_root/SOURCES --> /sysroot/SOURCES
# /toolchain_root/lib64 --> /sysroot/lib64
# /toolchain_root/share --> /sysroot/share
# /toolchain_root/bin --> /sysroot/bin
# /toolchain_root/COPYING --> /sysroot/COPYING
# /toolchain_root/COPYING3 --> /sysroot/COPYING3
# /toolchain_root/COPYING.LIB --> /sysroot/COPYING.LIB
# /toolchain_root/include --> /sysroot/include
# /toolchain_root/libexec --> /sysroot/libexec

CMD: sudo -u tuscan PATH=/sysroot/bin:/sysroot/libexec/gcc/arm-linux-androideabi/4.8:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin CC=arm-linux-androideabi-gcc CXX=arm-linux-androideabi-g++ red makepkg --noextract --syncdeps --skipinteg --skippgpcheck --skipchecksums --noconfirm --nocolor --log --noprogressbar --nocheck
# ==> Making package: ibam 0.5.2-9 (Tue Apr 4 19:35:19 UTC 2017)
# ==> Checking runtime dependencies...
# ==> Checking buildtime dependencies...
# ==> WARNING: Using existing $srcdir/ tree
# ==> Starting build()...
# g++ -O3 -DIBAM_VERSION=\"0.5.2\" -Wall ibam.cpp -o ibam
# cc1plus: error: no include path in which to search for stdc-predef.h
# In file included from ibam.cpp:19:0:
# ibam.hpp:25:20: error: no include path in which to search for iostream
# #include
# ^
# ibam.hpp:26:19: error: no include path in which to search for fstream
# #include
# ^
# ibam.hpp:27:18: error: no include path in which to search for string
# #include
# ^
# ibam.hpp:28:18: error: no include path in which to search for math.h
# #include
# ^
# ibam.hpp:29:20: error: no include path in which to search for stdlib.h
# #include
# ^
# ibam.hpp:30:20: error: no include path in which to search for unistd.h
# #include
# ^
# ibam.hpp:31:18: error: no include path in which to search for time.h
# #include
# ^
# In file included from ibam.hpp:211:0,
# from ibam.cpp:19:
# ibam.inl:19:20: error: no include path in which to search for iostream
# #include
# ^
# ibam.inl:20:19: error: no include path in which to search for sstream
# #include
# ^
# ibam.inl:21:19: error: no include path in which to search for fstream
# #include
# ^
# ibam.inl:22:18: error: no include path in which to search for string
# #include
# ^
# ibam.inl:23:18: error: no include path in which to search for math.h
# #include
# ^
# ibam.inl:24:20: error: no include path in which to search for stdlib.h
# #include
# ^
# ibam.inl:25:19: error: no include path in which to search for stdio.h
# #include
# ^
# ibam.inl:26:20: error: no include path in which to search for unistd.h
# #include
# ^
# ibam.inl:27:18: error: no include path in which to search for time.h
# #include
# ^
# ibam.inl:28:51: error: no include path in which to search for dirent.h
# #include // for acpi multiple batteries
# ^
# ibam.inl:31:80: error: no include path in which to search for locale.h
# #include // thus I may prevent evil krells to change to others..
# ^
# ibam.inl:35:39: error: no include path in which to search for sys/stat.h
# #include // for mkdir
# ^
# ibam.inl:36:39: error: no include path in which to search for sys/types.h
# #include // for mkdir
# ^
# ibam.cpp:20:20: error: no include path in which to search for getopt.h
# #include
# ^
# ibam.cpp:22:36: error: no include path in which to search for sys/stat.h
# #include // for mkdir
# ^
# ibam.cpp:23:36: error: no include path in which to search for sys/types.h
# #include // for mkdir
# ^
# In file included from ibam.cpp:19:0:
# ibam.hpp:50:7: error: 'string' does not name a type
# string Path;
# ^
# ibam.hpp:58:35: error: expected ')' before 'path'
# inline battery_status(string path);
# ^
# ibam.hpp:66:32: error: expected ')' before 'path'
# inline apm_status(string path="/proc/apm");
# ^
# ibam.hpp:73:32: error: expected ')' before 'path'
# inline pmu_status(string path="/proc/pmu");
# ^
# ibam.hpp:80:33: error: expected ')' before 'path'
# inline acpi_status(string path="/proc/acpi");
# ^
# ibam.hpp:87:34: error: expected ')' before 'path'
# inline sysfs_status(string path="/sys/class/power_supply/");
# ^
# ibam.hpp:104:21: error: 'ostream' does not name a type
# friend inline ostream & operator <<(ostream & o,const percent_data & a);
# ^
# ibam.hpp:109:21: error: 'istream' does not name a type
# friend inline istream & operator >>(istream & i,percent_data &a);
# ^
# ibam.hpp:110:14: error: 'istream' does not name a type
# inline istream & import(istream & i);
# ^
# ibam.hpp:146:7: error: 'string' does not name a type
# string home;
# ^
# ibam.hpp:160:25: error: 'string' does not name a type
# inline ibam(const string &a="");
# ^
# ibam.hpp:160:35: error: ISO C++ forbids declaration of 'a' with no type [-fpermissive]
# inline ibam(const string &a="");
# ^
# ibam.hpp:168:14: error: 'string' does not name a type
# inline string profile_filename(int n,int type) const;
# ^
# ibam.hpp:160:35: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
# inline ibam(const string &a="");
# ^
# In file included from ibam.hpp:211:0,
# from ibam.cpp:19:
# ibam.inl:82:39: error: ISO C++ forbids declaration of 'battery_status' with no type [-fpermissive]
# inline battery_status::battery_status(string path) {
# ^
# ibam.inl:82:39: error: 'battery_status::battery_status' declared as an 'inline' variable
# ibam.inl:82:39: error: 'int battery_status::battery_status' is not a static member of 'class battery_status'
# ibam.inl:82:39: error: 'string' was not declared in this scope
# ibam.inl:82:52: error: expected ',' or ';' before '{' token
# inline battery_status::battery_status(string path) {
# ^
# ibam.inl: In member function 'virtual void battery_status::update()':
# ibam.inl:90:4: error: 'cout' was not declared in this scope
# cout << "battery_status::update() called. This should never happen!" << endl;
# ^
# ibam.inl:90:76: error: 'endl' was not declared in this scope
# cout << "battery_status::update() called. This should never happen!" << endl;
# ^
# ibam.inl: At global scope:
# ibam.inl:94:31: error: ISO C++ forbids declaration of 'apm_status' with no type [-fpermissive]
# inline apm_status::apm_status(string path) : battery_status(path)
# ^
# ibam.inl:94:31: error: 'apm_status::apm_status' declared as an 'inline' variable
# ibam.inl:94:31: error: 'int apm_status::apm_status' is not a static member of 'class apm_status'
# ibam.inl:94:31: error: 'string' was not declared in this scope
# ibam.inl:94:44: error: expected ',' or ';' before ':' token
# inline apm_status::apm_status(string path) : battery_status(path)
# ^
# ibam.inl:99:31: error: ISO C++ forbids declaration of 'pmu_status' with no type [-fpermissive]
# inline pmu_status::pmu_status(string path) : battery_status(path)
# ^
# ibam.inl:99:31: error: 'pmu_status::pmu_status' declared as an 'inline' variable
# ibam.inl:99:31: error: 'int pmu_status::pmu_status' is not a static member of 'class pmu_status'
# ibam.inl:99:31: error: 'string' was not declared in this scope
# ibam.inl:99:44: error: expected ',' or ';' before ':' token
# inline pmu_status::pmu_status(string path) : battery_status(path)
# ^
# ibam.inl:104:33: error: ISO C++ forbids declaration of 'acpi_status' with no type [-fpermissive]
# inline acpi_status::acpi_status(string path) : battery_status(path)
# ^
# ibam.inl:104:33: error: 'acpi_status::acpi_status' declared as an 'inline' variable
# ibam.inl:104:33: error: 'int acpi_status::acpi_status' is not a static member of 'class acpi_status'
# ibam.inl:104:33: error: 'string' was not declared in this scope
# ibam.inl:104:46: error: expected ',' or ';' before ':' token
# inline acpi_status::acpi_status(string path) : battery_status(path)
# ^
# ibam.inl:109:35: error: ISO C++ forbids declaration of 'sysfs_status' with no type [-fpermissive]
# inline sysfs_status::sysfs_status(string path) : battery_status(path)
# ^
# ibam.inl:109:35: error: 'sysfs_status::sysfs_status' declared as an 'inline' variable
# ibam.inl:109:35: error: 'int sysfs_status::sysfs_status' is not a static member of 'class sysfs_status'
# ibam.inl:109:35: error: 'string' was not declared in this scope
# ibam.inl:109:48: error: expected ',' or ';' before ':' token
# inline sysfs_status::sysfs_status(string path) : battery_status(path)
# ^
# ibam.inl: In member function 'virtual void apm_status::update()':
# ibam.inl:116:4: error: 'ifstream' was not declared in this scope
# ifstream in;
# ^
# ibam.inl:116:13: error: expected ';' before 'in'
# ifstream in;
# ^
# ibam.inl:118:4: error: 'in' was not declared in this scope
# in.open(Path.c_str());
# ^
# ibam.inl:118:12: error: 'Path' was not declared in this scope
# in.open(Path.c_str());
# ^
# ibam.inl:130:4: error: 'string' was not declared in this scope
# string driverVersion, biosVersion;
# ^
# ibam.inl:130:11: error: expected ';' before 'driverVersion'
# string driverVersion, biosVersion;
# ^
# ibam.inl:133:10: error: 'driverVersion' was not declared in this scope
# in >> driverVersion;
# ^
# ibam.inl:134:10: error: 'biosVersion' was not declared in this scope
# in >> biosVersion;
# ^
# ibam.inl:149:11: error: expected ';' before 'minsec'
# string minsec;
# ^
# ibam.inl:150:41: error: 'minsec' was not declared in this scope
# in >> remainingBatteryLifeSeconds >> minsec;
# ^
# ibam.inl: In member function 'virtual void pmu_status::update()':
# ibam.inl:222:4: error: 'ifstream' was not declared in this scope
# ifstream in;
# ^
# ibam.inl:222:13: error: expected ';' before 'in'
# ifstream in;
# ^
# ibam.inl:224:4: error: 'in' was not declared in this scope
# in.open((Path+"/info").c_str());
# ^
# ibam.inl:224:13: error: 'Path' was not declared in this scope
# in.open((Path+"/info").c_str());
# ^
# ibam.inl:235:4: error: 'stringbuf' was not declared in this scope
# stringbuf buf;
# ^
# ibam.inl:235:14: error: expected ';' before 'buf'
# stringbuf buf;
# ^
# ibam.inl:239:14: error: 'buf' was not declared in this scope
# in.get(buf, ':');
# ^
# ibam.inl:256:14: error: 'buf' was not declared in this scope
# in.get(buf, ':');
# ^
# ibam.inl:277:14: error: 'buf' was not declared in this scope
# in.get(buf, ':');
# ^
# ibam.inl: In member function 'virtual void acpi_status::update()':
# ibam.inl:327:4: error: 'ifstream' was not declared in this scope
# ifstream in;
# ^
# ibam.inl:327:13: error: expected ';' before 'in'
# ifstream in;
# ^
# ibam.inl:328:4: error: 'DIR' was not declared in this scope
# DIR *acpi_battery_dir;
# ^
# ibam.inl:328:9: error: 'acpi_battery_dir' was not declared in this scope
# DIR *acpi_battery_dir;
# ^
# ibam.inl:332:30: error: 'Path' was not declared in this scope
# acpi_battery_dir=opendir((Path+"/battery").c_str());
# ^
# ibam.inl:332:54: error: 'opendir' was not declared in this scope
# acpi_battery_dir=opendir((Path+"/battery").c_str());
# ^
# ibam.inl:334:26: error: 'NULL' was not declared in this scope
# if (acpi_battery_dir==NULL)
# ^
# ibam.inl:347:50: error: 'readdir' was not declared in this scope
# while ((battery_entry=readdir(acpi_battery_dir)))
# ^
# ibam.inl:349:23: error: invalid use of incomplete type 'struct acpi_status::update()::dirent'
# if(battery_entry->d_name!=string(".")
# ^
# ibam.inl:329:11: error: forward declaration of 'struct acpi_status::update()::dirent'
# struct dirent *battery_entry;
# ^
# ibam.inl:349:43: error: 'string' was not declared in this scope
# if(battery_entry->d_name!=string(".")
# ^
# ibam.inl:350:23: error: invalid use of incomplete type 'struct acpi_status::update()::dirent'
# && battery_entry->d_name!=string(".."))
# ^
# ibam.inl:329:11: error: forward declaration of 'struct acpi_status::update()::dirent'
# struct dirent *battery_entry;
# ^
# ibam.inl:352:10: error: 'in' was not declared in this scope
# in.open((((Path+"/battery/")+battery_entry->d_name)+"/info").c_str());
# ^
# ibam.inl:352:52: error: invalid use of incomplete type 'struct acpi_status::update()::dirent'
# in.open((((Path+"/battery/")+battery_entry->d_name)+"/info").c_str());
# ^
# ibam.inl:329:11: error: forward declaration of 'struct acpi_status::update()::dirent'
# struct dirent *battery_entry;
# ^
# ibam.inl:353:10: error: 'stringbuf' was not declared in this scope
# stringbuf buf;
# ^
# ibam.inl:353:20: error: expected ';' before 'buf'
# stringbuf buf;
# ^
# ibam.inl:359:20: error: 'buf' was not declared in this scope
# in.get(buf, ':');
# ^
# ibam.inl:381:55: error: invalid use of incomplete type 'struct acpi_status::update()::dirent'
# in.open((((Path+"/battery/")+battery_entry->d_name)+"/state").c_str());
# ^
# ibam.inl:329:11: error: forward declaration of 'struct acpi_status::update()::dirent'
# struct dirent *battery_entry;
# ^
# ibam.inl:385:23: error: 'buf' was not declared in this scope
# in.get(buf, ':');
# ^
# ibam.inl:449:29: error: 'closedir' was not declared in this scope
# closedir(acpi_battery_dir);
# ^
# ibam.inl: In member function 'virtual void sysfs_status::update()':
# ibam.inl:504:4: error: 'ifstream' was not declared in this scope
# ifstream in;
# ^
# ibam.inl:504:13: error: expected ';' before 'in'
# ifstream in;
# ^
# ibam.inl:505:4: error: 'DIR' was not declared in this scope
# DIR *sysfs_battery_dir;
# ^
# ibam.inl:505:9: error: 'sysfs_battery_dir' was not declared in this scope
# DIR *sysfs_battery_dir;
# ^
# ibam.inl:508:31: error: 'Path' was not declared in this scope
# sysfs_battery_dir=opendir((Path).c_str());
# ^
# ibam.inl:508:44: error: 'opendir' was not declared in this scope
# sysfs_battery_dir=opendir((Path).c_str());
# ^
# ibam.inl:510:27: error: 'NULL' was not declared in this scope
# if (sysfs_battery_dir==NULL)
# ^
# ibam.inl:523:51: error: 'readdir' was not declared in this scope
# while ((battery_entry=readdir(sysfs_battery_dir)))
# ^
# ibam.inl:525:23: error: invalid use of incomplete type 'struct sysfs_status::update()::dirent'
# if(battery_entry->d_name!=string(".")
# ^
# ibam.inl:506:11: error: forward declaration of 'struct sysfs_status::update()::dirent'
# struct dirent *battery_entry;
# ^
# ibam.inl:525:43: error: 'string' was not declared in this scope
# if(battery_entry->d_name!=string(".")
# ^
# ibam.inl:526:23: error: invalid use of incomplete type 'struct sysfs_status::update()::dirent'
# && battery_entry->d_name!=string(".."))
# ^
# ibam.inl:506:11: error: forward declaration of 'struct sysfs_status::update()::dirent'
# struct dirent *battery_entry;
# ^
# ibam.inl:528:10: error: 'in' was not declared in this scope
# in.open((((Path)+battery_entry->d_name)+"/present").c_str());
# ^
# ibam.inl:528:40: error: invalid use of incomplete type 'struct sysfs_status::update()::dirent'
# in.open((((Path)+battery_entry->d_name)+"/present").c_str());
# ^
# ibam.inl:506:11: error: forward declaration of 'struct sysfs_status::update()::dirent'
# struct dirent *battery_entry;
# ^
# ibam.inl:543:43: error: invalid use of incomplete type 'struct sysfs_status::update()::dirent'
# in.open((((Path)+battery_entry->d_name)+"/charge_full").c_str());
# ^
# ibam.inl:506:11: error: forward declaration of 'struct sysfs_status::update()::dirent'
# struct dirent *battery_entry;
# ^
# ibam.inl:554:43: error: invalid use of incomplete type 'struct sysfs_status::update()::dirent'
# in.open((((Path)+battery_entry->d_name)+"/charge_now").c_str());
# ^
# ibam.inl:506:11: error: forward declaration of 'struct sysfs_status::update()::dirent'
# struct dirent *battery_entry;
# ^
# ibam.inl:565:43: error: invalid use of incomplete type 'struct sysfs_status::update()::dirent'
# in.open((((Path)+battery_entry->d_name)+"/current_now").c_str());
# ^
# ibam.inl:506:11: error: forward declaration of 'struct sysfs_status::update()::dirent'
# struct dirent *battery_entry;
# ^
# ibam.inl:576:43: error: invalid use of incomplete type 'struct sysfs_status::update()::dirent'
# in.open((((Path)+battery_entry->d_name)+"/status").c_str());
# ^
# ibam.inl:506:11: error: forward declaration of 'struct sysfs_status::update()::dirent'
# struct dirent *battery_entry;
# ^
# ibam.inl:604:30: error: 'closedir' was not declared in this scope
# closedir(sysfs_battery_dir);
# ^
# ibam.inl: At global scope:
# ibam.inl:702:8: error: 'ostream' does not name a type
# inline ostream & operator <<(ostream & o,const percent_data & a)
# ^
# In file included from ibam.hpp:211:0,
# from ibam.cpp:19:
# ibam.inl:816:8: error: 'istream' does not name a type
# inline istream & operator >>(istream & i,percent_data &a)
# ^
# ibam.inl:834:8: error: 'istream' does not name a type
# inline istream & percent_data::import(istream & i)
# ^
# ibam.inl:931:25: error: 'string' does not name a type
# inline ibam::ibam(const string &aHome) :
# ^
# ibam.inl:931:33: error: ISO C++ forbids declaration of 'aHome' with no type [-fpermissive]
# inline ibam::ibam(const string &aHome) :
# ^
# ibam.inl: In constructor 'ibam::ibam(const int&)':
# ibam.inl:936:28: error: 'NULL' was not declared in this scope
# lasttime(time(NULL)),lastpercent(0),
# ^
# ibam.inl:936:32: error: 'time' was not declared in this scope
# lasttime(time(NULL)),lastpercent(0),
# ^
# ibam.inl:943:4: error: 'string' was not declared in this scope
# string pmu_path = "/proc/pmu"; // These strings are already in ibam.hpp,
# ^
# ibam.inl:943:11: error: expected ';' before 'pmu_path'
# string pmu_path = "/proc/pmu"; // These strings are already in ibam.hpp,
# ^
# ibam.inl:944:11: error: expected ';' before 'acpi_path'
# string acpi_path = "/proc/acpi"; // maybe a static function should check this
# ^
# ibam.inl:945:11: error: expected ';' before 'sysfs_path'
# string sysfs_path = "/sys/class/power_supply"; // ...
# ^
# ibam.inl:946:4: error: 'ifstream' was not declared in this scope
# ifstream pmu,acpi,sysfs;
# ^
# ibam.inl:946:13: error: expected ';' before 'pmu'
# ifstream pmu,acpi,sysfs;
# ^
# ibam.inl:947:4: error: 'pmu' was not declared in this scope
# pmu.open((pmu_path+"/info").c_str());
# ^
# ibam.inl:947:14: error: 'pmu_path' was not declared in this scope
# pmu.open((pmu_path+"/info").c_str());
# ^
# ibam.inl:948:4: error: 'acpi' was not declared in this scope
# acpi.open((acpi_path+"/info").c_str());
# ^
# ibam.inl:948:15: error: 'acpi_path' was not declared in this scope
# acpi.open((acpi_path+"/info").c_str());
# ^
# ibam.inl:962:7: error: 'sysfs' was not declared in this scope
# sysfs.open((sysfs_path+"/BAT1/charge_full").c_str());
# ^
# ibam.inl:962:19: error: 'sysfs_path' was not declared in this scope
# sysfs.open((sysfs_path+"/BAT1/charge_full").c_str());
# ^
# ibam.inl:977:4: error: 'home' was not declared in this scope
# home=aHome; // directory must exist, no trailing slash
# ^
# ibam.inl:982:25: error: 'getenv' was not declared in this scope
# home=getenv("HOME");
# ^
# ibam.inl:985:40: error: 'mkdir' was not declared in this scope
# mkdir((home+".ibam").c_str(),0755);
# ^
# ibam.inl:989:13: error: expected ';' before 'in'
# ifstream in((home+"/ibam.rc").c_str());
# ^
# ibam.inl:990:11: error: expected ';' before 'saveversion'
# string saveversion;
# ^
# ibam.inl:991:4: error: 'in' was not declared in this scope
# in >> saveversion;
# ^
# ibam.inl:991:10: error: 'saveversion' was not declared in this scope
# in >> saveversion;
# ^
# ibam.inl: In member function 'void ibam::update()':
# ibam.inl:1025:21: error: 'NULL' was not declared in this scope
# currenttime=time(NULL);
# ^
# ibam.inl:1025:25: error: 'time' was not declared in this scope
# currenttime=time(NULL);
# ^
# ibam.inl: In member function 'void ibam::import()':
# ibam.inl:1046:7: error: 'ifstream' was not declared in this scope
# ifstream in(".ibam.battery.rc");
# ^
# ibam.inl:1046:16: error: expected ';' before 'in'
# ifstream in(".ibam.battery.rc");
# ^
# ibam.inl:1047:15: error: 'class percent_data' has no member named 'import'
# battery.import(in);
# ^
# ibam.inl:1047:22: error: 'in' was not declared in this scope
# battery.import(in);
# ^
# ibam.inl:1051:7: error: 'ifstream' was not declared in this scope
# ifstream in(".ibam.charge.rc");
# ^
# ibam.inl:1051:16: error: expected ';' before 'in'
# ifstream in(".ibam.charge.rc");
# ^
# ibam.inl:1052:14: error: 'class percent_data' has no member named 'import'
# charge.import(in);
# ^
# ibam.inl:1052:21: error: 'in' was not declared in this scope
# charge.import(in);
# ^
# ibam.inl: In member function 'void ibam::load_battery()':
# ibam.inl:1061:7: error: 'ifstream' was not declared in this scope
# ifstream in((home+"/battery.rc").c_str());
# ^
# ibam.inl:1061:16: error: expected ';' before 'in'
# ifstream in((home+"/battery.rc").c_str());
# ^
# ibam.inl:1062:7: error: 'in' was not declared in this scope
# in >> battery;
# ^
# ibam.inl: In member function 'void ibam::load_charge()':
# ibam.inl:1078:7: error: 'ifstream' was not declared in this scope
# ifstream in((home+"/charge.rc").c_str());
# ^
# ibam.inl:1078:16: error: expected ';' before 'in'
# ifstream in((home+"/charge.rc").c_str());
# ^
# ibam.inl:1079:7: error: 'in' was not declared in this scope
# in >> charge;
# ^
# ibam.inl: At global scope:
# ibam.inl:1222:8: error: 'string' does not name a type
# inline string ibam::profile_filename(int n,int type) const
# ^
# ibam.inl: In member function 'void ibam::save()':
# ibam.inl:1238:7: error: 'string' was not declared in this scope
# string filename=profile_filename(profile_number,currentstatus);
# ^
# ibam.inl:1238:14: error: expected ';' before 'filename'
# string filename=profile_filename(profile_number,currentstatus);
# ^
# ibam.inl:1239:7: error: 'ofstream' was not declared in this scope
# ofstream out(filename.c_str(),ios::app);
# ^
# ibam.inl:1239:16: error: expected ';' before 'out'
# ofstream out(filename.c_str(),ios::app);
# ^
# ibam.inl:1240:7: error: 'out' was not declared in this scope
# out << currentpercent << '\t' << last_sec_per_min << '\t' << last_sec_per_min_prediction << endl;
# ^
# ibam.inl:1240:99: error: 'endl' was not declared in this scope
# out << currentpercent << '\t' << last_sec_per_min << '\t' << last_sec_per_min_prediction << endl;
# ^
# ibam.inl:1248:7: error: 'ofstream' was not declared in this scope
# ofstream out((home+"/battery.rc").c_str());
# ^
# ibam.inl:1248:16: error: expected ';' before 'out'
# ofstream out((home+"/battery.rc").c_str());
# ^
# ibam.inl:1249:7: error: 'out' was not declared in this scope
# out << battery;
# ^
# ibam.inl:1254:7: error: 'ofstream' was not declared in this scope
# ofstream out((home+"/charge.rc").c_str());
# ^
# ibam.inl:1254:16: error: expected ';' before 'out'
# ofstream out((home+"/charge.rc").c_str());
# ^
# ibam.inl:1255:7: error: 'out' was not declared in this scope
# out << charge;
# ^
# ibam.inl:1260:7: error: 'ofstream' was not declared in this scope
# ofstream out((home+"/ibam.rc").c_str());
# ^
# ibam.inl:1260:16: error: expected ';' before 'out'
# ofstream out((home+"/ibam.rc").c_str());
# ^
# ibam.inl:1265:7: error: 'out' was not declared in this scope
# out << IBAM_VERSION
# ^
# ibam.inl:1276:14: error: 'endl' was not declared in this scope
# << endl;
# ^
# ibam.inl: In member function 'double percent_data::average_derivation(int, int)':
# ibam.inl:1380:47: error: 'sqrt' was not declared in this scope
# su+=sqrt(time_deriv_for_percent[i])*time_samples[i];
# ^
# ibam.inl:1394:44: error: 'sqrt' was not declared in this scope
# su+=sqrt(time_deriv_for_percent[a])*time_samples[a];
# ^
# ibam.inl:1396:44: error: 'sqrt' was not declared in this scope
# su+=sqrt(time_deriv_for_percent[b])*time_samples[b];
# ^
# ibam.cpp: At global scope:
# ibam.cpp:31:14: error: 'ostream' does not name a type
# friend ostream & operator <<(ostream & o,const HMS & a)
# ^
# ibam.cpp: In function 'int main(int, char**)':
# ibam.cpp:50:9: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
# ibam data;
# ^
# In file included from ibam.hpp:211:0,
# from ibam.cpp:19:
# ibam.inl:931:8: error: in passing argument 1 of 'ibam::ibam(const int&)'
# inline ibam::ibam(const string &aHome) :
# ^
# ibam.cpp:74:4: error: 'string' was not declared in this scope
# string home(getenv("HOME"));
# ^
# ibam.cpp:74:13: error: expected ';' before 'home'
# string home(getenv("HOME"));
# ^
# ibam.cpp:75:7: error: 'home' was not declared in this scope
# if(home!="")
# ^
# ibam.cpp:97:18: error: 'optional_argument' was not declared in this scope
# {"plot",optional_argument,0,12},
# ^
# ibam.cpp:111:7: error: elements of array 'main(int, char**)::option long_options []' have incomplete type
# };
# ^
# ibam.cpp:111:7: error: storage size of 'long_options' isn't known
# ibam.cpp:112:71: error: 'getopt_long' was not declared in this scope
# int c=getopt_long(argc,argv,"avbhcsr",long_options,&option_index);
# ^
# ibam.cpp:131:23: error: expected ';' before 'command'
# string command;
# ^
# ibam.cpp:132:16: error: 'command' was not declared in this scope
# command=string("echo \"plot \\\"")
# ^
# ibam.cpp:133:20: error: 'home' was not declared in this scope
# +home
# ^
# ibam.cpp:137:20: error: 'optarg' was not declared in this scope
# if (optarg)
# ^
# ibam.cpp:139:36: error: 'atoi' was not declared in this scope
# int n=atoi(optarg);
# ^
# ibam.cpp:145:29: error: expected ';' before 'batname'
# string batname=data.profile_filename(p,1);
# ^
# ibam.cpp:146:29: error: expected ';' before 'chrname'
# string chrname=data.profile_filename(p,2);
# ^
# ibam.cpp:147:22: error: 'ifstream' was not declared in this scope
# ifstream batteryprofile(batname.c_str());
# ^
# ibam.cpp:147:31: error: expected ';' before 'batteryprofile'
# ifstream batteryprofile(batname.c_str());
# ^
# ibam.cpp:148:26: error: 'batteryprofile' was not declared in this scope
# if(!batteryprofile.fail())
# ^
# ibam.cpp:150:43: error: 'batname' was not declared in this scope
# command+=", \\\""+batname+"\\\" using 1:2 notitle with lines 5";
# ^
# ibam.cpp:153:34: error: expected ';' before 'chargeprofile'
# ifstream chargeprofile(chrname.c_str());
# ^
# ibam.cpp:154:29: error: 'chargeprofile' was not declared in this scope
# if(!chargeprofile.fail())
# ^
# ibam.cpp:156:46: error: 'chrname' was not declared in this scope
# command+=", \\\""+chrname+"\\\" using 1:2 notitle with lines 6";
# ^
# ibam.cpp:168:38: error: 'system' was not declared in this scope
# system(command.c_str());
# ^
# ibam.cpp:173:23: error: expected ';' before 'command'
# string command;
# ^
# ibam.cpp:174:16: error: 'command' was not declared in this scope
# command=string("echo \"plot \\\"")
# ^
# ibam.cpp:175:20: error: 'home' was not declared in this scope
# +home
# ^
# ibam.cpp:187:20: error: 'optarg' was not declared in this scope
# if (optarg)
# ^
# ibam.cpp:189:36: error: 'atoi' was not declared in this scope
# int n=atoi(optarg);
# ^
# ibam.cpp:195:29: error: expected ';' before 'batname'
# string batname=data.profile_filename(p,1);
# ^
# ibam.cpp:196:29: error: expected ';' before 'chrname'
# string chrname=data.profile_filename(p,2);
# ^
# ibam.cpp:197:22: error: 'ifstream' was not declared in this scope
# ifstream batteryprofile(batname.c_str());
# ^
# ibam.cpp:197:31: error: expected ';' before 'batteryprofile'
# ifstream batteryprofile(batname.c_str());
# ^
# ibam.cpp:198:26: error: 'batteryprofile' was not declared in this scope
# if(!batteryprofile.fail())
# ^
# ibam.cpp:200:43: error: 'batname' was not declared in this scope
# command+=", \\\""+batname+"\\\" using 1:2 notitle with lines 5";
# ^
# ibam.cpp:203:34: error: expected ';' before 'chargeprofile'
# ifstream chargeprofile(chrname.c_str());
# ^
# ibam.cpp:204:29: error: 'chargeprofile' was not declared in this scope
# if(!chargeprofile.fail())
# ^
# ibam.cpp:206:46: error: 'chrname' was not declared in this scope
# command+=", \\\""+chrname+"\\\" using 1:2 notitle with lines 6";
# ^
# ibam.cpp:216:38: error: 'system' was not declared in this scope
# system(command.c_str());
# ^
# ibam.cpp:236:20: error: 'cerr' was not declared in this scope
# case 'v': cerr << "IBAM-" << IBAM_VERSION << " (C) 2001-2008 Sebastian Ritterbusch" << endl; break;
# ^
# ibam.cpp:236:97: error: 'endl' was not declared in this scope
# case 'v': cerr << "IBAM-" << IBAM_VERSION << " (C) 2001-2008 Sebastian Ritterbusch" << endl; break;
# ^
# ibam.cpp:238:13: error: 'cout' was not declared in this scope
# cout << "IBAM-" << IBAM_VERSION << ", the Intelligent Battery Monitor" << endl;
# ^
# ibam.cpp:277:17: error: 'optarg' was not declared in this scope
# if (optarg)
# ^
# ibam.cpp:279:33: error: 'atoi' was not declared in this scope
# int n=atoi(optarg);
# ^
# ibam.cpp:285:17: error: 'optarg' was not declared in this scope
# if (optarg)
# ^
# ibam.cpp:287:33: error: 'atoi' was not declared in this scope
# int n=atoi(optarg);
# ^
# ibam.cpp:296:7: error: 'cerr' was not declared in this scope
# cerr << "No apm data available." << endl;
# ^
# ibam.cpp:296:43: error: 'endl' was not declared in this scope
# cerr << "No apm data available." << endl;
# ^
# ibam.cpp:325:7: error: 'cout' was not declared in this scope
# cout << "Bios percentage: " << data.percent_battery_bios() << " %" << endl;
# ^
# ibam.cpp:325:88: error: 'endl' was not declared in this scope
# cout << "Bios percentage: " << data.percent_battery_bios() << " %" << endl;
# ^
# ibam.cpp:328:7: error: 'cout' was not declared in this scope
# cout << "Battery percentage: " << data.percent_battery() << " %" << endl;
# ^
# ibam.cpp:328:83: error: 'endl' was not declared in this scope
# cout << "Battery percentage: " << data.percent_battery() << " %" << endl;
# ^
# ibam.cpp:331:7: error: 'cout' was not declared in this scope
# cout << "Soft low percentage limit: " << data.get_soft_low_limit() << " %" << endl;
# ^
# ibam.cpp:331:86: error: 'endl' was not declared in this scope
# cout << "Soft low percentage limit: " << data.get_soft_low_limit() << " %" << endl;
# ^
# ibam.cpp:334:7: error: 'cout' was not declared in this scope
# cout << "Hard low percentage limit: " << data.get_hard_low_limit() << " %" << endl;
# ^
# ibam.cpp:334:86: error: 'endl' was not declared in this scope
# cout << "Hard low percentage limit: " << data.get_hard_low_limit() << " %" << endl;
# ^
# ibam.cpp:337:7: error: 'cout' was not declared in this scope
# cout << "Charge percentage: " << data.percent_charge() << " %" << endl;
# ^
# ibam.cpp:337:82: error: 'endl' was not declared in this scope
# cout << "Charge percentage: " << data.percent_charge() << " %" << endl;
# ^
# ibam.cpp:340:7: error: 'cout' was not declared in this scope
# cout << "Bios time left: " << HMS(data.seconds_left_battery_bios()) << endl;
# ^
# ibam.cpp:340:90: error: 'endl' was not declared in this scope
# cout << "Bios time left: " << HMS(data.seconds_left_battery_bios()) << endl;
# ^
# ibam.cpp:343:7: error: 'cout' was not declared in this scope
# cout << "Battery time left: " << HMS(data.seconds_left_battery()) << endl;
# ^
# ibam.cpp:343:85: error: 'endl' was not declared in this scope
# cout << "Battery time left: " << HMS(data.seconds_left_battery()) << endl;
# ^
# ibam.cpp:346:7: error: 'cout' was not declared in this scope
# cout << "Battery time left: " << HMS(data.seconds_left_battery()+data.seconds_battery_correction()) << endl;
# ^
# ibam.cpp:346:119: error: 'endl' was not declared in this scope
# cout << "Battery time left: " << HMS(data.seconds_left_battery()+data.seconds_battery_correction()) << endl;
# ^
# ibam.cpp:349:7: error: 'cout' was not declared in this scope
# cout << "Adapted battery time left: " << HMS(data.seconds_left_battery_adaptive()) << endl;
# ^
# ibam.cpp:349:94: error: 'endl' was not declared in this scope
# cout << "Adapted battery time left: " << HMS(data.seconds_left_battery_adaptive()) << endl;
# ^
# ibam.cpp:352:7: error: 'cout' was not declared in this scope
# cout << "Adapted battery time left: " << HMS(data.seconds_left_battery_adaptive()+data.seconds_battery_correction_adaptive()) << endl;
# ^
# ibam.cpp:352:137: error: 'endl' was not declared in this scope
# cout << "Adapted battery time left: " << HMS(data.seconds_left_battery_adaptive()+data.seconds_battery_correction_adaptive()) << endl;
# ^
# ibam.cpp:355:7: error: 'cout' was not declared in this scope
# cout << "Charge time left: " << HMS(data.seconds_left_charge()) << endl;
# ^
# ibam.cpp:355:84: error: 'endl' was not declared in this scope
# cout << "Charge time left: " << HMS(data.seconds_left_charge()) << endl;
# ^
# ibam.cpp:358:7: error: 'cout' was not declared in this scope
# cout << "Charge time left: " << HMS(data.seconds_left_charge()+data.seconds_charge_correction()) << endl;
# ^
# ibam.cpp:358:117: error: 'endl' was not declared in this scope
# cout << "Charge time left: " << HMS(data.seconds_left_charge()+data.seconds_charge_correction()) << endl;
# ^
# ibam.cpp:361:7: error: 'cout' was not declared in this scope
# cout << "Adapted charge time left: " << HMS(data.seconds_left_charge_adaptive()) << endl;
# ^
# ibam.cpp:361:93: error: 'endl' was not declared in this scope
# cout << "Adapted charge time left: " << HMS(data.seconds_left_charge_adaptive()) << endl;
# ^
# ibam.cpp:364:7: error: 'cout' was not declared in this scope
# cout << "Adapted charge time left: " << HMS(data.seconds_left_charge_adaptive()+data.seconds_charge_correction_adaptive()) << endl;
# ^
# ibam.cpp:364:135: error: 'endl' was not declared in this scope
# cout << "Adapted charge time left: " << HMS(data.seconds_left_charge_adaptive()+data.seconds_charge_correction_adaptive()) << endl;
# ^
# ibam.cpp:367:7: error: 'cout' was not declared in this scope
# cout << "Total battery time: " << HMS(data.seconds_battery_total()) << endl;
# ^
# ibam.cpp:367:86: error: 'endl' was not declared in this scope
# cout << "Total battery time: " << HMS(data.seconds_battery_total()) << endl;
# ^
# ibam.cpp:370:7: error: 'cout' was not declared in this scope
# cout << "Adapted total battery time: " << HMS(data.seconds_battery_total_adaptive()) << endl;
# ^
# ibam.cpp:370:95: error: 'endl' was not declared in this scope
# cout << "Adapted total battery time: " << HMS(data.seconds_battery_total_adaptive()) << endl;
# ^
# ibam.cpp:373:7: error: 'cout' was not declared in this scope
# cout << "Total charge time: " << HMS(data.seconds_charge_total()) << endl;
# ^
# ibam.cpp:373:85: error: 'endl' was not declared in this scope
# cout << "Total charge time: " << HMS(data.seconds_charge_total()) << endl;
# ^
# ibam.cpp:376:7: error: 'cout' was not declared in this scope
# cout << "Adapted total charge time: " << HMS(data.seconds_charge_total_adaptive()) << endl;
# ^
# ibam.cpp:376:94: error: 'endl' was not declared in this scope
# cout << "Adapted total charge time: " << HMS(data.seconds_charge_total_adaptive()) << endl;
# ^
# ibam.cpp:382:10: error: 'cout' was not declared in this scope
# cout << "Profile logging enabled." << endl;
# ^
# ibam.cpp:382:48: error: 'endl' was not declared in this scope
# cout << "Profile logging enabled." << endl;
# ^
# ibam.cpp:383:43: error: 'class ibam' has no member named 'profile_filename'
# cout << "Current file: " << data.profile_filename(
# ^
# ibam.cpp:388:10: error: 'cout' was not declared in this scope
# cout << "Profile logging disabled." << endl;
# ^
# ibam.cpp:388:49: error: 'endl' was not declared in this scope
# cout << "Profile logging disabled." << endl;
# ^
# ibam.cpp:392:7: error: 'cout' was not declared in this scope
# cout << endl;
# ^
# ibam.cpp:392:15: error: 'endl' was not declared in this scope
# cout << endl;
# ^
# make: *** [Makefile:33: ibam] Error 1
# ==> ERROR: A failure occurred in build().
# Aborting...