>
> I've come across two items so far that are making it difficult
> to compile the cdevGenericServer on Solaris. They both have
> to do with variations in how HP and Sun have implemented the
> C++ compiler. Just FYI. You probably should avoid these
> constructs in the future. I'm working on getting around them.
>
> One:
> Sun C++ 4.1 no longer allows prototypes which use the same
> argument name repeatedly. In this case, "server"
>
> NameServerClient.h:
> inline NS_ServerTable* downloadServers (char *domain=NULL, char
> *server=NULL, char *server=NULL);
Wow... Thats vulgar (programming) language, anyway. I must have
put that in by accident and will definitely be getting rid of it
in the future.
>
> Two:
> Sun C++ 4.1 does not allow:
>
> MultiQueue.h:
> memset(prev, 0, sizeof(class MultiQueueNode *)*queueCount);
> inside the declaration of "class MultiQueueNode".
>
> ...
> => CC -c cdevSessionManager.cc -o .obj/solaris-5.XX/cdevSessionManager.o
> "/home/phoebus2/SAUNDERS/cdev1.4/extensions/cdevGenericServer/include/MultiQueue.h",
> line 29: Error: Multiple declaration for MultiQueueNode.
> ...
>
Hmm... I haven't looked at this code recently (in the past week or
so), but, I would bet that MultiQueueNode is a template - and that
the preferred way of writing it should be something like
"memset(prev, 0, sizeof(class MultiQueueNode<queueCount> *)*queueCount);"
I am planning to have a port-a-thon with this code prior to the
release of cdev 1.5 - and hopefully I'll be able to fix all of these
problems and any others that might pop up in the weeks to come...
Keep those cards and letters coming...
Walt
--
=============================================================
Walt Akers Voice: (757)269-7669 E-Mail: akers@cebaf.gov
Thomas Jefferson National Accelerator Facility
12000 Jefferson Avenue, MS 16A
Newport News, Va 23606
=============================================================