Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
PyQt4-4.4 fails to build
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
Elbar Thera
n00b
n00b


Joined: 15 May 2008
Posts: 60

PostPosted: Thu May 15, 2008 11:20 am    Post subject: PyQt4-4.4 fails to build Reply with quote

Here is the excerpt from the build.log

Quote:
make[1]: Entering directory `/var/tmp/portage/dev-python/PyQt4-4.4/work/PyQt-x11
-gpl-4.4/designer'
g++ -c -pipe -O2 -march=athlon-xp -mtune=athlon-xp -pipe -D_REENTRANT -Wall -W -
fPIC -DPYTHON_LIB=\"libpython2.4.so\" -DQT_NO_DEBUG -DQT_PLUGIN -DQT_SCRIPT_LIB
-DQT_XML_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQDESIGNER_EXPORT_WIDGETS -DQT_SHARED -
I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtDesigner -I/usr/inclu
de/qt4/QtCore -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/
qt4/QtGui -I/usr/include/qt4/QtXml -I/usr/include/qt4/QtXml -I/usr/include/qt4/Q
tScript -I/usr/include/qt4/QtScript -I/usr/include/qt4 -I/usr/include/python2.4
-I. -I. -o pluginloader.o pluginloader.cpp
g++ -c -pipe -O2 -march=athlon-xp -mtune=athlon-xp -pipe -D_REENTRANT -Wall -W -fPIC -DPYTHON_LIB=\"libpython2.4.so\" -DQT_NO_DEBUG -DQT_PLUGIN -DQT_SCRIPT_LIB -DQT_XML_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQDESIGNER_EXPORT_WIDGETS -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtDesigner -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtXml -I/usr/include/qt4/QtXml -I/usr/include/qt4/QtScript -I/usr/include/qt4/QtScript -I/usr/include/qt4 -I/usr/include/python2.4 -I. -I. -o moc_pluginloader.o moc_pluginloader.cpp
pluginloader.cpp: In static member function 'static PyObject* PyCustomWidgets::getModuleAttr(const char*, const char*)':
pluginloader.cpp:284: error: invalid conversion from 'const char*' to 'char*'
pluginloader.cpp:284: error: initializing argument 1 of 'PyObject* PyImport_ImportModule(char*)'
pluginloader.cpp:296: error: invalid conversion from 'const char*' to 'char*'
pluginloader.cpp:296: error: initializing argument 2 of 'PyObject* PyObject_GetAttrString(PyObject*, char*)'
make[1]: *** [pluginloader.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory `/var/tmp/portage/dev-python/PyQt4-4.4/work/PyQt-x11-gpl-4.4/designer'
make: *** [all] Error 2


Greets,
Elbar
Back to top
View user's profile Send private message
je2451
n00b
n00b


Joined: 07 Nov 2007
Posts: 4

PostPosted: Thu May 15, 2008 2:12 pm    Post subject: Ditto Reply with quote

I'm having this same problem
Back to top
View user's profile Send private message
muhsinzubeir
l33t
l33t


Joined: 29 Sep 2007
Posts: 948
Location: /home/muhsin

PostPosted: Thu May 15, 2008 8:40 pm    Post subject: Reply with quote

qt3,qt4 en qt3support or so in make.conf?...
_________________
~x86
p5k-se
Intel Core 2 Duo
Nvidia GT200
http://www.zanbytes.com
Back to top
View user's profile Send private message
Elbar Thera
n00b
n00b


Joined: 15 May 2008
Posts: 60

PostPosted: Fri May 16, 2008 7:50 am    Post subject: Reply with quote

muhsinzubeir wrote:
qt3,qt4 en qt3support or so in make.conf?...


here is my emerge --info:

Quote:
Portage 2.1.5 (default-linux/x86/2007.0/desktop, gcc-4.1.2, glibc-2.6.1-r0, 2.6.24-gentoo-r8 i686)
=================================================================
System uname: 2.6.24-gentoo-r8 i686 AMD Athlon(tm) XP 2500+
Timestamp of tree: Fri, 16 May 2008 07:15:01 +0000
app-shells/bash: 3.2_p33
dev-java/java-config: 1.3.7, 2.1.6
dev-lang/python: 2.4.4-r9
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox: 1.2.18.1-r2
sys-devel/autoconf: 2.13, 2.61-r1
sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1
sys-devel/binutils: 2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool: 1.5.26
virtual/os-headers: 2.6.23-r3
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=athlon-xp -mtune=athlon-xp -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/4.0/env /usr/kde/4.0/share/config /usr/kde/4.0/shutdown /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -march=athlon-xp -mtune=athlon-xp -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps y"
FEATURES="distlocks parallel-fetch sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/ ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ "
LDFLAGS=""
LINGUAS="en de"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext 7zip R X a52 aac acl acpi activefilter administrator alsa ao apache2 arts bash-completion berkdb blas blender-game bzip2 cairo cdparanoia cdr cli cracklib crypt cscope cups curl dbus divx doc dri dvd dvdr dvdread dynamicplugin eds emacs emboss encode esd evo examples fam fastcgi fftw firefox fortran gd gdbm gif gmp gnome gnuplot gpg gpgme gpm gs gsl gstreamer gtk hal hdf5 htmlhandbook iconv imagemagick ipv6 isdnlog java javascript jce jit joystick jpeg jpeg2k kde kerberos lapack latex ldap libwww lm_sensors loop-aes mad mailwrapper mdnsresponder-compat midi mikmod mmx mmxext mode-force mp3 mpeg mplayer mudflap mysql ncurses nids nls nptl nptlonly nsplugin ogg openal opengl openmp openssl oss pam pango pcre pdf perl php plotutils png posix pppd python qt3 qt3support qt4 quicktime readline recode reflection ruby sdl sensord session sguil signatures slang spell spl sse sse2 ssl svg symlink tcl tcpd threads tiff tk truetype unicode vcd vim vim-with-x vorbis win32codecs x86 xcomposite xml xorg xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en de" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset: CPPFLAGS, CTARGET, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS


so i guess the answer is yes :P

greets,
Elbar
Back to top
View user's profile Send private message
jfp
Guru
Guru


Joined: 08 Jul 2007
Posts: 326
Location: Virginia, USA

PostPosted: Fri May 16, 2008 11:51 am    Post subject: Reply with quote

A bug, 222355, https://bugs.gentoo.org/show_bug.cgi?id=222355 has been filed on this.
For me the "solution" was to remove dev-python/PyQt4 from my /etc/portage/package.keywords. This allowed the latest stable pyQt4-4.3.3 version to be kept. Of course this "solution" only works if you don't need whatever pyQt4-4.4 provides.
_________________
jfp
Back to top
View user's profile Send private message
Oo.et.oO
Apprentice
Apprentice


Joined: 23 Apr 2002
Posts: 291
Location: burlington

PostPosted: Fri May 16, 2008 1:10 pm    Post subject: same problem here Reply with quote

same problem here

new machine. haven't even figured out what is depending on pyqt4. removing qt4 from use flags still ends up trying to
build it.

i'm on amd64 (intel core2 hw).

looks like i don't need qt4-4.4 so the temporary "solution" of using 3.3 should work for me for now.
Back to top
View user's profile Send private message
Elbar Thera
n00b
n00b


Joined: 15 May 2008
Posts: 60

PostPosted: Sat May 17, 2008 6:03 am    Post subject: Reply with quote

I have done some more research on this matter. Somewhere in the failing code there is a check for the used python version.

