From dann@bigphred.greycat.com  Sat Dec 11 14:09:12 1999
Return-Path: <dann@bigphred.greycat.com>
Received: from bigphred.greycat.com (bigphred.greycat.com [207.173.133.2])
	by hub.freebsd.org (Postfix) with ESMTP id 9859014E2F
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 11 Dec 1999 14:09:09 -0800 (PST)
	(envelope-from dann@bigphred.greycat.com)
Received: (from dann@localhost)
	by bigphred.greycat.com (8.9.3/8.9.3) id OAA60992;
	Sat, 11 Dec 1999 14:09:05 -0800 (PST)
	(envelope-from dann)
Message-Id: <199912112209.OAA60992@bigphred.greycat.com>
Date: Sat, 11 Dec 1999 14:09:05 -0800 (PST)
From: dann@greycat.com
Sender: dann@bigphred.greycat.com
Reply-To: dann@greycat.com
To: FreeBSD-gnats-submit@freebsd.org
Subject: devel/t1lib hangs in configure
X-Send-Pr-Version: 3.2

>Number:         15426
>Category:       ports
>Synopsis:       build of devel/t1lib hangs in configure
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Dec 11 14:10:02 PST 1999
>Closed-Date:    Fri Dec 24 17:28:12 PST 1999
>Last-Modified:  Fri Dec 24 17:28:46 PST 1999
>Originator:     Dann Lunsford
>Release:        FreeBSD 3.3-STABLE i386
>Organization:
Just me...
>Environment:

FreeBSD bigphred.greycat.com 3.3-STABLE FreeBSD 3.3-STABLE #0: Sun Nov 21 20:35:41 PST 1999     root@bigphred.greycat.com:/usr/src/sys/compile/PHRED  i386

>Description:
building devel/t1lib (t1lib-0.9.2). make hangs during autoconfigure, at
checking for external symbols requiring underscores. Last few lines of 
config log are:

configure:2768: checking size of void *
configure:2787: cc -o conftest -O -pipe   conftest.c  1>&5
configure:2812: checking for gcc strength-reduce bug
configure:2831: cc -o conftest -O -pipe   conftest.c  1>&5
configure:2854: checking whether external symbols need an underscore prefix
configure:2873: cc -o conftest -O -pipe   conftest.c conftest_asm.s  1>&5

By sprinkling a few echo's it appears to be stopping dead at the "if"
statement in configure indicated below.  I can't see anything wrong 
with it, though.

echo $ac_n "checking "whether external symbols need an underscore prefix"""... $ac_c" 1>&6
echo "configure:2854: checking "whether external symbols need an underscore prefix"" >&5
if eval "test \"`echo '$''{'ac_cv_c_extern_prefix'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  saved_libs=$LIBS
LIBS="conftest_asm.s $LIBS"
cat > conftest_asm.s <<EOF
	.globl _ac_test
_ac_test:
	.long 0
EOF
cat > conftest.$ac_ext <<EOF
#line 2866 "configure"
#include "confdefs.h"
extern int ac_test;
int main() {
if (ac_test) return 1
; return 0; }
EOF           ***************  this if \/ stops, probably here \/
if { (eval echo configure:2873: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*         ******** never gets here...
  ac_cv_c_extern_prefix="yes"
else
  echo "configure: failed program was:" 1>&5   ******** ... or here 
  cat conftest.$ac_ext 1>&5
  rm -rf conftest*
  ac_cv_c_extern_prefix="no"
fi
rm -f conftest*
LIBS=$saved_libs
fi

echo "$ac_t""$ac_cv_c_extern_prefix" 1>&6
if test "$ac_cv_c_extern_prefix" = "yes"
then
  cat >> confdefs.h <<\EOF
#define NEED_UNDERSCORE_PREFIX 1
EOF

fi
>How-To-Repeat:
            cd /usr/ports/devel/t1lib ; make

>Fix:
      I can't see any.  Been trying to get past this for
the better part of the day.  Shell bug?  Compiler bug?
Anyway, this library is needed for a few other ports, notably
xpdf.

>Release-Note:
>Audit-Trail:

From: OKAZAKI Tetsurou <okazaki@be.to>
To: dann@greycat.com
Cc: FreeBSD-gnats-submit@freebsd.org
Subject: Re: ports/15426: devel/t1lib hangs in configure
Date: Sun, 12 Dec 1999 09:54:21 +0900

 In the message <199912112209.OAA60992@bigphred.greycat.com> 
 dann@greycat.com wrote:
 
 > FreeBSD bigphred.greycat.com 3.3-STABLE FreeBSD 3.3-STABLE #0: Sun Nov 21 20:35:41 PST 1999     root@bigphred.greycat.com:/usr/src/sys/compile/PHRED  i386
 
 > configure:2854: checking whether external symbols need an underscore prefix
 > configure:2873: cc -o conftest -O -pipe   conftest.c conftest_asm.s  1>&5
 
 > By sprinkling a few echo's it appears to be stopping dead at the "if"
 > statement in configure indicated below.  I can't see anything wrong 
 > with it, though.
 
 > >Fix:
 >       I can't see any.  Been trying to get past this for
 > the better part of the day.  Shell bug?  Compiler bug?
 
 Compiler's which is now fixed. See PR: gnu/8138 for details.
 
 --
 Tetsurou
 
State-Changed-From-To: open->closed 
State-Changed-By: steve 
State-Changed-When: Fri Dec 24 17:28:12 PST 1999 
State-Changed-Why:  
Daniel Eischen fixed the part of libc_r that was causing this problem. 
>Unformatted:
