Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 02-19-2010, 02:44 PM   #1
Megatron-UK
Connoisseur
Megatron-UK began at the beginning.
 
Posts: 76
Karma: 22
Join Date: Mar 2008
Location: uk
Device: Sony PRS505
Calibre 0.6.40 source - segfault after successful build on Linux

Hi, I can't seem to get 0.6.40 built from source to run on my x64 Debian Lenny system. The binary is not applicable as Debian 5 has GLIBC 2.9.

All dependencies listed on the Linux install page are present (all have been built and installed under /usr/local so as not to conflict with packaged OS versions).

Python 2.6.4
Qt 4.6.2
PyQt 4.7
ImageMagick 6.5.9-6
BeautifulSoup 3.0.8
Podofo 0.7.0
Mechanize 0.1.11
Sip 4.10
Poppler 0.12.3
Libxml 2.2.4
cssutils 0.9.7a2

The code builds cleanly but immediately segfaults on launching the gui:

Code:
elderthing:/usr/local/src/calibre# PODOFO_INC_DIR=/usr/local/include/podofo PODOFO_LIB_DIR=/usr/local/lib LDFLAGS=-L/usr/local/python26/lib python setup.py install

*
* Running build
*


####### Building extension pdfreflow #######
g++ -O3 -Wall -DNDEBUG -fno-strict-aliasing -pipe -fPIC -march=core2 -mtune=core2 -msse2 -msse3 -mssse3 -pipe -mfpmath=sse -malign-double -pthread -I/usr/local/python26/include/python2.6 -DPNG_SKIP_SETJMP_CHECK -I/usr/local/include/poppler -I/usr/local/include/ImageMagick -I/usr/include -c /extra/local/src/calibre/src/calibre/ebooks/pdf/main.cpp -o /extra/local/src/calibre/build/objects/pdfreflow/main.o
g++ -O3 -Wall -DNDEBUG -fno-strict-aliasing -pipe -fPIC -march=core2 -mtune=core2 -msse2 -msse3 -mssse3 -pipe -mfpmath=sse -malign-double -pthread -I/usr/local/python26/include/python2.6 -DPNG_SKIP_SETJMP_CHECK -I/usr/local/include/poppler -I/usr/local/include/ImageMagick -I/usr/include -c /extra/local/src/calibre/src/calibre/ebooks/pdf/links.cpp -o /extra/local/src/calibre/build/objects/pdfreflow/links.o
g++ -O3 -Wall -DNDEBUG -fno-strict-aliasing -pipe -fPIC -march=core2 -mtune=core2 -msse2 -msse3 -mssse3 -pipe -mfpmath=sse -malign-double -pthread -I/usr/local/python26/include/python2.6 -DPNG_SKIP_SETJMP_CHECK -I/usr/local/include/poppler -I/usr/local/include/ImageMagick -I/usr/include -c /extra/local/src/calibre/src/calibre/ebooks/pdf/reflow.cpp -o /extra/local/src/calibre/build/objects/pdfreflow/reflow.o
g++ -O3 -Wall -DNDEBUG -fno-strict-aliasing -pipe -fPIC -march=core2 -mtune=core2 -msse2 -msse3 -mssse3 -pipe -mfpmath=sse -malign-double -pthread -I/usr/local/python26/include/python2.6 -DPNG_SKIP_SETJMP_CHECK -I/usr/local/include/poppler -I/usr/local/include/ImageMagick -I/usr/include -c /extra/local/src/calibre/src/calibre/ebooks/pdf/images.cpp -o /extra/local/src/calibre/build/objects/pdfreflow/images.o
g++ -O3 -Wall -DNDEBUG -fno-strict-aliasing -pipe -fPIC -march=core2 -mtune=core2 -msse2 -msse3 -mssse3 -pipe -mfpmath=sse -malign-double -pthread -I/usr/local/python26/include/python2.6 -DPNG_SKIP_SETJMP_CHECK -I/usr/local/include/poppler -I/usr/local/include/ImageMagick -I/usr/include -c /extra/local/src/calibre/src/calibre/ebooks/pdf/fonts.cpp -o /extra/local/src/calibre/build/objects/pdfreflow/fonts.o
Linking pdfreflow


 g++ /extra/local/src/calibre/build/objects/pdfreflow/main.o /extra/local/src/calibre/build/objects/pdfreflow/links.o /extra/local/src/calibre/build/objects/pdfreflow/reflow.o /extra/local/src/calibre/build/objects/pdfreflow/images.o /extra/local/src/calibre/build/objects/pdfreflow/fonts.o -o /extra/local/src/calibre/src/calibre/plugins/pdfreflow.so -Wall -L/usr/local/python26/lib -shared -lpython2.6 -L/usr/lib -lpoppler -lMagickWand -lMagickCore -lpng 



####### Building extension lzx #######
gcc -O3 -Wall -DNDEBUG -fno-strict-aliasing -pipe -fPIC -march=core2 -mtune=core2 -msse2 -msse3 -mssse3 -pipe -mfpmath=sse -malign-double -pthread -I/usr/local/python26/include/python2.6 -I/extra/local/src/calibre/src/calibre/utils/lzx -c /extra/local/src/calibre/src/calibre/utils/lzx/compressor.c -o /extra/local/src/calibre/build/objects/lzx/compressor.o
gcc -O3 -Wall -DNDEBUG -fno-strict-aliasing -pipe -fPIC -march=core2 -mtune=core2 -msse2 -msse3 -mssse3 -pipe -mfpmath=sse -malign-double -pthread -I/usr/local/python26/include/python2.6 -I/extra/local/src/calibre/src/calibre/utils/lzx -c /extra/local/src/calibre/src/calibre/utils/lzx/lzxc.c -o /extra/local/src/calibre/build/objects/lzx/lzxc.o
gcc -O3 -Wall -DNDEBUG -fno-strict-aliasing -pipe -fPIC -march=core2 -mtune=core2 -msse2 -msse3 -mssse3 -pipe -mfpmath=sse -malign-double -pthread -I/usr/local/python26/include/python2.6 -I/extra/local/src/calibre/src/calibre/utils/lzx -c /extra/local/src/calibre/src/calibre/utils/lzx/lzxd.c -o /extra/local/src/calibre/build/objects/lzx/lzxd.o
gcc -O3 -Wall -DNDEBUG -fno-strict-aliasing -pipe -fPIC -march=core2 -mtune=core2 -msse2 -msse3 -mssse3 -pipe -mfpmath=sse -malign-double -pthread -I/usr/local/python26/include/python2.6 -I/extra/local/src/calibre/src/calibre/utils/lzx -c /extra/local/src/calibre/src/calibre/utils/lzx/lzxmodule.c -o /extra/local/src/calibre/build/objects/lzx/lzxmodule.o
gcc -O3 -Wall -DNDEBUG -fno-strict-aliasing -pipe -fPIC -march=core2 -mtune=core2 -msse2 -msse3 -mssse3 -pipe -mfpmath=sse -malign-double -pthread -I/usr/local/python26/include/python2.6 -I/extra/local/src/calibre/src/calibre/utils/lzx -c /extra/local/src/calibre/src/calibre/utils/lzx/lzc.c -o /extra/local/src/calibre/build/objects/lzx/lzc.o
Linking lzx


 gcc /extra/local/src/calibre/build/objects/lzx/compressor.o /extra/local/src/calibre/build/objects/lzx/lzxc.o /extra/local/src/calibre/build/objects/lzx/lzxd.o /extra/local/src/calibre/build/objects/lzx/lzxmodule.o /extra/local/src/calibre/build/objects/lzx/lzc.o -o /extra/local/src/calibre/src/calibre/plugins/lzx.so -Wall -L/usr/local/python26/lib -shared -lpython2.6 



####### Building extension fontconfig #######
gcc -O3 -Wall -DNDEBUG -fno-strict-aliasing -pipe -fPIC -march=core2 -mtune=core2 -msse2 -msse3 -mssse3 -pipe -mfpmath=sse -malign-double -pthread -I/usr/local/python26/include/python2.6 -I/usr/include/fontconfig -c /extra/local/src/calibre/src/calibre/utils/fonts/fontconfig.c -o /extra/local/src/calibre/build/objects/fontconfig/fontconfig.o
Linking fontconfig


 gcc /extra/local/src/calibre/build/objects/fontconfig/fontconfig.o -o /extra/local/src/calibre/src/calibre/plugins/fontconfig.so -Wall -L/usr/local/python26/lib -shared -lpython2.6 -L/usr/lib -lfontconfig 



