NetBSD Problem Report #36919
From yx@fxp0.darg.x.ua Wed Sep 5 15:02:02 2007
Return-Path: <yx@fxp0.darg.x.ua>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
by narn.NetBSD.org (Postfix) with ESMTP id CF19363B8A2
for <gnats-bugs@gnats.NetBSD.org>; Wed, 5 Sep 2007 15:02:01 +0000 (UTC)
Message-Id: <200709051501.l85F1wML028981@darg.x.ua>
Date: Wed, 5 Sep 2007 18:01:58 +0300 (EEST)
From: Yakovetsky Vladimir <yx@x.ua>
Reply-To: yx@x.ua
To: gnats-bugs@NetBSD.org
Subject: archivers/arj fails to build with gcc unit-at-a-atime mode
X-Send-Pr-Version: 3.95
>Number: 36919
>Category: pkg
>Synopsis: archivers/arj: fails to build with gcc unit-at-a-atime mode
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: pkg-manager
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Sep 05 15:05:00 +0000 2007
>Closed-Date: Sat Dec 22 23:44:21 +0000 2007
>Last-Modified: Sat Dec 22 23:45:01 +0000 2007
>Originator: Yakovetsky Vladimir
>Release: NetBSD 4.0_RC1
>Organization:
>Environment:
System: NetBSD darg.x.ua 4.0_RC1 NetBSD 4.0_RC1 (darg-1.799.2.13-mp-1.8.8.1) #2: Tue Sep 4 16:39:17 EEST 2007 yx@darg.x.ua:/sys/arch/i386/compile/darg.mp i386
Architecture: i386
Machine: i386
>Description:
archivers/arj fails to build with gcc unit-at-a-atime mode
>How-To-Repeat:
% cd /usr/pkgsrc/archivers/arj
% bmake
...
./netbsdelf/en/rs/tools/postproc netbsdelf/en/rs/arj/arj
POSTPROC v 1.30 [17/01/2003] Not a part of any binary package!
Patch not found
gmake[1]: *** [netbsdelf/en/rs/arj/arj] Error 3
gmake[1]: Leaving directory `/usr/obj/archivers/arj/work/arj-3.10.22'
gmake: *** [all] Error 2
*** Error code 2
Stop.
make: stopped in /usr/pkgsrc/archivers/arj
*** Error code 1
Stop.
>Fix:
--- archivers/arj/Makefile.orig
+++ archivers/arj/Makefile
@@ -16,6 +16,7 @@
CONFIGURE_SCRIPT= ${WRKSRC}/gnu/configure
MAKE_FILE= makefile.gnu
MAKE_FLAGS+= INSTALL_DIR=${INSTALL_PROGRAM_DIR:Q}
+CFLAGS+= -fno-unit-at-a-time
INSTALL_UNSTRIPPED= yes # $LOCALBASE/bin/arj must have symbol table
ARJ_DOCSDIR= ${PREFIX}/share/doc/arj
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed
State-Changed-By: tnn@netbsd.org
State-Changed-When: Sat, 22 Dec 2007 23:44:21 +0000
State-Changed-Why:
I committed your workaround with an additional gcc version check. Thanks!
From: Tobias Nygren <tnn@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc:
Subject: PR/36919 CVS commit: pkgsrc/archivers/arj
Date: Sat, 22 Dec 2007 23:41:02 +0000 (UTC)
Module Name: pkgsrc
Committed By: tnn
Date: Sat Dec 22 23:41:02 UTC 2007
Modified Files:
pkgsrc/archivers/arj: Makefile
Log Message:
Disable gcc's unit-at-atime optimization if we're using gcc4, since it
interferes with ARJ's "postproc" utility.
PR pkg/36919 from Yakovetsky Vladimir.
To generate a diff of this commit:
cvs rdiff -r1.22 -r1.23 pkgsrc/archivers/arj/Makefile
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.