From owner-freebsd-current@FreeBSD.ORG Mon Jan 14 17:01:46 2008 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9DC2616A481 for ; Mon, 14 Jan 2008 17:01:46 +0000 (UTC) (envelope-from shuvaev@physik.uni-wuerzburg.de) Received: from mailrelay.rz.uni-wuerzburg.de (wrzx28.rz.uni-wuerzburg.de [132.187.3.28]) by mx1.freebsd.org (Postfix) with ESMTP id 0AE1613C4CC for ; Mon, 14 Jan 2008 17:01:45 +0000 (UTC) (envelope-from shuvaev@physik.uni-wuerzburg.de) Received: from virusscan.mail (localhost [127.0.0.1]) by mailrelay.mail (Postfix) with ESMTP id 1AE3AFAC4; Mon, 14 Jan 2008 18:01:42 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by virusscan.mail (Postfix) with ESMTP id 0D55FFABB; Mon, 14 Jan 2008 18:01:42 +0100 (CET) X-Virus-Scanned: by amavisd-new at uni-wuerzburg.de Received: from mail.physik.uni-wuerzburg.de (wptd92.physik.uni-wuerzburg.de [132.187.40.192]) by mailmaster.uni-wuerzburg.de (Postfix) with ESMTP id CC3FEFA30; Mon, 14 Jan 2008 18:01:40 +0100 (CET) Received: from wep4017.physik.uni-wuerzburg.de ([132.187.37.17]) by mail.physik.uni-wuerzburg.de (Lotus Domino Release 7.0.3HF96) with ESMTP id 2008011418014042-10490 ; Mon, 14 Jan 2008 18:01:40 +0100 Received: by wep4017.physik.uni-wuerzburg.de (sSMTP sendmail emulation); Mon, 14 Jan 2008 18:01:40 +0100 From: "Alexey Shuvaev" Date: Mon, 14 Jan 2008 18:01:40 +0100 To: kaiwang27@gmail.com Message-ID: <20080114170140.GA8759@wep4017.physik.uni-wuerzburg.de> Mail-Followup-To: kaiwang27@gmail.com, freebsd-current@freebsd.org References: <20080111142336.GA1379@plan0.kaiwan.csbnet.se> <20080111194036.GA28896@troutmask.apl.washington.edu> <20080112072138.GB1016@plan0.kaiwan.csbnet.se> <20080112085134.GA1613@plan0.kaiwan.csbnet.se> MIME-Version: 1.0 In-Reply-To: <20080112085134.GA1613@plan0.kaiwan.csbnet.se> Organization: Universitaet Wuerzburg User-Agent: Mutt/1.5.17 (2007-11-01) X-MIMETrack: Itemize by SMTP Server on domino1/uni-wuerzburg(Release 7.0.3HF96 | December 5, 2007) at 01/14/2008 18:01:40, Serialize by Router on domino1/uni-wuerzburg(Release 7.0.3HF96 | December 5, 2007) at 01/14/2008 18:01:41, Serialize complete at 01/14/2008 18:01:41 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Cc: freebsd-current@freebsd.org Subject: Re: [Call for testers] "BSD ar" X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Jan 2008 17:01:46 -0000 On Sat, Jan 12, 2008 at 09:51:34AM +0100, Kai Wang wrote: > > This won't work as GNU ranlib is not merely a hardlink to ar. > Thus correct way would be: > > 1. Backup your GNU ar and ranlib first: > % cp /usr/bin/ar SOME_BACKUP_DIR > % cp /usr/bin/ranlib SOME_BACKUP_DIR > > 2. Build BSD ar > extract the tarball > % cd ar > % make > > 3. Replace > # cp ./ar /usr/bin/ar > # cd /usr/bin > # ln -f ar ranlib > > > When recover GNU ar: > > # cp SOME_BACKUP_DIR/ar /usr/bin/ar > # cp SOME_BACKUP_DIR/ranlib /usr/bin/ranlib > > Sorry for the mess... > > BTW: I'm working on a patch for -CURRENT as peter@ just suggested. Ok, first bad news... Well, maybe not so bad, and maybe not so new... I have tried to compile editors/openoffice.org-2 on amd64 8-CURRENT machine. It fails while compiling: [snip] ============= Building project nas ============= /usr/ports/editors/openoffice.org-2/work/OOG680_m9/nas mkout -- version: 1.7 ------------- [snip] What it tries to execute exactly is, for example: [snip] rm -f libvoxware.a ar clq libvoxware.a auvoxware.o config.o usage: ar -d [-jsvz] archive file ... ar -m [-jsvz] archive file ... ar -m [-abijsvz] position archive file ... ar -p [-v] archive [file ...] ar -r [-cjsuvz] archive file ... ar -r [-abcijsuvz] position archive file ... ar -s [-jz] archive ar -t [-v] archive [file ...] ar -x [-Couv] archive [file ...] ar -V *** Error code 64 `all' not remade because of errors. [snip] >From GNU ar(1) man page, FWIW: [snip] q Quick append; Historically, add the files member... to the end of archive, without checking for replacement. The modifiers a, b, and i do not affect this operation; new members are always placed at the end of the archive. The modifier v makes ar list each file as it is appended. Since the point of this operation is speed, the archive's symbol table index is not updated, even if it already existed; you can use ar s or ranlib explicitly to update the symbol table index. However, too many different systems assume quick append rebuilds the index, so GNU ar implements q as a synonym for r. [snip] c Create the archive. The specified archive is always created if it did not exist, when you request an update. But a warning is issued unless you specify in advance that you expect to create it, by using this modifier. [snip] l This modifier is accepted but not used. [snip] Now I am trying to compile OOo-2 with GNU binutils ar, just to check it is not the broken port at all. Thanks nevertheless! Alexey.