####### Building extension msdes #######
gcc -O3 -Wall -DNDEBUG -fno-strict-aliasing -pipe -fPIC -march=core2 -mtune=core2 -msse2 -msse3 -mssse3 -pipe -mfpmath=sse -malign-double -pthread -I/usr/local/python26/include/python2.6 -I/extra/local/src/calibre/src/calibre/utils/msdes -c /extra/local/src/calibre/src/calibre/utils/msdes/des.c -o /extra/local/src/calibre/build/objects/msdes/des.o
gcc -O3 -Wall -DNDEBUG -fno-strict-aliasing -pipe -fPIC -march=core2 -mtune=core2 -msse2 -msse3 -mssse3 -pipe -mfpmath=sse -malign-double -pthread -I/usr/local/python26/include/python2.6 -I/extra/local/src/calibre/src/calibre/utils/msdes -c /extra/local/src/calibre/src/calibre/utils/msdes/msdesmodule.c -o /extra/local/src/calibre/build/objects/msdes/msdesmodule.o
Linking msdes


 gcc /extra/local/src/calibre/build/objects/msdes/des.o /extra/local/src/calibre/build/objects/msdes/msdesmodule.o -o /extra/local/src/calibre/src/calibre/plugins/msdes.so -Wall -L/usr/local/python26/lib -shared -lpython2.6 



####### Building extension cPalmdoc #######
gcc -O3 -Wall -DNDEBUG -fno-strict-aliasing -pipe -fPIC -march=core2 -mtune=core2 -msse2 -msse3 -mssse3 -pipe -mfpmath=sse -malign-double -pthread -I/usr/local/python26/include/python2.6 -c /extra/local/src/calibre/src/calibre/ebooks/compression/palmdoc.c -o /extra/local/src/calibre/build/objects/cPalmdoc/palmdoc.o
Linking cPalmdoc


 gcc /extra/local/src/calibre/build/objects/cPalmdoc/palmdoc.o -o /extra/local/src/calibre/src/calibre/plugins/cPalmdoc.so -Wall -L/usr/local/python26/lib -shared -lpython2.6 



####### Building extension podofo #######
g++ -O3 -Wall -DNDEBUG -fno-strict-aliasing -pipe -fPIC -march=core2 -mtune=core2 -msse2 -msse3 -mssse3 -pipe -mfpmath=sse -malign-double -pthread -I/usr/local/python26/include/python2.6 -I/usr/local/include/podofo -c /extra/local/src/calibre/src/calibre/utils/podofo/podofo.cpp -o /extra/local/src/calibre/build/objects/podofo/podofo.o
Linking podofo


 g++ /extra/local/src/calibre/build/objects/podofo/podofo.o -o /extra/local/src/calibre/src/calibre/plugins/podofo.so -Wall -L/usr/local/python26/lib -shared -lpython2.6 -L/usr/local/lib -lpodofo 



####### Building extension pictureflow #######
g++ -c -pipe -O2 -Wall -W -D_REENTRANT -fPIC -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtGui -I/usr/include/qt4 -I. -I. -o pictureflow.o ../../../../src/calibre/gui2/pictureflow/pictureflow.cpp
../../../../src/calibre/gui2/pictureflow/pictureflow.cpp:1382: warning: unused parameter ‘index’
../../../../src/calibre/gui2/pictureflow/pictureflow.cpp:1383: warning: unused parameter ‘index’
/usr/bin/moc-qt4 -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtGui -I/usr/include/qt4 -I. -I. ../../../../src/calibre/gui2/pictureflow/pictureflow.h -o moc_pictureflow.cpp
g++ -c -pipe -O2 -Wall -W -D_REENTRANT -fPIC -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtGui -I/usr/include/qt4 -I. -I. -o moc_pictureflow.o moc_pictureflow.cpp
rm -f libpictureflow.so.1.0.0 libpictureflow.so libpictureflow.so.1 libpictureflow.so.1.0
g++ -shared -Wl,-soname,libpictureflow.so.1 -o libpictureflow.so.1.0.0 pictureflow.o moc_pictureflow.o   -L/usr/lib -lQtGui -lQtCore -lpthread 
ln -s libpictureflow.so.1.0.0 libpictureflow.so
ln -s libpictureflow.so.1.0.0 libpictureflow.so.1
ln -s libpictureflow.so.1.0.0 libpictureflow.so.1.0
/usr/local/python26/bin/sip -w -c /extra/local/src/calibre/build/pyqt/pictureflow -b /extra/local/src/calibre/build/pyqt/pictureflow/pictureflow.sip.sbf -I/usr/local/python26/share/sip/PyQt4 -x VendorID -t WS_X11 -x PyQt_NoPrintRangeBug -t Qt_4_6_0 -x Py_v3 -g /extra/local/src/calibre/src/calibre/gui2/pictureflow/pictureflow.sip
g++ -c -pipe -fPIC -O2 -Wall -W -D_REENTRANT -DNDEBUG -DQT_NO_DEBUG -DQT_CORE_LIB -DQT_GUI_LIB -I. -I/extra/local/src/calibre/src/calibre/gui2/pictureflow -I/usr/local/python26/include/python2.6 -I/usr/local/qt4/mkspecs/default -I/usr/local/qt4/include/QtCore -I/usr/local/qt4/include/QtGui -I/usr/local/qt4/include -I/usr/X11R6/include -o sippictureflowcmodule.o sippictureflowcmodule.cpp
g++ -c -pipe -fPIC -O2 -Wall -W -D_REENTRANT -DNDEBUG -DQT_NO_DEBUG -DQT_CORE_LIB -DQT_GUI_LIB -I. -I/extra/local/src/calibre/src/calibre/gui2/pictureflow -I/usr/local/python26/include/python2.6 -I/usr/local/qt4/mkspecs/default -I/usr/local/qt4/include/QtCore -I/usr/local/qt4/include/QtGui -I/usr/local/qt4/include -I/usr/X11R6/include -o sippictureflowPictureFlow.o sippictureflowPictureFlow.cpp
g++ -c -pipe -fPIC -O2 -Wall -W -D_REENTRANT -DNDEBUG -DQT_NO_DEBUG -DQT_CORE_LIB -DQT_GUI_LIB -I. -I/extra/local/src/calibre/src/calibre/gui2/pictureflow -I/usr/local/python26/include/python2.6 -I/usr/local/qt4/mkspecs/default -I/usr/local/qt4/include/QtCore -I/usr/local/qt4/include/QtGui -I/usr/local/qt4/include -I/usr/X11R6/include -o sippictureflowFlowImages.o sippictureflowFlowImages.cpp
g++ /extra/local/src/calibre/build/pyqt/pictureflow/qt/pictureflow.o /extra/local/src/calibre/build/pyqt/pictureflow/qt/moc_pictureflow.o -shared -Wl,-O1 -Wl,-rpath,/usr/local/qt4/lib -Wl,--version-script=pictureflow.exp -o pictureflow.so sippictureflowcmodule.o sippictureflowPictureFlow.o sippictureflowFlowImages.o -L/usr/local/qt4/lib -L/usr/X11R6/lib64 -lQtCore -L/usr/local/qt4/lib -lpthread -lQtGui -L/usr/local/qt4/lib -L/usr/X11R6/lib64 -lQtCore -L/usr/local/qt4/lib -lpthread -lXext -lX11 -lm -lpthread

