PDA

View Full Version : Problems running st19xl in openSUSE 10.3


ericchile
11-18-2007, 06:38 PM
So I run st19xl at my work linux box and it works just fine.

Here at home with openSUSE I get this

eric@cubelinux:~> ls
bin Desktop Documents lin public_html
eric@cubelinux:~> cd lin
eric@cubelinux:~/lin> ls
st19xl
eric@cubelinux:~/lin> ./st19xl -h
eric@cubelinux:~/lin>


Basicly no output... Anyone know why?

norton
11-18-2007, 08:33 PM
I am running into the very same problem using ubuntu 7.10. Try running a strace,
> strace ./st19xl
on it and see what you get. I get errors about 'No such file or directory' in a few places right before it bombs out.

ericchile
11-18-2007, 10:15 PM
Here it is

eric@cubelinux:~/lin> strace st19xl
execve("./st19xl", ["st19xl"], [/* 59 vars */]) = 0
getpid() = 12309
open("/proc/12309/exe", O_RDONLY) = 3
lseek(3, 1528, SEEK_SET) = 1528
read(3, "\357\366\370\6T~\v\0\0\0\10\0", 12) = 12
gettimeofday({1195417037, 952134}, NULL) = 0
unlink("/tmp/upxCU2YCZCAMAV") = -1 ENOENT (No such file or directory)
open("/tmp/upxCU2YCZCAMAV", O_WRONLY|O_CREAT|O_EXCL, 0700) = 4
ftruncate(4, 753236) = 0
old_mmap(NULL, 528384, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f1d000
read(3, "\0\0\10\0\320s\3\0", 8) = 8
read(3, "g?d\371\177ELF\1\0\2\0\3\0\33\201\4\373\377\262\33 3\0104\f4{\v/\27 \0\4 "..., 226256) = 226256
write(4, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\2\0\3\0\1\0\0\0\0\ 201\4\0104\0\0\0"... , 524288) = 524288
read(3, "T~\3\0\326U\0\0", 8) = 8
read(3, "\267\375\373\313\7\0f\340\4\10\37\220\7\3\0\2\0\6\ 36N\335\27\354\335\33 1\263\20\36\33\f\37\351"..., 21974) = 21974
write(4, "\7\0\0\0f\340\4\10\37\220\4\10\3\0\2\0\6\0\0\0N\33 5\4\10\20\220\4\10\2 \0\f\0"..., 228948) = 228948
read(3, "\0\0\0\0UPX!", 8) = 8
munmap(0xb7f1d000, 528384) = 0
close(4) = 0
close(3) = 0
open("/tmp/upxCU2YCZCAMAV", O_RDONLY) = 3
access("/proc/12309/fd/3", R_OK|X_OK) = 0
unlink("/tmp/upxCU2YCZCAMAV") = 0
fcntl(3, F_SETFD, FD_CLOEXEC) = 0
execve("/proc/12309/fd/3", ["st19xl"...], [/* 59 vars */]) = -1 ENOENT (No such file or directory)
close(3) = 0
fork() = 12310
waitpid(-1, NULL, 0) = 12310
--- SIGCHLD (Child exited) @ 0 (0) ---
execve("/tmp/upxCU2YCZCAMAV", ["st19xl"...], [/* 59 vars */]) = -1 ENOENT (No su ch file or directory)
unlink("/tmp/upxCU2YCZCAMAV") = -1 ENOENT (No such file or directory)
_exit(127) = ?

ericchile
11-19-2007, 02:08 AM
execve("/proc/12309/fd/3", ["st19xl"...], [/* 59 vars */]) = -1 ENOENT (No such file or directory)

Same thing your getting? Anyone have a clue?

norton
11-19-2007, 02:14 AM
yea, that looks pretty much identical to what I am seeing. Try this too:

>ltrace ./st19xl

I get "Couldn't find .dynsym or .dynstr in file". I dont have a solution yet. I search for a similar error and found one dealing with wine, their solution was to upgrade to a newer version of wine.

What os are you using on the system that is working? Can you try these commands on that and see what you get, esp the ltrace?

ericchile
11-19-2007, 03:53 PM
No ltrace on the suse box

on the other box....

strace ./st19xl

write(1, "<ST19XL Processor Emulator V2.6."..., 49<ST19XL Processor Emulator V2. 6.01 [PGM] -Linux-
) = 49
write(1, "\n", 1
) = 1
write(1, "Copyright (c) 1998 - 2007, Pierr"..., 69Copyright (c) 1998 - 2007, Pie rre G. Martineau. All rights reserved.
) = 69
write(1, "\n", 1
) = 1
write(1, "This software may NOT be sold wi"..., 63This software may NOT be sold without the author's permission!
) = 63
write(1, "It is intended solely for educat"..., 48It is intended solely for educ ational purposes.
) = 48
write(1, "\"Personal use\" donations are wel"..., 77"Personal use" donations are welcomed, but are neither mandatory or expected
) = 77
write(1, "and may be made via PayPal with "..., 73and may be made via PayPal wit h the following email address: pgm@usa.net
) = 73
write(1, "Constructive comments and sugges"..., 78Constructive comments and sugg estions to pgm@usa.net the rest to /dev/null :>
) = 78
gettimeofday({1195479182, 190286}, NULL) = 0
open("/dev/ttyS0", O_RDWR|O_NONBLOCK|O_NOCTTY) = -1 EACCES (Permission denied)
write(1, "\n", 1
) = 1
time([1195479182]) = 1195479182
open("/etc/localtime", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=877, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40 001000
read(3, "TZif\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\4\0\0\0 \4\0"..., 4096) = 877
close(3) = 0
munmap(0x40001000, 4096) = 0
write(1, " Bad EMU sio port! <11/19/07 "..., 44 Bad EMU sio port! <11/19/0 7 06:33:02>
) = 44
ioctl(0, SNDCTL_TMR_START or TCSETS, {B38400 opost isig icanon echo ...}) = 0
munmap(0x40000000, 4096) = 0
exit_group(0) = ?

ericchile
11-19-2007, 06:22 PM
Fedora Core 8 works fine.... ?

norton
11-20-2007, 01:01 AM
i'm loading a fedora8 vmware box right now. I will report back when i get it up

ericchile
11-20-2007, 06:34 AM
Ok now I can't get st19xl to get the right ports...

[eric@cubelinux emu]$ ./st19xl -s -m -a -dattyAUX0
<ST19XL Processor Emulator V2.6.01 [PGM] -Linux-

Copyright (c) 1998 - 2007, Pierre G. Martineau. All rights reserved.

This software may NOT be sold without the author's permission!
It is intended solely for educational purposes.
"Personal use" donations are welcomed, but are neither mandatory or expected
and may be made via PayPal with the following email address:

Constructive comments and suggestions to the rest to /dev/null :>



Bad EMU sio port! <11/19/07 14:34:25>
[eric@cubelinux emu]$

funty127
11-20-2007, 06:55 AM
Ok now I can't get st19xl to get the right ports...

[eric@cubelinux emu]$ ./st19xl -s -m -a -dattyAUX0
<ST19XL Processor Emulator V2.6.01 [PGM] -Linux-

Copyright (c) 1998 - 2007, Pierre G. Martineau. All rights reserved.

This software may NOT be sold without the author's permission!
It is intended solely for educational purposes.
"Personal use" donations are welcomed, but are neither mandatory or expected
and may be made via PayPal with the following email address: pgm@usa.net
Constructive comments and suggestions to pgm@usa.net the rest to /dev/null :>



Bad EMU sio port! <11/19/07 14:34:25>
[eric@cubelinux emu]$

-da is your aux port. You did not define your emu port using -de switch.

smilingjack
11-20-2007, 07:50 AM
Go into the files section
load a file that has "MY FILE" written on it (near the top)
it is the same file
it runs in DOS (floppy) no mod needed to run one any system
You can fix you locals if you want to.

hell it evey runs my CEMU PPV & Pron

ericchile
11-20-2007, 10:47 PM
Ok got it to run by logging as root. I guess running st19xl as a normal user does not give permission to use /dev/ttyS0 ?