As for 2.0.6, so, it installs orcacdefs and orcalib in /lib but also /lang/orca with empty languages, shell, utilities, libraries directories. I populated the shell, languages and utilities directories from 2.0.4 /ORCA.gno and left the librariesdirectory empty. I created an “alias cc /usr/bin/occ” and can create foo.c and compile it issuing “cc -o foo foo.c” and if it’s a simple hello world or uses %d in a printf works okay, compiles and runs. If I then use %f it will crash every time.
On 11/1/2022 4:37 PM, Tom Thumb wrote:directory empty. I created an “alias cc /usr/bin/occ” and can create foo.c and compile it issuing “cc -o foo foo.c” and if it’s a simple hello world or uses %d in a printf works okay, compiles and runs. If I then use %f it will crash every time.
As for 2.0.6, so, it installs orcacdefs and orcalib in /lib but also /lang/orca with empty languages, shell, utilities, libraries directories. I populated the shell, languages and utilities directories from 2.0.4 /ORCA.gno and left the libraries
GNO/ME 2.0.6 has some broken C header files. I landed up finding fixes
for various compile errors searching Usenet posts. Apparently these
files were never fixed all these years.
I put everything back as it was and am going to follow the FAQs at
gno.org. I had been there for another reason before. I should have
looked at the orca/c centric stuff before blurting here and see what
works out.
Following the instructions in the FAQ should work, at least for ORCA/C
2.1 or later on GNO 2.0.6. I would recommend just using the latest
versions, and not trying to mix components from different ones.
To change file types and languages on GNO, you can use the chtyp
utility, e.g. "chtyp -lcc foo.c". As you noticed, occ will change the
type automatically for C source files, although not for any headers
they include.
Also, there are some updates available for both GNO and ORCA/C. These
are not needed to get started, but I would recommend them:
GNO updates:
https://github.com/ksherlock/gno/releases/latest
ORCA/C updates:
https://github.com/byteworksinc/ORCA-C/releases/latest
Updated ORCALib for GNO (for use with updated ORCA/C): https://github.com/byteworksinc/ORCALib/releases/latest
--
Stephen Heumann
And that works but I didn’t have lsaneglue anywhere and used the first one I found at:
https://mirrors.apple2.org.za/ground.icaen.uiowa.edu/Mirrors/trenco/gno/base/v206.interim/beta.980324/libs.980324.shk
I didn’t know all this work had been done and first thing I thought was how am I going to keep versions of libraries straight and compatabilities. Your post helps alot, I’ve been over to github and I’ll have to sort through all these new to melibraries, patches and updates.
Orca compiled the Fahrenheit - Celsius table exe to about 6k, gno 2.0.4 about 10k and gno 2.0.6 to about 41k but maybe another libc version or libraries might cut that down. I had read somewhere the lack of optimization and the reasoning behind it.
Once you have a working installation of ORCA/C 2.1 on GNO (which it sounds like you do now), the updates can basically be installed as follows:
1. Copy GNO updates into the root directory of your GNO installation.
2. Copy ORCA/C update into /lang/orca
3. Copy updated ORCALib for GNO into /lib
In each case, let the updates replace any older versions of the files they contain.
--
Stephen Heumann
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 490 |
Nodes: | 16 (1 / 15) |
Uptime: | 74:45:31 |
Calls: | 9,678 |
Calls today: | 2 |
Files: | 13,722 |
Messages: | 6,172,593 |