####### Building extension progress_indicator #######
g++ -c -pipe -O2 -Wall -W -D_REENTRANT -fPIC -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtGui -I/usr/include/qt4 -I. -I. -o QProgressIndicator.o ../../../../src/calibre/gui2/progress_indicator/QProgressIndicator.cpp
../../../../src/calibre/gui2/progress_indicator/QProgressIndicator.h: In constructor ‘QProgressIndicator::QProgressIndicator(QWidget*, int)’:
../../../../src/calibre/gui2/progress_indicator/QProgressIndicator.h:90: warning: ‘QProgressIndicator::m_displayedWhenStopped’ will be initialized after
../../../../src/calibre/gui2/progress_indicator/QProgressIndicator.h:89: warning:   ‘int QProgressIndicator::m_displaySize’
../../../../src/calibre/gui2/progress_indicator/QProgressIndicator.cpp:5: warning:   when initialized here
/usr/bin/moc-qt4 -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtGui -I/usr/include/qt4 -I. -I. ../../../../src/calibre/gui2/progress_indicator/QProgressIndicator.h -o moc_QProgressIndicator.cpp
g++ -c -pipe -O2 -Wall -W -D_REENTRANT -fPIC -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtGui -I/usr/include/qt4 -I. -I. -o moc_QProgressIndicator.o moc_QProgressIndicator.cpp
rm -f libprogress_indicator.so.1.0.0 libprogress_indicator.so libprogress_indicator.so.1 libprogress_indicator.so.1.0
g++ -shared -Wl,-soname,libprogress_indicator.so.1 -o libprogress_indicator.so.1.0.0 QProgressIndicator.o moc_QProgressIndicator.o   -L/usr/lib -lQtGui -lQtCore -lpthread 
ln -s libprogress_indicator.so.1.0.0 libprogress_indicator.so
ln -s libprogress_indicator.so.1.0.0 libprogress_indicator.so.1
ln -s libprogress_indicator.so.1.0.0 libprogress_indicator.so.1.0
/usr/local/python26/bin/sip -w -c /extra/local/src/calibre/build/pyqt/progress_indicator -b /extra/local/src/calibre/build/pyqt/progress_indicator/QProgressIndicator.sip.sbf -I/usr/local/python26/share/sip/PyQt4 -x VendorID -t WS_X11 -x PyQt_NoPrintRangeBug -t Qt_4_6_0 -x Py_v3 -g /extra/local/src/calibre/src/calibre/gui2/progress_indicator/QProgressIndicator.sip
g++ -c -pipe -fPIC -O2 -Wall -W -D_REENTRANT -DNDEBUG -DQT_NO_DEBUG -DQT_CORE_LIB -DQT_GUI_LIB -I. -I/extra/local/src/calibre/src/calibre/gui2/progress_indicator -I/usr/local/python26/include/python2.6 -I/usr/local/qt4/mkspecs/default -I/usr/local/qt4/include/QtCore -I/usr/local/qt4/include/QtGui -I/usr/local/qt4/include -I/usr/X11R6/include -o sipprogress_indicatorcmodule.o sipprogress_indicatorcmodule.cpp
g++ -c -pipe -fPIC -O2 -Wall -W -D_REENTRANT -DNDEBUG -DQT_NO_DEBUG -DQT_CORE_LIB -DQT_GUI_LIB -I. -I/extra/local/src/calibre/src/calibre/gui2/progress_indicator -I/usr/local/python26/include/python2.6 -I/usr/local/qt4/mkspecs/default -I/usr/local/qt4/include/QtCore -I/usr/local/qt4/include/QtGui -I/usr/local/qt4/include -I/usr/X11R6/include -o sipprogress_indicatorQProgressIndicator.o sipprogress_indicatorQProgressIndicator.cpp
g++ /extra/local/src/calibre/build/pyqt/progress_indicator/qt/moc_QProgressIndicator.o /extra/local/src/calibre/build/pyqt/progress_indicator/qt/QProgressIndicator.o -shared -Wl,-O1 -Wl,-rpath,/usr/local/qt4/lib -Wl,--version-script=progress_indicator.exp -o progress_indicator.so sipprogress_indicatorcmodule.o sipprogress_indicatorQProgressIndicator.o -L/usr/local/qt4/lib -L/usr/X11R6/lib64 -lQtCore -L/usr/local/qt4/lib -lpthread -lQtGui -L/usr/local/qt4/lib -L/usr/X11R6/lib64 -lQtCore -L/usr/local/qt4/lib -lpthread -lXext -lX11 -lm -lpthread

*
* Running gui
*

Segmentation fault
elderthing:/usr/local/src/calibre#
CFLAGS are not the issue - unsetting them makes no difference to the outcome.

If I run python setup.py install a second time, it will install Calibre to /usr/local/python26/lib/calibre as expected, but the Calibre gui just segfaults every single time.

Calibre-debug offers no output.

A stack trace on calibre shows the following error coming from src/calibre/gui2/library.py:

