[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problems compiling Janos VM



> 
> Sorry if this is a duplicate.  I sent this earlier, but never
> saw it show up in the discussion group and never got a reply.
> So, I'm trying again.

Sorry, it just barely showed up in my email, odd...

> Pete

> OK ... I have restarted the ENTIRE process.  This is to
>   be sure that my build is NOT done in the source tree, just
>   in case, and the ensure that I have the latest everything.
> 
>   As suggested by Tim Stack, I retrieved the latest JNODEOS from
>   CVS and remade it.  Then, I tried to make the JANOSVM. 
> 
>   The script I use to make the JANOSVM is:

>   /home/janos//janosvm/libraries/extensions/nodeos/clib/jsiPlexUDP.c: In 
> function
>   `jsiCallBack':
>   /home/janos//janosvm/libraries/extensions/nodeos/clib/jsiPlexUDP.c:121: 
> warning: passing arg 2 of `jsiPlexWindowRecvPacket'
>   from incompatible pointer type
>   /home/janos//janosvm/libraries/extensions/nodeos/clib/jsiPlexUDP.c:121: 
> warning: passing arg 3 of `jsiPlexWindowRecvPacket'
>   from incompatible pointer type
>   /home/janos//janosvm/libraries/extensions/nodeos/clib/jsiPlexUDP.c:121: too 
> few
>   arguments to function `jsiPlexWindowRecvPacket'

Doh, i guess we missed this...  Here's the diff between my, i assume
fixed, tree and the current release:

@@ -93,6 +93,7 @@
 	int iplen, iLockRoot;
 	struct ethHeader *eh;
 	struct udphdr *udph;
+	jsiChannel *jc;
 	struct ip *iph;
 
 	anjthread_enterkaffe_c();
@@ -116,8 +117,10 @@
 	plp->header.messageID = ntohs(plp->header.messageID);
 	plp->header.channelID = ntohs(plp->header.channelID);
 	jsiObtainPlexLink(pil->link);
-	jsiPlexWindowRecvPacket(pil, &rc.plc, plp);
+	jc = jsiPlexWindowRecvPacket(pil, 0, &rc.plc, plp);
 	jsiReleasePlexLink(pil->link);
+	if( jc )
+		pil->provider->handleConnection->func(pil->provider, jc);
 	an_inchan_addpbuf(&pui->inChannel, buffer);
 	anjthread_exitkaffe_c();

@@ -181,8 +190,9 @@
 }
 
 static
-void handleUDPLink(jsiPlexInLink *pil)
+jsiChannel *handleUDPLink(jsiPlexInLink *pil)
 {
+	return NULL;
 }
 
 static
@@ -362,7 +372,7 @@
 		memset(&attr, 0, sizeof(attr));
 		puo->next = pu->outLinks;
 		pu->outLinks = puo;
-		strcpy(attr.proto.data, "if4");
+		sprintf(attr.proto.data, "if%d", pu->ifNumber);
 		attr.proto.len = strlen(attr.proto.data);
 		memcpy(attr.addr.eth.daddr,
 		       rc->physAddr,
@@ -406,6 +416,7 @@
 	jsiPlexOutLink *retval = 0;
 	int port;
 
+#if 0
 	if( parseString(format,
 			SPO_NonEmptyString, &protocol,
 			SPO_Expect, ":",
@@ -435,6 +446,7 @@
 		if( valid )
 			retval = getUDPOutFromContext(pl, &rc.plc);
 	}
+#endif
 	return( retval );
 }

>   Can you help?  You've been great, so far.
> 
>   Pete

tim stack




[ Janos ] [ OSKit ] [ Network Testbed ] [ Flick ] [ Fluke ]
Flux Research Group / Department of Computer Science / University of Utah