David Arroyo | 15 Aug 2012 23:19
Picon
Gravatar

inferno on netbsd 5.1.2 problem

hi folks!
I'm installing inferno on netbsd 5.1.2 386 pc and I got this error
Can somebody help me? I never installed inferno on netbsd.

cc -c -g -O -Wno-deprecated-declarations -Wuninitialized -Wunused -Wreturn-type -Wimplicit -I/home/davinci/inferno-os//NetBSD/386/include -I/home/davinci/inferno-os//include -I/usr/X11R7/include -I/usr/X11R6/include dec.c
dec.c: In function 'D41':
dec.c:399: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.NetBSD.org/Misc/send-pr.html> for instructions.
mk: cc -c -g ...  : exit status=exit(1)
mk: for j in ...  : exit status=exit(1)


--


David Arroyo | 15 Aug 2012 23:29
Picon
Gravatar

Re: inferno on netbsd 5.1.2 problem

Sorry, it's not the error.
This is the error :
(cd limbo; mk  install)
cc -c -DINCPATH="/home/davinci/inferno-os/module" -g -O -Wno-deprecated-declarations -Wuninitialized -Wunused -Wreturn-type -Wimplicit -I/home/davinci/inferno-os/NetBSD/386/include -I/home/davinci/inferno-os/include -I/usr/X11R7/include -I/usr/X11R6/include -o typecheck.o typecheck.c
typecheck.c: In function 'checkraises':
typecheck.c:3584: error: 'union <anonymous>' has no member named 'erai'
typecheck.c:3584:20: warning: null character(s) ignored
typecheck.c:3584: error: expected ';' before 'es'
typecheck.c:3585: error: 'ifres' undeclared (first use in this function)
typecheck.c:3585: error: (Each undeclared identifier is reported only once
typecheck.c:3585: error: for each function it appears in.)
typecheck.c:3585:12: warning: null character(s) ignored
typecheck.c:3585: error: expected ';' before 'l'
typecheck.c:3585: error: expected statement before ')' token
typecheck.c:3586:4: warning: null character(s) ignored
typecheck.c:3586: warning: statement with no effect
typecheck.c:3586: error: expected ';' before 'r'
typecheck.c:3586:11: warning: null character(s) ignored
typecheck.c:3586:20: warning: null character(s) ignored
typecheck.c:3586:27: warning: null character(s) ignored
typecheck.c:3586:35: warning: null character(s) ignored
typecheck.c:3581: warning: unused variable 'nn'
typecheck.c:3579: warning: unused variable 'd'
mk: cc -c -DINCPATH="/home/davinci/inferno-os/module" ...  : exit status=exit(1)
mk: for j in ...  : exit status=exit(1)


On Wed, Aug 15, 2012 at 9:19 PM, David Arroyo <darroyx-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
hi folks!
I'm installing inferno on netbsd 5.1.2 386 pc and I got this error
Can somebody help me? I never installed inferno on netbsd.

cc -c -g -O -Wno-deprecated-declarations -Wuninitialized -Wunused -Wreturn-type -Wimplicit -I/home/davinci/inferno-os//NetBSD/386/include -I/home/davinci/inferno-os//include -I/usr/X11R7/include -I/usr/X11R6/include dec.c
dec.c: In function 'D41':
dec.c:399: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.NetBSD.org/Misc/send-pr.html> for instructions.
mk: cc -c -g ...  : exit status=exit(1)
mk: for j in ...  : exit status=exit(1)


--





--


дмитрий кабак | 17 Aug 2012 12:37
Picon
Gravatar

Broadcast UDP

Hello everybody,


I'm new to Inferno OS, but I already like it really much and have lots of ideas of how to use it in some real projects.
I'm going to implement some dynamic service-announcement and discovery. And I'm going to do so via broadcast udp datagrams.
I've thought that it could be as simple as 'listen "udp!192.168.1.255!1234" {somecommand}' but that doesn't seem to work. Please tell me, are there any simple ways (in sh or limbo) to send and listen for broadcast udp packets? I've also heard of more low-level way of doing that, providing inferno with raw udp headers. But that's too difficult to understand, and I haven't found any docs or examples.
Or maybe there are some existing service announcement/discovery options?
Thank you in advance!

--
Regards,
Dmitry Kabak

Charles Forsyth | 17 Aug 2012 15:13
Picon

Re: Re: inferno on netbsd 5.1.2 problem

Null characters, mangled names, ... it looks as though the file is corrupt, or at least cc's view of it.

