This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

undefined symbol __gnu_cxx::__pool<true>::_M_reserve_block(unsigned int, unsigned int) /extra/sou


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




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]