Mantis - Squeak
Viewing Issue Advanced Details
1326 VM minor always 06-08-05 15:37 01-08-11 18:51
saidani  
lewis  
normal  
assigned 3.7  
open  
none    
none  
0001326: [BUG] PseudoTTY broken in 3.7-7
Compile the VM with the PseudoTTY plugin then load PseudoTTY.st
Try a do it on PseudoTTY example : it fails (could not create pty or process)
and /PseudoTTYPlugin: undefined symbol: sqUnixAsyncFileSessionID

The problem is that AsyncFilePlugin is not loaded properly, a work around is to
call AsyncFile new test: 10000 fileName: 'testData'
and the PseudoTTY example works (euh sometimes, don't know why)
child of 0006671closed tim Build VMMaker for 3.9 

Notes
(0002454)
saidani   
08-20-05 05:07   
It seems that there is two problems :
first one :
in sqUnixPseudoTTYPlugin.c

/* Ian says: never EVER #include things in the Unix Squeak sources
   using relative paths. Never. Ever. Period. Write a Makefile.inc
   with the right XCPPFLAGS instead. Having said that... */

#include "../AsyncFilePlugin/sqUnixAsynchFile.h"
I replace it by copying the adequate file and give up the relative path
#include "sqUnixAsynchFile.h"

second one:
a syntax error in the PseudoTTYPlugin
initialiseModule
    self export: true.
    "We have to load AsyncFile first, to get the sessionID."
    interpreterProxy ioLoadFunction: 'initializeModule' From: 'AsynchFilePlugin'.
    ^ self
        cCode: 'ptyInit()'
        inSmalltalk: [true]

initialzeModule --> initialiseModule !
(0002467)
saidani   
08-21-05 04:51   
Ok, find a new weird things : another syntax error here
Squeak-3.7-7/platforms/unix/plugins/PseudoTTYPlugin$ vi Makefile.inc
XCPPFLAGS= -I$(topdir)/platforms/unix/plugins/AsyncFilePlugin

AsyncFilePlugin must become AsynchFilePlugin
(0011612)
tim   
12-29-07 03:31   
Would need Ian's attention