Hello,
I already post a message in the help forum under the same pseudo (ptebien). I worked a little until now and I would like to submit to your advice some questions :
in the errno_adapted.h file, a first if give a condition to define all the E_* errors codes. Those definition are made if any of the two _STDC_ and __cplusplus macros are undefined. I replace the "and" by "or" between the both conditions.
I added the definiton of the _OSK macro in the target_options.h file in OS8AppEmu/TARGET_STD directory to permit the definition of some os9 constants (like E_SECTSIZE).
I also add a types.h file in the os9defs directory because module.h needs it.
Now, the compiler and the linker complete the built of os9linux program.
Is that conform, or I made something wrong ?
An other question : is it necessary to define the environment variables before running os9linux. The program does't find the path. I tried with a "dd" directory or with a dd raw image file. The result is the same :
# OS9exec V3.39: OS-9 User Runtime Emulator
# Copyright (C) 2007 Lukas Zeller / Beat Forster
# This program is distributed under the terms of
# the GNU General Public License
#
# Platform: 'Linux - PC' (x86)
# - Linux XTerm Version
# - Using 68k-Emulator from UAE - Un*x Amiga Emulator (c) 1995 B. Schmidt
# Building CPU table for configuration: 68020/881
# 1852 CPU functions
# Building CPU function table (3 0 0).
# Emulation could not start due to OS-9 error #000:216 (E_PNNF): 'shell'
# Path Name Not Found
# OS-9 emulation ends here.
Notice that the version is now 3.39
Thank you form your help.
Logged In: YES
user_id=519386
Originator: NO
Your adaptions look reasonable. I've tested compilation for several Linux distributions, so I'm not surprised that minor changes are needed. The intention was to change the original OS-9 files only on a minimum level.
The error message looks like the "shell" can't be found in a dd/CMDS directory. dd must be at the same directory as the os9linux application.