bug-tar
[Top][All Lists]
Advanced

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

[Fwd: Re: [Bug-tar] Re: need to build a Windows tar with no cywin1.dll d


From: Mike Maki
Subject: [Fwd: Re: [Bug-tar] Re: need to build a Windows tar with no cywin1.dll dependency]
Date: Thu, 03 Dec 2009 12:08:50 -0500
User-agent: Thunderbird 2.0.0.23 (Windows/20090812)

Additional information - Windows version is XP Pro SP3,
address@hidden ~
$ gcc --version
gcc.exe (GCC) 3.4.5 (mingw-vista special r3)
Copyright (C) 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Resultant makefile contains:

GNULIB_STDIO_H_SIGPIPE = 0
GNULIB_UNISTD_H_SIGPIPE = 0

gl_LIBOBJS = argmatch.o asnprintf.o backupfile.o basename.o canonicalize-lgpl.o chdir-long.o chown.o close.o close-stream.o closeout.o creat-safer.o dirfd.o dirname.o dup-safer.o error.o exclude.o exitfail.o fchdir.o fchmodat.o fchown-stub.o fchownat.o fclose.o fd-safer.o fileblocks.o fnmatch.o fpending.o fseeko.o getcwd.o getdelim.o getline.o getopt.o getopt1.o getpagesize.o gettime.o hash.o human.o imaxtostr.o lchown.o lseek.o malloc.o mempcpy.o memrchr.o mkdirat.o mkdtemp.o modechange.o obstack.o offtostr.o open.o open-safer.o openat.o openat-proc.o pipe-safer.o printf-args.o printf-parse.o quote.o quotearg.o rawmemchr.o readlink.o realloc.o regex.o rpmatch.o safe-read.o safe-write.o save-cwd.o savedir.o setenv.o sleep.o stpcpy.o strchrnul.o strdup.o strerror.o stripslash.o strndup.o strnlen.o tempname.o time_r.o uinttostr.o umaxtostr.o unlinkdir.o unsetenv.o utimens.o vasnprintf.o wcwidth.o xgetcwd.o xmalloc.o xstrtol.o xstrtol-error.o xstrtoul.o gl_LTLIBOBJS = argmatch.lo asnprintf.lo backupfile.lo basename.lo canonicalize-lgpl.lo chdir-long.lo chown.lo close.lo close-stream.lo closeout.lo creat-safer.lo dirfd.lo dirname.lo dup-safer.lo error.lo exclude.lo exitfail.lo fchdir.lo fchmodat.lo fchown-stub.lo fchownat.lo fclose.lo fd-safer.lo fileblocks.lo fnmatch.lo fpending.lo fseeko.lo getcwd.lo getdelim.lo getline.lo getopt.lo getopt1.lo getpagesize.lo gettime.lo hash.lo human.lo imaxtostr.lo lchown.lo lseek.lo malloc.lo mempcpy.lo memrchr.lo mkdirat.lo mkdtemp.lo modechange.lo obstack.lo offtostr.lo open.lo open-safer.lo openat.lo openat-proc.lo pipe-safer.lo printf-args.lo printf-parse.lo quote.lo quotearg.lo rawmemchr.lo readlink.lo realloc.lo regex.lo rpmatch.lo safe-read.lo safe-write.lo save-cwd.lo savedir.lo setenv.lo sleep.lo stpcpy.lo strchrnul.lo strdup.lo strerror.lo stripslash.lo strndup.lo strnlen.lo tempname.lo time_r.lo uinttostr.lo umaxtostr.lo unlinkdir.lo unsetenv.lo utimens.lo vasnprintf.lo wcwidth.lo xgetcwd.lo xmalloc.lo xstrtol.lo xstrtol-error.lo xstrtoul.lo

Mike

-------- Original Message --------
Subject: Re: [Bug-tar] Re: need to build a Windows tar with no cywin1.dll dependency
Date:   Thu, 03 Dec 2009 11:49:19 -0500
From:   Mike Maki <address@hidden>
To:     address@hidden
CC:     address@hidden
References: <address@hidden> <address@hidden> <address@hidden>



Thanks Lars and others who suggested MinGW, MSYS. I have that  set up now.

Where it builds in cygwin but won't run in DOS, the problem now is configure succeeds but make fails in MSYS/MinGW.

The log messages at the end of make look like:
depbase=`echo prepargs.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -g -O2 -MT prepargs.o -MD -M
P -MF $depbase.Tpo -c -o prepargs.o prepargs.c &&\
      mv -f $depbase.Tpo $depbase.Po
depbase=`echo rtapelib.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -g -O2 -MT rtapelib.o -MD -M
P -MF $depbase.Tpo -c -o rtapelib.o rtapelib.c &&\
      mv -f $depbase.Tpo $depbase.Po
rtapelib.c: In function `do_command':
rtapelib.c:124: error: `SIGPIPE' undeclared (first use in this function)
rtapelib.c:124: error: (Each undeclared identifier is reported only once
rtapelib.c:124: error: for each function it appears in.)
rtapelib.c: In function `rmt_open__':
rtapelib.c:468: warning: implicit declaration of function `pipe'
rtapelib.c:477: warning: implicit declaration of function `fork'
rtapelib.c:500: warning: implicit declaration of function `setuid'
rtapelib.c:500: warning: implicit declaration of function `getuid'
rtapelib.c:500: warning: implicit declaration of function `setgid'
rtapelib.c:500: warning: implicit declaration of function `getgid'
rtapelib.c: In function `rmt_write__':
rtapelib.c:602: error: `SIGPIPE' undeclared (first use in this function)
make[4]: *** [rtapelib.o] Error 1
make[4]: Leaving directory `/home/mike/tar-1.22/lib'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/mike/tar-1.22/lib'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/mike/tar-1.22/lib'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/mike/tar-1.22'
make: *** [all] Error 2


I've googled the error and various people have seen it and sent the error to mailing lists, but I haven't found an appropriate solution.

BTW, the MinGW tar works in MSYS, but when I try to run in in a cmd (DOS) window, I get an error saying:

This application has failed to start because msys-1.0.dll was not found. Re-installing the application may fix this problem.

Another dependency on environment, this time msys.

Is there a switch for "configure" that removes that dependency or points to a different set of libraries to use? I have set LDFLAGS=-static to build a static executable, and am using --disable-nls to exclude language support.

thanks,

Mike

Lars Stoltenow wrote:
On Wed, Dec 02, 2009 at 01:44:52PM -0500, Mike Maki wrote:
I've been looking at how to do this, but haven't found out how to
make a tar.exe that will run in a dos cmd shell. Do I need to
compile on a non-cygwin system using non-gnu compiler? The last
thing I want to do is use MS VCC. I'm required to update to a
recent version of tar.exe (we ship 1.12 now and would like to ship
1.21 or better). Thanks,

Use MinGW+MSYS: http://mingw.org








reply via email to

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