|
|
|
|
| Welcome, Guest | Home | Search | Login | Register | |
| Author | Trying to compile Jabbernaut and need some help! (Read 125140 times) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
lauland
512 MB ![]() ![]() ![]() ![]() ![]() Posts: 674 Symtes 7 Mewconer! |
Reply #30 on: April 01, 2024, 20:10
So I've been using my TiBook for working on these things, but wanted to save wear and tear on it, and also be able to work on it at coffee houses on my MacBook Pro. So I set up a Basilisk and SheepShaver enviroments. Was unable to install CW6 on Basilisk and discovered that although it is the last CodeWarrior able to produce m68k apps, it itself does NOT run on m68k. Such a shame because Basilisk is wicked fast on my modern mac! |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
cballero
|
1024 MB ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1176 System 7, today and forever
Reply #31 on: April 02, 2024, 00:26
|
That's the main issue with the 68k space: so much that could have been released for it just wasn't, obviously to focus on the PowerPC platform. And truly, Basilisk II is a real speed-demon on modern Macs! I have used both the following Mac and Windows port of SheepShaver with pretty good success (it's a modern link which should work fine on your Mac) just install and boot up: https://mendelson.org/macos9osx.html It comes ready to go with all of the essentials on a 4GB image with Classilla and plenty more preinstalled, which should help with CW6
Last Edit: April 02, 2024, 00:29 by cballero
|
Bolkonskij
|
Administrator 1024 MB ![]() ![]() ![]() ![]() ![]() Posts: 2023
Reply #32 on: April 03, 2024, 09:23
|
Funny, this is almost the opposite than ShinobiKenobi's issue in the other thread :-) Have you tried out Think C on your emulated 68k environment?
|
lauland
|
512 MB ![]() ![]() ![]() ![]() ![]() Posts: 674 Symtes 7 Mewconer!
Reply #33 on: April 08, 2024, 01:42
|
Dang, I could've skipped some steps if I'd known about the mendelson.org image! Still will take a look. I think my Basilisk 7.5.3 CW6 build env image will boot SheepShaver so that's what I'm going to try next. Another thing is I've got a hackintosh virtualbox, and that'll run cw6 as native MacOS X (PPC vi rosetta on 10.6). But it'd probably be slower than SheepShaver... Anyway, I'm starting a fresh stab...being very careful with dang OpenSSL headers this time!
|
Knezzen
|
Administrator 512 MB ![]() ![]() ![]() ![]() ![]() Posts: 608 Village idiot
Reply #34 on: April 08, 2024, 09:23
|
Still crossing my fingers, lauland! Hope you'll get it to compile at last
|
Bolkonskij
|
Administrator 1024 MB ![]() ![]() ![]() ![]() ![]() Posts: 2023
Reply #35 on: April 08, 2024, 09:53
|
Add me to the list - good luck!
|
lauland
|
512 MB ![]() ![]() ![]() ![]() ![]() Posts: 674 Symtes 7 Mewconer!
Reply #36 on: April 08, 2024, 16:36
|
Goliath: Going MUCH smoother this try! No weird OpenSSL prototype or cast issues (Derp, I wonder WHY?!?). So far just the kind of PowerPlant problems I expected going from CW8 to CW6. It looks my (ppc only) build I had in CW8 used aliases for the include/openssl headers and that was how things got confused. This time around I only copied (not aliased) each OpenSSL header as the code tried to compile. I'm running CW6 in SheepShaver, and a little disappointed in the speed. I haven't directly compared, but feels slower than the actual native TiBook...but it's worth it being able to use my modern MacBook and not putting strain on the old hardware. Jabbernaut: I'm going to concentrate on Goliath first, since its code base is a lot less complex, and I already have it building in CW8. Plan on doing something similar with what I did with OpenSSL...I'll remove ALL the dependencies from the source tree, and only copy the files it needs as it gets to them.
Last Edit: April 08, 2024, 17:29 by lauland
|
Knezzen
|
Administrator 512 MB ![]() ![]() ![]() ![]() ![]() Posts: 608 Village idiot
Reply #37 on: April 08, 2024, 19:26
|
Great that you're making some progress
|
lauland
|
512 MB ![]() ![]() ![]() ![]() ![]() Posts: 674 Symtes 7 Mewconer!
Reply #38 on: April 08, 2024, 21:40
|
Ok, I have Goliath building completely in CW6 for PPC...but when run it immediately quits! Time to add some debug printf's! I'm not positive I have all the right libs...I had to re-add them since the names were different from CW8 (and/or things moved around). But I'm testing in SheepShaver and it doesn't look like I have networking set up, so maybe it just quits if it can't init the net. Need to test it on a real machine! Some good news, it definitely supports MacTCP and not just OpenTransport...I had to add all the MacTCP stuff back in. 90% of the changes needed were adding #includes, just a couple casts, a couple changing from const. The m68k version is compiling as we speak, but I don't expect it to get all the way through...
|
lauland
|
512 MB ![]() ![]() ![]() ![]() ![]() Posts: 674 Symtes 7 Mewconer!
Reply #39 on: April 08, 2024, 22:19
|
So it actually compiles with no errors on m68k...but doesn't link because I need to add all the m68k version of the Mac libraries, OpenTransport, etc etc. But I noticed I accidentally left the defaults "small model", 2 byte alignment and 2 byte ints, so I'm rebuilding now... (Was getting several ominous int vs long warnings!)
Last Edit: April 08, 2024, 22:22 by lauland
|
Knezzen
|
Administrator 512 MB ![]() ![]() ![]() ![]() ![]() Posts: 608 Village idiot
Reply #40 on: April 08, 2024, 22:43
|
Wow!
|
lauland
|
512 MB ![]() ![]() ![]() ![]() ![]() Posts: 674 Symtes 7 Mewconer!
Reply #41 on: April 08, 2024, 23:24
|
Goliath: Ok, 41 link errors for the m68k version... The vast majority seem to be OpenSSL related...which is very strange...my current guess is maybe it's a C++ thing with name mangling...but very strange since the PPC one is fine. Could be something subtle with caps or truncated function names? Anyway, I need to verify the functions it says are missing are actually being compiled... Then it looks like it's trying to call InternetConfig functions...no idea if there's a link library I'm missing...or if it's assumed on the PPC so the functions are included in InterfaceLib, etc... Finally a lot of missing Unicode encoding functions. For PPC there are stub libraries but it looks like CW6 doesn't have m68k versions... The missing InternetConfig and Unicode could be the same sort of name mangling as the seemingly obvious OpenSSL stuff. It's also possible, but unlikely, that the OpenSSL project file and/or config just doesn't include as many protocols/formats/etc for m68k vs ppc. I used a version of the supplied project file, but may try converting the ppc one to m68k like I had to do for Goliath itself.
|
lauland
|
512 MB ![]() ![]() ![]() ![]() ![]() Posts: 674 Symtes 7 Mewconer!
Reply #42 on: April 08, 2024, 23:25
|
If the PPC app I built works, I'll upload the cw6 ppc and m68k build folders to macintoshgarden (probably). Otherwise, if one of you guys gets a wild hair...let me know if you think it'd be "fun" to help fix the link errors...
|
cballero
|
1024 MB ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1176 System 7, today and forever
Reply #43 on: April 09, 2024, 16:42
|
Amazing Lauland, I am in total awe, and am so excited to see how far you've come on it, way to go!!! ![]() I know we have some programming skills in our S7T group.. hmm, perhaps it's time to invite Adespoton and maybe others to the mix now? let me see if I can PM him on it
|
lauland
|
512 MB ![]() ![]() ![]() ![]() ![]() Posts: 674 Symtes 7 Mewconer!
Reply #44 on: April 09, 2024, 19:50
|
The PPC version I built with CW6 just quits after starting...tested on real machine. After much adding debug printf's, I've tracked the problem to file io. When it starts it tries to open and/or create its prefs file(s), and when it hits any exception thrown it either hangs or calls its exit routines. There is a note in the source that says something like "here's the bug in powerplant", and it looks like it is setting EOF and then throwing an EOF exception...in the middle of writing "blocks" of data to a file...which looks like an attempt to get around a problem, by force marking the file as EOF, possibly to cause a flush? Commenting out all the throws and seteofs it gets farther, but is unable to open any files...after trying and failing to open/create the prefs it tries to read several others, don't know what they are but will add filename to printfs to see. After failing to open any of the files it wants, it just gives up. So in moving from CW8 to CW6, I'm using a completely different version of powerplant, and maybe Goliath is making assumptions about the file io implementation or misusing it in some way. One thing to try is to possibly see if I can build the CW8 version of powerplant with CW6... It seems to be having trouble both reading and writing...very weird.
|
|
Pages: 1 2 [3] 4 5 6
|
| |||||||||||||||
|
© 2021 System7Today.com. |




let me see if I can PM him on it