Oberon Community Platform Forum
November 21, 2019, 05:44:32 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: UnixAos on Ubuntu 64  (Read 7899 times)
danp
Newbie
*
Posts: 37


« on: September 03, 2010, 10:32:54 AM »

Hi Guenter,

The new 0.90 release is not starting on Ubuntu 64. I have tried on 10.4 Desktop 64 and 8.04 Server 64, and the message is a strange one:

exec: 31: /usr/aos/aos.linux: not found

but the file exists for sure.
It works fine on a 32bit release.

Thank you for your grate work,
Dan
Logged
gfeldm
Moderator
Newbie
*****
Posts: 29


« Reply #1 on: September 06, 2010, 12:51:47 PM »

Hi Dan,

I just tested it on a notebook with
Logged
gfeldm
Moderator
Newbie
*****
Posts: 29


« Reply #2 on: September 06, 2010, 12:59:10 PM »

Hi Dan (again),

I just tested it on a notbook with a fresh 64 bit Ubuntu
"Linux BulliT 2.6.32-24-generic #41-Ubuntu SMP Thu Aug 19 01:38:40 UTC 2010 x86_64 GNU/Linux"
and had no problems at all.

Can you check if your binary /usr/aos/aos.linux has execution permission?

-- Günter
Logged
danp
Newbie
*
Posts: 37


« Reply #3 on: September 07, 2010, 07:48:11 PM »

Yes it has:

dan@dan-ubu:~$ aos
exec: 33: /usr/aos/aos.linux: not found
dan@dan-ubu:~$ ls -l /usr/aos
total 164
-rwxr-xr-x 2 root sys 18808 2010-02-17 14:09 aos.linux
-rwxr-xr-x 2 root sys 18808 2010-02-17 14:09 aos.linux.deb5
-rwxr-xr-x 1 root sys 18720 2009-11-13 15:04 aos.linux.rhel
drwxr-xr-x 2 root sys 36864 2010-06-02 15:01 obj
drwxr-xr-x 2 root sys 61440 2010-05-06 18:55 system
drwxr-xr-x 2 root sys  4096 2006-09-30 02:15 XFonts
dan@dan-ubu:~$ uname -a
Linux dan-ubu 2.6.32-24-generic #42-Ubuntu SMP Fri Aug 20 14:21:58 UTC 2010 x86_64 GNU/Linux
dan@dan-ubu:~$

Dan
Logged
gfeldm
Moderator
Newbie
*****
Posts: 29


« Reply #4 on: September 08, 2010, 01:56:43 PM »

Hi Dan,

I'm not able to reproduce the problem you encountered. Have tried it
on a couple of machines. But what I can see in your last post is that
the contents of your /usr/aos don't belong to the latest release of
UnixAos. For release 0.90 it should look like this:

total 144
-rwxr-xr-x 2 root sys 18808 Feb 17  2010 aos.linux
-rwxr-xr-x 2 root sys 18808 Feb 17  2010 aos.linux.deb5
-rwxr-xr-x 1 root sys 18720 Nov 13  2009 aos.linux.rhel
drwxr-xr-x 2 root sys 28672 Jul 28 20:26 fonts
drwxr-xr-x 2 root sys 36864 Aug 20 15:12 obj
drwxr-xr-x 2 root sys 20480 Jul 28 20:40 system

-- Günter
Logged
danp
Newbie
*
Posts: 37


« Reply #5 on: September 09, 2010, 11:08:51 PM »

Hi Guenter,

Yes, you have right, I have tried more versions, seen the 0.90 doesn't work, and I have sent you the wrong one. I have just installed a fresh server 10.4 and the result is the same:

dan@ubuntu:~/tmp$ aos
exec: 31: /usr/aos/aos.linux: not found
dan@ubuntu:~/tmp$ ls -l /usr/aos
total 148
-rwxr-xr-x 2 root sys 18808 2010-02-17 14:09 aos.linux
-rwxr-xr-x 2 root sys 18808 2010-02-17 14:09 aos.linux.deb5
-rwxr-xr-x 1 root sys 18720 2009-11-13 15:04 aos.linux.rhel
drwxr-xr-x 2 root sys 32768 2010-07-28 20:26 fonts
drwxr-xr-x 2 root sys 36864 2010-08-20 15:12 obj
drwxr-xr-x 2 root sys 20480 2010-07-28 20:40 system
dan@ubuntu:~/tmp$ uname -a
Linux ubuntu 2.6.32-24-server #39-Ubuntu SMP Wed Jul 28 06:21:40 UTC 2010 x86_64 GNU/Linux
dan@ubuntu:~/tmp$

