habaneropep2019 / ZFreeKit

ZFree86 and Osiris - READ ONLY MIRROR - Upstream is https://centre.libranext.com/
Other
0 stars 2 forks source link

Compiletime error on OpenIndiana (OpenSolaris/SunOS5+/illumos) #4

Open habaneropep2019 opened 2 years ago

habaneropep2019 commented 2 years ago

Same code compiles correctly on gnu-linux-g++ target, so maybe there is a mixup of GNU/gcc and Solaris libraries happening somewhere?

`g++ -c -I/opt/osiris/include -I/usr/openwin/include -I/usr/include/freetype2 -g -Wall -W -fPIC -DQT_BUILTIN_GIF_READER=0 -DQT_NO_IMAGEIO_MNG -DQT_XFT -I/opt/osiris/src/3rdparty/zlib -I/opt/osiris/src/3rdparty/libpng -o kernel/qfont_x11.o kernel/qfont_x11.cpp In file included from /opt/osiris/include/qstring.h:43:0, from kernel/qwindowdefs.h:44, from kernel/qwidget.h:42, from kernel/qfont_x11.cpp:40: /opt/osiris/include/qcstring.h:125:16: error: conflicting declaration of 'size_t qstrlen(const char*)' with 'C' linkage

define strlen qstrlen

            ^

/opt/osiris/include/qcstring.h:89:22: note: previous declaration with 'C++' linkage Q_EXPORT inline uint qstrlen( const char *str ) `

habaneropep2019 commented 2 years ago

Screenshot at 2022-01-28 19-18-18

habaneropep2019 commented 2 years ago

Configured with ./configure -sm -shared -debug -qt-zlib -system-jpeg -qt-libpng

Currently compiling with threads support doesn't work either.