[Klone-users] error checking va_list caused by shift command
Mickael Auger
mickael.auger at gmail.com
Tue Apr 14 11:08:26 EDT 2009
Hi KLone team,
I tested KLone 2.2.0 on two Linux :
1- Mandrake Linux 9.2
2- Ubuntu 7.10
For my first Linux I have an old "shift" command and I have any problem to
make KLone :)
But for my second Linux I have a new "shift" command and I have the next
problem at the first make :(
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
preprocessing command-line arguments
checking for basic required tools
setting package name to klone
setting version to 2.2.0
checking for header stdint
checking for header getopt
checking for header unistd
checking for header sys_select
checking for header sys_wait
checking for header sys_dir
checking for header sys_socket
checking for symbol SA_RESTART
checking for symbol TCP_NODELAY
adding optional lib dependency openssl
adding optional lib dependency openssl_psk
adding optional lib dependency z
checking for type pid_t
checking for tm_gmtoff in struct tm
checking for fork() support
checking for fork() support
checking va_list behaviour
shift: 158: can't shift that many
make[3]: *** [host-setup] Erreur 2
make[3]: quittant le r├®pertoire ┬½ /home/ma/ug_web-v3/klone-2.2.0 ┬╗
make[2]: *** [.real-host-setup] Erreur 2
make[2]: quittant le r├®pertoire ┬½ /home/ma/ug_web-v3/klone-2.2.0 ┬╗
make[1]: *** [target-options-default] Erreur 1
make[1]: quittant le r├®pertoire ┬½ /home/ma/ug_web-v3/klone-2.2.0 ┬╗
make: *** [all] Erreur 2
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
I search the cause of this problem and it comes "makl_checkfunc" function of
"makl_code.sh" called by "configure" :
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
makl_checkfunc 0 "syslog"
makl_checkfunc 0 "mkstemp"
makl_checkfunc 0 "localtime_r"
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Indeed this "makl_checkfunc" function call "shift" command 4 times, but the
third and the fourth are optionnals :
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
makl_checkfunc ()
{
opt="$1"
id="$2"
nargs=$3
flags="$4"
shift; shift; shift ; shift
...
}
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
However the new version of "shift" command stops the process if there are
not enough parameter.
I know that this new behaviour is very strange and doesn't match with
documentation of "shift" but I think that other KLone users would have this
problem.
For information, I solve temporaly this porblem to replace the
"makl_checkfunc" calls in "configure" by :
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
makl_checkfunc 0 "syslog" "" ""
makl_checkfunc 0 "mkstemp" "" ""
makl_checkfunc 0 "localtime_r" "" ""
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
A lot of functions use the "shift" command without have enough parameter but
they don't called during my make process.
Bye.
--
Mickaël AUGER
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://koanlogic.com/pipermail/klone-users/attachments/20090414/7aa7fea8/attachment.html
More information about the klone-users
mailing list