Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 194572 - dev-python/qscintilla-2.1 compile fails - 'qCompress' was not declared in this scope
Summary: dev-python/qscintilla-2.1 compile fails - 'qCompress' was not declared in thi...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal
Assignee: Qt Bug Alias
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-10-03 05:14 UTC by Wily Unrest
Modified: 2009-03-08 00:29 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
environment file (environment,83.73 KB, text/plain)
2008-05-12 08:19 UTC, Wily Unrest
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Wily Unrest 2007-10-03 05:14:29 UTC
After attempting to upgrade to Python 2.5, running the python-update script failed due to qscintilla. I tried to manually emerge qscintilla, with the same result. I am upgrading from qscintilla 1.7.1 to 2.1.

Reproducible: Always

Steps to Reproduce:
1. emerge -v dev-python/qscintilla
Actual Results:  
OUTPUT OF PYTHON-UPDATE:

 * Starting Python Updater from 2.4 to 2.5 :
 * Searching for packages with files in /usr/lib/python2.4 /usr/lib32/python2.4 /usr/lib64/python2.4 ..
 * Adding to list: =dev-python/PyQt-3.17.3
 * Adding to list: =dev-python/PyQt4-4.3

These are the packages that would be merged, in order:

Calculating dependencies  ..... ..... ....... done!
[ebuild     U ] dev-python/qscintilla-2.1 [1.7.1] USE="qt4%* -debug% -doc -examples% -python%" 0 kB
[ebuild   R   ] dev-python/PyQt-3.17.3  USE="-debug -doc -examples" 0 kB
[ebuild   R   ] dev-python/PyQt4-4.3  USE="-debug -doc -examples" 0 kB

Total: 3 packages (1 upgrade, 2 reinstalls), Size of downloads: 0 kB

>>> Verifying ebuild Manifests...

>>> Emerging (1 of 3) dev-python/qscintilla-2.1 to /
 * QScintilla-1.73-gpl-2.1.tar.gz RMD160 ;-) ...                          [ ok ]
 * QScintilla-1.73-gpl-2.1.tar.gz SHA1 ;-) ...                            [ ok ]
 * QScintilla-1.73-gpl-2.1.tar.gz SHA256 ;-) ...                          [ ok ]
 * QScintilla-1.73-gpl-2.1.tar.gz size ;-) ...                            [ ok ]
 * checking ebuild checksums ;-) ...                                      [ ok ]
 * checking auxfile checksums ;-) ...                                     [ ok ]
 * checking miscfile checksums ;-) ...                                    [ ok ]
 * checking QScintilla-1.73-gpl-2.1.tar.gz ;-) ...                        [ ok ]
>>> Unpacking source...
>>> Unpacking QScintilla-1.73-gpl-2.1.tar.gz to /var/tmp/portage/dev-python/qscintilla-2.1/work
 * Applying qscintilla-2.1-qt4.patch ...
  [ ok ]
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/dev-python/qscintilla-2.1/work/QScintilla-1.73-gpl-2.1 ...
x86_64-pc-linux-gnu-g++ -c -pipe -O3 -march=k8 -pipe -w -D_REENTRANT -w -fPIC -DQSCINTILLA_MAKE_DLL -DQT -DSCI_LEXER -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. -IQsci -I../include -I../src -I. -I. -o qsciscintilla.o qsciscintilla.cpp
x86_64-pc-linux-gnu-g++ -c -pipe -O3 -march=k8 -pipe -w -D_REENTRANT -w -fPIC -DQSCINTILLA_MAKE_DLL -DQT -DSCI_LEXER -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. -IQsci -I../include -I../src -I. -I. -o qsciscintillabase.o qsciscintillabase.cpp
x86_64-pc-linux-gnu-g++ -c -pipe -O3 -march=k8 -pipe -w -D_REENTRANT -w -fPIC -DQSCINTILLA_MAKE_DLL -DQT -DSCI_LEXER -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. -IQsci -I../include -I../src -I. -I. -o qsciapis.o qsciapis.cpp
qsciapis.cpp: In member function 'bool QsciAPIs::loadPrepared(const QString&)':
qsciapis.cpp:864: error: 'qUncompress' was not declared in this scope
qsciapis.cpp: In member function 'bool QsciAPIs::savePrepared(const QString&) const':
qsciapis.cpp:940: error: 'qCompress' was not declared in this scope
make: *** [qsciapis.o] Error 1
 *
 * ERROR: dev-python/qscintilla-2.1 failed.
 * Call stack:
 *   ebuild.sh, line 1654:   Called dyn_compile
 *   ebuild.sh, line 990:   Called qa_call 'src_compile'
 *   ebuild.sh, line 44:   Called src_compile
 *   qscintilla-2.1.ebuild, line 65:   Called die
 *
 * make 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/qscintilla-2.1/temp/build.log'.
 *

 * Messages for package dev-python/qscintilla-2.1:

 *
 * ERROR: dev-python/qscintilla-2.1 failed.
 * Call stack:
 *   ebuild.sh, line 1654:   Called dyn_compile
 *   ebuild.sh, line 990:   Called qa_call 'src_compile'
 *   ebuild.sh, line 44:   Called src_compile
 *   qscintilla-2.1.ebuild, line 65:   Called die
 *
 * make 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/qscintilla-2.1/temp/build.log'.

OUTPUT OF /var/tmp/portage/dev-python/qscintilla-2.1/temp/build.log:

>>> Unpacking source...
>>> Unpacking QScintilla-1.73-gpl-2.1.tar.gz to /var/tmp/portage/dev-python/qscintilla-2.1/work
 * Applying qscintilla-2.1-qt4.patch ...
  [ ok ]
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/dev-python/qscintilla-2.1/work/QScintilla-1.73-gpl-2.1 ...
x86_64-pc-linux-gnu-g++ -c -pipe -O3 -march=k8 -pipe -w -D_REENTRANT -w -fPIC -DQSCINTILLA_MAKE_DLL -DQT -DSCI_LEXER -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. -IQsci -I../include -I../src -I. -I. -o qsciscintilla.o qsciscintilla.cpp
x86_64-pc-linux-gnu-g++ -c -pipe -O3 -march=k8 -pipe -w -D_REENTRANT -w -fPIC -DQSCINTILLA_MAKE_DLL -DQT -DSCI_LEXER -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. -IQsci -I../include -I../src -I. -I. -o qsciscintillabase.o qsciscintillabase.cpp
x86_64-pc-linux-gnu-g++ -c -pipe -O3 -march=k8 -pipe -w -D_REENTRANT -w -fPIC -DQSCINTILLA_MAKE_DLL -DQT -DSCI_LEXER -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. -IQsci -I../include -I../src -I. -I. -o qsciapis.o qsciapis.cpp
qsciapis.cpp: In member function 'bool QsciAPIs::loadPrepared(const QString&)':
qsciapis.cpp:864: error: 'qUncompress' was not declared in this scope
qsciapis.cpp: In member function 'bool QsciAPIs::savePrepared(const QString&) const':
qsciapis.cpp:940: error: 'qCompress' was not declared in this scope
make: *** [qsciapis.o] Error 1
 *
 * ERROR: dev-python/qscintilla-2.1 failed.
 * Call stack:
 *   ebuild.sh, line 1654:   Called dyn_compile
 *   ebuild.sh, line 990:   Called qa_call 'src_compile'
 *   ebuild.sh, line 44:   Called src_compile
 *   qscintilla-2.1.ebuild, line 65:   Called die
 *
 * make 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/qscintilla-2.1/temp/build.log'.


Expected Results:  
Built and installed qscintilla.
Comment 1 Wily Unrest 2007-10-03 06:01:38 UTC
CFLAGS="-O3 -march=k8 -pipe"
CHOST="x86_64-pc-linux-gnu"
Comment 2 Wily Unrest 2007-10-03 10:57:29 UTC
And if it's relevant: was pulled in as a dependency of metasploit. 

'emerge -C metasploit' enabled world build to continue and complete all ~amd64 packages.
Comment 3 Ali Polatel (RETIRED) gentoo-dev 2007-11-20 06:09:23 UTC
can you test if you can reproduce this with qscintilla-2.1-r1?
Comment 4 Ali Polatel (RETIRED) gentoo-dev 2008-01-04 08:20:01 UTC
Closing this one as WORKSFORME, qscintilla has undergone some changes and this seems to be fixed on the way. Please reopen if you can still reproduce the problem.
Comment 5 Wily Unrest 2008-05-12 08:09:54 UTC
Tested and reproduced with qscintilla-2.1-r1:

cressida ~ # emerge -avD qscintilla

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild     U ] x11-libs/qscintilla-2.1-r1 [1.7.1] USE="qt4%* -debug% -doc -examples% -python%" 0 kB

Total: 1 package (1 upgrade), Size of downloads: 0 kB

Would you like to merge these packages? [Yes/No]
>>> Verifying ebuild Manifests...

>>> Emerging (1 of 1) x11-libs/qscintilla-2.1-r1 to /
 * QScintilla-1.73-gpl-2.1.tar.gz RMD160 SHA1 SHA256 size ;-) ...                           [ ok ]
 * checking ebuild checksums ;-) ...                                                        [ ok ]
 * checking auxfile checksums ;-) ...                                                       [ ok ]
 * checking miscfile checksums ;-) ...                                                      [ ok ]
 * checking QScintilla-1.73-gpl-2.1.tar.gz ;-) ...                                          [ ok ]
>>> Unpacking source...
>>> Unpacking QScintilla-1.73-gpl-2.1.tar.gz to /var/tmp/portage/x11-libs/qscintilla-2.1-r1/work
 * Applying qscintilla-2.1-qt4.patch ...                                                    [ ok ]
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/x11-libs/qscintilla-2.1-r1/work/QScintilla-1.73-gpl-2.1 ...
x86_64-pc-linux-gnu-g++ -c -pipe -O3 -march=k8 -pipe -w -D_REENTRANT -w -fPIC -DQSCINTILLA_MAKE_DLL -DQT -DSCI_LEXER -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. -IQsci -I../include -I../src -I. -I. -o qsciscintilla.o qsciscintilla.cpp
x86_64-pc-linux-gnu-g++ -c -pipe -O3 -march=k8 -pipe -w -D_REENTRANT -w -fPIC -DQSCINTILLA_MAKE_DLL -DQT -DSCI_LEXER -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. -IQsci -I../include -I../src -I. -I. -o qsciscintillabase.o qsciscintillabase.cpp
x86_64-pc-linux-gnu-g++ -c -pipe -O3 -march=k8 -pipe -w -D_REENTRANT -w -fPIC -DQSCINTILLA_MAKE_DLL -DQT -DSCI_LEXER -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. -IQsci -I../include -I../src -I. -I. -o qsciapis.o qsciapis.cpp
qsciapis.cpp: In member function 'bool QsciAPIs::loadPrepared(const QString&)':
qsciapis.cpp:864: error: 'qUncompress' was not declared in this scope
qsciapis.cpp: In member function 'bool QsciAPIs::savePrepared(const QString&) const':
qsciapis.cpp:940: error: 'qCompress' was not declared in this scope
make: *** [qsciapis.o] Error 1
 *
 * ERROR: x11-libs/qscintilla-2.1-r1 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 2116:  Called die
 * The specific snippet of code:
 *       make all staticlib CC="$(tc-getCC)" CXX="$(tc-getCXX)" LINK="$(tc-getCXX)" || die "make failed";
 *  The die message:
 *   make 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/x11-libs/qscintilla-2.1-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/x11-libs/qscintilla-2.1-r1/temp/environment'.
 *

relevant strace:

read(3, "qsciapis.cpp: In member function"..., 65536) = 149
read(3, 0x1e496d5, 61440)               = -1 EAGAIN (Resource temporarily unavailable)
write(6, "qsciapis.cpp: In member function"..., 80qsciapis.cpp: In member function 'bool QsciAPIs::loadPrepared(const QString&)':
) = 80
write(6, "qsciapis.cpp:864: error: \'qUncom"..., 69qsciapis.cpp:864: error: 'qUncompress' was not declared in this scope) = 69
write(5, "qsciapis.cpp: In member function"..., 149) = 149

Please advise any further testing you wish done.
Comment 6 Wily Unrest 2008-05-12 08:19:36 UTC
Created attachment 152919 [details]
environment file

attached for further information
Comment 7 Wily Unrest 2008-05-14 09:26:48 UTC
Current workaround: Compile without "qt4" useflag.
Comment 8 Jason Komar 2008-05-16 18:06:55 UTC
I'm experiencing the same issue and was also able to build it by disabling the qt4 use flag.
Comment 9 Patrick Lauer gentoo-dev 2009-03-08 00:29:03 UTC
Cannot reproduce with qscintilla-python-2.3.2-r1
Retry with that version, reopen if it still happens.

Thanks!