Recent Posts

Pages: [1] 2 3 ... 10
1
As Dave mentioned, we need know a bit more about your development setup and build options.

Since you are building with gcc, I'm going to assume for now that you are building with kLIBC and you are using the most recent versions of libn0.dll and libcx0.dll from the netlabs repos.

You should be using the OS/2 toolkit headers provided by the libc-devel package.  They work better with gcc and kLIBC than the IBM supplied headers.

FWIW, addsockettolist and removesocketfromlist are documented and they are used by kLIBC.  kLIBC needs them to implement fork().

Another FWIW, I have seen the ENOTSOCK failure mode when running git against large repositories on a busy system, but perhaps not for the same reason you are.  In my case the failure is intermittent and retrying the git operation when the system is less busy typically avoids the failure.

Note that OS/2 has separate namepaces for sockets and file handles, unlike Linux.  kLIBC emulates the Linux way to make porting apps simpler.  This requires using kLIBC for all file and socket operations.
3
Programming / Re: Qt6 Application Testing
« Last post by Remy on Today at 12:10:06 am »
A process dump might be useful...

Ok,
How to proceed ?
Thanks
4
Programming / Re: Qt6 Application Testing
« Last post by Paul Smedley on July 06, 2025, 10:34:38 pm »
A process dump might be useful...
5
Programming / Re: Networking: socket() returns positive `non-socket`
« Last post by Dave Yeo on July 06, 2025, 09:07:40 pm »
Post to the latest thread.
I'd patiently wait for a response from someone who knows this stuff. For many it is a long weekend.
Which headers are you using? Are you linking against libcx (-lcx). Also what cflags/ldflags are you using?
6
Networking / Re: Networking: socket() returns positive `non-socket`
« Last post by Dave Yeo on July 06, 2025, 09:03:07 pm »
I'd patiently wait for a response from someone who knows this stuff. For many it is a long weekend.
Which headers are you using? Are you linking against libcx (-lcx). Also what cflags/ldflags are you using?
7
Programming / Re: Qt6 Application Testing
« Last post by Remy on July 06, 2025, 04:45:29 pm »
Again, system frozen state.

Could get out doing: unplug/plugin USB wireless dongle then kill Dooble (do not exit but kill)

I've got a second time a frozen state and before killing it, I could take several theseus outputs I put into a zip file.
May it be helpfull to find the problem ?
8
Programming / Networking: socket() returns positive `non-socket`
« Last post by agena.info on July 06, 2025, 08:46:50 am »
Hello,

I am having a big problem with socket programming in C:

Every time I open a socket with:

int sock = socket(AF_INET, SOCK_STREAM, 0);

and try to bind or connect later on I get an 38 error code, claiming that these functions have been called with a non-socket (`Socket operation on non-socket`).

The result returned by socket is always a positive integer, mostly starting from 3.

I even included a call to the undocumented addsockettolist() function after opening the socket, but to no avail.

What am I doing wrong ?  I use ArcaOS 5.0.6 and Paul Smedley's GCC 4.4.6 and 8.3.0. I do not use any OS/2-specific flags like _EMX_TCPIP or TCPV40HDRS in the code (they wouldn't help anyway). Do I need to load any specific TCP/IP-related drivers during boot time other than the ones that are already included in CONFIG.SYS, or do I have to link against additional TCP/IP-specific libraries other than socket (-lsocket flag) ?

The C code that is run on ArcaOS to open, bind, connect, etc. is the very same as with Windows, Solaris, Linux, Mac OS X, where everyting works fine.

Any help would be appreciated.

Thank you,

Alex
9
Internet / Re: Dooble releases-Qt6
« Last post by Dave Yeo on July 06, 2025, 04:28:34 am »
Latest Dooble release, ftp://dry@ftp.os2voice.org/tmp/dooble-2025-07-04-Qt6.zip See help-->Release Notes for changes, all from upstream.
10
Web applications / Re: Dooble releases, Qt5 builds
« Last post by Dave Yeo on July 06, 2025, 04:27:50 am »
Latest Dooble release, ftp://dry@ftp.os2voice.org/tmp/dooble-2025-07-04-Qt5.zip See help-->Release Notes for changes, all from upstream.
Pages: [1] 2 3 ... 10