Quote:
open("/usr/local/python26/lib/calibre/calibre/gui2/library.py", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=43717, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fc12e169000
read(3, "from calibre.ebooks.metadata impo"..., 4096) = 4096
write(2, " "..., 4 ) = 4
write(2, "COLOR = QColor(\"blue\")\n"..., 26COLOR = QColor("blue")
) = 26
close(3) = 0
munmap(0x7fc12e169000, 4096) = 0
write(2, "TypeError"..., 9TypeError) = 9
write(2, ": "..., 2: ) = 2
write(2, "unable to convert a Python 'str' "..., 67unable to convert a Python 'str' object to a C++ 'QString' instance) = 67
write(2, "\n"..., 1
) = 1
rt_sigaction(SIGINT, {SIG_DFL}, {0x7fc12db4bda0, [], SA_RESTORER, 0x7fc12d7fba80}, 8) = 0
getpid() = 10050
munmap(0x414fc000, 8192) = 0
close(12) = 0
munmap(0x7fc12e159000, 4096) = 0
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV +++
I have experimented with changing the way that line is define in src/calibre/gui2/library.py from:

Quote:
COLOR = QColor("blue")
to...

Quote:
COLOR = QColor(QString("blue"))
... adding the import of QString from QTCore of course. This remove the Python 'str' to C++ 'QString' error, but still leaves me with a segfault and no further indication as to what causes it.

At this point if I run calibre again under strace I get two different traces, depending on whether running as root, or as a normal user:

Normal user last few lines:
Quote:
open("/usr/local/python26/share/calibre/images/mimetypes/zero.svg", O_RDONLY|O_CLOEXEC) = 20
fcntl(20, F_SETFD, FD_CLOEXEC) = 0
fstat(20, {st_mode=S_IFREG|0644, st_size=7420, ...}) = 0
fstat(20, {st_mode=S_IFREG|0644, st_size=7420, ...}) = 0
read(20, "<?xml version=\"1.0\" encoding=\"UTF"..., 16384) = 7420
read(20, ""..., 8964) = 0
read(20, ""..., 772) = 0
read(20, ""..., 16384) = 0
read(20, ""..., 8192) = 0
fstat(20, {st_mode=S_IFREG|0644, st_size=7420, ...}) = 0
close(20) = 0
open("/usr/local/python26/share/calibre/images/mimetypes/zero.svg", O_RDONLY|O_CLOEXEC) = 20
fcntl(20, F_SETFD, FD_CLOEXEC) = 0
fstat(20, {st_mode=S_IFREG|0644, st_size=7420, ...}) = 0
fstat(20, {st_mode=S_IFREG|0644, st_size=7420, ...}) = 0
read(20, "<?xml version=\"1.0\" encoding=\"UTF"..., 16384) = 7420
read(20, ""..., 8964) = 0
read(20, ""..., 772) = 0
read(20, ""..., 16384) = 0
read(20, ""..., 8192) = 0
fstat(20, {st_mode=S_IFREG|0644, st_size=7420, ...}) = 0
close(20) = 0
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV +++
Last few lines of stack trace as root:
Quote:
read(20, "dead_diaeresis> <Greek_iota> \t: \""..., 4096) = 4096
read(20, " U1FE1 # GREEK SMALL LETTER UPSI"..., 4096) = 4096
read(20, " \t: \"\341\277\254\" U1FEC # GREEK CAPI"..., 4096) = 4096
read(20, "\"\341\277\270\" U1FF8 # GREEK CAPITAL LET"..., 4096) = 4096
read(20, "SCRIPT LATIN SMALL LETTER N\n<Mult"..., 4096) = 4096
read(20, "ESIS\n<Multi_key> <underbar> <pare"..., 4096) = 4096
read(20, "ti_key> <U227C> <U0338> \t: \"\342\213\240\" "..., 4096) = 4096
read(20, " \"\342\221\255\" U246D # CIRCLED NUMBER F"..., 4096) = 4096
read(20, "8 # CIRCLED LATIN CAPITAL LETTER "..., 4096) = 4096
read(20, "\201\222\" U3052 # HIRAGANA LETTER GE\n"..., 4096) = 4096
read(20, " U3193 # IDEOGRAPHIC ANNOTATION T"..., 4096) = 4096
read(20, "key> <parenleft> <2> <4> <parenri"..., 4096) = 4096
read(20, "renleft> <KP_3> <KP_1> <parenrigh"..., 4096) = 4096
read(20, "3279 # CIRCLED HANGUL THIEUTH A\n<"..., 4096) = 4096
read(20, "OGRAPH STUDY\n<Multi_key> <parenle"..., 4096) = 4096
read(20, "\n<Multi_key> <parenleft> <4> <KP_"..., 4096) = 4096
read(20, "U\n<Multi_key> <parenleft> <kana_N"..., 4096) = 4096
read(20, "B39 # HEBREW LETTER YOD WITH DAGE"..., 4096) = 3348
read(20, ""..., 4096) = 0
close(20) = 0
munmap(0x7fe9710c7000, 4096) = 0
select(8, [7], [7], NULL, NULL) = 1 (out [7])
writev(7, [{"\2\2\4\0>\1\0\0\0\10\0\0000@@\0"..., 16}], 1) = 16
read(7, 0x39ce4d4, 4096) = -1 EAGAIN (Resource temporarily unavailable)
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV +++
At this point I'm all out of ideas and hoping that someone with a bit more knowledge of the internals of Calibre will know what is going on (for example... why the initial Python 'str' to 'QString' error when the original code is not doing explicit type casting???).
Megatron-UK is offline   Reply With Quote
Old 02-19-2010, 03:26 PM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 26,340
Karma: 5382313
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Are you sure calibre is picking up the same version of PyQt you built against when it's running?
kovidgoyal is offline   Reply With Quote
 
Advertisement
Old 02-19-2010, 03:44 PM   #3
R0B_IX
Enthusiast
R0B_IX began at the beginning.
 
Posts: 32
Karma: 48
Join Date: Sep 2009
Device: PRS-300
I actually had the exact same problem and I wish I knew what fixed it, but I'm not sure. I use gentoo and typically make my own ebuild for calibre since the repository is sometimes slow at updating to the latest versions. Well, with version 40 it gave me the same error and I couldn't think of any obvious solutions. By the time 40 appeared in the official tree, however, (ebuild was basically identical to mine, so nothing new there), it compiled just fine. During that time, there were a few python and PyQt updates, so the solution may be to just reinstall the latest versions of those and rebuild.

I'll try to trace back what was installed and if I come up with an exact solution, then I'll let you know.

[Edit] I should point out that this system is an x86 build.

Last edited by R0B_IX; 02-19-2010 at 03:47 PM. Reason: Added more distro information
R0B_IX is offline   Reply With Quote
Old 02-19-2010, 03:44 PM   #4
Megatron-UK
Connoisseur
Megatron-UK began at the beginning.
 
Posts: 76
Karma: 22
Join Date: Mar 2008
Location: uk
Device: Sony PRS505
Definitely:

Code:
megatron@elderthing:~ $ which python
/usr/local/python26/bin/python
megatron@elderthing:~ $ python -v
.... 
snip all the standard imports
....
Python 2.6.4 (r264:75706, Jan 30 2010, 10:07:56) 
[GCC 4.3.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
import readline # builtin
>>> import PyQt4
import PyQt4 # directory /usr/local/python26/lib/python2.6/site-packages/PyQt4
# /usr/local/python26/lib/python2.6/site-packages/PyQt4/__init__.pyc matches /usr/local/python26/lib/python2.6/site-packages/PyQt4/__init__.py
import PyQt4 # precompiled from /usr/local/python26/lib/python2.6/site-packages/PyQt4/__init__.pyc
>>>
And PyQt4 is linked against my version of Qt (4.6.2) under /usr/local, not the system version (4.3, so doesn't work when building Calibre):

Code:
megatron@elderthing:~ $ ldd /usr/local/python26/lib/python2.6/site-packages/PyQt4/QtCore.so 
	linux-vdso.so.1 =>  (0x00007fff92ffe000)
	libQtCore.so.4 => /usr/local/qt4/lib/libQtCore.so.4 (0x00007fdc8a602000)
	libpthread.so.0 => /lib/libpthread.so.0 (0x00007fdc8a3bf000)
	libXext.so.6 => /usr/lib/libXext.so.6 (0x00007fdc8a1ad000)
	libX11.so.6 => /usr/lib/libX11.so.6 (0x00007fdc89ea1000)
	libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x00007fdc89b95000)
	libm.so.6 => /lib/libm.so.6 (0x00007fdc89911000)
	libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x00007fdc896fa000)
	libc.so.6 => /lib/libc.so.6 (0x00007fdc893a7000)
	libz.so.1 => /usr/lib/libz.so.1 (0x00007fdc8918f000)
	libdl.so.2 => /lib/libdl.so.2 (0x00007fdc88f8b000)
	libgthread-2.0.so.0 => /usr/lib/libgthread-2.0.so.0 (0x00007fdc88d87000)
	librt.so.1 => /lib/librt.so.1 (0x00007fdc88b7d000)
	libglib-2.0.so.0 => /usr/lib/libglib-2.0.so.0 (0x00007fdc888ba000)
	/lib64/ld-linux-x86-64.so.2 (0x00007fdc8aee7000)
	libXau.so.6 => /usr/lib/libXau.so.6 (0x00007fdc886b8000)
	libxcb-xlib.so.0 => /usr/lib/libxcb-xlib.so.0 (0x00007fdc884b6000)
	libxcb.so.1 => /usr/lib/libxcb.so.1 (0x00007fdc8829a000)
	libpcre.so.3 => /usr/lib/libpcre.so.3 (0x00007fdc88071000)
	libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0x00007fdc87e6c000
)
Megatron-UK is offline   Reply With Quote
Old 02-19-2010, 09:25 PM   #5
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 26,340
Karma: 5382313
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Certainly seems like there's something screwy in the PyQt setup.

Run
Code:
calibre-debug -c "import sip; print 'SIP', sip.SIP_VERSION_STR; from PyQt4 import Qt; print 'Qt', Qt.PYQT_VERSION_STR"
kovidgoyal is offline   Reply With Quote
Old 02-20-2010, 04:33 AM   #6
Megatron-UK
Connoisseur
Megatron-UK began at the beginning.
 
Posts: 76
Karma: 22
Join Date: Mar 2008
Location: uk
Device: Sony PRS505
Hi Kovid, output from that is:

Code:
megatron@elderthing:~ $ calibre-debug -c "import sip; print 'SIP', sip.SIP_VERSION_STR; from PyQt4 import Qt; print 'Qt', Qt.PYQT_VERSION_STR"
SIP 4.10
Qt 4.7
Segmentation fault
megatron@elderthing:~ $ calibre-debug --version
calibre-debug (calibre 0.6.40)
Segmentation fault
megatron@elderthing:~ $ which calibre-debug
/usr/local/python26/bin/calibre-debug
megatron@elderthing:~ $
Megatron-UK is offline   Reply With Quote
Old 02-20-2010, 05:17 AM   #7
Megatron-UK
Connoisseur
Megatron-UK began at the beginning.
 
Posts: 76
Karma: 22
Join Date: Mar 2008
Location: uk
Device: Sony PRS505
I've just tried the very latest 0.6.42 version with similar results, the QString error is back as I have not added the conversion, and I also see an error about not being able to import a module called fontconfig:

Code:
elderthing:/usr/local/src/calibre-0.6.42# PODOFO_INC_DIR=/usr/local/include/podofo PODOFO_LIB_DIR=/usr/local/lib LDFLAGS=-L/usr/local/python26/lib python setup.py install

*
* Running build
*


