Author Topic: Networking: socket() returns positive `non-socket`  (Read 1328 times)

agena.info

  • Newbie
  • *
  • Posts: 9
  • Karma: +1/-0
    • View Profile
    • Agena Programming Language
Re: Networking: socket() returns positive `non-socket`
« Reply #15 on: July 08, 2025, 10:58:47 am »
The ArcaOS development environment I paid EUR 150,- for does not work at all !

Had a nice time with OS/2 - I really loved it - and thank you for all the support you have given.

agena.info

  • Newbie
  • *
  • Posts: 9
  • Karma: +1/-0
    • View Profile
    • Agena Programming Language
Re: Networking: socket() returns positive `non-socket`
« Reply #16 on: July 08, 2025, 11:36:31 am »
Thank you for all your kind help. Thank you, indeed. Especially you, Dave on your cool math OS/2 fix.

I just decided to remove all OS/2-related code from Agena. It took me lifetime weeks with all the weird OS/2 quarrels with no avail.

Nobody is using OS/2 any longer. And this is really sad. But I have to accept that.

Alex

Roderick Klein

  • Hero Member
  • *****
  • Posts: 738
  • Karma: +14/-0
    • View Profile
Re: Networking: socket() returns positive `non-socket`
« Reply #17 on: July 09, 2025, 12:09:43 am »
The ArcaOS development environment I paid EUR 150,- for does not work at all !

Had a nice time with OS/2 - I really loved it - and thank you for all the support you have given.

Well where was advertised that ArcaOS was a development environment ? BTW the networkstack in ArcaOS is the same as eComStation and MCP 2.
So you it should fail on older versions of OS/2 as well.

Roderick

Dave Yeo

  • Hero Member
  • *****
  • Posts: 5463
  • Karma: +131/-1
    • View Profile
Re: Networking: socket() returns positive `non-socket`
« Reply #18 on: July 09, 2025, 01:11:51 am »
Thank you for all your kind help. Thank you, indeed. Especially you, Dave on your cool math OS/2 fix.

I just decided to remove all OS/2-related code from Agena. It took me lifetime weeks with all the weird OS/2 quarrels with no avail.

Nobody is using OS/2 any longer. And this is really sad. But I have to accept that.

Alex

Shame to see you go, but quite understandable as the OS/2 base continues to shrink.

JTA

  • Jr. Member
  • **
  • Posts: 81
  • Karma: +0/-0
    • View Profile
Re: Networking: socket() returns positive `non-socket`
« Reply #19 on: July 09, 2025, 03:31:36 pm »
" Nobody is using OS/2 any longer. And this is really sad. But I have to accept that. "

We don't have actual numbers because no company releases them in an easily digestable form, easily found by all. I'd contend that there are still quite a large number out there based upon:
- ArcaNoae's info page:  arcanoae.com/faqwd/os2-still-used-today/
  (ask AN to release real numbers, which they should have)
- OS2World's "hit count" on many pages, showing 10's of 1000's of views
- popularity of archive.org content, and many other sites hosting such content
- gaming, dev, ...

For myself, it is super-easy to use OS/2 (Warp 4.52, ArcaOS) in virtualization, so I actually use it quite frequently, not having any of the problems that most have, trying to run natively on modern (or old) hardware ... for details, look at the virtualization sub-forum on this site:

  os2world.com/forum/index.php/topic,3501.0.html  (many AToF posts)

I only point this last part out, because, virtualization allows you to run a modern 64-bit os as a "service" for your dev machine or other functional use (the AToF scheme); the x64 service removes all OS/2 problems. On top of that, you can have multiple OS/2 vm's running (an Athena dev vm), each dedicated to your dev, testing or usage requirements. In particular, you can craft a specific DEV vm for os/2 (GCC, EMX, etc.) that is both easy to create (snapshots until it's perfect), or, you can have some of the dev experts create one for you (I respectfully suggest @Kyo, @Paul, many others), perhaps for money, to repay their time?

What has fallen by the wayside isn't OS/2 itself, it's the lost knowledge of how to tune it for modern times (in a vm). I routinely bring up a VM with os/2 2.11, or warp 3 or 4, or arcaos, and it is built as if the year was still 19xx (4.52 or earlier), or 2025 (AOS 5.x or later), and they work flawlessly, each running the software of it's time. Virtualization enables this ...

I'd suggest recreating your athena programming environment to reflect running OS/2 in the same way as when Athena did run (natively) in a reasonable fashion. Then, many can compare vm's to see if AOS can be improved to move Athena forward, or if it should remain available, but only on older OS/2 versions that continue to run perfectly fine in a VM.

Hope this helps ...
« Last Edit: July 09, 2025, 03:37:46 pm by JTA »

JTA

  • Jr. Member
  • **
  • Posts: 81
  • Karma: +0/-0
    • View Profile
Re: Networking: socket() returns positive `non-socket`
« Reply #20 on: July 09, 2025, 04:40:44 pm »
" Shame to see you go, but quite understandable as the OS/2 base continues to shrink. "

This comment got me thinking ... I'm not sure it's "shrinking", so much as folks just don't know how to get OS/2 stuff done in modern times. Perhaps this is an issue with "getting the message out", to dev's, gamer's, end-user's, etc.

I think many, many folks get hold of OS/2, try it once and have some issue with connectivity or browsing, and bail. Aside from Martin's and a few others' prepackaged VM that has it working from the start, but which is not well advertised, there is nothing to help these folks out.

** Most likely, we only get one shot. **

I can't think of any vehicle more important than:
- Warpstock ... this org seems "glacial" to me ... it still exists, but moves very slowly, so it seems to not get the word out to those who need it. You would want to go here, but there's nothing "there". This thread itself cries out for a "dev model" or template (or three), that anyone can d/l and run, and do productive things with. I suggest pre-built vm's ...
- user groups ... these do seem to have fallen by the wayside, and I don't know what to do. I tried joining a cali one, but that just dead-ended. So, user groups need to be rekindled, somehow ...
- Team OS/2 ... I've harped on this, and I'll gladly be one of the cheerleaders, but, somehow, we've all got to get together and decide how to push this forward.

I've done several threads on the above, but, in a forum, it's hard to evangelize and get action ... something else is needed.

In the meantime, AToF works, and would work well for dev's, gamer's, end-user's (working to complete my "Live-USB" concept (BTW, I need ArcaOS to work towards a "demo" mechanism, cause I'm stuck using "warp 3" demo as a placeholder VM (demo licensing issues for a LiveUSB))), and many other use cases. OS/2 is still very relevant ... it needs to be in front of everyone's face, so they stop bleating that it is dead (apparently, we all enjoy beating a supposedly dead horse).
« Last Edit: July 10, 2025, 03:13:57 pm by JTA »

Lars

  • Hero Member
  • *****
  • Posts: 1443
  • Karma: +72/-0
    • View Profile
Re: Networking: socket() returns positive `non-socket`
« Reply #21 on: July 12, 2025, 02:23:47 pm »
Can someone help me in setting up the build env ? I would like to build but seemingly, mapmagena and agena are asking for a bunch of libs where I don't know where to get the from, left alone how to build them.

I have some idea of what goes wrong with the socket code.

Dave Yeo

  • Hero Member
  • *****
  • Posts: 5463
  • Karma: +131/-1
    • View Profile
Re: Networking: socket() returns positive `non-socket`
« Reply #22 on: July 12, 2025, 05:41:39 pm »
I started trying to build it. Where to put the prerequisites was unclear, I did find a hint that perhaps ports. Seems the build system builds most of them during the main build. I was using my ram disk for this and backing it up now and again when Alex announced he was quitting OS/2 development so never asked any of the questions that were arising.
I was looking to figure out why swab() was declared twice even though guarded, probably by compiling with CFLAGS=-E to get the pre-processor output after the build failed. Never got that far.
I've uploaded my work in process to ftp://dry@ftp.os2voice.org/tmp/agena-5.1.zip. The prerequisites are in ports/ never did examine the makefile well enough to know if that is correct. mapmagena needed mapm of which I found a copy and built.
Good luck and I can play along if needed. Let me know when you've downloaded the source and I'll remove it.
Edit: typo

Lars

  • Hero Member
  • *****
  • Posts: 1443
  • Karma: +72/-0
    • View Profile
Re: Networking: socket() returns positive `non-socket`
« Reply #23 on: July 12, 2025, 09:56:54 pm »
don't know username and password...

Tom

  • Full Member
  • ***
  • Posts: 225
  • Karma: +6/-0
    • View Profile
Re: Networking: socket() returns positive `non-socket`
« Reply #24 on: July 12, 2025, 11:16:00 pm »
don't know username and password...

The username is dry and is already passed to the website in the provided URL. You only need to enter an email address for the password.