9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] Tcl 9.0.0 port
@ 2024-10-12  2:08 Conor Williams
  2024-10-12 12:24 ` Benjamin Riefenstahl
  0 siblings, 1 reply; 2+ messages in thread
From: Conor Williams @ 2024-10-12  2:08 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

[-- Attachment #1: Type: text/plain, Size: 4849 bytes --]

hello there 9fanners...

Any ideas on the following (port of Tcl *9.0.0*)

after doing this:
ip/ipconfig
ping www.google.ie
ftpfs -m /tmp/tcl2 -a "hello@hello.com" 123.123.123.123
explode the tcl9.0.0 tar gz with tar -xvf
ape/psh
changes:
configure printf "%s\n" to print
        egrep -E -> grep -e (then force it in the configure script)
        -> Makefile
sys/socket.h (comment out line after _BSD...
        sys/netdb.h (comment out line after _BSD...
        comment out pthread.h and file.h in tclUnixPort.h
comment out fake-rfc2553.h in tclUnixPort.h
        sys/resource.h (comment out line after _BSD... (or bring local ->""
        remove #include poll.h
        dlfcn.h -> ../compat/dlfcn.h
remove #include mman.h

I am still getting *14 files* with errors (around *180 *compiled
successfully):
conor.williams@DESKTOP-MM5HH8I /cygdrive/c/Users/conor.williams/APE
*cat err4.1*
*=================================*
/tmp/tcl9.0.0/generic/tclStubCall.c:81[stdin:15523] name not declared:
RTLD_LOCAL
*** Error code 1
/tmp/tcl9.0.0/generic/tclBinary.c:2041[stdin:20997] name not declared:
INFINITY
*** Error code 1
/tmp/tcl9.0.0/generic/tclClock.c:3089[stdin:25735] incompatible types: "IND
STRUCT tm" and "INT" for op "AS"
*** Error code 1
/tmp/tcl9.0.0/generic/tclEncoding.c:1256[stdin:16298] name not declared:
EILSEQ
*** Error code 1
/tmp/tcl9.0.0/generic/tclIO.c:4212[stdin:18529] name not declared: EILSEQ
too many errors
*** Error code 1
/tmp/tcl9.0.0/generic/tclIOUtil.c:2294[stdin:19323] name not declared:
ENOTSUP
*** Error code 1
/tmp/tcl9.0.0/generic/tclPosixStr.c:37[stdin:15439] duplicate cases in
switch 37
/tmp/tcl9.0.0/generic/tclPosixStr.c:529[stdin:15913] duplicate cases in
switch 37
*** Error code 1
/tmp/tcl9.0.0/generic/tclZipfs.c:1367[stdin:30542] name not declared:
MAP_FAILED
/tmp/tcl9.0.0/generic/tclZipfs.c:1787[stdin:30869] name not declared:
PROT_READ
/tmp/tcl9.0.0/generic/tclZipfs.c:1787[stdin:30869] name not declared:
MAP_PRIVATE
/tmp/tcl9.0.0/generic/tclZipfs.c:4784[stdin:33261] name not declared:
ENOTSUP
/tmp/tcl9.0.0/generic/tclZipfs.c:5289[stdin:33706] name not declared:
S_IFDIR
/tmp/tcl9.0.0/generic/tclZipfs.c:5291[stdin:33708] name not declared:
S_IFREG
*** Error code 1
/tmp/tcl9.0.0/unix/tclUnixChan.c:407[stdin:18026] name not declared:
TCIOFLUSH
/tmp/tcl9.0.0/unix/tclUnixChan.c:804[stdin:18320] name not declared: IXANY
*** Error code 1
/tmp/tcl9.0.0/unix/tclUnixFCmd.c:481[stdin:15763] name not declared: S_IFMT
/tmp/tcl9.0.0/unix/tclUnixFCmd.c:1019[stdin:16157] incompatible types: "IND
STRUCT dirent64" and "INT" for op "AS"
/tmp/tcl9.0.0/unix/tclUnixFCmd.c:1020[stdin:16158] structure not fully
declared dirent64
/tmp/tcl9.0.0/unix/tclUnixFCmd.c:2381[stdin:17243] incompatible types:
"INT" and "IND VOID" for op "EQ"
*** Error code 1
/tmp/tcl9.0.0/unix/tclUnixFile.c:343[stdin:17653] incompatible types: "IND
STRUCT dirent64" and "INT" for op "AS"
/tmp/tcl9.0.0/unix/tclUnixFile.c:352[stdin:17660] structure not fully
declared dirent64
*** Error code 1
/tmp/tcl9.0.0/unix/tclUnixSock.c:521[stdin:15793] name not declared:
ECONNRESET
/tmp/tcl9.0.0/unix/tclUnixSock.c:671[stdin:15889] name not declared: SHUT_RD
/tmp/tcl9.0.0/unix/tclUnixSock.c:674[stdin:15892] name not declared: SHUT_WR
/tmp/tcl9.0.0/unix/tclUnixSock.c:736[stdin:15937] name not declared:
NI_MAXHOST
/tmp/tcl9.0.0/unix/tclUnixSock.c:736[stdin:15937] array size must be a
positive constant
/tmp/tcl9.0.0/unix/tclUnixSock.c:736[stdin:15937] name not declared:
NI_MAXHOST
/tmp/tcl9.0.0/unix/tclUnixSock.c:736[stdin:15937] array size must be a
positive constant
/tmp/tcl9.0.0/unix/tclUnixSock.c:736[stdin:15937] name not declared:
NI_MAXSERV
/tmp/tcl9.0.0/unix/tclUnixSock.c:736[stdin:15937] array size must be a
positive constant
/tmp/tcl9.0.0/unix/tclUnixSock.c:827[stdin:16010] name not declared: ENOTSUP
too many errors
*** Error code 1
/tmp/tcl9.0.0/unix/tclUnixThrd.c:222[stdin:15571] syntax error, last name:
attr
/tmp/tcl9.0.0/unix/tclUnixThrd.c:227[stdin:15576] name not declared: attr
/tmp/tcl9.0.0/unix/tclUnixThrd.c:227[stdin:15576] name not declared:
PTHREAD_SCOPE_SYSTEM
/tmp/tcl9.0.0/unix/tclUnixThrd.c:257[stdin:15597] name not declared:
PTHREAD_CREATE_DETACHED
/tmp/tcl9.0.0/unix/tclUnixThrd.c:260[stdin:15600] name not declared:
theThread
too many errors
*** Error code 1
/tmp/tcl9.0.0/unix/tclSelectNotfy.c:45[stdin:15550] syntax error, last
name: fd_set
`all' not remade because of errors

--
anyone know of quick workarounds/help??
Warm Regards
Conor Williams

------------------------------------------
9fans: 9fans
Permalink: https://9fans.topicbox.com/groups/9fans/Teb9845405f983629-M7a6b9ca154f13d3b20d8d413
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription

[-- Attachment #2: Type: text/html, Size: 6134 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [9fans] Tcl 9.0.0 port
  2024-10-12  2:08 [9fans] Tcl 9.0.0 port Conor Williams
@ 2024-10-12 12:24 ` Benjamin Riefenstahl
  0 siblings, 0 replies; 2+ messages in thread
From: Benjamin Riefenstahl @ 2024-10-12 12:24 UTC (permalink / raw)
  To: Conor Williams; +Cc: Fans of the OS Plan 9 from Bell Labs

Hi Conor,

Conor Williams writes:
> Any ideas on the following (port of Tcl 9.0.0)

I have ports of Tcl 8.7 and Tcl 9.0 to Plan9 in my repo on Sourcehut and
Gitlab:

    https://git.sr.ht/~cc_benny/tcl/log/plan-9-on-9-branch
    https://gitlab.com/cc_benny/tcl/-/tree/plan-9-on-9-branch

My effort lost steam, when I found that select() on APE/Plan9 is
severely limited, because it is an emulation on top of threads.  My own
Tcl code tends to rely a lot on file events as does the Tcl test suite
and so this is a problem.  It seems that the paradigm on Plan9 is just
different at this point.

Regards, benny

------------------------------------------
9fans: 9fans
Permalink: https://9fans.topicbox.com/groups/9fans/Teb9845405f983629-Ma24f8eb7611c04a0f52e2b41
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-10-12 12:24 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-10-12  2:08 [9fans] Tcl 9.0.0 port Conor Williams
2024-10-12 12:24 ` Benjamin Riefenstahl

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).