From: <gl...@ma...> - 2000-11-15 23:39:14
|
Dear All, I originally sent this email to Graham Barr. Then to CPAN, then Roland Giersig. I'm hoping someone here might have a solution. Forwarded message: > > > > I have been unable to build the IO-Tty module on my system. > > > > I have tried on two different Digital Unix systems (4.0f and > > 4.0b), and have tried versions 0.03 and 0.04, all with more > > or less identical results. But it works like a dream on > > linux. > > > > I do: > > # perl Makefile.PL - seems okay, though it does give a > > bogus warning: > > > > Looking for ttyname()....Found > > Have /usr/local/lib/perl-5.6.0/alpha-dec_osf/Config.pm expected /usr/local/stow/perl-5.6.0/lib/5.6.0/alpha-dec_osf/Config.pm > > Your perl and your Config.pm seem to have different ideas about the architecturethey are running on. > > Perl thinks: [alpha-dec_osf] > > Config says: [alpha-dec_osf] > > This may or may not cause problems. Please check your installation of perl if you > > have problems building this extension. > > Writing Makefile for IO::Tty > > > > then > > # make > > > > cc -c -std -fprm d -ieee -D_INTRINSICS -I/usr/local/include -DLANGUAGE_C -O4 > > -DVERSION=\"0.04\" -DXS_VERSION=\"0.04\" -I/usr/local/stow/perl-5.6.0/lib/5 > > .6.0/alpha-dec_osf/CORE -DHAVE_DEV_PTMX -DHAS_TTYNAME Tty.c > > cc: Warning: Tty.xs, line 349: In this statement, the referenced type of the pointer value "func" is "function (int) returning int", which is not compatible with "function (int) returning void". > > sa.sa_handler = func; > > --^ > > cc: Warning: Tty.xs, line 354: In this statement, the referenced type of the pointer value "osa._sa_un._handler" is "function (int) returning void", which is not compatible with "function (int) returning int". > > return osa.sa_handler; > > ---------^ > > cc: Error: xssubs.c, line 732: In this statement, "struct termio" is an incomplete type, and so has no size. > > newCONSTSUB(stash,"TCGETA", newSViv(TCGETA)); > > --------------------------------------------^ > > cc: Error: xssubs.c, line 797: In this statement, "struct termio" is an incomplete type, and so has no size. > > newCONSTSUB(stash,"TCSETA", newSViv(TCSETA)); > > --------------------------------------------^ > > cc: Error: xssubs.c, line 802: In this statement, "struct termio" is an incomplete type, and so has no size. > > newCONSTSUB(stash,"TCSETAF", newSViv(TCSETAF)); > > ---------------------------------------------^ > > cc: Error: xssubs.c, line 807: In this statement, "struct termio" is an incomplete type, and so has no size. > > newCONSTSUB(stash,"TCSETAW", newSViv(TCSETAW)); > > ---------------------------------------------^ > > *** Exit 1 > > Stop. > > > > ========================================== > > > I have noticed that most problems concern compiling > the code on "exotic" platforms (just kidding ;-) ). There > seem to be problems with missing struct definitions and > include files. > > I would suggest that somebody go and check out the original > Tcl/Expect code from Don Libes for those platform-dependent > ways to create a pty. Why re-solve the polygonatic wheels > problems when it is possible to pilfer somebody elses code? > > Right now, I have quite a dense work-load, so please forgive > me if I cannot dive deeper into those problems. But I'm > confident that we'll find solutions if we can find a broader > audience. > > Cheers! > > Roland > -- > Rol...@gm... Any help will be greatly appreciated. Glen :) -- Glen Davison Computer System Administrator ext 7018 email : glen |