On 15 August 2012 17:29, David Arroyo <darroyx-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
Sorry, it's not the error.
This is the error :
(cd limbo; mk  install)
cc -c -DINCPATH="/home/davinci/inferno-os/module" -g -O -Wno-deprecated-declarations -Wuninitialized -Wunused -Wreturn-type -Wimplicit -I/home/davinci/inferno-os/NetBSD/386/include -I/home/davinci/inferno-os/include -I/usr/X11R7/include -I/usr/X11R6/include -o typecheck.o typecheck.c
typecheck.c: In function 'checkraises':
typecheck.c:3584: error: 'union <anonymous>' has no member named 'erai'
typecheck.c:3584:20: warning: null character(s) ignored
typecheck.c:3584: error: expected ';' before 'es'
typecheck.c:3585: error: 'ifres' undeclared (first use in this function)
... 
Charles Forsyth | 17 Aug 2012 16:48
Picon

Re: Broadcast UDP

There's an example in /appl/lib/virgil.b, although it's mainly useful for the UDP/IP interface code.

The surrounding code is very old, and could be treated as an exercise for the reader in using channels and processes better.
In particular, that technique involving the global "done" variable isn't the way good Limbo would shut down the timer.

See ip(3) for details of the UDP software header scheme, and ip(2) for IPaddr and operations on it.
The ip(2) module also has functions (used by virgil.b and a few others if you grep for them) to work
with Udphdr, which should help. Unfortunately (I've just noticed) the Udphdr type apparently isn't documented,
but the examples in the tree should help.

On 17 August 2012 06:37, дмитрий кабак <userdima-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
... 
Please tell me, are there any simple ways (in sh or limbo) to send and listen for broadcast udp packets? I've also heard of more low-level way of doing that, providing inferno with raw udp headers. But that's too difficult to understand, and I haven't found any docs or examples.
Or maybe there are some existing service announcement/discovery options?
Thank you in advance!

--
Regards,
Dmitry Kabak


Charles Forsyth | 17 Aug 2012 16:50
Picon

Re: Broadcast UDP

registries(2) and registry(4) provide a 9P-based service registry.

On 17 August 2012 06:37, дмитрий кабак <userdima-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
Or maybe there are some existing service announcement/discovery options?

дмитрий кабак | 18 Aug 2012 01:02
Picon
Gravatar

Re: Broadcast UDP

Thank you really much, that's exactly I was looking for! 

2012/8/17 Charles Forsyth <charles.forsyth <at> gmail.com>
registries(2) and registry(4) provide a 9P-based service registry.

On 17 August 2012 06:37, дмитрий кабак <userdima <at> gmail.com> wrote:
Or maybe there are some existing service announcement/discovery options?




--
Regards,
Dmitry Kabak

David Arroyo | 18 Aug 2012 20:49
Picon
Gravatar

Re: Re: inferno on netbsd 5.1.2 problem

I downloaded the code from mercurial repository, I will download again or try the zip file.

El 17/08/2012 15:38, "Charles Forsyth" <charles.forsyth-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> escribió:
Null characters, mangled names, ... it looks as though the file is corrupt, or at least cc's view of it.

On 15 August 2012 17:29, David Arroyo <darroyx-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
Sorry, it's not the error.
This is the error :
(cd limbo; mk  install)
cc -c -DINCPATH="/home/davinci/inferno-os/module" -g -O -Wno-deprecated-declarations -Wuninitialized -Wunused -Wreturn-type -Wimplicit -I/home/davinci/inferno-os/NetBSD/386/include -I/home/davinci/inferno-os/include -I/usr/X11R7/include -I/usr/X11R6/include -o typecheck.o typecheck.c
typecheck.c: In function 'checkraises':
typecheck.c:3584: error: 'union <anonymous>' has no member named 'erai'
typecheck.c:3584:20: warning: null character(s) ignored
typecheck.c:3584: error: expected ';' before 'es'
typecheck.c:3585: error: 'ifres' undeclared (first use in this function)
... 
Frederic Bonfanti | 22 Aug 2012 00:14
Picon

emu/port/devip.c --> Address family not supported by protocol

Hello,

I had to revert recent changes in emu/port/devip.c before being able to compile Linux/386/bin/emu

Anyway, it looks like that's not enough :

; cat /include/version.h
#define VERSION "Fourth Edition (20120820)"

; cat /net/tcp/clone
cat: cannot open /net/tcp/clone: Address family not supported by protocol

; os uname -a
Linux VM1404 2.6.18-308.8.2.el5 #1 SMP Tue Aug 21 11:54:17 EDT 2012 x86_64 x86_64 x86_64 GNU/Linux


Any idea how to fix that or where to get a working binary ?

BR

Alex Efros | 22 Aug 2012 15:28
Favicon
Gravatar

Re: emu/port/devip.c --> Address family not supported by protocol

Hi!

On Wed, Aug 22, 2012 at 03:44:03AM +0530, Frederic Bonfanti wrote:
> ; cat /net/tcp/clone
> cat: cannot open /net/tcp/clone: Address family not supported by protocol

Maybe this is because Inferno in Linux uses IPv6 by default, which can be
disabled in your kernel? Try to replace "ipif6" with "ipif" in
emu/Linux/emu and emu/Linux/emu-g and rebuild Inferno.

--

-- 
			WBR, Alex.


Gmane