public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] problem compiling Avahi
@ 2010-01-19 12:13 SpaceCake
  2010-01-19 18:04 ` [gentoo-user] " walt
  0 siblings, 1 reply; 3+ messages in thread
From: SpaceCake @ 2010-01-19 12:13 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 4443 bytes --]

Hi,

I have problem to compile Avahi. As far as I see there was several bugs
related to this package in the past, so I've tried to perform the steps in
those bug reports to fix this issue (recompile python, python packages,
playing with useflags etc). Unfortunately I can't make it work, so I removed
avahi from useflags, so my world compile is ok. However I would like to use
it, so if anyone has any idea how can I fix it, it could be great

I think the most important part is

configure: error: Could not find Python module dbus

however dbus python is emerged and exists

however when I import module I've got this


>>> import dbus
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python2.6/site-packages/dbus/__init__.py", line 100, in
<module>
    from dbus._dbus import Bus, SystemBus, SessionBus, StarterBus
  File "/usr/lib/python2.6/site-packages/dbus/_dbus.py", line 46, in
<module>
    from dbus.bus import BusConnection
  File "/usr/lib/python2.6/site-packages/dbus/bus.py", line 46, in <module>
    from dbus.connection import Connection
  File "/usr/lib/python2.6/site-packages/dbus/connection.py", line 42, in
<module>
    from dbus.proxies import ProxyObject
  File "/usr/lib/python2.6/site-packages/dbus/proxies.py", line 35, in
<module>
    from dbus._expat_introspect_parser import process_introspection_data
  File "/usr/lib/python2.6/site-packages/dbus/_expat_introspect_parser.py",
line 26, in <module>
    from xml.parsers.expat import ExpatError, ParserCreate
  File "/usr/lib/python2.6/site-packages/_xmlplus/parsers/expat.py", line 4,
in <module>
    from pyexpat import *
ImportError: /usr/lib/python2.6/site-packages/_xmlplus/parsers/pyexpat.so:
undefined symbol: PyUnicodeUCS2_Decode



Here is my output of emerge of avahi

checking for python extension module directory...
${exec_prefix}/lib/python2.6/site-packages
checking for python module gtk... yes
checking for python module dbus... no
configure: error: Could not find Python module dbus

!!! Please attach the following file when seeking support:
!!! /var/tmp/portage/net-dns/avahi-0.6.24-r2/work/avahi-0.6.24/config.log
 *
 * ERROR: net-dns/avahi-0.6.24-r2 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 4119:  Called econf '--localstatedir=/var'
'--with-distro=gentoo' '--disable-python-dbus' '--disable-pygtk'
'--disable-xmltoman' '--disable-monodoc' '--enable-glib' '--disable-tests'
'--enable-autoipd' '--enable-compat-libdns_sd' '--disable-compat-howl'
'--disable-doxygen-doc' '--disable-mono' '--enable-dbus' '--enable-python'
'--enable-gtk' '--disable-qt3' '--enable-qt4' '--enable-gdbm'
'--enable-python-dbus' '--enable-pygtk'
 *               ebuild.sh, line  534:  Called die
 * The specific snippet of code:
 *                      die "econf failed"
 *  The die message:
 *   econf failed
 *
 * If you need support, post the topmost build error, and the call stack if
relevant.
 * A complete build log is located at
'/var/log/portage/net-dns:avahi-0.6.24-r2:20100119-114442.log'.
 * The ebuild environment file is located at
'/var/tmp/portage/net-dns/avahi-0.6.24-r2/temp/environment'.
 *

>>> Failed to emerge net-dns/avahi-0.6.24-r2, Log file:

>>>  '/var/log/portage/net-dns:avahi-0.6.24-r2:20100119-114442.log'

 * Messages for package net-dns/avahi-0.6.24-r2:

 *
 * ERROR: net-dns/avahi-0.6.24-r2 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 4119:  Called econf '--localstatedir=/var'
'--with-distro=gentoo' '--disable-python-dbus' '--disable-pygtk'
'--disable-xmltoman' '--disable-monodoc' '--enable-glib' '--disable-tests'
'--enable-autoipd' '--enable-compat-libdns_sd' '--disable-compat-howl'
'--disable-doxygen-doc' '--disable-mono' '--enable-dbus' '--enable-python'
'--enable-gtk' '--disable-qt3' '--enable-qt4' '--enable-gdbm'
'--enable-python-dbus' '--enable-pygtk'
 *               ebuild.sh, line  534:  Called die
 * The specific snippet of code:
 *                      die "econf failed"
 *  The die message:
 *   econf failed
 *
 * If you need support, post the topmost build error, and the call stack if
relevant.
 * A complete build log is located at
'/var/log/portage/net-dns:avahi-0.6.24-r2:20100119-114442.log'.
 * The ebuild environment file is located at
'/var/tmp/portage/net-dns/avahi-0.6.24-r2/temp/environment'.


Thank you
Laszlo

[-- Attachment #2: Type: text/html, Size: 5299 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [gentoo-user]  Re: problem compiling Avahi
  2010-01-19 12:13 [gentoo-user] problem compiling Avahi SpaceCake
@ 2010-01-19 18:04 ` walt
  2010-01-19 18:16   ` Arttu V.
  0 siblings, 1 reply; 3+ messages in thread
From: walt @ 2010-01-19 18:04 UTC (permalink / raw
  To: gentoo-user

On 01/19/2010 04:13 AM, SpaceCake wrote:
> Hi,
>
> I have problem to compile Avahi. As far as I see there was several bugs related to this package in the past, so I've tried to perform the steps in those bug reports to fix this issue (recompile python, python packages, playing with useflags etc).
> Unfortunately I can't make it work, so I removed avahi from useflags, so my world compile is ok. However I would like to use it, so if anyone has any idea how can I fix it, it could be great
>
> I think the most important part is
>
> configure: error: Could not find Python module dbus
>
> however dbus python is emerged and exists
>
> however when I import module I've got this

> ImportError: /usr/lib/python2.6/site-packages/_xmlplus/parsers/pyexpat.so: undefined symbol: PyUnicodeUCS2_Decode

An undefined symbol error means that something has changed since that library
was installed.  The solution is to re-install that library, which means re-install
the pyexpat package.  I'm guessing that revdep-rebuild would do that for you
automatically.  You might want to run redep-rebuild anyway because you may have
other broken libraries on your machine as well.




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [gentoo-user] Re: problem compiling Avahi
  2010-01-19 18:04 ` [gentoo-user] " walt