But I can confirm you it works on an old Ubuntu 7.10 64bit with 2.6.22.14-server kernel. Unfortunately I'm not able to make it run on the new version.

Dan
Logged
gfeldm
Moderator
Newbie
*****
Posts: 29


« Reply #6 on: September 10, 2010, 01:16:27 PM »

Hi Dan,

it would be worth to recompile aos.linux. The sources (a small C program) reside in the A2 repository.

Just do the following:

cd <rep>/UnixAos/boot
make -f Makefile.linux
cp aos.linux <installdir>

If the new binary works I would like to get a copy.

-- Günter
Logged
danp
Newbie
*
Posts: 37


« Reply #7 on: September 10, 2010, 08:41:37 PM »

Hi Günter,

I have tried. This is the result:

dan@dan-ubu:~/work/UnixAos/boot$ make -f Makefile.linux
rm -f *.o
gcc -m32 -c -DLINUX  oberon.c
oberon.c: In function ‘traphandler’:
oberon.c:87: warning: format ‘%x’ expects type ‘unsigned int’, but argument 3 has type ‘void *’
oberon.c: In function ‘CreateSignalstack’:
oberon.c:149: warning: format ‘%x’ expects type ‘unsigned int’, but argument 2 has type ‘void *’
oberon.c:149: warning: format ‘%x’ expects type ‘unsigned int’, but argument 3 has type ‘void *’
oberon.c: In function ‘dl_open’:
oberon.c:166: warning: format ‘%x’ expects type ‘unsigned int’, but argument 2 has type ‘void *’
oberon.c: In function ‘SetupXErrHandlers’:
oberon.c:246: warning: assignment from incompatible pointer type
oberon.c:247: warning: assignment from incompatible pointer type
gcc -m32 -c -DLINUX  Threads.linux.c
gcc -m32 -s -o aos.linux oberon.o Threads.linux.o -lpthread -lX11 -ldl -lrt -lm
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.4.3/../../../libX11.so when searching for -lX11
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.4.3/../../../libX11.a when searching for -lX11
/usr/bin/ld: skipping incompatible /usr/lib/libX11.so when searching for -lX11
/usr/bin/ld: skipping incompatible /usr/lib/libX11.a when searching for -lX11
/usr/bin/ld: cannot find -lX11
collect2: ld returned 1 exit status
make: *** [aos.linux] Error 1
dan@dan-ubu:~/work/UnixAos/boot$

Dan
Logged
gfeldm
Moderator
Newbie
*****
Posts: 29


« Reply #8 on: September 13, 2010, 08:50:43 AM »

Hi Dan,

that makes things much clearer. It looks like the 32-bit libraries have not been
installed on your system. The 32-bit libraries are needed for development *and*
execution of 32-bit applications! 'aos.linux' is a 32-bit application.

-- Günter
Logged
danp
Newbie
*
Posts: 37


« Reply #9 on: September 13, 2010, 10:50:20 PM »

Hi Günter,

I have installed ia32-libs and now UnixAos is working. Unfortunately the TCPServices is not, it lose connection instantly:

{P cpuid= 0, pid= -300602512 Service 5007 open 0}
dpsServer service started:   2010-09-13 23:27:51
{P cpuid= 0, pid= -359343248 Service 5007 result 3705}

Only few times it kept up enough to receive the first client connection.
This works fine in WinAos.

Thanks,
Dan
Logged
gfeldm
Moderator
Newbie
*****
Posts: 29


« Reply #10 on: September 14, 2010, 01:10:53 PM »

Hi Dan,

I haven't used TCPServices so far. The modules Unix.{TCP,UDP,DNS}.Mod are all based
on module Unix.NetBase.Mod which I have taken over from the old SPARC.oberon system.
Module NetBase was created in the 1990th and lacks support for IPv6. In UnixAos it has only
been tested as base for the SSHClient module. I think there is much room for improvements
in the network modules of UnixAos. Angry

-- Günter
Logged
dharmatech
Newbie
*
Posts: 14


« Reply #11 on: October 10, 2010, 09:54:12 PM »

Hi,

Just wanted to add a success report. UnixAos worked for me out of the box on Ubuntu 10.10 64-bit.

Fantastic work Günter!

Ed
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!