Subject: pkg/32796: sysutils/9base does not build on Darwin
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <ceh@otaku.se>
List: pkgsrc-bugs
Date: 02/10/2006 20:10:01
>Number:         32796
>Category:       pkg
>Synopsis:       sysutils/9base does not build on Darwin
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Feb 10 20:10:00 +0000 2006
>Originator:     Emil Hessman
>Release:        Mac OS X 10.4.4
>Organization:
>Environment:
Darwin Latte.local 8.4.0 Darwin Kernel Version 8.4.0: Tue Jan  3 18:22:10 PST 2006; root:xnu-792.6.56.obj~1/RELEASE_PPC Power Macintosh powerpc
>Description:
Unable to install sysutils/9base on Mac OS X due to the following error:

cd /Volumes/NetBSD/pkgsrc/sysutils/9base
sudo bmake && sudo bmake install

[...]

built lib9
CC yacc.c
LD yacc
ld: can't locate file for: -lcrt0.o
*** Error code 1

Stop.
bmake: stopped in /Volumes/NetBSD/pkgsrc/sysutils/9base/work/9base-20051114/yacc
*** Error code 1

Stop.
bmake: stopped in /Volumes/NetBSD/pkgsrc/sysutils/9base/work/9base-20051114
*** Error code 1

Stop.
bmake: stopped in /Volumes/NetBSD/pkgsrc/sysutils/9base
===> 
===> There was an error during the ``build'' phase.
===> Please investigate the following for more information:
===>      * log of the build
===>      * /Volumes/NetBSD/pkgsrc/sysutils/9base/work/.work.log
===> 
*** Error code 1

Stop.
bmake: stopped in /Volumes/NetBSD/pkgsrc/sysutils/9base
>How-To-Repeat:
cd .../pkgsrc/sysutils/9base
sudo bmake install
>Fix:
Mac OS X does not support statically linked code. See http://developer.apple.com/qa/qa2001/qa1118.html

Thus, disable static building in the Makefiles.