python-config on NetBSD 6

Fred Wright fw at fwright.net
Fri Sep 15 02:44:18 UTC 2017


On Thu, 14 Sep 2017, Hal Murray via devel wrote:

> > All the fuss over long doubles has distracted folks from a more legitimate
> > issue with NetBSD 6.1.5, which is that python-config returns a nonworking
> > build setup for the C extension.  But a workaround should be possible, and
> > it's only in the build procedure, not the code.
>
> Could you please say more.  What doesn't work and/or what is the nature of
> the fix?  Is the problem specifix to NetBSD (6 or otherwise)?

It seems to affect OpenBSD 5.6 as well.

> My NetBSD setup notes include:
>       ln -s /usr/pkg/bin/python2.7 /usr/pkg/bin/python
>       ln -s /usr/pkg/bin/python2.7 /usr/pkg/bin/python2
>       ln -s /usr/pkg/lib/libpython2.7.so.1.0 /usr/lib/libpython2.7.so.1.0
> Would that cover what you are describing?

Something along the lines of the third symlink might fix it, though that
exact link didn't seem to.  More investigation is needed.

The basic problem is that python2.7-config --ldflags includes
"-lpython2.7" but no "-L" to say where to find it.  On most platforms, a
suitable "-L" is included.

Fred Wright


More information about the devel mailing list