Date: Wed, 18 Oct 95 17:50:26 EDT From: jleppek@suw2k.ess.harris.com (James Leppek) To: freebsd-current@freefall.FreeBSD.org Subject: ranlib broken Message-ID: <9510182150.AA04313@borg.ess.harris.com>
next in thread | raw e-mail | index | archive | help
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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9510182150.AA04313>