Subject: pkg/33161: security/libgcrypt fails to build on SPARC
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <anders.nygren@gmail.com>
List: pkgsrc-bugs
Date: 03/28/2006 20:15:01
>Number:         33161
>Category:       pkg
>Synopsis:       security/libgcrypt fails to build on SPARC
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Mar 28 20:15:00 +0000 2006
>Originator:     Anders Nygren
>Release:        3.0
>Organization:
>Environment:
NetBSD malone 3.0 NetBSD 3.0 (GENERIC) #0: Mon Dec 19 04:01:27 UTC 2005  builds@b3.netbsd.org:/home/builds/ab/netbsd-3-0-RELEASE/sparc/200512182024Z-obj/home/builds/ab/netbsd-3-0-RELEASE/src/sys/arch/sparc/compile/GENERIC sparc

>Description:
Building libgcrypt-1.2.2nb1 fails to build on SPARC

Making all in tests
if cc -DHAVE_CONFIG_H -I. -I. -I.. -I../src   -I/usr/pkg/include -I/usr/include -I/usr/pkg/include -O2 -I/usr/pkg/include -I/usr/include -Wall -MT prime.o -MD -MP -MF ".deps/prime.Tpo" -c -o prime.o prime.c;  then mv -f ".deps/prime.Tpo" ".deps/prime.Po"; else rm -f ".deps/prime.Tpo"; exit 1; fi
/bin/sh ../libtool --tag=CC --mode=link cc -I/usr/pkg/include -O2 -I/usr/pkg/include -I/usr/include -Wall   -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/lib -Wl,-R/usr/lib -o prime  prime.o ../src/libgcrypt.la
mkdir .libs
cc -I/export/pkgsrc/security/libgcrypt/work/.buildlink/include -O2 -Wall -Wl,-R/usr/pkg/lib -o .libs/prime prime.o  -L/export/pkgsrc/security/libgcrypt/work/.buildlink/lib ../src/.libs/libgcrypt.so /export/pkgsrc/security/libgcrypt/work/.buildlink/lib/libgpg-error.so -lintl -Wl,--rpath -Wl,/usr/pkg/lib -Wl,--rpath -Wl,/export/pkgsrc/security/libgcrypt/work/.buildlink/lib
../src/.libs/libgcrypt.so: undefined reference to `__udiv_qrnnd'
*** Error code 1


>How-To-Repeat:
try to build libgcrypt
>Fix: