https://bugs.kde.org/show_bug.cgi?id=240777
Summary: build fails - missing socket library Product: Akonadi Version: 1.3.50 Platform: Compiled Sources OS/Version: Solaris Status: UNCONFIRMED Severity: normal Priority: NOR Component: general AssignedTo: vkra...@kde.org ReportedBy: tropikha...@gmail.com CC: kdepim-bugs@kde.org Version: 1.3.50 (using Devel) OS: Solaris building akonadi 1.3.80 fails with the below error. Akonadi 1.2.62 used to build just fine. The below mentioned compiler line passes ok when I add -lsocket to it Attaching a patch that makes akonadi compile again, although I guess it should be done in a more flexible way. Reproducible: Always Actual Results: Linking CXX executable ../bin/akonadi_rds cd /export/home/test/packages/BUILD/akonadi-1.3.80/i386/akonadi-1.3.80/rds && /opt/kde4/bin/cmake -E cmake_link_script CMakeFiles/akonadi_rds.dir/link.txt --verbose=1 /opt/sunstudio12.1/bin/CC -D_REENTRANT -DNDEBUG -D__EXTENSIONS__ -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_POSIX_PTHREAD_SEMANTICS -DSOLARIS -DSOLARIS10 -DNO_DEBUG -D_UNICODE -DUNICODE -D_RWSTD_REENTRANT -D_XOPEN_SOURCE=500 -D_XPG5 -I/usr/include/stdcxx4/ansi -I/usr/include/stdcxx4 -I/opt/kde4/include -I/usr/include/stdcxx4/ansi -I/usr/include/stdcxx4 -library=no%Cstd -library=Crun -features=anachronisms,except,rtti,export,extensions,nestedaccess,tmplife,tmplrefstatic -instances=global -template=geninlinefuncs -s -xdebugformat=dwarf -xlang=c99 -xustr=ascii_utf16_ushort -Qoption ccfe -features=gcc -Qoption ccfe -features=zla -Qoption ccfe ++boolflag:sunwcch=false -mt -xF=%none -xbuiltin=%all -xinline=%auto -xprefetch=auto -xprefetch_auto_type=indirect_array_access -xprefetch_level=3 -KPIC -DPIC -xipo=0 -xO3 -xregs=no%frameptr -xjobs=2 -xrestrict=%all -xthreadvar=%all -z combreloc -z redlocsym -z nodefaultlib -z ignore -z now -z rescan -z absexec -xldscope=symbolic -xlibmil -s -xtarget=pentium4 -m32 -xarch=sse2 -xchip=pentium4 -xcache=8/64/4:256/128/8 -lc -lm -ldl -lpthread -lposix4 -lrt -mt -L/opt/kde4/lib -R/opt/kde4/lib -L/usr/lib -R/usr/lib -Y P,/opt/kde4/lib -i -L/opt/kde4/lib -R/opt/kde4/lib -L/usr/lib -R/usr/lib -Bdynamic -lstdcxx4 -lCrun -lc -lm -xannotate=no -m32 -s -Y P,/opt/kde4/lib -i -L/opt/kde4/lib -R/opt/kde4/lib -L/usr/lib -R/usr/lib -Bdynamic -lstdcxx4 -lCrun -lc -lm -xtarget=pentium4 -m32 -xarch=sse2 -xchip=pentium4 -xcache=8/64/4:256/128/8 -xipo=0 -xO3 -xannotate=no -m32 -s -L/opt/kde4/lib -R/opt/kde4/lib -L/usr/lib -R/usr/lib -z combreloc -z redlocsym -z nodefaultlib -z ignore -z now -z rescan -z absexec -xldscope=symbolic -xlibmil -s -lc -lm -ldl -lpthread -lposix4 -lrt -mt -L/opt/kde4/lib -R/opt/kde4/lib -L/usr/lib -R/usr/lib CMakeFiles/akonadi_rds.dir/akonadi_rds_automoc.cpp.o CMakeFiles/akonadi_rds.dir/bridgeserver.cpp.o CMakeFiles/akonadi_rds.dir/bridgeconnection.cpp.o CMakeFiles/akonadi_rds.dir/main.cpp.o -o ../bin/akonadi_rds -lQtCore -lthread -lQtNetwork -lQtCore -lthread -lQtDBus ../lib/libakonadiprotocolinternals.so.1.3.80 -lQtCore -lthread -lQtDBus -R/export/home/test/packages/BUILD/akonadi-1.3.80/i386/akonadi-1.3.80/lib: pkgbuild: "/export/home/test/packages/BUILD/akonadi-1.3.80/i386/akonadi-1.3.80/server/shared/akcrash.cpp", line 118: Warning (Anachronism): Assigning extern "C" void(*)(int) to void(*)(int). "/export/home/test/packages/BUILD/akonadi-1.3.80/i386/akonadi-1.3.80/server/shared/akcrash.cpp", line 124: Warning (Anachronism): Formal argument 2 of type extern "C" void(*)(int) in call to std::signal(int, extern "C" void(*)(int)) is being passed void(*)(int). "/export/home/test/packages/BUILD/akonadi-1.3.80/i386/akonadi-1.3.80/server/shared/akcrash.cpp", line 128: Warning (Anachronism): Formal argument 2 of type extern "C" void(*)(int) in call to std::signal(int, extern "C" void(*)(int)) is being passed void(*)(int). "/export/home/test/packages/BUILD/akonadi-1.3.80/i386/akonadi-1.3.80/server/shared/akcrash.cpp", line 132: Warning (Anachronism): Formal argument 2 of type extern "C" void(*)(int) in call to std::signal(int, extern "C" void(*)(int)) is being passed void(*)(int). "/export/home/test/packages/BUILD/akonadi-1.3.80/i386/akonadi-1.3.80/server/shared/akcrash.cpp", line 136: Warning (Anachronism): Formal argument 2 of type extern "C" void(*)(int) in call to std::signal(int, extern "C" void(*)(int)) is being passed void(*)(int). "/export/home/test/packages/BUILD/akonadi-1.3.80/i386/akonadi-1.3.80/server/shared/akcrash.cpp", line 140: Warning (Anachronism): Formal argument 2 of type extern "C" void(*)(int) in call to std::signal(int, extern "C" void(*)(int)) is being passed void(*)(int). "/export/home/test/packages/BUILD/akonadi-1.3.80/i386/akonadi-1.3.80/server/shared/akcrash.cpp", line 144: Warning (Anachronism): Formal argument 2 of type extern "C" void(*)(int) in call to std::signal(int, extern "C" void(*)(int)) is being passed void(*)(int). 7 Warning(s) detected. Undefined first referenced symbol in file __xnet_connect CMakeFiles/akonadi_rds.dir/bridgeconnection.cpp.o (symbol belongs to implicit dependency /usr/lib/libsocket.so.1) __xnet_socket CMakeFiles/akonadi_rds.dir/bridgeconnection.cpp.o (symbol belongs to implicit dependency /usr/lib/libsocket.so.1) ld: fatal: symbol referencing errors. No output written to ../bin/akonadi_rds -- Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. _______________________________________________ Kdepim-bugs mailing list Kdepim-bugs@kde.org https://mail.kde.org/mailman/listinfo/kdepim-bugs