####### Building extension pdfreflow #######
g++ -O3 -Wall -DNDEBUG -fno-strict-aliasing -pipe -fPIC -march=core2 -mtune=core2 -msse2 -msse3 -mssse3 -pipe -mfpmath=sse -malign-double -pthread -I/usr/local/python26/include/python2.6 -DPNG_SKIP_SETJMP_CHECK -I/usr/local/include/poppler -I/usr/local/include/ImageMagick -I/usr/include -c /extra/local/src/calibre-0.6.42/src/calibre/ebooks/pdf/links.cpp -o /extra/local/src/calibre-0.6.42/build/objects/pdfreflow/links.o
g++ -O3 -Wall -DNDEBUG -fno-strict-aliasing -pipe -fPIC -march=core2 -mtune=core2 -msse2 -msse3 -mssse3 -pipe -mfpmath=sse -malign-double -pthread -I/usr/local/python26/include/python2.6 -DPNG_SKIP_SETJMP_CHECK -I/usr/local/include/poppler -I/usr/local/include/ImageMagick -I/usr/include -c /extra/local/src/calibre-0.6.42/src/calibre/ebooks/pdf/fonts.cpp -o /extra/local/src/calibre-0.6.42/build/objects/pdfreflow/fonts.o
g++ -O3 -Wall -DNDEBUG -fno-strict-aliasing -pipe -fPIC -march=core2 -mtune=core2 -msse2 -msse3 -mssse3 -pipe -mfpmath=sse -malign-double -pthread -I/usr/local/python26/include/python2.6 -DPNG_SKIP_SETJMP_CHECK -I/usr/local/include/poppler -I/usr/local/include/ImageMagick -I/usr/include -c /extra/local/src/calibre-0.6.42/src/calibre/ebooks/pdf/main.cpp -o /extra/local/src/calibre-0.6.42/build/objects/pdfreflow/main.o
g++ -O3 -Wall -DNDEBUG -fno-strict-aliasing -pipe -fPIC -march=core2 -mtune=core2 -msse2 -msse3 -mssse3 -pipe -mfpmath=sse -malign-double -pthread -I/usr/local/python26/include/python2.6 -DPNG_SKIP_SETJMP_CHECK -I/usr/local/include/poppler -I/usr/local/include/ImageMagick -I/usr/include -c /extra/local/src/calibre-0.6.42/src/calibre/ebooks/pdf/images.cpp -o /extra/local/src/calibre-0.6.42/build/objects/pdfreflow/images.o
g++ -O3 -Wall -DNDEBUG -fno-strict-aliasing -pipe -fPIC -march=core2 -mtune=core2 -msse2 -msse3 -mssse3 -pipe -mfpmath=sse -malign-double -pthread -I/usr/local/python26/include/python2.6 -DPNG_SKIP_SETJMP_CHECK -I/usr/local/include/poppler -I/usr/local/include/ImageMagick -I/usr/include -c /extra/local/src/calibre-0.6.42/src/calibre/ebooks/pdf/reflow.cpp -o /extra/local/src/calibre-0.6.42/build/objects/pdfreflow/reflow.o
Linking pdfreflow


 g++ /extra/local/src/calibre-0.6.42/build/objects/pdfreflow/links.o /extra/local/src/calibre-0.6.42/build/objects/pdfreflow/fonts.o /extra/local/src/calibre-0.6.42/build/objects/pdfreflow/main.o /extra/local/src/calibre-0.6.42/build/objects/pdfreflow/images.o /extra/local/src/calibre-0.6.42/build/objects/pdfreflow/reflow.o -o /extra/local/src/calibre-0.6.42/src/calibre/plugins/pdfreflow.so -Wall -L/usr/local/python26/lib -shared -lpython2.6 -L/usr/lib -lpoppler -lMagickWand -lMagickCore -lpng 



####### Building extension lzx #######
gcc -O3 -Wall -DNDEBUG -fno-strict-aliasing -pipe -fPIC -march=core2 -mtune=core2 -msse2 -msse3 -mssse3 -pipe -mfpmath=sse -malign-double -pthread -I/usr/local/python26/include/python2.6 -I/extra/local/src/calibre-0.6.42/src/calibre/utils/lzx -c /extra/local/src/calibre-0.6.42/src/calibre/utils/lzx/lzxc.c -o /extra/local/src/calibre-0.6.42/build/objects/lzx/lzxc.o
gcc -O3 -Wall -DNDEBUG -fno-strict-aliasing -pipe -fPIC -march=core2 -mtune=core2 -msse2 -msse3 -mssse3 -pipe -mfpmath=sse -malign-double -pthread -I/usr/local/python26/include/python2.6 -I/extra/local/src/calibre-0.6.42/src/calibre/utils/lzx -c /extra/local/src/calibre-0.6.42/src/calibre/utils/lzx/lzc.c -o /extra/local/src/calibre-0.6.42/build/objects/lzx/lzc.o
gcc -O3 -Wall -DNDEBUG -fno-strict-aliasing -pipe -fPIC -march=core2 -mtune=core2 -msse2 -msse3 -mssse3 -pipe -mfpmath=sse -malign-double -pthread -I/usr/local/python26/include/python2.6 -I/extra/local/src/calibre-0.6.42/src/calibre/utils/lzx -c /extra/local/src/calibre-0.6.42/src/calibre/utils/lzx/compressor.c -o /extra/local/src/calibre-0.6.42/build/objects/lzx/compressor.o
gcc -O3 -Wall -DNDEBUG -fno-strict-aliasing -pipe -fPIC -march=core2 -mtune=core2 -msse2 -msse3 -mssse3 -pipe -mfpmath=sse -malign-double -pthread -I/usr/local/python26/include/python2.6 -I/extra/local/src/calibre-0.6.42/src/calibre/utils/lzx -c /extra/local/src/calibre-0.6.42/src/calibre/utils/lzx/lzxmodule.c -o /extra/local/src/calibre-0.6.42/build/objects/lzx/lzxmodule.o
gcc -O3 -Wall -DNDEBUG -fno-strict-aliasing -pipe -fPIC -march=core2 -mtune=core2 -msse2 -msse3 -mssse3 -pipe -mfpmath=sse -malign-double -pthread -I/usr/local/python26/include/python2.6 -I/extra/local/src/calibre-0.6.42/src/calibre/utils/lzx -c /extra/local/src/calibre-0.6.42/src/calibre/utils/lzx/lzxd.c -o /extra/local/src/calibre-0.6.42/build/objects/lzx/lzxd.o
Linking lzx


 gcc /extra/local/src/calibre-0.6.42/build/objects/lzx/lzxc.o /extra/local/src/calibre-0.6.42/build/objects/lzx/lzc.o /extra/local/src/calibre-0.6.42/build/objects/lzx/compressor.o /extra/local/src/calibre-0.6.42/build/objects/lzx/lzxmodule.o /extra/local/src/calibre-0.6.42/build/objects/lzx/lzxd.o -o /extra/local/src/calibre-0.6.42/src/calibre/plugins/lzx.so -Wall -L/usr/local/python26/lib -shared -lpython2.6 



####### Building extension fontconfig #######
gcc -O3 -Wall -DNDEBUG -fno-strict-aliasing -pipe -fPIC -march=core2 -mtune=core2 -msse2 -msse3 -mssse3 -pipe -mfpmath=sse -malign-double -pthread -I/usr/local/python26/include/python2.6 -I/usr/include/fontconfig -c /extra/local/src/calibre-0.6.42/src/calibre/utils/fonts/fontconfig.c -o /extra/local/src/calibre-0.6.42/build/objects/fontconfig/fontconfig.o
Linking fontconfig


 gcc /extra/local/src/calibre-0.6.42/build/objects/fontconfig/fontconfig.o -o /extra/local/src/calibre-0.6.42/src/calibre/plugins/fontconfig.so -Wall -L/usr/local/python26/lib -shared -lpython2.6 -L/usr/lib -lfontconfig 



