From owner-freebsd-current Wed Oct 18 14:53:37 1995 Return-Path: owner-current Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id OAA24324 for current-outgoing; Wed, 18 Oct 1995 14:53:37 -0700 Received: from ess.harris.com (su15a.ess.harris.com [130.41.1.251]) by freefall.freebsd.org (8.6.12/8.6.6) with SMTP id OAA24317 for ; Wed, 18 Oct 1995 14:53:33 -0700 Received: from borg.ess.harris.com (suw2k.ess.harris.com) by ess.harris.com (5.x/SMI-SVR4) id AA14583; Wed, 18 Oct 1995 17:53:12 -0400 Received: by borg.ess.harris.com (4.1/SMI-4.1) id AA04313; Wed, 18 Oct 95 17:50:26 EDT Date: Wed, 18 Oct 95 17:50:26 EDT From: jleppek@suw2k.ess.harris.com (James Leppek) Message-Id: <9510182150.AA04313@borg.ess.harris.com> To: freebsd-current@freefall.FreeBSD.org Subject: ranlib broken Sender: owner-current@FreeBSD.org Precedence: bulk I had some trouble with the current and stable version of ranlib using object names greater than 16 chars. It seems that it fails and complains of an invalid file format. Removing RPAD is the fix I think so the following patch fixes the problem for me. Jim Leppek *** build.c Wed Oct 18 16:57:43 1995 --- build.c.original Wed Oct 18 16:57:15 1995 *************** *** 103,109 **** /* Copy the saved objects into the archive. */ size = lseek(tfd, (off_t)0, SEEK_CUR); (void)lseek(tfd, (off_t)0, SEEK_SET); ! SETCF(tfd, tname, afd, archive, WPAD); copy_ar(&cf, size); (void)ftruncate(afd, lseek(afd, (off_t)0, SEEK_CUR)); (void)close(tfd); --- 103,109 ---- /* Copy the saved objects into the archive. */ size = lseek(tfd, (off_t)0, SEEK_CUR); (void)lseek(tfd, (off_t)0, SEEK_SET); ! SETCF(tfd, tname, afd, archive, RPAD|WPAD); copy_ar(&cf, size); (void)ftruncate(afd, lseek(afd, (off_t)0, SEEK_CUR)); (void)close(tfd);