Success: kde 3.1 cvs running on sgi IRIX!

Waldo Bastian bastian at kde.org
Sun Aug 11 22:09:20 BST 2002


On Sunday 11 August 2002 02:32 am, Dominique Devriese wrote:
> > kstyles/keramik/genembed.cpp: changed cmath to math.h and cstring to
> > string.h
>
> hm... seems like a bug in your STL...

I guess SGI simply doesn't support "c<name>" style header files yet. I see no 
reason to use them. (Fixed)

Can someone clean up knuminput.cpp?

> > kscreensaver/kdesavers/gravity.cpp: had to add a few float casts to use
> > pow cc-1282 CC: ERROR File = gravity.cpp, Line = 347
> >   More than one instance of overloaded function "pow" matches the
> > argument list.
> >
> >             Function symbol function "pow(double, double)" is ambiguous
> > by inheritance.
> >             Function symbol function "pow(float, float)" is ambiguous by
> >                       inheritance.
> >             Function symbol function "pow(float, int)" is ambiguous by
> >                       inheritance.
> >             The argument types are:  (float, double).
> >
> > particle[loop].z=(particle[loop].zo*sin(particle[loop].index))*
> > pow(particle[loop].index/particle[loop].indexo,8.0);
>
> Does this mean pow on IRIX is declared pow( float, double ) ??
> weird...

I think the arguments are (float, double) and it can't decide whether to use 
pow(float, float) or pow(double, double).

Casting the arguments to double first should help.

> > kget/kmainwidget.cpp: cc-1020 CC: ERROR File = kmainwidget.cpp, Line =
> > 2150 The identifier "AF_IPX" is undefined.
> >
> >      			 ipx_sock = socket(AF_IPX, SOCK_DGRAM, 0);
> >
> > 			 don't know what that is; commented it out
> > (any ideas?)
>
> hm.. shouldn't that be PF_IPX  ?
>
> > kpf/src/ActiveMonitorItem.cpp:65, fixed return in void function
>
> s/fixed/worked around/ ;) since it _is_ valid c++ ...
>
> > krfb/srvloc/kinetaddr.cpp: added #include <strings.h> for bzero
>
> hm.. shouldn't that be string.h ?

No strings.h is needed for bzero.
Solution: don't use bzero but use the more portable memset instead. (Done) 
Better solution: Remove this class and use the one from kdecore? (Tim?)

> > krfb/libvncserver: cc-1020 cc: ERROR File = main.c, Line = 404
> >   			The identifier "source" is undefined.
> >
> >      			source: "\000\102\044\030\044\102\000",
> >      			^
> >
> > 		   cc-1067 cc: ERROR File = main.c, Line = 404
> >   			A right brace is expected.
> >
> >      			source: "\000\102\044\030\044\102\000",
> >            			^
> > 			stopped working here (it's gotten a way to
> > late now.....)
>
> i think you can just remove all the labels like "source:" there
> (provided they are in the right order...) ( although i think it's way
> more readable like it is now, and it seems valid to me too... )

There is a "#if defined(WIN32) || defined(sparc) || defined(_AIX)" on line 
394. Does it help if you add SGI there?

Cheers,
Waldo
-- 
bastian at kde.org  |   SuSE Labs KDE Developer  |  bastian at suse.com





More information about the kde-core-devel mailing list