[OpenIndiana-discuss] Qt5 and libgcc_s

Apostolos Syropoulos asyropoulos at yahoo.com
Sun Oct 18 17:24:29 UTC 2020


Hello, 

I tried to compile a Qt5 application and during the last stage I got the following error:

apostolo at adalind>> make
g++ -m32 -Wl,-R,/usr/lib/qt/5.8/lib -Wl,-R,/usr/gcc/7/lib/ -o LANShare main.o settings.o util.o singleinstance.o mainwindow.o receiverselectordialog.o aboutdialog.o settingsdialog.o devicebroadcaster.o receiver.o sender.o transfer.o transferserver.o device.o devicelistmodel.o transferinfo.o transfertablemodel.o qrc_res.o moc_singleinstance.o moc_mainwindow.o moc_receiverselectordialog.o moc_aboutdialog.o moc_settingsdialog.o moc_devicebroadcaster.o moc_transfer.o moc_transferserver.o moc_transferinfo.o moc_transfertablemodel.o   -L/usr/lib -L/usr/X11/lib -L/usr/lib/qt/5.8/lib -lQt5Widgets -lQt5Gui -lQt5Network -lresolv -lsocket -lxnet -lnsl -lQt5Core -lGL -lpthread -lrt
ld: fatal: file /usr/gcc/6/lib/libgcc_s.so: version 'GCC_7.0.0' does not exist:
        required by file /usr/lib/qt/5.8/lib/libQt5Gui.so
ld: fatal: file /usr/gcc/6/lib/libgcc_s.so: version 'GCC_7.0.0' does not exist:
        required by file /usr/lib/libicui18n.so.66
ld: fatal: file processing errors. No output written to LANShare
collect2: error: ld returned 1 exit status
make: *** [Makefile:303: LANShare] Error 1

First I copied /usr/gcc/6/lib/libgcc_s.so.1 to /usr/gcc/6/lib/libgcc_s.so.1.ORIG
and then I copied /usr/gcc/7/lib/libgcc_s.so.1 to /usr/gcc/6/lib. This allowed
me to complete the compilation. Of course this is a hack and not the way things
should be done. Of course the application runs just fine.

Regards,

Apostolos

----------------------
Apostolos Syropoulos
Xanthi, Greece



More information about the openindiana-discuss mailing list