Chris Brennan xaero at
Sun Dec 26 16:12:22 UTC 2010

While upgrading python to 2.6.x (by following /usr/src/UPDATING and running
'cd /usr/ports/lang/python && make upgrade-site-packages -DUSE_PORTMASTER')
I get the following error msg from devel/py-dbus. Attached is the config
file from the build-process. I can reproduce this by independently running
make in the portdir (devel/py-dbus). The tree is current as of a few days
ago. I've been getting this error for several weeks now and been unable to
figure it out. /usr/src/UPDATING has nothing specific to py(26)-dbus. Just
Python, which is what I was following.

FreeBSD 7.3-RELEASE-p3 FreeBSD 7.3-RELEASE-p3 #8: Sun
Oct 2401:53:03 EDT 2010 root at

[root at Ziggy [~]# cd /usr/ports/lang/python && make upgrade-site-packages
===>  License check disabled, port has not defined LICENSE
===>  Extracting for py26-dbus-0.83.2
=> SHA256 Checksum OK for dbus-python-0.83.2.tar.gz.
===>  Patching for py26-dbus-0.83.2
===>   py26-dbus-0.83.2 depends on file: /usr/local/bin/python2.6 - found
===>   py26-dbus-0.83.2 depends on executable: gmake - found
===>   py26-dbus-0.83.2 depends on package: libtool>=2.2 - found
===>   py26-dbus-0.83.2 depends on shared library: dbus-glib-1.2 - found
===>   py26-dbus-0.83.2 depends on shared library: intl - found
===>  Configuring for py26-dbus-0.83.2
checking whether /usr/local/bin/python2.6 version >= 2.4.0... yes
checking for /usr/local/bin/python2.6 version... 2.6
checking for /usr/local/bin/python2.6 platform... freebsd7
checking for /usr/local/bin/python2.6 script directory...
checking for /usr/local/bin/python2.6 extension module directory...
checking for Python headers using /usr/local/bin/python2.6-config
--includes... -I
/usr/local/include/python2.6 -I/usr/local/include/python2.6
checking whether those headers are sufficient... no
configure: error: could not find Python headers
===>  Script "configure" failed unexpectedly.
Please run the gnomelogalyzer, available from
"", which will diagnose the
problem and suggest a solution. If - and only if - the gnomelogalyzer cannot
solve the problem, report the build failure to the FreeBSD GNOME team at
gnome at, and attach (a)
"/usr/ports/devel/py-dbus/work/dbus-python-0.83.2/config.log", (b) the
of the failed make command, and (c) the gnomelogalyzer output. Also, it
be a good idea to provide an overview of all packages installed on your
(i.e. an `ls /var/db/pkg`). Put your attachment up on any website,
copy-and-paste into, or use send-pr(1)
the attachment. Try to avoid sending any attachments to the mailing list
(gnome at, because attachments sent to FreeBSD mailing lists are
usually discarded by the mailing list software.
*** Error code 1

Stop in /usr/ports/devel/py-dbus.
[root at Ziggy [/usr/ports/devel/py-dbus]#

Of the errror message, this is what stuck out the most for me;

checking whether those headers are sufficient... no

This tells me something is missing, but what? How do I figure out what
headers aren't sufficient? Incidentally could this be the cause?

[root at Ziggy [/usr/ports/lang/python]# lsl
total 20
 2 drwxr-xr-x   3 root  wheel   512B Dec 18 14:55 .
14 drwxr-xr-x  28 root  wheel    14K Dec 18 14:45 ..
 2 -r--r--r--   1 root  wheel   119B Dec 18 14:44 README
 2 drwxr-xr-x   2 root  wheel   512B Dec 18 14:55 xcbgen
[root at Ziggy [/usr/ports/lang/python]# lsl
total 350
  2 drwxr-xr-x  3 root  wheel   512B Oct 14 14:47 .
 14 drwxr-xr-x  3 root  wheel    13K Sep  8  2009 ..
178 -rw-r--r--  1 root  wheel   178K Mar 20  2009 _dbus_bindings.a
  2 -rwxr-xr-x  1 root  wheel   910B Mar 20  2009
130 -rwxr-xr-x  1 root  wheel   130K Mar 20  2009
  6 -rw-r--r--  1 root  wheel   4.5K Mar 20  2009 _dbus_glib_bindings.a
  2 -rwxr-xr-x  1 root  wheel   1.1K Mar 20  2009
  8 -rwxr-xr-x  1 root  wheel   7.2K Mar 20  2009
  2 drwxr-xr-x  3 root  wheel   1.5K Mar 20  2009 dbus
  2 -rw-r--r--  1 root  wheel    33B Mar 20  2009
  2 -rw-r--r--  1 root  wheel   191B Mar 20  2009 dbus_bindings.pyc
  2 -rw-r--r--  1 root  wheel   191B Mar 20  2009 dbus_bindings.pyo
[root at Ziggy [/usr/ports/lang/python]#

If I've missed anything, by all means, let me know and I shall provide it.

P.S. I cross-posted this to 'gnome at' as well as 'freebsd-gnome at' as I
was unsure/unclear if they were the same list or not.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: py26-dbus-0.83.2-config.log
Type: application/octet-stream
Size: 23449 bytes
Desc: not available
Url :

More information about the freebsd-questions mailing list