#undef HAVE_MKDIR

But I see that MKDIR_TAKES_ONE_ARG is commented out in scons "config.h":

  /* #undef MKDIR_TAKES_ONE_ARG */

Under windows, mkdir should take one arg, so there is something wrong
here. Please check:

line   811 (?) of SConstruct

# MKDIR_TAKES_ONE_ARG
 if conf.CheckMkdirOneArg():
   utils.addToConfig('#define MKDIR_TAKES_ONE_ARG 1', TOP_SRC_DIR)
 else:
   utils.addToConfig('/* #undef MKDIR_TAKES_ONE_ARG */', TOP_SRC_DIR)

and line 204 of scons_utils.py


#MKDIR_TAKES_ONE_ARG
def checkMkdirOneArg(conf):
 check_mkdir_one_arg_source = """
#include <sys/stat.h>
int main()
{
 mkdir("somedir");
}
"""
 conf.Message('Checking for the number of args for mkdir... ')
 ret = conf.TryLink(check_mkdir_one_arg_source, '.c')
 if ret:
   conf.Result('one')
 else:
   conf.Result('two')
 return ret

Please try to compile a file

#include <sys/stat.h>
int main()
{
 mkdir("somedir");
}

with gcc and see if you can succeed (under linux, I do echo $?). It is
supposed to succeed under windows, and fail under linux etc, where a
second mode parameter is expected.

It is strange that you did not have this problem before.

Bo

Reply via email to