Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 115972

Summary: compiling gnome-panel fails because of wrong python path in xml2po
Product: Gentoo Linux Reporter: Christian H. Kuhn <qno-gentoo>
Component: New packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: High    
Version: 2005.1   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Christian H. Kuhn 2005-12-18 11:56:15 UTC
Hiho,

I try to emerge gnome-panel--2.12.2. It fails:
if test -f "C/clock.xml"; then d="../"; else d=".././"; fi; \
(cd es/ && \
  `which xml2po` -e -p \
    ${d}es/es.po \
    ${d}C/clock.xml > clock.xml.tmp && \
    cp clock.xml.tmp clock.xml && rm -f clock.xml.tmp)
Traceback (most recent call last):
  File "/usr/bin/xml2po", line 34, in ?
    import libxml2
ImportError: dynamic module does not define init function (initlibxml2)
Traceback (most recent call last):
  File "/usr/bin/xml2po", line 34, in ?
    import libxml2
ImportError: dynamic module does not define init function (initlibxml2)
make[3]: *** [de/clock.xml] Fehler 1

/usr/bin/xml2po is part of gnome-doc-utils-0.4.4. It is a python script which calls "import libxml2". libxml2-2.6.22 is installed, libs are in /usr/lib64/.

Google tells me that that error is well known. If i understood right, $PYTHONPATH has to be set correct when calling jhbuild in libxml2's make process. But i fear that i'm too new to gentoo to change the ebuild myself, so i have to report it here.
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2005-12-18 12:05:17 UTC

*** This bug has been marked as a duplicate of 104088 ***