@ 2010-01-19 18:16   ` Arttu V.
  0 siblings, 0 replies; 3+ messages in thread
From: Arttu V. @ 2010-01-19 18:16 UTC (permalink / raw
  To: gentoo-user

On 1/19/10, walt <w41ter@gmail.com> wrote:
> On 01/19/2010 04:13 AM, SpaceCake wrote:
>> Hi,
>>
>> I have problem to compile Avahi. As far as I see there was several bugs
>> related to this package in the past, so I've tried to perform the steps in
>> those bug reports to fix this issue (recompile python, python packages,
>> playing with useflags etc).
>> Unfortunately I can't make it work, so I removed avahi from useflags, so
>> my world compile is ok. However I would like to use it, so if anyone has
>> any idea how can I fix it, it could be great
>>
>> I think the most important part is
>>
>> configure: error: Could not find Python module dbus
>>
>> however dbus python is emerged and exists
>>
>> however when I import module I've got this
>
>> ImportError: /usr/lib/python2.6/site-packages/_xmlplus/parsers/pyexpat.so:
>> undefined symbol: PyUnicodeUCS2_Decode
>
> An undefined symbol error means that something has changed since that
> library was installed.  The solution is to re-install that library, which means
> re-install the pyexpat package.  I'm guessing that revdep-rebuild would do
> that for you automatically.  You might want to run redep-rebuild anyway
> because you may have other broken libraries on your machine as well.

I think the package is called pyxml? emerge -1 pyxml, then revdep-rebuild.

Also, OP should be aware of the USE flag changes for
ucs2/wide-unicode. A snippet from dev-lang/python's ChangeLog (also
see referred bug report):

  06 Dec 2009; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
  python-2.4.6.ebuild, python-2.5.4-r3.ebuild, python-2.6.2-r1.ebuild,
  python-2.6.2-r2.ebuild, python-2.6.3.ebuild, python-2.6.4.ebuild,
  python-3.1.1-r1.ebuild, metadata.xml:
  Remove "ucs2" USE flag and add "wide-unicode" USE flag (bug #293135).

-- 
Arttu V.



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-01-19 18:17 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-19 12:13 [gentoo-user] problem compiling Avahi SpaceCake
2010-01-19 18:04 ` [gentoo-user] " walt
2010-01-19 18:16   ` Arttu V.

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox