This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
undefined symbol __gnu_cxx::__pool<true>::_M_reserve_block(unsigned int, unsigned int) /extra/sou
- From: asyropoulos at aol dot com
- To: gcc-help at gcc dot gnu dot org
- Date: Wed, 30 Oct 2013 16:10:40 -0400 (EDT)
- Subject: undefined symbol __gnu_cxx::__pool<true>::_M_reserve_block(unsigned int, unsigned int) /extra/sou
- Authentication-results: sourceware.org; auth=none
- References: <8D0A3C12FF911AE-15A4-F007 at webmail-vd007 dot sysops dot aol dot com>
Hello,
I am trying to compile Qt 4.8.5 with g++ 4.7.2 on Solaris.
Typically, I get the following error message:
Text relocation remainsÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ ÂÂÂ referenced
ÂÂÂ against symbolÂÂÂ ÂÂÂ ÂÂÂ offsetÂÂÂ in file
QSqlDriver::qt_static_metacall(QObject*, QMetaObject::Call, int,
void**) 0x442ÂÂÂÂ ÂÂÂ .obj/release-shared/moc_qsqldriver.o
Note that
LFLAGSÂÂÂÂÂÂÂ = -Wl,-R,/opt/gnu/qt4/lib -Wl,-R,/opt/gnu/qt4/lib -shared
-hÂÂÂÂÂ libQtSql.so.4
Now when I change -shared to -G linking finishes with no problem. But
then compilation stops
with a message like the following one:
ndefinedÂÂ ÂÂÂ ÂÂÂ Âfirst referenced
Âsymbol Â Â Â Â in file
__gnu_cxx::__pool<true>::_M_reserve_block(unsigned int, unsigned int)
/extra/sources/qt/qt-everywhere-opensource-src-4.8.5/lib/libQtCLucene.so.
4
__gnu_cxx::__pool<true>::_M_get_thread_id()ÂÂÂ
/extra/sources/qt/qt-everywhere-opensource-src-4.8.5/lib/libQtCLucene.so.
4
Note gcc has been build among others with the following options
--without-gnu-ld --with-ld=/usr/ccs/bin/ld --with-gnu-as
--with-as=/usr/sfw/bin/gas
Â
In the past I solved the same problem by using a gcc that uses the GNU
ld but this does not
work always and it was suggested not to build gcc on Solaris this way.
So does anybody
have any idea how to solve this problem?
Regards,
A.S.
--
Apostolos Syropoulos
Xanthi, Greece