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 &amp;&amp; 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&#39;<br>Making all in src                                  <br>/tmp/SBo/acpitool-0.5/src                          <br>make[2]: Entering directory `/tmp/SBo/acpitool-0.5/src&#39;<br>
if g++ -DHAVE_CONFIG_H -I. -I. -I..     -O2 -march=i486 -mtune=i686 -MT main.o -MD -MP -MF &quot;.deps/main.Tpo&quot; -c -o main.o main.cpp; \                                                                                                                        <br>
        then mv -f &quot;.deps/main.Tpo&quot; &quot;.deps/main.Po&quot;; else rm -f &quot;.deps/main.Tpo&quot;; exit 1; fi                                  <br>if g++ -DHAVE_CONFIG_H -I. -I. -I..     -O2 -march=i486 -mtune=i686 -MT acpitool.o -MD -MP -MF &quot;.deps/acpitool.Tpo&quot; -c -o acpitool.o acpitool.cpp; \                                                                                                        <br>
        then mv -f &quot;.deps/acpitool.Tpo&quot; &quot;.deps/acpitool.Po&quot;; else rm -f &quot;.deps/acpitool.Tpo&quot;; exit 1; fi                      <br>acpitool.cpp: In function &#39;int Has_ACPI(char*)&#39;:                                                                              <br>
acpitool.cpp:60: warning: deprecated conversion from string constant to &#39;char*&#39;                                               <br>acpitool.cpp:61: warning: deprecated conversion from string constant to &#39;char*&#39;                                               <br>
acpitool.cpp: In function &#39;int Get_Kernel_Version(char*, int)&#39;:                                                               <br>acpitool.cpp:133: warning: deprecated conversion from string constant to &#39;char*&#39;                                              <br>
acpitool.cpp: In function &#39;int Set_Kernel_Version()&#39;:                                                                         <br>acpitool.cpp:181: warning: deprecated conversion from string constant to &#39;char*&#39;                                              <br>
acpitool.cpp: In function &#39;int Do_Thermal_Info(int, int)&#39;:                                                                    <br>acpitool.cpp:222: warning: deprecated conversion from string constant to &#39;char*&#39;                                              <br>
acpitool.cpp: In function &#39;int Do_Fan_Info(int)&#39;:                                                                             <br>acpitool.cpp:347: warning: deprecated conversion from string constant to &#39;char*&#39;                                              <br>
acpitool.cpp: In function &#39;int Show_WakeUp_Devices(int)&#39;:                                                                     <br>acpitool.cpp:403: warning: deprecated conversion from string constant to &#39;char*&#39;                                              <br>
acpitool.cpp: In function &#39;int Toggle_WakeUp_Device(int, int)&#39;:                                                               <br>acpitool.cpp:450: warning: deprecated conversion from string constant to &#39;char*&#39;                                              <br>
acpitool.cpp: In function &#39;int Do_Suspend(int)&#39;:                                                                              <br>acpitool.cpp:516: warning: deprecated conversion from string constant to &#39;char*&#39;                                              <br>
acpitool.cpp:517: warning: deprecated conversion from string constant to &#39;char*&#39;                                              <br>acpitool.cpp:523: warning: deprecated conversion from string constant to &#39;char*&#39;                                              <br>
acpitool.cpp:524: warning: deprecated conversion from string constant to &#39;char*&#39;                                              <br>acpitool.cpp:527: warning: deprecated conversion from string constant to &#39;char*&#39;                                              <br>
acpitool.cpp:530: warning: deprecated conversion from string constant to &#39;char*&#39;                                              <br>acpitool.cpp:531: warning: deprecated conversion from string constant to &#39;char*&#39;                                              <br>
if g++ -DHAVE_CONFIG_H -I. -I. -I..     -O2 -march=i486 -mtune=i686 -MT ac_adapter.o -MD -MP -MF &quot;.deps/ac_adapter.Tpo&quot; -c -o ac_adapter.o ac_adapter.cpp; \                                                                                                <br>
        then mv -f &quot;.deps/ac_adapter.Tpo&quot; &quot;.deps/ac_adapter.Po&quot;; else rm -f &quot;.deps/ac_adapter.Tpo&quot;; exit 1; fi                <br>ac_adapter.cpp: In function &#39;int Do_AC_Info(int)&#39;:<br>
ac_adapter.cpp:58: warning: deprecated conversion from string constant to &#39;char*&#39;<br>ac_adapter.cpp: In function &#39;int Do_AC_Info_Proc(int)&#39;:<br>ac_adapter.cpp:95: warning: deprecated conversion from string constant to &#39;char*&#39;<br>
ac_adapter.cpp: In function &#39;int Do_AC_Info_Sys()&#39;:<br>ac_adapter.cpp:153: warning: deprecated conversion from string constant to &#39;char*&#39;<br>if g++ -DHAVE_CONFIG_H -I. -I. -I..     -O2 -march=i486 -mtune=i686 -MT toshiba.o -MD -MP -MF &quot;.deps/toshiba.Tpo&quot; -c -o toshiba.o toshiba.cpp; \<br>
        then mv -f &quot;.deps/toshiba.Tpo&quot; &quot;.deps/toshiba.Po&quot;; else rm -f &quot;.deps/toshiba.Tpo&quot;; exit 1; fi<br>toshiba.cpp: In function &#39;int Has_Toshiba_ACPI()&#39;:<br>toshiba.cpp:48: warning: deprecated conversion from string constant to &#39;char*&#39;<br>
toshiba.cpp: In function &#39;int Do_Toshiba_Fan_Info()&#39;:<br>toshiba.cpp:85: warning: deprecated conversion from string constant to &#39;char*&#39;<br>toshiba.cpp:107: error: &#39;strncmp&#39; was not declared in this scope<br>
toshiba.cpp: In function &#39;int Do_LCD_Info()&#39;:<br>toshiba.cpp:135: warning: deprecated conversion from string constant to &#39;char*&#39;<br>toshiba.cpp: In function &#39;int Force_Fan(int)&#39;:<br>toshiba.cpp:169: warning: deprecated conversion from string constant to &#39;char*&#39;<br>
toshiba.cpp: In function &#39;int Set_LCD_Level(int)&#39;:<br>toshiba.cpp:203: warning: deprecated conversion from string constant to &#39;char*&#39;<br>toshiba.cpp: In function &#39;int Do_Video_Info()&#39;:<br>toshiba.cpp:234: warning: deprecated conversion from string constant to &#39;char*&#39;<br>
toshiba.cpp:255: error: &#39;strncmp&#39; was not declared in this scope<br>toshiba.cpp:264: error: &#39;strncmp&#39; was not declared in this scope<br>toshiba.cpp:275: error: &#39;strncmp&#39; was not declared in this scope<br>
make[2]: *** [toshiba.o] Error 1<br>make[2]: Leaving directory `/tmp/SBo/acpitool-0.5/src&#39;<br>make[1]: *** [all-recursive] Error 1<br>make[1]: Leaving directory `/tmp/SBo/acpitool-0.5&#39;<br>make: *** [all] Error 2<br>
<br>is there anyway to survive? Thanks in advance.<br clear="all"><br>-- <br>Cheers,<br>Grissiom<br>