bug-tar
[Top][All Lists]
Advanced

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

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


From: Mike Maki
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
User-agent: Thunderbird 2.0.0.23 (Windows/20090812)

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]