Mock Version: 1.1.18 Mock Version: 1.1.18 ENTER do(['bash', '--login', '-c', 'rpmbuild -bs --target i686 --nodeps builddir/build/SPECS/acpitool.spec'], False, '/var/lib/mock/f17-build-1279156-204061/root/', None, 86400, True, False, 497, 497, None, False, None, logger=) Executing command: ['bash', '--login', '-c', 'rpmbuild -bs --target i686 --nodeps builddir/build/SPECS/acpitool.spec'] Building target platforms: i686 Building for target i686 Wrote: /builddir/build/SRPMS/acpitool-0.5.1-4.fc17.src.rpm Child returncode was: 0 LEAVE do --> ENTER do(['bash', '--login', '-c', 'rpmbuild -bb --target i686 --nodeps builddir/build/SPECS/acpitool.spec'], False, '/var/lib/mock/f17-build-1279156-204061/root/', None, 86400, True, False, 497, 497, None, False, None, logger=) Executing command: ['bash', '--login', '-c', 'rpmbuild -bb --target i686 --nodeps builddir/build/SPECS/acpitool.spec'] Building target platforms: i686 Building for target i686 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.uXOi33 + umask 022 + cd /builddir/build/BUILD + LANG=C + export LANG + unset DISPLAY + cd /builddir/build/BUILD + rm -rf acpitool-0.5.1 + /usr/bin/bzip2 -dc /builddir/build/SOURCES/acpitool-0.5.1.tar.bz2 + /usr/bin/tar -xf - + STATUS=0 + '[' 0 -ne 0 ']' + cd acpitool-0.5.1 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.oR3UTW + umask 022 + cd /builddir/build/BUILD + cd acpitool-0.5.1 + LANG=C + export LANG + unset DISPLAY + CFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables' + export CFLAGS + CXXFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables' + export CXXFLAGS + FFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables -I/usr/lib/gfortran/modules' + export FFLAGS + LDFLAGS='-Wl,-z,relro ' + export LDFLAGS + ./configure --build=i386-redhat-linux-gnu --host=i386-redhat-linux-gnu --program-prefix= --disable-dependency-tracking --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for gawk... gawk checking whether make sets $(MAKE)... yes checking build system type... i386-redhat-linux-gnu checking host system type... i386-redhat-linux-gnu checking for i386-redhat-linux-gnu-g++... no checking for i386-redhat-linux-gnu-c++... no checking for i386-redhat-linux-gnu-gpp... no checking for i386-redhat-linux-gnu-aCC... no checking for i386-redhat-linux-gnu-CC... no checking for i386-redhat-linux-gnu-cxx... no checking for i386-redhat-linux-gnu-cc++... no checking for i386-redhat-linux-gnu-cl.exe... no checking for i386-redhat-linux-gnu-FCC... no checking for i386-redhat-linux-gnu-KCC... no checking for i386-redhat-linux-gnu-RCC... no checking for i386-redhat-linux-gnu-xlC_r... no checking for i386-redhat-linux-gnu-xlC... no checking for g++... g++ checking for C++ compiler default output file name... a.out checking whether the C++ compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking for style of include used by make... GNU checking dependency style of g++... none checking for i386-redhat-linux-gnu-gcc... no checking for gcc... gcc checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking dependency style of gcc... none checking for dirent.h that defines DIR... yes checking for library containing opendir... none required checking how to run the C preprocessor... gcc -E checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking for unistd.h... (cached) yes checking for an ANSI C-conforming const... yes checking whether closedir returns void... no checking for strdup... yes checking for memset... yes checking for strtol... yes checking for a BSD-compatible install... /usr/bin/install -c configure: creating ./config.status config.status: creating Makefile config.status: creating src/Makefile config.status: creating man/Makefile config.status: creating config.h config.status: executing depfiles commands +-----------------------------------------------------------------------------------+ | Run make && make install when the configure script has finished without problems. | +-----------------------------------------------------------------------------------+ + make -j16 make all-recursive make[1]: Entering directory `/builddir/build/BUILD/acpitool-0.5.1' Making all in src make[2]: Entering directory `/builddir/build/BUILD/acpitool-0.5.1/src' g++ -DHAVE_CONFIG_H -I. -I. -I.. -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables -c -o main.o main.cpp g++ -DHAVE_CONFIG_H -I. -I. -I.. -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables -c -o acpitool.o acpitool.cpp g++ -DHAVE_CONFIG_H -I. -I. -I.. -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables -c -o ac_adapter.o ac_adapter.cpp g++ -DHAVE_CONFIG_H -I. -I. -I.. -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables -c -o toshiba.o toshiba.cpp g++ -DHAVE_CONFIG_H -I. -I. -I.. -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables -c -o asus.o asus.cpp g++ -DHAVE_CONFIG_H -I. -I. -I.. -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables -c -o thinkpad.o thinkpad.cpp g++ -DHAVE_CONFIG_H -I. -I. -I.. -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables -c -o cpu.o cpu.cpp g++ -DHAVE_CONFIG_H -I. -I. -I.. -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables -c -o battery.o battery.cpp g++ -DHAVE_CONFIG_H -I. -I. -I.. -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables -c -o freq.o freq.cpp asus.cpp: In function 'int Has_Asus_ACPI()': asus.cpp:50:16: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] asus.cpp: In function 'int Do_Asus_LCD_Info()': asus.cpp:87:16: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] asus.cpp: In function 'int Set_Asus_LCD_Level(int)': asus.cpp:121:16: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] asus.cpp: In function 'int Do_Asus_Video_Info()': asus.cpp:149:16: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] thinkpad.cpp: In function 'int Has_Thinkpad_ACPI()': thinkpad.cpp:17:13: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] thinkpad.cpp: In function 'int Eject_Thinkpad_Bay()': thinkpad.cpp:38:13: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] asus.cpp: In function 'int Do_Asus_Info()': asus.cpp:204:16: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] thinkpad.cpp: In function 'int Set_Thinkpad_LCD_Level(int)': thinkpad.cpp:59:13: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] thinkpad.cpp: In function 'int Do_Thinkpad_Fan_Info()': thinkpad.cpp:85:13: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] asus.cpp: In function 'int Set_Asus_LCD_State(int)': asus.cpp:268:16: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] asus.cpp: In function 'int Set_MLed(int)': asus.cpp:293:16: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] asus.cpp: In function 'int Set_WLed(int)': asus.cpp:318:16: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] acpitool.cpp: In function 'int Has_ACPI(char*)': acpitool.cpp:69:16: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] acpitool.cpp:70:17: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] acpitool.cpp: In function 'int Get_Kernel_Version(char*, int)': acpitool.cpp:142:16: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] acpitool.cpp: In function 'int Set_Kernel_Version()': acpitool.cpp:190:16: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] acpitool.cpp: In function 'int Do_Thermal_Info(int, int)': acpitool.cpp:232:15: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] acpitool.cpp: In function 'int Do_Fan_Info(int)': acpitool.cpp:366:12: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] acpitool.cpp: In function 'int Show_WakeUp_Devices(int)': acpitool.cpp:422:16: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] cpu.cpp: In function 'int Show_CPU_Info()': cpu.cpp:107:12: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] acpitool.cpp: In function 'int Toggle_WakeUp_Device(int, int)': acpitool.cpp:469:16: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] acpitool.cpp: In function 'int Do_Suspend(int)': acpitool.cpp:535:16: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] acpitool.cpp:536:11: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] acpitool.cpp:542:18: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] acpitool.cpp:543:13: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] acpitool.cpp:546:31: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] acpitool.cpp:549:18: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] acpitool.cpp:550:13: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] cpu.cpp:55:16: warning: variable 'bm_activity' set but not used [-Wunused-but-set-variable] cpu.cpp:64:53: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result] cpu.cpp:65:30: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result] cpu.cpp:69:30: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result] cpu.cpp:70:30: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result] cpu.cpp:81:30: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result] cpu.cpp:86:53: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result] cpu.cpp:90:34: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result] cpu.cpp:213:30: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result] cpu.cpp:220:30: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result] cpu.cpp:229:30: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result] cpu.cpp:236:30: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result] cpu.cpp:239:31: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result] cpu.cpp:285:34: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result] cpu.cpp:289:34: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result] acpitool.cpp: In function 'int Do_Thermal_Info(int, int)': acpitool.cpp:324:23: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result] toshiba.cpp: In function 'int Has_Toshiba_ACPI()': toshiba.cpp:50:16: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] toshiba.cpp: In function 'int Do_Toshiba_Fan_Info()': toshiba.cpp:87:16: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] acpitool.cpp: In function 'int Has_ACPI(char*)': acpitool.cpp:107:1: warning: control reaches end of non-void function [-Wreturn-type] toshiba.cpp: In function 'int Do_LCD_Info()': toshiba.cpp:137:16: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] toshiba.cpp: In function 'int Force_Fan(int)': toshiba.cpp:171:16: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] toshiba.cpp: In function 'int Set_LCD_Level(int)': toshiba.cpp:205:16: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] toshiba.cpp: In function 'int Do_Video_Info()': toshiba.cpp:236:16: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] ac_adapter.cpp: In function 'int Do_AC_Info(int)': ac_adapter.cpp:62:15: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] ac_adapter.cpp:53:37: warning: unused variable 'str' [-Wunused-variable] ac_adapter.cpp: In function 'int Do_AC_Info_Proc(int)': ac_adapter.cpp:99:15: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] ac_adapter.cpp: In function 'int Do_AC_Info_Sys()': ac_adapter.cpp:157:15: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] ac_adapter.cpp:223:50: warning: format '%[^ ' expects a matching 'char*' argument [-Wformat] ac_adapter.cpp:153:23: warning: unused variable 'start' [-Wunused-variable] freq.cpp: In function 'int Get_Driver(char*)': freq.cpp:189:33: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] ac_adapter.cpp:183:33: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] ac_adapter.cpp:215:32: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result] ac_adapter.cpp:218:28: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freq.cpp: In function 'int Get_Governor(char*)': freq.cpp:166:33: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] freq.cpp: In function 'int Get_Current_Freq()': freq.cpp:144:33: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] freq.cpp: In function 'int Get_Max_Freq()': freq.cpp:121:33: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] freq.cpp: In function 'int Get_Min_Freq()': freq.cpp:97:33: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] battery.cpp: In function 'int Do_Battery_Stuff(int, int, int)': battery.cpp:69:23: warning: variable 'Use_Sys' set but not used [-Wunused-but-set-variable] battery.cpp: In function 'int Get_Battery_Info_from_Proc(int, Battery_Info*, int)': battery.cpp:338:15: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] battery.cpp: In function 'int Get_Battery_Info_from_Sys(int, Battery_Info*, int)': battery.cpp:521:15: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] battery.cpp:626:49: warning: format '%[^ ' expects a matching 'char*' argument [-Wformat] battery.cpp:655:49: warning: format '%[^ ' expects a matching 'char*' argument [-Wformat] battery.cpp:676:49: warning: format '%[^ ' expects a matching 'char*' argument [-Wformat] battery.cpp:689:49: warning: format '%[^ ' expects a matching 'char*' argument [-Wformat] battery.cpp:702:49: warning: format '%[^ ' expects a matching 'char*' argument [-Wformat] battery.cpp:718:49: warning: format '%[^ ' expects a matching 'char*' argument [-Wformat] battery.cpp:734:49: warning: format '%[^ ' expects a matching 'char*' argument [-Wformat] battery.cpp:767:49: warning: format '%[^ ' expects a matching 'char*' argument [-Wformat] battery.cpp: In function 'int Count_Batteries_ProcFS()': battery.cpp:788:15: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] battery.cpp: In function 'int Count_Batteries_SysFS()': battery.cpp:837:15: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] battery.cpp:883:34: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] battery.cpp: In function 'int Get_Battery_Info_from_Sys(int, Battery_Info*, int)': battery.cpp:553:33: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] battery.cpp:618:31: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result] battery.cpp:622:31: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result] battery.cpp:633:27: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result] battery.cpp:651:27: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result] battery.cpp:667:27: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result] battery.cpp:672:27: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result] battery.cpp:685:27: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result] battery.cpp:698:27: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result] battery.cpp:714:27: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result] battery.cpp:730:27: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result] battery.cpp:745:27: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result] battery.cpp:759:27: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result] battery.cpp:763:27: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result] In file included from /usr/include/string.h:642:0, from /usr/lib/gcc/i686-redhat-linux/4.7.0/../../../../include/c++/4.7.0/cstring:44, from battery.cpp:35: In function 'char* strncpy(char*, const char*, size_t)', inlined from 'int Get_Battery_Info_from_Sys(int, Battery_Info*, int)' at battery.cpp:690:52: /usr/include/bits/string3.h:121:71: warning: call to char* __builtin___strncpy_chk(char*, const char*, unsigned int, unsigned int) will always overflow destination buffer [enabled by default] In function 'char* strncpy(char*, const char*, size_t)', inlined from 'int Get_Battery_Info_from_Sys(int, Battery_Info*, int)' at battery.cpp:703:50: /usr/include/bits/string3.h:121:71: warning: call to char* __builtin___strncpy_chk(char*, const char*, unsigned int, unsigned int) will always overflow destination buffer [enabled by default] In function 'char* strncpy(char*, const char*, size_t)', inlined from 'int Get_Battery_Info_from_Sys(int, Battery_Info*, int)' at battery.cpp:719:52: /usr/include/bits/string3.h:121:71: warning: call to char* __builtin___strncpy_chk(char*, const char*, unsigned int, unsigned int) will always overflow destination buffer [enabled by default] In function 'char* strncpy(char*, const char*, size_t)', inlined from 'int Get_Battery_Info_from_Sys(int, Battery_Info*, int)' at battery.cpp:735:53: /usr/include/bits/string3.h:121:71: warning: call to char* __builtin___strncpy_chk(char*, const char*, unsigned int, unsigned int) will always overflow destination buffer [enabled by default] g++ -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables -Wl,-z,relro -o acpitool main.o acpitool.o ac_adapter.o toshiba.o asus.o thinkpad.o cpu.o battery.o freq.o make[2]: Leaving directory `/builddir/build/BUILD/acpitool-0.5.1/src' Making all in man make[2]: Entering directory `/builddir/build/BUILD/acpitool-0.5.1/man' make[2]: Nothing to be done for `all'. make[2]: Leaving directory `/builddir/build/BUILD/acpitool-0.5.1/man' make[2]: Entering directory `/builddir/build/BUILD/acpitool-0.5.1' make[2]: Leaving directory `/builddir/build/BUILD/acpitool-0.5.1' make[1]: Leaving directory `/builddir/build/BUILD/acpitool-0.5.1' + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.l5OZwZ + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/acpitool-0.5.1-4.fc17.i386 '!=' / ']' + rm -rf /builddir/build/BUILDROOT/acpitool-0.5.1-4.fc17.i386 ++ dirname /builddir/build/BUILDROOT/acpitool-0.5.1-4.fc17.i386 + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/acpitool-0.5.1-4.fc17.i386 + cd acpitool-0.5.1 + LANG=C + export LANG + unset DISPLAY + rm -fr /builddir/build/BUILDROOT/acpitool-0.5.1-4.fc17.i386 + make install DESTDIR=/builddir/build/BUILDROOT/acpitool-0.5.1-4.fc17.i386 Making install in src make[1]: Entering directory `/builddir/build/BUILD/acpitool-0.5.1/src' make[2]: Entering directory `/builddir/build/BUILD/acpitool-0.5.1/src' test -z "/usr/bin" || mkdir -p -- "/builddir/build/BUILDROOT/acpitool-0.5.1-4.fc17.i386/usr/bin" /usr/bin/install -c 'acpitool' '/builddir/build/BUILDROOT/acpitool-0.5.1-4.fc17.i386/usr/bin/acpitool' make[2]: Nothing to be done for `install-data-am'. make[2]: Leaving directory `/builddir/build/BUILD/acpitool-0.5.1/src' make[1]: Leaving directory `/builddir/build/BUILD/acpitool-0.5.1/src' Making install in man make[1]: Entering directory `/builddir/build/BUILD/acpitool-0.5.1/man' make[2]: Entering directory `/builddir/build/BUILD/acpitool-0.5.1/man' make[2]: Nothing to be done for `install-exec-am'. test -z "/usr/share/man/man1" || mkdir -p -- "/builddir/build/BUILDROOT/acpitool-0.5.1-4.fc17.i386/usr/share/man/man1" /usr/bin/install -c -m 644 './acpitool.1' '/builddir/build/BUILDROOT/acpitool-0.5.1-4.fc17.i386/usr/share/man/man1/acpitool.1' make[2]: Leaving directory `/builddir/build/BUILD/acpitool-0.5.1/man' make[1]: Leaving directory `/builddir/build/BUILD/acpitool-0.5.1/man' make[1]: Entering directory `/builddir/build/BUILD/acpitool-0.5.1' make[2]: Entering directory `/builddir/build/BUILD/acpitool-0.5.1' make[2]: Nothing to be done for `install-exec-am'. make[2]: Nothing to be done for `install-data-am'. make[2]: Leaving directory `/builddir/build/BUILD/acpitool-0.5.1' make[1]: Leaving directory `/builddir/build/BUILD/acpitool-0.5.1' + /usr/lib/rpm/find-debuginfo.sh --strict-build-id /builddir/build/BUILD/acpitool-0.5.1 extracting debug info from /builddir/build/BUILDROOT/acpitool-0.5.1-4.fc17.i386/usr/bin/acpitool 212 blocks + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/redhat/brp-compress + /usr/lib/rpm/redhat/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/brp-python-bytecompile /usr/bin/python 1 + /usr/lib/rpm/redhat/brp-python-hardlink + /usr/lib/rpm/redhat/brp-java-repack-jars Processing files: acpitool-0.5.1-4.fc17.i686 Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.c7FPW2 + umask 022 + cd /builddir/build/BUILD + cd acpitool-0.5.1 + DOCDIR=/builddir/build/BUILDROOT/acpitool-0.5.1-4.fc17.i386/usr/share/doc/acpitool-0.5.1 + export DOCDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/acpitool-0.5.1-4.fc17.i386/usr/share/doc/acpitool-0.5.1 + cp -pr AUTHORS ChangeLog COPYING INSTALL README TODO /builddir/build/BUILDROOT/acpitool-0.5.1-4.fc17.i386/usr/share/doc/acpitool-0.5.1 + exit 0 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires: libc.so.6 libc.so.6(GLIBC_2.0) libc.so.6(GLIBC_2.1) libc.so.6(GLIBC_2.1.3) libc.so.6(GLIBC_2.3.4) libc.so.6(GLIBC_2.4) libgcc_s.so.1 libgcc_s.so.1(GCC_3.0) libm.so.6 libstdc++.so.6 libstdc++.so.6(CXXABI_1.3) libstdc++.so.6(GLIBCXX_3.4) libstdc++.so.6(GLIBCXX_3.4.11) libstdc++.so.6(GLIBCXX_3.4.9) rtld(GNU_HASH) Processing files: acpitool-debuginfo-0.5.1-4.fc17.i686 Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/acpitool-0.5.1-4.fc17.i386 Wrote: /builddir/build/RPMS/acpitool-0.5.1-4.fc17.i686.rpm Wrote: /builddir/build/RPMS/acpitool-debuginfo-0.5.1-4.fc17.i686.rpm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.TWrWae + umask 022 + cd /builddir/build/BUILD + cd acpitool-0.5.1 + rm -fr /builddir/build/BUILDROOT/acpitool-0.5.1-4.fc17.i386 + exit 0 Child returncode was: 0 LEAVE do -->