NetBSD Problem Report #10230

Received: (qmail 28248 invoked from network); 30 May 2000 08:34:17 -0000
Message-Id: <200005300832.e4U8WaQ02632@itojun.org>
Date: Tue, 30 May 2000 17:32:36 +0900 (JST)
From: itojun@itojun.org
Reply-To: itojun@itojun.org
To: gnats-bugs@gnats.netbsd.org
Subject: ar(1) chokes on qpopper 3.0.2 build
X-Send-Pr-Version: 3.95

>Number:         10230
>Category:       bin
>Synopsis:       ar(1) chokes on qpopper 3.0.2 build
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bin-bug-people
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue May 30 08:35:00 +0000 2000
>Closed-Date:    Thu Jul 19 09:28:40 +0000 2001
>Last-Modified:  Thu Jul 19 09:28:40 +0000 2001
>Originator:     Jun-ichiro itojun Hagino
>Release:        1.4.2
>Organization:
	itojun.org
>Environment:
System: NetBSD lychee.itojun.org 1.4.2 NetBSD 1.4.2 (LYCHEE.v6) #925: Mon May 29 09:32:54 JST 2000 itojun@lychee.itojun.org:/export/home/itojun/k/kame/netbsd/sys/arch/i386/compile/LYCHEE.v6 i386


>Description:
	qualcomm qpopper 3.0.2 checks if ar(1) chokes on damaged archive file.
	NetBSD 1.4.2/i386 /usr/bin/ar does not handle it well.
	NetBSD 1.4Z /usr/bin/ar is okay.
>How-To-Repeat:
	% tar zxf qpopper3.0.2.tar.gz
	% cd qpopper3.0.2
	% ./configure

Script started on Tue May 30 17:21:52 2000
itojun[lychee:/home/itojun/work/kame-apps/qpopper3] ./configure
loading cache ./config.cache
checking whether make sets ${MAKE}... yes
checking for gcc... gcc
checking whether the C compiler (gcc  ) works... yes
checking whether the C compiler (gcc  ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking for bison... bison -y
checking for flex... flex
checking for yywrap in -lfl... yes
checking for ar... ar
checking for ranlib... ranlib
checking for POSIXized ISC... no
checking for gperf... no
checking for cperf... no
warning:: not found
checking for gcc version 2.7.2.3... no
checking if ar chokes on -r... Segmentation fault
Segmentation fault
ar fails
configure: error: ar doesn't work
itojun[lychee:/home/itojun/work/kame-apps/qpopper3] cat config.log
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

configure:578: checking whether make sets ${MAKE}
configure:607: checking for gcc
configure:720: checking whether the C compiler (gcc  ) works
configure:736: gcc -o conftest    conftest.c  1>&5
configure:762: checking whether the C compiler (gcc  ) is a cross-compiler
configure:767: checking whether we are using GNU C
configure:776: gcc -E conftest.c
configure:795: checking whether gcc accepts -g
configure:831: checking for bison
configure:864: checking for flex
configure:898: checking for yywrap in -lfl
configure:917: gcc -o conftest -g -O2   conftest.c -lfl   1>&5
configure:944: checking for ar
configure:977: checking for ranlib
configure:1005: checking for POSIXized ISC
configure:1030: checking for gperf
configure:1030: checking for cperf
configure:1152: checking for gcc version 2.7.2.3
configure:1166: checking if ar chokes on -r
itojun[lychee:/home/itojun/work/kame-apps/qpopper3] sh -x ./configure |&tail -30
+ test -f /bin/cperf
+ IFS=  

+ GPERF=
+ test -n 
+ echo no
no
+ test -n 
+ test -n 
+ GPERF=echo configure: warning: Unable to find gperf/cperf 1>&2
warning:: not found
+ test  = yes
+ test yes = yes
+ echo -n checking for gcc version 2.7.2.3... 
checking for gcc version 2.7.2.3... + echo configure:1152: checking for gcc version 2.7.2.3
+ gcc+ grep --version 2\.7\.2\.3

+ echo no
no
+ echo -n checking if ar chokes on -r... 
checking if ar chokes on -r... + echo configure:1166: checking if ar chokes on -r
+ ar -r junque.ar configure.in
Segmentation fault
+ ar r junque.ar configure.in
Segmentation fault
+ echo ar fails
ar fails
+ echo configure: error: ar doesn't work
configure: error: ar doesn't work
+ exit 1

>Fix:
>Release-Note:
>Audit-Trail:

From: Krister Walfridsson <cato@df.lth.se>
To: itojun@itojun.org
Cc: gnats-bugs@gnats.netbsd.org
Subject: Re: bin/10230: ar(1) chokes on qpopper 3.0.2 build
Date: Tue, 20 Jun 2000 00:33:12 +0200 (CEST)

 On Tue, 30 May 2000 itojun@itojun.org wrote:

 > >Description:
 > 	qualcomm qpopper 3.0.2 checks if ar(1) chokes on damaged archive file.
 > 	NetBSD 1.4.2/i386 /usr/bin/ar does not handle it well.
 > 	NetBSD 1.4Z /usr/bin/ar is okay.
 > >How-To-Repeat:
 > 	% tar zxf qpopper3.0.2.tar.gz
 > 	% cd qpopper3.0.2
 > 	% ./configure

 I'm not able to get this failure using NetBSD 1.4.2. I am however able to
 do it using NetBSD 1.4.1.

 There was a bug in libbfd that could cause this behaivour, that was fixed
 in 1.4.2. Is it possible that you may have an old libbfd lying around?

    /Krister


From: itojun@iijlab.net
To: Krister Walfridsson <cato@df.lth.se>
Cc: gnats-bugs@gnats.netbsd.org
Subject: Re: bin/10230: ar(1) chokes on qpopper 3.0.2 build
Date: Tue, 20 Jun 2000 16:04:52 +0900

 >On Tue, 30 May 2000 itojun@itojun.org wrote:
 >
 >> 	qualcomm qpopper 3.0.2 checks if ar(1) chokes on damaged archive file.
 >> 	NetBSD 1.4.2/i386 /usr/bin/ar does not handle it well.
 >> 	NetBSD 1.4Z /usr/bin/ar is okay.
 >> >How-To-Repeat:
 >> 	% tar zxf qpopper3.0.2.tar.gz
 >> 	% cd qpopper3.0.2
 >> 	% ./configure
 >
 >I'm not able to get this failure using NetBSD 1.4.2. I am however able to
 >do it using NetBSD 1.4.1.
 >
 >There was a bug in libbfd that could cause this behaivour, that was fixed
 >in 1.4.2. Is it possible that you may have an old libbfd lying around?

 	that's possible.  let me check.

 itojun
State-Changed-From-To: open->closed 
State-Changed-By: itojun 
State-Changed-When: Thu Jul 19 02:28:20 PDT 2001 
State-Changed-Why:  
qpopper 3.0.2 is ancient, shouldn't be a problem.  will re-submit if it reappears 
>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.