NetBSD Problem Report #43902

From www@NetBSD.org  Fri Sep 24 03:31:46 2010
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by www.NetBSD.org (Postfix) with ESMTP id 59D8B63B9B8
	for <gnats-bugs@gnats.NetBSD.org>; Fri, 24 Sep 2010 03:31:46 +0000 (UTC)
Message-Id: <20100924033146.2F14E63B99B@www.NetBSD.org>
Date: Fri, 24 Sep 2010 03:31:46 +0000 (UTC)
From: jdbaker@mylinuxisp.com
Reply-To: jdbaker@mylinuxisp.com
To: gnats-bugs@NetBSD.org
Subject: math/pari link failure on MacOS X 10.4.11 (ppc)
X-Send-Pr-Version: www-1.0

>Number:         43902
>Category:       pkg
>Synopsis:       math/pari link failure on MacOS X 10.4.11 (ppc)
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Sep 24 03:35:00 +0000 2010
>Originator:     John D. Baker
>Release:        MacOS X 10.4.1, pkgsrc-current (pre-2010Q3)
>Organization:
>Environment:
Darwin ed.technoskunk.fur 8.11.0 Darwin Kernel Version 8.11.0: Wed Oct 10 18:26:00 PDT 2007; root:xnu-792.24.17~1/RELEASE_PPC Power Macintosh powerpc

>Description:
Building math/pari fails a link step as follows:

[...]
libtool  --mode=link gcc  -o gp -O3 -Wall -fno-strict-aliasing -fomit-frame-pointer  -pipe -O2 -I/usr/pkg/include -I/usr/include -DPNG_NO_ASSEMBLER_CODE -no-cpp-precomp -isystem /usr/include -I/usr/pkg/include -I/usr/include -L/usr/pkg/lib -L/usr/lib -L/usr/X11R6/lib gp.lo gp_init.lo gp_rl.lo highlvl.lo whatnow.lo plotport.lo plotfltk.lo  -L"/usr/pkg"/lib -lfltk -framework Carbon -lsupc++ -L/usr/pkg/lib -lgmp -Wl,-R/usr/lib -L/usr/lib -lreadline -L/usr/lib -ltermcap libpari-gmp.la
libtool: link: gcc -o .libs/gp -O3 -Wall -fno-strict-aliasing -fomit-frame-pointer -pipe -O2 -I/d0/tmp/pkgsrc/math/pari/work/.buildlink/include -DPNG_NO_ASSEMBLER_CODE -no-cpp-precomp -isystem /usr/include .libs/gp.o .libs/gp_init.o .libs/gp_rl.o .libs/highlvl.o .libs/whatnow.o .libs/plotport.o .libs/plotfltk.o  -L/d0/tmp/pkgsrc/math/pari/work/.buildlink/lib -L/d0/tmp/pkgsrc/math/pari/work/.x11-buildlink/lib /d0/tmp/pkgsrc/math/pari/work/.buildlink/lib/libfltk.dylib -lpthread -lsupc++ /d0/tmp/pkgsrc/math/pari/work/.buildlink/lib/libgmp.dylib /d0/tmp/pkgsrc/math/pari/work/.buildlink/lib/libreadline.dylib -lcurses /d0/tmp/pkgsrc/math/pari/work/pari-2.3.5/Odarwin-ppc/.libs/libpari-gmp.dylib -framework ApplicationServices -framework Carbon 
/usr/libexec/gcc/powerpc-apple-darwin8/4.0.1/ld: warning suggest use of -bind_at_load, as lazy binding may result in errors or different symbols being used
/usr/libexec/gcc/powerpc-apple-darwin8/4.0.1/ld: Undefined symbols:
__Unwind_Resume
__Unwind_GetDataRelBase
__Unwind_GetIP
__Unwind_GetLanguageSpecificData
__Unwind_GetRegionStart
__Unwind_GetTextRelBase
__Unwind_SetGR
__Unwind_SetIP
__Unwind_RaiseException
__Unwind_Resume_or_Rethrow
__Unwind_DeleteException
symbol _mkcomplex used from dynamic library /d0/tmp/pkgsrc/math/pari/work/pari-2.3.5/Odarwin-ppc/.libs/libpari-gmp.dylib(single module) not from earlier dynamic library /usr/lib/libSystem.B.dylib(mkcomplex.So)
collect2: ld returned 1 exit status
*** Error code 1

Stop.
bmake: stopped in /d0/tmp/pkgsrc/math/pari/work/pari-2.3.5/Odarwin-ppc
*** Error code 1

Stop.
bmake: stopped in /d0/tmp/pkgsrc/math/pari/work/pari-2.3.5
*** Error code 1

Stop.
bmake: stopped in /d0/tmp/pkgsrc/math/pari/work/pari-2.3.5
*** Error code 1

Stop.
bmake: stopped in /usr/pkgsrc/math/pari
*** Error code 1
[...]

The symbols reported as undefined are in "/usr/lib/libSystem.dylib",
which is also symlinked as "libc.dylib".  Did something leave out
a library reference?  Or mask it?  "libSystem.B.dylib" also contains
the symbols claimed as undefined.
>How-To-Repeat:
Attempt to build math/pari on MacOS X 10.4.11 (ppc), or any package which
pulls it in as a dependency (net/clive in this particular case).
>Fix:

NetBSD Home
NetBSD PR Database Search

(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.