####### Building extension msdes #######
gcc -O3 -Wall -DNDEBUG -fno-strict-aliasing -pipe -fPIC -march=core2 -mtune=core2 -msse2 -msse3 -mssse3 -pipe -mfpmath=sse -malign-double -pthread -I/usr/local/python26/include/python2.6 -I/extra/local/src/calibre-0.6.42/src/calibre/utils/msdes -c /extra/local/src/calibre-0.6.42/src/calibre/utils/msdes/des.c -o /extra/local/src/calibre-0.6.42/build/objects/msdes/des.o
gcc -O3 -Wall -DNDEBUG -fno-strict-aliasing -pipe -fPIC -march=core2 -mtune=core2 -msse2 -msse3 -mssse3 -pipe -mfpmath=sse -malign-double -pthread -I/usr/local/python26/include/python2.6 -I/extra/local/src/calibre-0.6.42/src/calibre/utils/msdes -c /extra/local/src/calibre-0.6.42/src/calibre/utils/msdes/msdesmodule.c -o /extra/local/src/calibre-0.6.42/build/objects/msdes/msdesmodule.o
Linking msdes


 gcc /extra/local/src/calibre-0.6.42/build/objects/msdes/des.o /extra/local/src/calibre-0.6.42/build/objects/msdes/msdesmodule.o -o /extra/local/src/calibre-0.6.42/src/calibre/plugins/msdes.so -Wall -L/usr/local/python26/lib -shared -lpython2.6 



####### Building extension cPalmdoc #######
gcc -O3 -Wall -DNDEBUG -fno-strict-aliasing -pipe -fPIC -march=core2 -mtune=core2 -msse2 -msse3 -mssse3 -pipe -mfpmath=sse -malign-double -pthread -I/usr/local/python26/include/python2.6 -c /extra/local/src/calibre-0.6.42/src/calibre/ebooks/compression/palmdoc.c -o /extra/local/src/calibre-0.6.42/build/objects/cPalmdoc/palmdoc.o
Linking cPalmdoc


 gcc /extra/local/src/calibre-0.6.42/build/objects/cPalmdoc/palmdoc.o -o /extra/local/src/calibre-0.6.42/src/calibre/plugins/cPalmdoc.so -Wall -L/usr/local/python26/lib -shared -lpython2.6 



####### Building extension podofo #######
g++ -O3 -Wall -DNDEBUG -fno-strict-aliasing -pipe -fPIC -march=core2 -mtune=core2 -msse2 -msse3 -mssse3 -pipe -mfpmath=sse -malign-double -pthread -I/usr/local/python26/include/python2.6 -I/usr/local/include/podofo -c /extra/local/src/calibre-0.6.42/src/calibre/utils/podofo/podofo.cpp -o /extra/local/src/calibre-0.6.42/build/objects/podofo/podofo.o
Linking podofo


 g++ /extra/local/src/calibre-0.6.42/build/objects/podofo/podofo.o -o /extra/local/src/calibre-0.6.42/src/calibre/plugins/podofo.so -Wall -L/usr/local/python26/lib -shared -lpython2.6 -L/usr/local/lib -lpodofo 



####### Building extension pictureflow #######
g++ -c -pipe -O2 -Wall -W -D_REENTRANT -fPIC -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtGui -I/usr/include/qt4 -I. -I. -o pictureflow.o ../../../../src/calibre/gui2/pictureflow/pictureflow.cpp
../../../../src/calibre/gui2/pictureflow/pictureflow.cpp:1382: warning: unused parameter ‘index’
../../../../src/calibre/gui2/pictureflow/pictureflow.cpp:1383: warning: unused parameter ‘index’
/usr/bin/moc-qt4 -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtGui -I/usr/include/qt4 -I. -I. ../../../../src/calibre/gui2/pictureflow/pictureflow.h -o moc_pictureflow.cpp
g++ -c -pipe -O2 -Wall -W -D_REENTRANT -fPIC -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtGui -I/usr/include/qt4 -I. -I. -o moc_pictureflow.o moc_pictureflow.cpp
rm -f libpictureflow.so.1.0.0 libpictureflow.so libpictureflow.so.1 libpictureflow.so.1.0
g++ -shared -Wl,-soname,libpictureflow.so.1 -o libpictureflow.so.1.0.0 pictureflow.o moc_pictureflow.o   -L/usr/lib -lQtGui -lQtCore -lpthread 
ln -s libpictureflow.so.1.0.0 libpictureflow.so
ln -s libpictureflow.so.1.0.0 libpictureflow.so.1
ln -s libpictureflow.so.1.0.0 libpictureflow.so.1.0
/usr/local/python26/bin/sip -w -c /extra/local/src/calibre-0.6.42/build/pyqt/pictureflow -b /extra/local/src/calibre-0.6.42/build/pyqt/pictureflow/pictureflow.sip.sbf -I/usr/local/python26/share/sip/PyQt4 -x VendorID -t WS_X11 -x PyQt_NoPrintRangeBug -t Qt_4_6_0 -x Py_v3 -g /extra/local/src/calibre-0.6.42/src/calibre/gui2/pictureflow/pictureflow.sip
g++ -c -pipe -fPIC -O2 -Wall -W -D_REENTRANT -DNDEBUG -DQT_NO_DEBUG -DQT_CORE_LIB -DQT_GUI_LIB -I. -I/extra/local/src/calibre-0.6.42/src/calibre/gui2/pictureflow -I/usr/local/python26/include/python2.6 -I/usr/local/qt4/mkspecs/default -I/usr/local/qt4/include/QtCore -I/usr/local/qt4/include/QtGui -I/usr/local/qt4/include -I/usr/X11R6/include -o sippictureflowcmodule.o sippictureflowcmodule.cpp
g++ -c -pipe -fPIC -O2 -Wall -W -D_REENTRANT -DNDEBUG -DQT_NO_DEBUG -DQT_CORE_LIB -DQT_GUI_LIB -I. -I/extra/local/src/calibre-0.6.42/src/calibre/gui2/pictureflow -I/usr/local/python26/include/python2.6 -I/usr/local/qt4/mkspecs/default -I/usr/local/qt4/include/QtCore -I/usr/local/qt4/include/QtGui -I/usr/local/qt4/include -I/usr/X11R6/include -o sippictureflowPictureFlow.o sippictureflowPictureFlow.cpp
g++ -c -pipe -fPIC -O2 -Wall -W -D_REENTRANT -DNDEBUG -DQT_NO_DEBUG -DQT_CORE_LIB -DQT_GUI_LIB -I. -I/extra/local/src/calibre-0.6.42/src/calibre/gui2/pictureflow -I/usr/local/python26/include/python2.6 -I/usr/local/qt4/mkspecs/default -I/usr/local/qt4/include/QtCore -I/usr/local/qt4/include/QtGui -I/usr/local/qt4/include -I/usr/X11R6/include -o sippictureflowFlowImages.o sippictureflowFlowImages.cpp
g++ /extra/local/src/calibre-0.6.42/build/pyqt/pictureflow/qt/pictureflow.o /extra/local/src/calibre-0.6.42/build/pyqt/pictureflow/qt/moc_pictureflow.o -shared -Wl,-O1 -Wl,-rpath,/usr/local/qt4/lib -Wl,--version-script=pictureflow.exp -o pictureflow.so sippictureflowcmodule.o sippictureflowPictureFlow.o sippictureflowFlowImages.o -L/usr/local/qt4/lib -L/usr/X11R6/lib64 -lQtCore -L/usr/local/qt4/lib -lpthread -lQtGui -L/usr/local/qt4/lib -L/usr/X11R6/lib64 -lQtCore -L/usr/local/qt4/lib -lpthread -lXext -lX11 -lm -lpthread