Code:
// Return the named attribute object from the named module.
PyObject *PyCustomWidgets::getModuleAttr(const char *module, const char *attr)
{
#if PY_VERSION_HEX >= 0x020500
    PyObject *mod = PyImport_ImportModule(module);
#else
    PyObject *mod = PyImport_ImportModule(const_cast<char *>(module));
#endif

    if (!mod)
    {
        PyErr_Print();
        return 0;
    }

#if PY_VERSION_HEX >= 0x020500
    PyObject *obj = PyObject_GetAttrString(mod, attr);
#else
    PyObject *obj = PyObject_GetAttrString(mod, const_cast<char *>(attr));
#endif


I have current stable version of python installed aka dev-lang/python-2.4.4-r9. A short test program revealed that PY_VERSION_HEX is 0x020404f0 which is unfortunatly bigger than 0x020500.

Can someone, who has python version >= 2.5.0 installed, try to evaluate the PY_VERSION_HEX from his python installation?

Greets,
Elbar

Edit: Changing the soure code to PY_VERSION_HEX >= 0x02050000 enables a successfull(?) installation on my sys :lol:
Back to top
View user's profile Send private message
uberkermitt
Tux's lil' helper
Tux's lil' helper


Joined: 05 Mar 2005
Posts: 107

PostPosted: Sat May 17, 2008 10:25 pm    Post subject: Reply with quote

Elbar Thera wrote:
I have done some more research on this matter. Somewhere in the failing code there is a check for the used python version.

Code:
// Return the named attribute object from the named module.
PyObject *PyCustomWidgets::getModuleAttr(const char *module, const char *attr)
{
#if PY_VERSION_HEX >= 0x020500
    PyObject *mod = PyImport_ImportModule(module);
#else
    PyObject *mod = PyImport_ImportModule(const_cast<char *>(module));
#endif

    if (!mod)
    {
        PyErr_Print();
        return 0;
    }

#if PY_VERSION_HEX >= 0x020500
    PyObject *obj = PyObject_GetAttrString(mod, attr);
#else
    PyObject *obj = PyObject_GetAttrString(mod, const_cast<char *>(attr));
#endif


I have current stable version of python installed aka dev-lang/python-2.4.4-r9. A short test program revealed that PY_VERSION_HEX is 0x020404f0 which is unfortunatly bigger than 0x020500.

Can someone, who has python version >= 2.5.0 installed, try to evaluate the PY_VERSION_HEX from his python installation?

Greets,
Elbar

Edit: Changing the soure code to PY_VERSION_HEX >= 0x02050000 enables a successfull(?) installation on my sys :lol:


Which file did you edit, and where is it found?
Back to top
View user's profile Send private message
Elbar Thera
n00b
n00b


Joined: 15 May 2008
Posts: 60

PostPosted: Sun May 18, 2008 5:48 am    Post subject: Reply with quote

Hi there,

uberkermitt wrote:
Which file did you edit, and where is it found?


if you take a look at my first post, the citation of the build.log will reveal the answer. The first line (and the second to last line too) tells you the directory (on my system at last) and if you read on a bit you will find that the file in question is named "pluginloader.cpp".

You can make the change to it on site and use the ebuild command (compile, install and qmerge) to get it into the live system.

Greets,
Elbar
Back to top
View user's profile Send private message
albright
Advocate
Advocate


Joined: 16 Nov 2003
Posts: 2588
Location: Near Toronto

PostPosted: Sun May 18, 2008 1:26 pm    Post subject: Reply with quote

thanks for that - it works for me (I still get the error message
after ebuild ... qmerge but 4.4 is installed nonetheless), and
fusion-icon runs at least as well as before ...

maybe you should file a bug report with your fix :)
_________________
.... there is nothing - absolutely nothing - half so much worth
doing as simply messing about with Linux ...
(apologies to Kenneth Graeme)
Back to top
View user's profile Send private message
Impalatore-polacco
Apprentice
Apprentice


Joined: 15 Apr 2007
Posts: 203
Location: Campogalliano - bell'ITALIA

PostPosted: Sun May 18, 2008 3:43 pm    Post subject: Error emerging PYQt4-4.4 Reply with quote

When I try to emerge:
Code:
dev-python/PyQt4-4.4  USE="-debug -doc -examples"

I recive this errors:
Code:
g++ -c -pipe -fPIC -march=prescott -O2 -pipe -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -I. -I/var/tmp/portage/dev-python/PyQt4-4.4/work/PyQt-x11-gpl-4.4/qpy/QtDesigner -I/usr/include/python2.4 -I/usr/mkspecs/linux-g++ -I/usr/include/qt4/QtDesigner -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtCore -I/usr/include/qt4 -I/usr/include -o sipQtDesignerQDesignerFormEditorInterface.o sipQtDesignerQDesignerFormEditorInterface.cpp
g++ -c -pipe -fPIC -march=prescott -O2 -pipe -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -I. -I/var/tmp/portage/dev-python/PyQt4-4.4/work/PyQt-x11-gpl-4.4/qpy/QtDesigner -I/usr/include/python2.4 -I/usr/mkspecs/linux-g++ -I/usr/include/qt4/QtDesigner -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtCore -I/usr/include/qt4 -I/usr/include -o sipQtDesignerQAbstractFormBuilder.o sipQtDesignerQAbstractFormBuilder.cpp
g++ -c -pipe -fPIC -march=prescott -O2 -pipe -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -I. -I/var/tmp/portage/dev-python/PyQt4-4.4/work/PyQt-x11-gpl-4.4/qpy/QtDesigner -I/usr/include/python2.4 -I/usr/mkspecs/linux-g++ -I/usr/include/qt4/QtDesigner -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtCore -I/usr/include/qt4 -I/usr/include -o sipQtDesignerQDesignerActionEditorInterface.o sipQtDesignerQDesignerActionEditorInterface.cpp
g++ -shared -Wl,--version-script=QtDesigner.exp -o QtDesigner.so sipQtDesignercmodule.o sipQtDesignerQList.o sipQtDesignerQPyDesignerTaskMenuExtension.o sipQtDesignerQPyDesignerCustomWidgetCollectionPlugin.o sipQtDesignerQPyDesignerCustomWidgetPlugin.o sipQtDesignerQPyDesignerMemberSheetExtension.o sipQtDesignerQPyDesignerContainerExtension.o sipQtDesignerQPyDesignerPropertySheetExtension.o sipQtDesignerQDesignerTaskMenuExtension.o sipQtDesignerQExtensionManager.o sipQtDesignerQDesignerPropertySheetExtension.o sipQtDesignerQDesignerMemberSheetExtension.o sipQtDesignerQFormBuilder.o sipQtDesignerQAbstractExtensionManager.o sipQtDesignerQAbstractExtensionFactory.o sipQtDesignerQExtensionFactory.o sipQtDesignerQDesignerCustomWidgetCollectionInterface.o sipQtDesignerQDesignerCustomWidgetInterface.o sipQtDesignerQDesignerContainerExtension.o sipQtDesignerQDesignerWidgetBoxInterface.o sipQtDesignerQDesignerPropertyEditorInterface.o sipQtDesignerQDesignerObjectInspectorInterface.o sipQtDesignerQDesignerFormWindowManagerInterface.o sipQtDesignerQDesignerFormWindowCursorInterface.o sipQtDesignerQDesignerFormWindowInterfaceFeature.o sipQtDesignerQDesignerFormWindowInterface.o sipQtDesignerQDesignerFormEditorInterface.o sipQtDesignerQAbstractFormBuilder.o sipQtDesignerQDesignerActionEditorInterface.o -L/var/tmp/portage/dev-python/PyQt4-4.4/work/PyQt-x11-gpl-4.4/qpy/QtDesigner -L/usr/lib/qt4 -L/usr/lib -lqpydesigner -lQtDesigner -lQtGui -L/usr/lib/qt4 -L/usr/lib -lpng -lSM -lICE -lQtCore -L/usr/lib/qt4 -lz -lrt -lpthread -lXrender -lXrandr -lXfixes -lXcursor -lfreetype -lfontconfig -lXext -lX11 -lm -ldl -lQtCore -L/usr/lib/qt4 -lz -lm -lrt -lpthread -ldl -lXext -lX11 -lm -lpthread
make[1]: Leaving directory `/var/tmp/portage/dev-python/PyQt4-4.4/work/PyQt-x11-gpl-4.4/QtDesigner'
make[1]: Entering directory `/var/tmp/portage/dev-python/PyQt4-4.4/work/PyQt-x11-gpl-4.4/Qt'
gcc -c -pipe -fPIC -march=prescott -O2 -pipe -Wall -W -I. -I/usr/include/python2.4 -o sipQtcmodule.o sipQtcmodule.c
g++ -shared -Wl,--version-script=Qt.exp -o Qt.so sipQtcmodule.o
make[1]: Leaving directory `/var/tmp/portage/dev-python/PyQt4-4.4/work/PyQt-x11-gpl-4.4/Qt'
make[1]: Entering directory `/var/tmp/portage/dev-python/PyQt4-4.4/work/PyQt-x11-gpl-4.4/elementtree'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/var/tmp/portage/dev-python/PyQt4-4.4/work/PyQt-x11-gpl-4.4/elementtree'
make[1]: Entering directory `/var/tmp/portage/dev-python/PyQt4-4.4/work/PyQt-x11-gpl-4.4/pyuic'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/var/tmp/portage/dev-python/PyQt4-4.4/work/PyQt-x11-gpl-4.4/pyuic'
make[1]: Entering directory `/var/tmp/portage/dev-python/PyQt4-4.4/work/PyQt-x11-gpl-4.4/pylupdate'
g++ -c -pipe -march=prescott -O2 -pipe -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_CORE_LIB -DQT_GUI_LIB -DQT_XML_LIB -I. -I/usr/mkspecs/linux-g++ -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtXml -I/usr/include/qt4 -I/usr/include -o fetchtr.o fetchtr.cpp
g++ -c -pipe -march=prescott -O2 -pipe -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_CORE_LIB -DQT_GUI_LIB -DQT_XML_LIB -I. -I/usr/mkspecs/linux-g++ -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtXml -I/usr/include/qt4 -I/usr/include -o merge.o merge.cpp
g++ -c -pipe -march=prescott -O2 -pipe -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_CORE_LIB -DQT_GUI_LIB -DQT_XML_LIB -I. -I/usr/mkspecs/linux-g++ -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtXml -I/usr/include/qt4 -I/usr/include -o numberh.o numberh.cpp
g++ -c -pipe -march=prescott -O2 -pipe -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_CORE_LIB -DQT_GUI_LIB -DQT_XML_LIB -I. -I/usr/mkspecs/linux-g++ -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtXml -I/usr/include/qt4 -I/usr/include -o sametexth.o sametexth.cpp
g++ -c -pipe -march=prescott -O2 -pipe -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_CORE_LIB -DQT_GUI_LIB -DQT_XML_LIB -I. -I/usr/mkspecs/linux-g++ -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtXml -I/usr/include/qt4 -I/usr/include -o main.o main.cpp
g++ -c -pipe -march=prescott -O2 -pipe -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_CORE_LIB -DQT_GUI_LIB -DQT_XML_LIB -I. -I/usr/mkspecs/linux-g++ -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtXml -I/usr/include/qt4 -I/usr/include -o metatranslator.o metatranslator.cpp
g++ -c -pipe -march=prescott -O2 -pipe -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_CORE_LIB -DQT_GUI_LIB -DQT_XML_LIB -I. -I/usr/mkspecs/linux-g++ -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtXml -I/usr/include/qt4 -I/usr/include -o proparser.o proparser.cpp
g++ -c -pipe -march=prescott -O2 -pipe -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_CORE_LIB -DQT_GUI_LIB -DQT_XML_LIB -I. -I/usr/mkspecs/linux-g++ -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtXml -I/usr/include/qt4 -I/usr/include -o translator.o translator.cpp
g++ -c -pipe -march=prescott -O2 -pipe -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_CORE_LIB -DQT_GUI_LIB -DQT_XML_LIB -I. -I/usr/mkspecs/linux-g++ -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtXml -I/usr/include/qt4 -I/usr/include -o simtexth.o simtexth.cpp
/usr/bin/moc -o moc_translator.cpp translator.h
g++ -c -pipe -march=prescott -O2 -pipe -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_CORE_LIB -DQT_GUI_LIB -DQT_XML_LIB -I. -I/usr/mkspecs/linux-g++ -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtXml -I/usr/include/qt4 -I/usr/include -o moc_translator.o moc_translator.cpp
g++  -o pylupdate4 fetchtr.o merge.o numberh.o sametexth.o main.o metatranslator.o proparser.o translator.o simtexth.o moc_translator.o -L/usr/lib/qt4 -L/usr/lib -lQtCore -L/usr/lib/qt4 -lz -lm -lrt -lpthread -ldl -lQtGui -L/usr/lib/qt4 -L/usr/lib -lpng -lSM -lICE -lQtCore -L/usr/lib/qt4 -lz -lrt -lpthread -lXrender -lXrandr -lXfixes -lXcursor -lfreetype -lfontconfig -lXext -lX11 -lm -ldl -lQtXml -L/usr/lib/qt4 -lQtCore -L/usr/lib/qt4 -lz -lm -lrt -lpthread -ldl -lXext -lX11 -lm -lpthread
make[1]: Leaving directory `/var/tmp/portage/dev-python/PyQt4-4.4/work/PyQt-x11-gpl-4.4/pylupdate'
make[1]: Entering directory `/var/tmp/portage/dev-python/PyQt4-4.4/work/PyQt-x11-gpl-4.4/pyrcc'
g++ -c -pipe -march=prescott -O2 -pipe -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_CORE_LIB -DQT_XML_LIB -I. -I/usr/mkspecs/linux-g++ -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtXml -I/usr/include/qt4 -I/usr/include -o main.o main.cpp
g++ -c -pipe -march=prescott -O2 -pipe -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_CORE_LIB -DQT_XML_LIB -I. -I/usr/mkspecs/linux-g++ -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtXml -I/usr/include/qt4 -I/usr/include -o rcc.o rcc.cpp
g++  -o pyrcc4 main.o rcc.o -L/usr/lib/qt4 -L/usr/lib -lQtCore -L/usr/lib/qt4 -lz -lm -lrt -lpthread -ldl -lQtXml -L/usr/lib/qt4 -lQtCore -L/usr/lib/qt4 -lz -lm -lrt -lpthread -ldl -lXext -lX11 -lm -lpthread
make[1]: Leaving directory `/var/tmp/portage/dev-python/PyQt4-4.4/work/PyQt-x11-gpl-4.4/pyrcc'
make[1]: Entering directory `/var/tmp/portage/dev-python/PyQt4-4.4/work/PyQt-x11-gpl-4.4/designer'
g++ -c -pipe -march=prescott -O2 -pipe -D_REENTRANT -Wall -W -fPIC -DPYTHON_LIB=\"libpython2.4.so\" -DQT_NO_DEBUG -DQT_PLUGIN -DQT_SCRIPT_LIB -DQT_XML_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQDESIGNER_EXPORT_WIDGETS -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtDesigner -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtXml -I/usr/include/qt4/QtXml -I/usr/include/qt4/QtScript -I/usr/include/qt4/QtScript -I/usr/include/qt4 -I/usr/include/python2.4 -I. -I. -o pluginloader.o pluginloader.cpp
/usr/bin/moc -DPYTHON_LIB=\"libpython2.4.so\" -DQT_NO_DEBUG -DQT_PLUGIN -DQT_SCRIPT_LIB -DQT_XML_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQDESIGNER_EXPORT_WIDGETS -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtDesigner -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtXml -I/usr/include/qt4/QtXml -I/usr/include/qt4/QtScript -I/usr/include/qt4/QtScript -I/usr/include/qt4 -I/usr/include/python2.4 -I. -I. pluginloader.h -o moc_pluginloader.cpp
g++ -c -pipe -march=prescott -O2 -pipe -D_REENTRANT -Wall -W -fPIC -DPYTHON_LIB=\"libpython2.4.so\" -DQT_NO_DEBUG -DQT_PLUGIN -DQT_SCRIPT_LIB -DQT_XML_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQDESIGNER_EXPORT_WIDGETS -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtDesigner -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtXml -I/usr/include/qt4/QtXml -I/usr/include/qt4/QtScript -I/usr/include/qt4/QtScript -I/usr/include/qt4 -I/usr/include/python2.4 -I. -I. -o moc_pluginloader.o moc_pluginloader.cpp
pluginloader.cpp: In static member function ‘static PyObject* PyCustomWidgets::getModuleAttr(const char*, const char*)’:
pluginloader.cpp:284: error: invalid conversion from ‘const char*’ to ‘char*’
pluginloader.cpp:284: error:   initializing argument 1 of ‘PyObject* PyImport_ImportModule(char*)’
pluginloader.cpp:296: error: invalid conversion from ‘const char*’ to ‘char*’
pluginloader.cpp:296: error:   initializing argument 2 of ‘PyObject* PyObject_GetAttrString(PyObject*, char*)’
make[1]: *** [pluginloader.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory `/var/tmp/portage/dev-python/PyQt4-4.4/work/PyQt-x11-gpl-4.4/designer'
make: *** [all] Error 2
 *
 * ERROR: dev-python/PyQt4-4.4 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 2729:  Called die
 * The specific snippet of code:
 *       emake || die "emake failed"
 *  The die message:
 *   emake failed
 *
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/dev-python/PyQt4-4.4/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-python/PyQt4-4.4/temp/environment'.
 *

 * Messages for package dev-python/PyQt4-4.4:

 *
 * ERROR: dev-python/PyQt4-4.4 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 2729:  Called die
 * The specific snippet of code:
 *       emake || die "emake failed"
 *  The die message:
 *   emake failed
 *
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/dev-python/PyQt4-4.4/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-python/PyQt4-4.4/temp/environment'.
 *

Plz help me to solve this issue...
_________________
Ci stanno osservando, ci sono i pipistrelli....ne hai presa troppa bello, ne hai presa troppa
Back to top
View user's profile Send private message
nixnut
Bodhisattva
Bodhisattva


Joined: 09 Apr 2004
Posts: 10974
Location: the dutch mountains

PostPosted: Sun May 18, 2008 3:58 pm    Post subject: Reply with quote

merged above post here.

please search before posting.
_________________
Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered

talk is cheap. supply exceeds demand
Back to top
View user's profile Send private message
Impalatore-polacco
Apprentice
Apprentice


Joined: 15 Apr 2007
Posts: 203
Location: Campogalliano - bell'ITALIA

PostPosted: Sun May 18, 2008 5:38 pm    Post subject: Reply with quote

Sorry but I cannot locate the pluginloader.ccp, I've searched in this directories:
- /usr/include/python2.4
- /usr/include/qt4
and also I've tried to:
Code:
locate *pluginloader*

but without success.

Witch file I have to modify to get PyQt emerge successfully?
_________________
Ci stanno osservando, ci sono i pipistrelli....ne hai presa troppa bello, ne hai presa troppa
Back to top
View user's profile Send private message
albright
Advocate
Advocate


Joined: 16 Nov 2003
Posts: 2588
Location: Near Toronto

PostPosted: Sun May 18, 2008 7:56 pm    Post subject: Reply with quote

you must modify

Code:
/var/tmp/portage/dev-python/PyQt4-4.4/work/PyQt-x11-gpl-4.4/designer/pluginloader.cpp


just as Elbar Thera indicated. Then study how ebuild works :)
_________________
.... there is nothing - absolutely nothing - half so much worth
doing as simply messing about with Linux ...
(apologies to Kenneth Graeme)
Back to top
View user's profile Send private message
Impalatore-polacco
Apprentice
Apprentice


Joined: 15 Apr 2007
Posts: 203
Location: Campogalliano - bell'ITALIA

PostPosted: Sun May 18, 2008 9:00 pm    Post subject: Reply with quote

Yep...thanks, it has worked for me. :D
_________________
Ci stanno osservando, ci sono i pipistrelli....ne hai presa troppa bello, ne hai presa troppa
Back to top
View user's profile Send private message
uberkermitt
Tux's lil' helper
Tux's lil' helper


Joined: 05 Mar 2005
Posts: 107

PostPosted: Mon May 19, 2008 4:14 pm    Post subject: Reply with quote

PY_VERSION_HEX = 0x20404f0 on my system...

The trouble I am having is that per Elbar Thera's solution, my "pluginloader.cpp" already has this:

Code:
#if PY_VERSION_HEX >= 0x02050000


This seems to be the number he had to change to... Long story short, it is broke still..

Edit::

Ack! My coding skills are somewhat rusty; I was looking at the wrong line! I will report back if this works for me....

Edit #2::

Yes, it works well - I did not originally edit both affected lines.
Back to top
View user's profile Send private message
SHINODATT
n00b
n00b


Joined: 07 Jan 2006
Posts: 70
Location: Ontario, Canada

PostPosted: Wed May 21, 2008 2:34 pm    Post subject: Patch Reply with quote

There is now a revised ebuild and associated patch at the link below:

https://bugs.gentoo.org/show_bug.cgi?id=222435
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum