• sys/select.h

    From Tomas By (tomas@basun.net) [via djgpp@delorie.com]@djgpp@delorie.com to djgpp on Sun Jul 12 00:36:04 2026
    From Newsgroup: comp.os.msdos.djgpp

    Hello everybody,

    Am trying to compile Chibi Scheme, and it needs/wants "sys/select.h"

    There does not seem to be much info about this at all in google.

    There is no sys/select.h in DJGPP?

    /Tomas
    --- Synchronet 3.22a-Linux NewsLink 1.2
  • From Tomas By (tomas@basun.net) [via djgpp@delorie.com]@djgpp@delorie.com to djgpp on Sun Jul 12 00:46:41 2026
    From Newsgroup: comp.os.msdos.djgpp

    On Sun, 12 Jul 2026 00:36:04 +0200, Tomas By wrote:
    There is no sys/select.h in DJGPP?


    Found WAT3211B.ZIP now. The search function on the web site did not
    return it.

    /Tomas
    --- Synchronet 3.22a-Linux NewsLink 1.2
  • From Tomas By (tomas@basun.net) [via djgpp@delorie.com]@djgpp@delorie.com to djgpp on Sun Jul 12 01:01:32 2026
    From Newsgroup: comp.os.msdos.djgpp

    On Sun, 12 Jul 2026 00:46:41 +0200, Tomas By wrote:
    Found WAT3211B.ZIP now.


    Still doesn't work, though, presumably because of the intervening
    NET/WATT directories.

    So, what is the "right" way to do it?

    Why are they in sub-directories?

    /Tomas
    --- Synchronet 3.22a-Linux NewsLink 1.2
  • From Eli Zaretskii (eliz@gnu.org) [via djgpp@delorie.com]@djgpp@delorie.com to djgpp on Sun Jul 12 09:21:55 2026
    From Newsgroup: comp.os.msdos.djgpp

    Date: Sun, 12 Jul 2026 00:36:04 +0200
    From: "Tomas By (tomas@basun.net) [via djgpp@delorie.com]" <djgpp@delorie.com>

    Hello everybody,

    Am trying to compile Chibi Scheme, and it needs/wants "sys/select.h"

    There does not seem to be much info about this at all in google.

    There is no sys/select.h in DJGPP?

    No, because DJGPP doesn't support networking OOTB.

    I'm guessing that it wants sys/select.h because it wants networking?
    If so, it is best to #ifdef away both the inclusion of sys/select.h
    and the calls to networking functions.

    OTOH, if they just want the 'select' function, then DJGPP does have
    it: it is declared in <time.h> header. But it supports only disk
    files and character input devices (like keyboard).
    --- Synchronet 3.22a-Linux NewsLink 1.2
  • From Tomas By (tomas@basun.net) [via djgpp@delorie.com]@djgpp@delorie.com to djgpp on Sun Jul 12 08:58:00 2026
    From Newsgroup: comp.os.msdos.djgpp

    On Sun, 12 Jul 2026 08:21:55 +0200, Eli Zaretskii (eliz@gnu.org) [via djgpp@delorie.com] wrote:
    There is no sys/select.h in DJGPP?
    No, because DJGPP doesn't support networking OOTB.

    I'm guessing that it wants sys/select.h because it wants networking?
    If so, it is best to #ifdef away both the inclusion of sys/select.h
    and the calls to networking functions.


    I haven't even looked at the actual code yet.

    But yes, I suspect it is for networking, just because everything
    always has to be connected now, regardless of purpose.

    So what about the Watt stuff? And why do I still get errors?

    /Tomas
    --- Synchronet 3.22a-Linux NewsLink 1.2
  • From Eli Zaretskii (eliz@gnu.org) [via djgpp@delorie.com]@djgpp@delorie.com to djgpp on Sun Jul 12 10:22:05 2026
    From Newsgroup: comp.os.msdos.djgpp

    Date: Sun, 12 Jul 2026 08:58:00 +0200
    From: "Tomas By (tomas@basun.net) [via djgpp@delorie.com]" <djgpp@delorie.com>

    On Sun, 12 Jul 2026 08:21:55 +0200, Eli Zaretskii (eliz@gnu.org) [via djgpp@delorie.com] wrote:
    There is no sys/select.h in DJGPP?
    No, because DJGPP doesn't support networking OOTB.

    I'm guessing that it wants sys/select.h because it wants networking?
    If so, it is best to #ifdef away both the inclusion of sys/select.h
    and the calls to networking functions.


    I haven't even looked at the actual code yet.

    But yes, I suspect it is for networking, just because everything
    always has to be connected now, regardless of purpose.

    Do you really need networking in that program? If so, you might be up
    for a bumpier ride.

    So what about the Watt stuff? And why do I still get errors?

    Either because WatTCP is old and needs to be updated, or because the
    program expects something WatTCP doesn't support, or both. You need
    to look into each warning/error message and solve them one by one.
    --- Synchronet 3.22a-Linux NewsLink 1.2
  • From Tomas By (tomas@basun.net) [via djgpp@delorie.com]@djgpp@delorie.com to djgpp on Sun Jul 12 09:42:55 2026
    From Newsgroup: comp.os.msdos.djgpp

    On Sun, 12 Jul 2026 09:22:05 +0200, Eli Zaretskii (eliz@gnu.org) [via djgpp@delorie.com] wrote:
    Do you really need networking in that program?

    No idea, but I'm just trying to compile it.


    Either because WatTCP is old and needs to be updated, or because the
    program expects something WatTCP doesn't support, or both. You need
    to look into each warning/error message and solve them one by one.

    Well, like I said, it doesn't find the sys/select.h file, apparently. It
    is in NET\WATT\INC\SYS.

    I thought things would already be set up correctly? Or is this some
    extra stuff that is not included automatically?

    (Also, I get "uname: invalid option -- o" a few times.)

    /Tomas
    --- Synchronet 3.22a-Linux NewsLink 1.2
  • From Tomas By (tomas@basun.net) [via djgpp@delorie.com]@djgpp@delorie.com to djgpp on Sun Jul 12 09:59:31 2026
    From Newsgroup: comp.os.msdos.djgpp

    On Sun, 12 Jul 2026 01:01:32 +0200, Tomas By wrote:
    So, what is the "right" way to do it?


    I'm mean, I can see some options: edit paths in DJGPP, move the files,
    add paths in the Makefile.

    Is one of these better than the others?

    /Tomas
    --- Synchronet 3.22a-Linux NewsLink 1.2
  • From Tomas By (tomas@basun.net) [via djgpp@delorie.com]@djgpp@delorie.com to djgpp on Sun Jul 12 10:32:01 2026
    From Newsgroup: comp.os.msdos.djgpp

    On Sun, 12 Jul 2026 09:59:31 +0200, Tomas By wrote:
    Is one of these better than the others?


    The answer is
    set C_INCLUDE_PATH=c:/djgpp/net/watt/inc
    set LIBRARY_PATH=c:/djgpp/net/watt/lib
    as per some msg in some google group...

    /Tomas
    --- Synchronet 3.22a-Linux NewsLink 1.2
  • From Eli Zaretskii (eliz@gnu.org) [via djgpp@delorie.com]@djgpp@delorie.com to djgpp on Sun Jul 12 11:42:26 2026
    From Newsgroup: comp.os.msdos.djgpp

    Date: Sun, 12 Jul 2026 09:42:55 +0200
    From: "Tomas By (tomas@basun.net) [via djgpp@delorie.com]" <djgpp@delorie.com>

    On Sun, 12 Jul 2026 09:22:05 +0200, Eli Zaretskii (eliz@gnu.org) [via djgpp@delorie.com] wrote:
    Do you really need networking in that program?

    No idea, but I'm just trying to compile it.


    Either because WatTCP is old and needs to be updated, or because the program expects something WatTCP doesn't support, or both. You need
    to look into each warning/error message and solve them one by one.

    Well, like I said, it doesn't find the sys/select.h file, apparently. It
    is in NET\WATT\INC\SYS.

    Use the -I switch to GCC to tell it to look in NET\WATT\INC.

    I thought things would already be set up correctly? Or is this some
    extra stuff that is not included automatically?

    Nothing is automatic when you port stuff to DJGPP.

    (Also, I get "uname: invalid option -- o" a few times.)

    I guess the version of 'uname' that DJGPP provides is too old. Try
    using -s instead, or just replace with "MSDOS" or something.
    --- Synchronet 3.22a-Linux NewsLink 1.2