octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: mkdir in libgnu seemed to be ignored in building liboctave (Developm


From: Tatsuro MATSUOKA
Subject: Re: mkdir in libgnu seemed to be ignored in building liboctave (Development Branch)
Date: Mon, 28 Dec 2009 16:42:36 +0900 (JST)



--- Tatsuro MATSUOKA  wrote:
Hello
Sorry for the separated post.
> > 
> > Platform MinGW, gcc-4.4.0 (windows XP).
> > 
> > libtool: compile:  g++ -shared-libgcc -DHAVE_CONFIG_H -I. 
> > -I../../../hg/octave-work/liboctave
> > -I..
> > -I../../../hg/octave-work/libgnu -I../../../hg/octave-work/libcruft/misc
> > -Ic:/Programs/OctaveBuild/include
> > -Ic:/Programs/WinDevTools/include-Ic:/Programs/GnuWin32/include
> > -IC:/Programs/GnuWin32/include -O3 -fomit-frame-pointer -DHAVE_CONFIG_H 
> > -mieee-fp
> > -I/WinDevTools/bin/../include/freetype2 -I/WinDevTools/bin/../include
> > -IC:/Programs/WinDevTools/include -Wall -W -Wshadow -Wold-style-cast 
> > -Wformat -O3
> > -fomit-frame-pointer
> > -O3 -fomit-frame-pointer -MT liboctave_la-file-ops.lo -MD -MP -MF
> > .deps/liboctave_la-file-ops.Tpo -c
> > ../../../hg/octave-work/liboctave/file-ops.cc  -DDLL_EXPORT -DPIC -o
> > .libs/liboctave_la-file-ops.o
> > c:\programs\mingw\bin\../lib/gcc/mingw32/4.4.0/../../../../include/io.h: In 
> > static member
> > function
> > 'static int file_ops::mkdir(const std::string&, mode_t, std::string&)':
> > c:\programs\mingw\bin\../lib/gcc/mingw32/4.4.0/../../../../include/io.h:176:
> >  error: too many
> > arguments
> > to function 'int mkdir(const char*)'
> > ../../../hg/octave-work/liboctave/file-ops.cc:111: error: at this point in 
> > file
> > ../../../hg/octave-work/liboctave/file-ops.cc: In static member function 
> > 'static int
> > file_ops::mkfifo(const std::string&
> > , mode_t, std::string&)':
> > ../../../hg/octave-work/liboctave/file-ops.cc:142: error: '::mkfifo' has 
> > not been declared
> > ../../../hg/octave-work/liboctave/file-ops.cc: At global scope:
> > ../../../hg/octave-work/liboctave/file-ops.cc:163: warning: unused 
> > parameter 'old_name'
> > ../../../hg/octave-work/liboctave/file-ops.cc:163: warning: unused 
> > parameter 'new_name'
> > ../../../hg/octave-work/liboctave/file-ops.cc:195: warning: unused 
> > parameter 'old_name'
> > ../../../hg/octave-work/liboctave/file-ops.cc:195: warning: unused 
> > parameter 'new_name'
> > ../../../hg/octave-work/liboctave/file-ops.cc:228: warning: unused 
> > parameter 'path'
> > ../../../hg/octave-work/liboctave/file-ops.cc:228: warning: unused 
> > parameter 'result'


In mkdir.c in libgnu, I found the following,

int
rpl_mkdir (char const *dir, mode_t mode maybe_unused)
{

So I carried out 'grep' in the source directories. I found the following in 
gnulib/lib/sys_stat.in.h

/* Before doing "#define mkdir rpl_mkdir" below, we need to include all
   headers that may declare mkdir().  */
#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
# include <io.h>
#endif

In io.h in MinGW, 

_CRTIMP int __cdecl __MINGW_NOTHROW _mkdir (const char*);

However in file_ops.h in liboctave, I found the following.

  static int mkdir (const std::string&, mode_t);
  static int mkdir (const std::string&, mode_t, std::string&);

Perhaps some treatment is required for mkdir for MinGW build.

Any suggestions?

Regards

Tatsuro

--------------------------------------
Get Disney character's mail address on Yahoo! Mail
http://pr.mail.yahoo.co.jp/disney/


reply via email to

[Prev in Thread] Current Thread [Next in Thread]