On Wed, Dec 3, 2008 at 9:03 AM, Lukas Oboril <oboril.lukas at gmail.com> wrote:
> Hi,
>
> anyone else has KDEnetwork built on Solaris10 ? I think that
> KDEnetwork needs to build on S10 ....  patch something like this ...

I built it stock, but I did an ugly hack by adding the sethostname declares
in /usr/include/unistd.h like they are done in unistd.h on SXCE.  Oddly
enough, sethostname is in libc on S10.  Don't understand why it's not
declared...

I'm not sure what the right way to fix this is. probalby some check for
sethostname, and declare if it isn't.

Ben

>
> diff -r c2abc92fb324 specs/include/kde-common.spec
> --- a/specs/include/kde-common.spec     Wed Dec 03 13:02:22 2008 +0100
> +++ b/specs/include/kde-common.spec     Wed Dec 03 14:55:27 2008 +0100
> @@ -37,8 +37,8 @@ CXX="CC -library=no%Cstd"
>  CXX="CC -library=no%Cstd"
>  export CC CXX
>
> -CFLAGS="-D__EXTENSIONS__ -DSOLARIS %CPPFLAGS_C %CFLAGS"
> -CXXFLAGS="-D__EXTENSIONS__ -DSOLARIS %CPPFLAGS_CXX %CXXFLAGS"
> +CFLAGS="-D__EXTENSIONS__ -D_XPG4_2 -DSOLARIS %CPPFLAGS_C %CFLAGS"
> +CXXFLAGS="-D__EXTENSIONS__ -D_XPG4_2 -DSOLARIS %CPPFLAGS_CXX %CXXFLAGS"
>  export CFLAGS CXXFLAGS
>
>  linker_common="-L%{_foss_prefix}/lib -R%{_foss_prefix}/lib -liconv
> -lstdcxx -L/usr/lib -R/usr/lib -lxml2 -lCrun -lrt -lsocket
> -L/usr/X11/lib -R/usr/X11/lib"
>
>
> I'm not sure if is great idea put -D_XPG4_2 generally for all KDE
> stuff, but KDEnetwork on S10 doesn't build without that define.

Reply via email to