Hi all,<br><br>Sorry that I know the build script is intent to 12.2 but I live in current and wish them be functional. But this time I failed:<br><br>sh acpitool.SlackBuild <br>acpitool-0.5/ <br>
acpitool-0.5/Makefile.in <br>acpitool-0.5/ChangeLog <br>acpitool-0.5/AUTHORS <br>
acpitool-0.5/man/ <br>acpitool-0.5/man/Makefile.in <br>acpitool-0.5/man/acpitool.1 <br>
acpitool-0.5/man/Makefile.am <br>acpitool-0.5/acpitool.spec <br>acpitool-0.5/configure <br>
acpitool-0.5/src/ <br>acpitool-0.5/src/Makefile.in <br>acpitool-0.5/src/toshiba.cpp <br>
acpitool-0.5/src/asus.h <br>acpitool-0.5/src/cpu.h <br>acpitool-0.5/src/ac_adapter.cpp <br>
acpitool-0.5/src/battery.cpp <br>acpitool-0.5/src/battery.h <br>acpitool-0.5/src/freq.h <br>
acpitool-0.5/src/thinkpad.cpp <br>acpitool-0.5/src/Makefile.am <br>acpitool-0.5/src/acpitool.h <br>
acpitool-0.5/src/ac_adapter.h <br>acpitool-0.5/src/acpitool.cpp <br>acpitool-0.5/src/asus.cpp <br>
acpitool-0.5/src/freq.cpp <br>acpitool-0.5/src/thinkpad.h <br>acpitool-0.5/src/cpu.cpp <br>
acpitool-0.5/src/main.cpp <br>acpitool-0.5/src/toshiba.h <br>acpitool-0.5/config.sub <br>
acpitool-0.5/depcomp <br>acpitool-0.5/Makefile.am <br>acpitool-0.5/<a href="http://config.h.in">config.h.in</a> <br>
acpitool-0.5/install-sh <br>acpitool-0.5/missing <br>acpitool-0.5/NEWS <br>
acpitool-0.5/config.guess <br>acpitool-0.5/<a href="http://configure.in">configure.in</a> <br>acpitool-0.5/TODO <br>
acpitool-0.5/INSTALL <br>acpitool-0.5/aclocal.m4 <br>acpitool-0.5/COPYING <br>
acpitool-0.5/README <br>/tmp/SBo/acpitool-0.5 <br>checking for a BSD-compatible install... /bin/ginstall -c <br>
checking whether build environment is sane... yes <br>checking for gawk... gawk <br>checking whether make sets $(MAKE)... yes <br>
checking build system type... i486-slackware-linux-gnu <br>checking host system type... i486-slackware-linux-gnu <br>checking for g++... g++ <br>
checking for C++ compiler default output file name... a.out <br>checking whether the C++ compiler works... yes <br>checking whether we are cross compiling... no <br>
checking for suffix of executables... <br>checking for suffix of object files... o <br>checking whether we are using the GNU C++ compiler... yes <br>
checking whether g++ accepts -g... yes <br>checking for style of include used by make... GNU <br>checking dependency style of g++... gcc3 <br>
checking for gcc... gcc <br>checking whether we are using the GNU C compiler... yes <br>checking whether gcc accepts -g... yes <br>
checking for gcc option to accept ISO C89... none needed <br>checking dependency style of gcc... gcc3 <br>checking for dirent.h that defines DIR... yes <br>
checking for library containing opendir... none required <br>checking how to run the C preprocessor... gcc -E <br>checking for grep that handles long lines and -e... /bin/grep <br>
checking for egrep... /bin/grep -E <br>checking for ANSI C header files... yes <br>checking for sys/types.h... yes <br>
checking for sys/stat.h... yes <br>checking for stdlib.h... yes <br>checking for string.h... yes <br>
checking for memory.h... yes <br>checking for strings.h... yes <br>checking for inttypes.h... yes <br>
checking for stdint.h... yes <br>checking for unistd.h... yes <br>checking for unistd.h... (cached) yes <br>
checking for an ANSI C-conforming const... yes <br>checking whether closedir returns void... no <br>checking for strdup... yes <br>
checking for memset... yes <br>checking for strtol... yes <br>checking for a BSD-compatible install... /bin/ginstall -c <br>
configure: creating ./config.status <br>config.status: creating Makefile <br>config.status: creating src/Makefile <br>
config.status: creating man/Makefile <br>config.status: creating config.h <br>config.status: executing depfiles commands <br>
<br> +-----------------------------------------------------------------------------------+<br> | Run make && make install when the configure script has finished without problems. |<br> +-----------------------------------------------------------------------------------+<br>
<br>make all-recursive<br>make[1]: Entering directory `/tmp/SBo/acpitool-0.5'<br>Making all in src <br>/tmp/SBo/acpitool-0.5/src <br>make[2]: Entering directory `/tmp/SBo/acpitool-0.5/src'<br>
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -O2 -march=i486 -mtune=i686 -MT main.o -MD -MP -MF ".deps/main.Tpo" -c -o main.o main.cpp; \ <br>
then mv -f ".deps/main.Tpo" ".deps/main.Po"; else rm -f ".deps/main.Tpo"; exit 1; fi <br>if g++ -DHAVE_CONFIG_H -I. -I. -I.. -O2 -march=i486 -mtune=i686 -MT acpitool.o -MD -MP -MF ".deps/acpitool.Tpo" -c -o acpitool.o acpitool.cpp; \ <br>
then mv -f ".deps/acpitool.Tpo" ".deps/acpitool.Po"; else rm -f ".deps/acpitool.Tpo"; exit 1; fi <br>acpitool.cpp: In function 'int Has_ACPI(char*)': <br>
acpitool.cpp:60: warning: deprecated conversion from string constant to 'char*' <br>acpitool.cpp:61: warning: deprecated conversion from string constant to 'char*' <br>
acpitool.cpp: In function 'int Get_Kernel_Version(char*, int)': <br>acpitool.cpp:133: warning: deprecated conversion from string constant to 'char*' <br>
acpitool.cpp: In function 'int Set_Kernel_Version()': <br>acpitool.cpp:181: warning: deprecated conversion from string constant to 'char*' <br>
acpitool.cpp: In function 'int Do_Thermal_Info(int, int)': <br>acpitool.cpp:222: warning: deprecated conversion from string constant to 'char*' <br>
acpitool.cpp: In function 'int Do_Fan_Info(int)': <br>acpitool.cpp:347: warning: deprecated conversion from string constant to 'char*' <br>
acpitool.cpp: In function 'int Show_WakeUp_Devices(int)': <br>acpitool.cpp:403: warning: deprecated conversion from string constant to 'char*' <br>
acpitool.cpp: In function 'int Toggle_WakeUp_Device(int, int)': <br>acpitool.cpp:450: warning: deprecated conversion from string constant to 'char*' <br>
acpitool.cpp: In function 'int Do_Suspend(int)': <br>acpitool.cpp:516: warning: deprecated conversion from string constant to 'char*' <br>
acpitool.cpp:517: warning: deprecated conversion from string constant to 'char*' <br>acpitool.cpp:523: warning: deprecated conversion from string constant to 'char*' <br>
acpitool.cpp:524: warning: deprecated conversion from string constant to 'char*' <br>acpitool.cpp:527: warning: deprecated conversion from string constant to 'char*' <br>
acpitool.cpp:530: warning: deprecated conversion from string constant to 'char*' <br>acpitool.cpp:531: warning: deprecated conversion from string constant to 'char*' <br>
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -O2 -march=i486 -mtune=i686 -MT ac_adapter.o -MD -MP -MF ".deps/ac_adapter.Tpo" -c -o ac_adapter.o ac_adapter.cpp; \ <br>
then mv -f ".deps/ac_adapter.Tpo" ".deps/ac_adapter.Po"; else rm -f ".deps/ac_adapter.Tpo"; exit 1; fi <br>ac_adapter.cpp: In function 'int Do_AC_Info(int)':<br>
ac_adapter.cpp:58: warning: deprecated conversion from string constant to 'char*'<br>ac_adapter.cpp: In function 'int Do_AC_Info_Proc(int)':<br>ac_adapter.cpp:95: warning: deprecated conversion from string constant to 'char*'<br>
ac_adapter.cpp: In function 'int Do_AC_Info_Sys()':<br>ac_adapter.cpp:153: warning: deprecated conversion from string constant to 'char*'<br>if g++ -DHAVE_CONFIG_H -I. -I. -I.. -O2 -march=i486 -mtune=i686 -MT toshiba.o -MD -MP -MF ".deps/toshiba.Tpo" -c -o toshiba.o toshiba.cpp; \<br>
then mv -f ".deps/toshiba.Tpo" ".deps/toshiba.Po"; else rm -f ".deps/toshiba.Tpo"; exit 1; fi<br>toshiba.cpp: In function 'int Has_Toshiba_ACPI()':<br>toshiba.cpp:48: warning: deprecated conversion from string constant to 'char*'<br>
toshiba.cpp: In function 'int Do_Toshiba_Fan_Info()':<br>toshiba.cpp:85: warning: deprecated conversion from string constant to 'char*'<br>toshiba.cpp:107: error: 'strncmp' was not declared in this scope<br>
toshiba.cpp: In function 'int Do_LCD_Info()':<br>toshiba.cpp:135: warning: deprecated conversion from string constant to 'char*'<br>toshiba.cpp: In function 'int Force_Fan(int)':<br>toshiba.cpp:169: warning: deprecated conversion from string constant to 'char*'<br>
toshiba.cpp: In function 'int Set_LCD_Level(int)':<br>toshiba.cpp:203: warning: deprecated conversion from string constant to 'char*'<br>toshiba.cpp: In function 'int Do_Video_Info()':<br>toshiba.cpp:234: warning: deprecated conversion from string constant to 'char*'<br>
toshiba.cpp:255: error: 'strncmp' was not declared in this scope<br>toshiba.cpp:264: error: 'strncmp' was not declared in this scope<br>toshiba.cpp:275: error: 'strncmp' was not declared in this scope<br>
make[2]: *** [toshiba.o] Error 1<br>make[2]: Leaving directory `/tmp/SBo/acpitool-0.5/src'<br>make[1]: *** [all-recursive] Error 1<br>make[1]: Leaving directory `/tmp/SBo/acpitool-0.5'<br>make: *** [all] Error 2<br>
<br>is there anyway to survive? Thanks in advance.<br clear="all"><br>-- <br>Cheers,<br>Grissiom<br>