delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/11/22/12:18:14

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Reply-To: Cygwin List <cygwin AT cygwin DOT com>
Message-Id: <6.1.0.6.0.20041122120932.043445c0@pop.prospeed.net>
X-Sender:
Date: Mon, 22 Nov 2004 12:12:39 -0500
To: "Chuck" <SkiLover AT softhome DOT net>
From: Larry Hall <lh-no-personal-replies-please AT cygwin DOT com>
Subject: Re: pax available?
Cc: Cygwin <cygwin AT cygwin DOT com>
In-Reply-To: <000801c4d0b5$a6c6f050$55dcd40a@advancemags.com>
References: <002001c4ce54$81931010$55dcd40a AT advancemags DOT com> <Pine DOT GSO DOT 4 DOT 61 DOT 0411191613400 DOT 16712 AT slinky DOT cs DOT nyu DOT edu> <000801c4d0b5$a6c6f050$55dcd40a AT advancemags DOT com>
Mime-Version: 1.0

At 12:06 PM 11/22/2004, you wrote

>----- Original Message ----- 
>From: "Igor Pechtchanski" <xxx AT ss DOT xxx>
>To: "Chuck" <xx AT xx DOT xxxx>
>Cc: <xxx AT xxx DOT xxx>
>Sent: Friday, November 19, 2004 4:17 PM
>Subject: Re: pax available?
>

Again, don't feed the spammers.
<http://cygwin.com/acronyms/PCYMTNQREAIYR>


<snip>


>That's not really going to help me. It'll rename one file at a time,
>interactively.  I want to rename all files in the archive in as they are
>extracted. For example, replace all occurences of string subdir1 with
>subdir2. That's one of the things pax does but none of the other archivers
>can do. I also want compatibility with pax archives coming from a Sun
>system. What I really want is pax.
>
>Someone else (Reini) pointed me to the gnu archives for the paxutils package
>but I did not have success compiling it for cygwin. I followed all the
>instructions but did not get a pax.exe executable. The "make" fails to make
>target "pax" saying it can't resolve a link to some external reference named
>"errno".
>
>$ make pax
>gcc  -g -O2  -o pax  pax.o cdf.o copyin.o copyout.o copypass.o defer.o
>fmtcpio.o fmttar.o format.o getfile.o global.o rename.o util.o rtapelib.o
>../lib/libpu.a
>../lib/libpu.a(makepath.o)(.text+0xbd): In function `make_path':
>/usr/src/paxutils-2.4h/lib/makepath.c:384: undefined reference to `_errno'
>../lib/libpu.a(makepath.o)(.text+0xec):/usr/src/paxutils-2.4h/lib/makepath.c
>:379: undefined reference to `_errno'
>../lib/libpu.a(makepath.o)(.text+0x2db):/usr/src/paxutils-2.4h/lib/makepath.
>c:283: undefined reference to `_errno'
>../lib/libpu.a(makepath.o)(.text+0x347):/usr/src/paxutils-2.4h/lib/makepath.
>c:262: undefined reference to `_errno'
>../lib/libpu.a(makepath.o)(.text+0x531):/usr/src/paxutils-2.4h/lib/makepath.
>c:347: undefined reference to `_errno'
>../lib/libpu.a(makepath.o)(.text+0x5b3):/usr/src/paxutils-2.4h/lib/makepath.
>c:332: more undefined references to `_errno' follow
>collect2: ld returned 1 exit status
>make: *** [pax] Error 1
>$


I haven't looked at the source but perhaps all you need is to add 
'#include <errno.h>'?



--
Larry Hall                              http://www.rfk.com
RFK Partners, Inc.                      (508) 893-9779 - RFK Office
838 Washington Street                   (508) 893-9889 - FAX
Holliston, MA 01746                     


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019