####### Building extension progress_indicator #######
g++ -c -pipe -O2 -Wall -W -D_REENTRANT -fPIC -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtGui -I/usr/include/qt4 -I. -I. -o QProgressIndicator.o ../../../../src/calibre/gui2/progress_indicator/QProgressIndicator.cpp
../../../../src/calibre/gui2/progress_indicator/QProgressIndicator.h: In constructor ‘QProgressIndicator::QProgressIndicator(QWidget*, int)’:
../../../../src/calibre/gui2/progress_indicator/QProgressIndicator.h:90: warning: ‘QProgressIndicator::m_displayedWhenStopped’ will be initialized after
../../../../src/calibre/gui2/progress_indicator/QProgressIndicator.h:89: warning:   ‘int QProgressIndicator::m_displaySize’
../../../../src/calibre/gui2/progress_indicator/QProgressIndicator.cpp:5: warning:   when initialized here
/usr/bin/moc-qt4 -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtGui -I/usr/include/qt4 -I. -I. ../../../../src/calibre/gui2/progress_indicator/QProgressIndicator.h -o moc_QProgressIndicator.cpp
g++ -c -pipe -O2 -Wall -W -D_REENTRANT -fPIC -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtGui -I/usr/include/qt4 -I. -I. -o moc_QProgressIndicator.o moc_QProgressIndicator.cpp
rm -f libprogress_indicator.so.1.0.0 libprogress_indicator.so libprogress_indicator.so.1 libprogress_indicator.so.1.0
g++ -shared -Wl,-soname,libprogress_indicator.so.1 -o libprogress_indicator.so.1.0.0 QProgressIndicator.o moc_QProgressIndicator.o   -L/usr/lib -lQtGui -lQtCore -lpthread 
ln -s libprogress_indicator.so.1.0.0 libprogress_indicator.so
ln -s libprogress_indicator.so.1.0.0 libprogress_indicator.so.1
ln -s libprogress_indicator.so.1.0.0 libprogress_indicator.so.1.0
/usr/local/python26/bin/sip -w -c /extra/local/src/calibre-0.6.42/build/pyqt/progress_indicator -b /extra/local/src/calibre-0.6.42/build/pyqt/progress_indicator/QProgressIndicator.sip.sbf -I/usr/local/python26/share/sip/PyQt4 -x VendorID -t WS_X11 -x PyQt_NoPrintRangeBug -t Qt_4_6_0 -x Py_v3 -g /extra/local/src/calibre-0.6.42/src/calibre/gui2/progress_indicator/QProgressIndicator.sip
g++ -c -pipe -fPIC -O2 -Wall -W -D_REENTRANT -DNDEBUG -DQT_NO_DEBUG -DQT_CORE_LIB -DQT_GUI_LIB -I. -I/extra/local/src/calibre-0.6.42/src/calibre/gui2/progress_indicator -I/usr/local/python26/include/python2.6 -I/usr/local/qt4/mkspecs/default -I/usr/local/qt4/include/QtCore -I/usr/local/qt4/include/QtGui -I/usr/local/qt4/include -I/usr/X11R6/include -o sipprogress_indicatorcmodule.o sipprogress_indicatorcmodule.cpp
g++ -c -pipe -fPIC -O2 -Wall -W -D_REENTRANT -DNDEBUG -DQT_NO_DEBUG -DQT_CORE_LIB -DQT_GUI_LIB -I. -I/extra/local/src/calibre-0.6.42/src/calibre/gui2/progress_indicator -I/usr/local/python26/include/python2.6 -I/usr/local/qt4/mkspecs/default -I/usr/local/qt4/include/QtCore -I/usr/local/qt4/include/QtGui -I/usr/local/qt4/include -I/usr/X11R6/include -o sipprogress_indicatorQProgressIndicator.o sipprogress_indicatorQProgressIndicator.cpp
g++ /extra/local/src/calibre-0.6.42/build/pyqt/progress_indicator/qt/moc_QProgressIndicator.o /extra/local/src/calibre-0.6.42/build/pyqt/progress_indicator/qt/QProgressIndicator.o -shared -Wl,-O1 -Wl,-rpath,/usr/local/qt4/lib -Wl,--version-script=progress_indicator.exp -o progress_indicator.so sipprogress_indicatorcmodule.o sipprogress_indicatorQProgressIndicator.o -L/usr/local/qt4/lib -L/usr/X11R6/lib64 -lQtCore -L/usr/local/qt4/lib -lpthread -lQtGui -L/usr/local/qt4/lib -L/usr/X11R6/lib64 -lQtCore -L/usr/local/qt4/lib -lpthread -lXext -lX11 -lm -lpthread

*
* Running gui
*

	Compiling form /extra/local/src/calibre-0.6.42/src/calibre/gui2/main.ui
	Compiling form /extra/local/src/calibre-0.6.42/src/calibre/gui2/filename_pattern.ui
	Compiling form /extra/local/src/calibre-0.6.42/src/calibre/gui2/shortcuts.ui
	Compiling form /extra/local/src/calibre-0.6.42/src/calibre/gui2/lrf_renderer/main.ui
	Compiling form /extra/local/src/calibre-0.6.42/src/calibre/gui2/lrf_renderer/config.ui
	Compiling form /extra/local/src/calibre-0.6.42/src/calibre/gui2/wizard/send_email.ui
	Compiling form /extra/local/src/calibre-0.6.42/src/calibre/gui2/wizard/finish.ui
	Compiling form /extra/local/src/calibre-0.6.42/src/calibre/gui2/wizard/device.ui
	Compiling form /extra/local/src/calibre-0.6.42/src/calibre/gui2/wizard/kindle.ui
	Compiling form /extra/local/src/calibre-0.6.42/src/calibre/gui2/wizard/stanza.ui
	Compiling form /extra/local/src/calibre-0.6.42/src/calibre/gui2/wizard/library.ui
	Compiling form /extra/local/src/calibre-0.6.42/src/calibre/gui2/convert/toc.ui
	Compiling form /extra/local/src/calibre-0.6.42/src/calibre/gui2/convert/regex_builder.ui
	Compiling form /extra/local/src/calibre-0.6.42/src/calibre/gui2/convert/single.ui
	Compiling form /extra/local/src/calibre-0.6.42/src/calibre/gui2/convert/txt_output.ui
	Compiling form /extra/local/src/calibre-0.6.42/src/calibre/gui2/convert/debug.ui
	Compiling form /extra/local/src/calibre-0.6.42/src/calibre/gui2/convert/rb_output.ui
	Compiling form /extra/local/src/calibre-0.6.42/src/calibre/gui2/convert/pdf_output.ui
	Compiling form /extra/local/src/calibre-0.6.42/src/calibre/gui2/convert/pdf_input.ui
	Compiling form /extra/local/src/calibre-0.6.42/src/calibre/gui2/convert/lrf_output.ui
	Compiling form /extra/local/src/calibre-0.6.42/src/calibre/gui2/convert/structure_detection.ui
	Compiling form /extra/local/src/calibre-0.6.42/src/calibre/gui2/convert/page_setup.ui
	Compiling form /extra/local/src/calibre-0.6.42/src/calibre/gui2/convert/comic_input.ui
	Compiling form /extra/local/src/calibre-0.6.42/src/calibre/gui2/convert/metadata.ui
	Compiling form /extra/local/src/calibre-0.6.42/src/calibre/gui2/convert/fb2_input.ui
	Compiling form /extra/local/src/calibre-0.6.42/src/calibre/gui2/convert/xpath_wizard.ui
	Compiling form /extra/local/src/calibre-0.6.42/src/calibre/gui2/convert/epub_output.ui
	Compiling form /extra/local/src/calibre-0.6.42/src/calibre/gui2/convert/mobi_output.ui
	Compiling form /extra/local/src/calibre-0.6.42/src/calibre/gui2/convert/pdb_input.ui
	Compiling form /extra/local/src/calibre-0.6.42/src/calibre/gui2/convert/fb2_output.ui
	Compiling form /extra/local/src/calibre-0.6.42/src/calibre/gui2/convert/font_key.ui
	Compiling form /extra/local/src/calibre-0.6.42/src/calibre/gui2/convert/look_and_feel.ui
	Compiling form /extra/local/src/calibre-0.6.42/src/calibre/gui2/convert/pdb_output.ui
	Compiling form /extra/local/src/calibre-0.6.42/src/calibre/gui2/convert/txt_input.ui
	Compiling form /extra/local/src/calibre-0.6.42/src/calibre/gui2/convert/xexp_edit.ui
	Compiling form /extra/local/src/calibre-0.6.42/src/calibre/gui2/device_drivers/configwidget.ui
	Compiling form /extra/local/src/calibre-0.6.42/src/calibre/gui2/viewer/main.ui
		Promoting WebView
	Compiling form /extra/local/src/calibre-0.6.42/src/calibre/gui2/viewer/config.ui
	Compiling form /extra/local/src/calibre-0.6.42/src/calibre/gui2/viewer/bookmarkmanager.ui
	Compiling form /extra/local/src/calibre-0.6.42/src/calibre/gui2/dialogs/password.ui
	Compiling form /extra/local/src/calibre-0.6.42/src/calibre/gui2/dialogs/user_profiles.ui
	Compiling form /extra/local/src/calibre-0.6.42/src/calibre/gui2/dialogs/progress.ui
	Compiling form /extra/local/src/calibre-0.6.42/src/calibre/gui2/dialogs/test_email.ui
	Compiling form /extra/local/src/calibre-0.6.42/src/calibre/gui2/dialogs/metadata_single.ui
	Compiling form /extra/local/src/calibre-0.6.42/src/calibre/gui2/dialogs/jobs.ui
	Compiling form /extra/local/src/calibre-0.6.42/src/calibre/gui2/dialogs/choose_format.ui
	Compiling form /extra/local/src/calibre-0.6.42/src/calibre/gui2/dialogs/comicconf.ui
	Compiling form /extra/local/src/calibre-0.6.42/src/calibre/gui2/dialogs/scheduler.ui
	Compiling form /extra/local/src/calibre-0.6.42/src/calibre/gui2/dialogs/search_item.ui
	Compiling form /extra/local/src/calibre-0.6.42/src/calibre/gui2/dialogs/book_info.ui
	Compiling form /extra/local/src/calibre-0.6.42/src/calibre/gui2/dialogs/search.ui
	Compiling form /extra/local/src/calibre-0.6.42/src/calibre/gui2/dialogs/fetch_metadata.ui
	Compiling form /extra/local/src/calibre-0.6.42/src/calibre/gui2/dialogs/job_view.ui
	Compiling form /extra/local/src/calibre-0.6.42/src/calibre/gui2/dialogs/confirm_delete.ui
	Compiling form /extra/local/src/calibre-0.6.42/src/calibre/gui2/dialogs/catalog.ui
	Compiling form /extra/local/src/calibre-0.6.42/src/calibre/gui2/dialogs/metadata_bulk.ui
	Compiling form /extra/local/src/calibre-0.6.42/src/calibre/gui2/dialogs/conversion_error.ui
	Compiling form /extra/local/src/calibre-0.6.42/src/calibre/gui2/dialogs/tag_editor.ui
	Compiling form /extra/local/src/calibre-0.6.42/src/calibre/gui2/dialogs/config/save_template.ui
	Compiling form /extra/local/src/calibre-0.6.42/src/calibre/gui2/dialogs/config/add_save.ui
	Compiling form /extra/local/src/calibre-0.6.42/src/calibre/gui2/dialogs/config/config.ui
	Compiling form /extra/local/src/calibre-0.6.42/src/calibre/gui2/catalog/catalog_csv_xml.ui
	Compiling form /extra/local/src/calibre-0.6.42/src/calibre/gui2/catalog/catalog_tab_template.ui
	Compiling form /extra/local/src/calibre-0.6.42/src/calibre/gui2/catalog/catalog_epub_mobi.ui
