bug-tar
[Top][All Lists]
Advanced

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

[Bug-tar] compiling tar cvs using mingw


From: Gerry Reno
Subject: [Bug-tar] compiling tar cvs using mingw
Date: Tue, 9 Sep 2003 14:04:37 -0700 (PDT)

  I checked out tar cvs head and have been trying to compile it using
Mingw.  Everything in lib compiled fine but I've been getting some
errors in ./src.

  I told configure to use -mno-cygwin and the configure seemed to work.
 I then ran make.  I ran into an error with waitpid.c saying pid_t was
undefined so I included types.h;   create.c couldn't find pwd.h and
grp.h so I copied those from /usr/include;  extract.c is saying too
many arguments to mkdir and here I am stuck.  

Making all in src
d:\mingw\bin\mingw32-make.exe[2]: Entering directory
`D:/cygwin/home/greno/dev/g
nu/tar/src'
if gcc -mno-cygwin -DHAVE_CONFIG_H -I. -I. -I.. -I../lib -I../lib
-I/usr/include
 -I/usr/include/sys    -g -O2 -MT extract.o -MD -MP -MF
".deps/extract.Tpo" \
  -c -o extract.o `test -f 'extract.c' || echo './'`extract.c; \
then mv -f ".deps/extract.Tpo" ".deps/extract.Po"; \
else rm -f ".deps/extract.Tpo"; exit 1; \
fi
extract.c: In function `make_directories':
extract.c:385: too many arguments to function `mkdir'
extract.c: In function `extract_archive':
extract.c:722: warning: assignment makes pointer from integer without a
cast
extract.c:1142: too many arguments to function `mkdir'
d:\mingw\bin\mingw32-make.exe[2]: *** [extract.o] Error 1
d:\mingw\bin\mingw32-make.exe[2]: Leaving directory
`D:/cygwin/home/greno/dev/gn
u/tar/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/greno/dev/gnu/tar'
d:\mingw\bin\mingw32-make.exe: *** [all] Error 2


  It looks like the mingw io.h would define it with one arg and cygwin
stat.h would define it with two args.  extract.c is using two args in
call.  Any suggestions on how to correct this last problem.

thx,
Gerry Reno


__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com




reply via email to

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