Subject: Fwd: math/py-Numeric won't build on macosx
To: None <tech-pkg@netbsd.org>
From: Ronald van der Pol <Ronald.vanderPol@rvdp.org>
List: tech-pkg
Date: 11/26/2004 10:20:46
The problem below has reappeared. I don't know what the fix was back in
August. There is a missing "-lpython2p3" somewhere.

	rvdp

PS The message of 25 Aug did not make it into the archives. Probably
because some very long lines.

----- Forwarded message from <Ronald.vanderPol@rvdp.org> -----

Date: Wed, 25 Aug 2004 18:26:06 +0200
From: Ronald van der Pol <Ronald.vanderPol@rvdp.org>
To: tech-pkg@NetBSD.org
Subject: math/py-Numeric won't build on macosx

For a complete log see below.

When I run gcc manually and add "-lpython2p3" it compiles fine. So,
how should this be fixed?

spock# pkg_info -I python23-pth
python23-pth-2.3.4nb2 Interpreted, interactive, object-oriented programming
lang

spock# bmake
===> Checking for vulnerabilities in py23pth-Numeric-23.1
===> Building for py23pth-Numeric-23.1
(cd /Volumes/misc/pkgsrc/math/py-Numeric/work/Numeric-23.1/ && ...
<snip>
running build
running build_py
running build_ext
building '_numpy' extension
gcc -L/usr/lib -L/Volumes/misc/pkg/lib -bundle -bundle_loader
/Volumes/misc/pkg/bin/python2p3 -L/Volumes/misc/pkg/lib/python2p3/config -O2
-I/Volumes/misc/pkg/include/python2p3 -no-cpp-precomp
-I/Volumes/misc/pkg/include/python2p3
build/temp.darwin-7.5.0-Power_Macintosh-2p3/Src/_numpymodule.o
build/temp.darwin-7.5.0-Power_Macintosh-2p3/Src/arrayobject.o
build/temp.darwin-7.5.0-Power_Macintosh-2p3/Src/ufuncobject.o
-o build/lib.darwin-7.5.0-Power_Macintosh-2p3/_numpy.so
-L/Volumes/misc/pkg/lib/python2p3/config
ld: Undefined symbols:
_PyCObject_FromVoidPtr
_PyDict_SetItemString
_PyErr_Occurred
_PyModule_GetDict
_PyType_Type

<snip>

_PyString_FromString
_PyTuple_Size
error: command 'gcc' failed with exit status 1
*** Error code 1

Stop.
bmake: stopped in /usr/pkgsrc/math/py-Numeric
*** Error code 1

Stop.
bmake: stopped in /usr/pkgsrc/math/py-Numeric
spock#

	rvdp


----- End forwarded message -----