Creating images.qrc

*
* Running install
*

INSTALL paths:
	LIB: /usr/local/python26/lib/calibre
	SHARE: /usr/local/python26/share/calibre
Installing binary: /usr/local/python26/bin/ebook-device
Installing binary: /usr/local/python26/bin/ebook-meta
Installing binary: /usr/local/python26/bin/ebook-convert
Installing binary: /usr/local/python26/bin/markdown-calibre
Installing binary: /usr/local/python26/bin/web2disk
Installing binary: /usr/local/python26/bin/calibre-server
Installing binary: /usr/local/python26/bin/lrf2lrs
Installing binary: /usr/local/python26/bin/lrs2lrf
Installing binary: /usr/local/python26/bin/librarything
Installing binary: /usr/local/python26/bin/calibre-debug
Installing binary: /usr/local/python26/bin/calibredb
Installing binary: /usr/local/python26/bin/calibre-parallel
Installing binary: /usr/local/python26/bin/calibre-customize
Installing binary: /usr/local/python26/bin/calibre-complete
Installing binary: /usr/local/python26/bin/pdfmanipulate
Installing binary: /usr/local/python26/bin/fetch-ebook-metadata
Installing binary: /usr/local/python26/bin/calibre-smtp
Installing binary: /usr/local/python26/bin/calibre
Installing binary: /usr/local/python26/bin/lrfviewer
Installing binary: /usr/local/python26/bin/ebook-viewer
Installing mount helper to /usr/local/python26/bin/calibre-mount-helper
Installing code to /usr/local/python26/lib/calibre
Installing resources to /usr/local/python26/share/calibre
Setting up bash completion...

____________________ WARNING ____________________
Setting up completion failed with error:
__________________________________________________
	Traceback (most recent call last):
	  File "/extra/local/src/calibre-0.6.42/src/calibre/linux.py", line 175, in setup_completion
	    from calibre.gui2.viewer.main import option_parser as viewer_op
	  File "/extra/local/src/calibre-0.6.42/src/calibre/gui2/viewer/main.py", line 17, in <module>
	    from calibre.gui2.widgets import ProgressIndicator
	  File "/extra/local/src/calibre-0.6.42/src/calibre/gui2/widgets.py", line 21, in <module>
	    from calibre.utils.fonts import fontconfig
	  File "/extra/local/src/calibre-0.6.42/src/calibre/utils/fonts/__init__.py", line 17, in <module>
	    raise RuntimeError('Failed to load fontconfig with error:'+_fc_err)
	RuntimeError: Failed to load fontconfig with error:No module named fontconfig

Trying to setup udev rules...
Installing MAN pages...
	Installing MAN page for ebook-meta
	Installing MAN page for ebook-convert
	Installing MAN page for web2disk
	Installing MAN page for calibre-server
	Installing MAN page for lrf2lrs
	Installing MAN page for lrs2lrf
	Installing MAN page for librarything
	Installing MAN page for calibre-debug
	Installing MAN page for calibredb
	Installing MAN page for calibre-customize
	Installing MAN page for pdfmanipulate
	Installing MAN page for fetch-ebook-metadata
	Installing MAN page for calibre-smtp
Setting up desktop integration...
Installing calibre environment module: /usr/local/python26/lib/python2.6/site-packages/init_calibre.py


calibre successfully installed. You can start it by running the command calibre

There were 1 warning(s):

* Setting up completion failed with error:

elderthing:/usr/local/src/calibre-0.6.42# calibre
Traceback (most recent call last):
  File "/usr/local/python26/bin/calibre", line 19, in <module>
    sys.exit(main())
  File "/usr/local/python26/lib/calibre/calibre/gui2/main.py", line 121, in main
    app, opts, args, actions = init_qt(args)
  File "/usr/local/python26/lib/calibre/calibre/gui2/main.py", line 35, in init_qt
    from calibre.gui2.ui import Main
  File "/usr/local/python26/lib/calibre/calibre/gui2/ui.py", line 44, in <module>
    from calibre.gui2.main_ui import Ui_MainWindow
  File "/usr/local/python26/lib/calibre/calibre/gui2/main_ui.py", line 373, in <module>
    from calibre.gui2.library import BooksView, DeviceBooksView
  File "/usr/local/python26/lib/calibre/calibre/gui2/library.py", line 29, in <module>
    class LibraryDelegate(QItemDelegate):
  File "/usr/local/python26/lib/calibre/calibre/gui2/library.py", line 30, in LibraryDelegate
    COLOR    = QColor("blue")
TypeError: unable to convert a Python 'str' object to a C++ 'QString' instance
Segmentation fault
elderthing:/usr/local/src/calibre-0.6.42#
Megatron-UK is offline   Reply With Quote
Old 02-20-2010, 05:29 AM   #8
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 26,340
Karma: 5382313
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Hmm, well I'm out of ideas, sorry.
kovidgoyal is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Linux upgrade and source code chutz Kobo Reader 12 07-25-2010 01:22 AM
PRS-600 Where can I find the Linux source code? Xaphiosis Sony Reader 8 04-17-2010 12:13 PM
Recipe causes segfault: Ubuntu Intrepid, Calibre 0.6.14 rogue_ronin Calibre 1 10-02-2009 01:35 AM
Calibre will build but won't install on bluewhite64 linux distro angevin Calibre 5 10-18-2008 11:20 PM
I can't get calibre to build/install on 64 bit linux angevin Calibre 8 10-08-2008 05:10 PM


All times are GMT -4. The time now is 02:12 AM.


MobileRead.com is a privately owned, operated and funded community.