[PyKDE] Phil's RPM build still doesn't work (at least for me)

Alan Eldridge alane at geeksrus.net
Fri Oct 12 05:37:56 BST 2001


Same problem as I had with 2.5.

<log_excerpt>
make[1]: Entering directory `/home/alane/rpm/BUILD/PyQt-3.0pre2/qtcanvas'
make[2]: Entering directory `/home/alane/rpm/BUILD/PyQt-3.0pre2/qtcanvas'
/bin/sh ../mkinstalldirs /tmp/PyQt-3.0pre2-root/usr/lib/python2.2/site-packages
 /bin/sh ../libtool --mode=install /usr/bin/install -c  libqtcanvascmodule.la /tmp/PyQt-3.0pre2-root/usr/lib/python2.2/site-packages/libqtcanvascmodule.la
libtool: install: warning: relinking `libqtcanvascmodule.la'
cd /home/alane/rpm/BUILD/PyQt-3.0pre2/qtcanvas; /bin/sh ../libtool --mode=relink g++ -fno-exceptions -O2 -o libqtcanvascmodule.la -rpath /usr/lib/python2.2/site-packages -release 3.0 qtcanvascmodule.lo sipqtcanvasQCanvasText.lo sipqtcanvasQCanvasEllipse.lo sipqtcanvasQCanvasLine.lo sipqtcanvasQCanvasPolygon.lo sipqtcanvasQCanvasRectangle.lo sipqtcanvasQCanvasPolygonalItem.lo sipqtcanvasQCanvasSprite.lo sipqtcanvasQCanvasPixmapArray.lo sipqtcanvasQCanvasPixmap.lo sipqtcanvasQCanvasView.lo sipqtcanvasQCanvas.lo sipqtcanvasQCanvasItem.lo sipqtcanvasQCanvasItemList.lo -L../qt -lqtcmodule -L/usr/lib/qt-2.3.1/lib -lsip -lqt -L/usr/X11R6/lib -lSM -lICE -lX11
gcc -shared  qtcanvascmodule.lo sipqtcanvasQCanvasText.lo sipqtcanvasQCanvasEllipse.lo sipqtcanvasQCanvasLine.lo sipqtcanvasQCanvasPolygon.lo sipqtcanvasQCanvasRectangle.lo sipqtcanvasQCanvasPolygonalItem.lo sipqtcanvasQCanvasSprite.lo sipqtcanvasQCanvasPixmapArray.lo sipqtcanvasQCanvasPixmap.lo sipqtcanvasQCanvasView.lo sipqtcanvasQCanvas.lo sipqtcanvasQCanvasItem.lo sipqtcanvasQCanvasItemList.lo  -Wl,--rpath -Wl,/usr/lib/python2.2/site-packages  -L/usr/X11R6/lib -L/usr/lib -L/usr/lib/qt-2.3.1/lib -L/home/alane/rpm/BUILD/PyQt-3.0pre2/qt -L/usr/lib/python2.2/site-packages -lqtcmodule -lsip -lqt -lSM -lICE -lX11   -Wl,-soname -Wl,libqtcanvascmodule-3.0.so -o .libs/libqtcanvascmodule-3.0.so
/usr/bin/ld: cannot find -lqtcmodule
collect2: ld returned 1 exit status
libtool: install: error: relink `libqtcanvascmodule.la' with the above command before installing it
libtool: install: warning: remember to run `libtool --finish /usr/lib/python2.2/site-packages'
/bin/sh ../mkinstalldirs /tmp/PyQt-3.0pre2-root/usr/lib/python2.2/site-packages
 /usr/bin/install -c -m 644 qtcanvas.py /tmp/PyQt-3.0pre2-root/usr/lib/python2.2/site-packages/qtcanvas.py
make  install-data-hook
make[3]: Entering directory `/home/alane/rpm/BUILD/PyQt-3.0pre2/qtcanvas'
(cd /tmp; PYTHONPATH=/tmp/PyQt-3.0pre2-root/usr/lib/python2.2/site-packages:/tmp/PyQt-3.0pre2-root/usr/lib/python2.2/site-packages /usr/bin/python -O -c "import qtcanvas")
Traceback (most recent call last):
  File "<string>", line 1, in ?
  File "/tmp/PyQt-3.0pre2-root/usr/lib/python2.2/site-packages/qtcanvas.py", line 34, in ?
    import libqtcanvasc
ImportError: No module named libqtcanvasc
make[3]: *** [install-data-hook] Error 1
make[3]: Leaving directory `/home/alane/rpm/BUILD/PyQt-3.0pre2/qtcanvas'
make[2]: *** [install-data-am] Error 2
make[2]: Leaving directory `/home/alane/rpm/BUILD/PyQt-3.0pre2/qtcanvas'
make[1]: *** [install-am] Error 2
make[1]: Leaving directory `/home/alane/rpm/BUILD/PyQt-3.0pre2/qtcanvas'
make: *** [install-recursive] Error 1
error: Bad exit status from /home/alane/rpm/tmp/rpm-tmp.88163 (%install)
</log_excerpt>

The problem seems to be that we're not installing where we told configure we
were installing. This is a rather grotesque problem; it looks to be a
generic problem with builds that try to link things in the install, when the
install is to a directory that is NOT under $(prefix).

I suspect that changing the 'make install' line to use prefix= instead of 
DESTDIR= will solve the problem. I will followup with the patch if this
proves to be successful.

-- 
Alan Eldridge
from std_disclaimer import *




More information about the PyQt mailing list