Version: (using KDE 4.1.3) Compiler: Sun Studio 12 Solaris 10, x64 OS: Solaris Installed from: Compiled From Sources kppp does a linktest for sethostname, which passes because sethostname is in Solaris 10's libc, but is not declared in /usr/include/unistd.h, as it is on Solaris Express (aka SXCE and Nevada). When opener.cpp is compiled, it fails because there is no declaration for sethostname. I tested a crude patch that declared sethostname as it is defined in opener.cpp in opener.h using a SOLARIS10 define that we have in our build environment. It built correctly.
Could you attach that patch? Thank you.
Created attachment 35681 [details] patch this is the patch
SVN commit 1225429 by lvsouza: Fix kppp fails to build on Solaris 10. sethostname exists in libc, but is not defined in /usr/include/unistd.h Thanks tropikhajma for the patch. BUG: 177220 M +6 -0 opener.h WebSVN link: http://websvn.kde.org/?view=rev&revision=1225429
SVN commit 1225430 by lvsouza: Backporting 1225429: Fix kppp fails to build on Solaris 10. sethostname exists in libc, but is not defined in /usr/include/unistd.h Thanks tropikhajma for the patch. BUG: 177220 M +5 -0 opener.h WebSVN link: http://websvn.kde.org/?view=rev&revision=1225430