Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Hi, Don't know if this is appropriate to this list, if not my apologies. I'm trying to install IO::Tty on a solaris 8 box but the make is failing as follows:
# make mkdir blib mkdir blib/lib mkdir blib/lib/IO mkdir blib/arch mkdir blib/arch/auto mkdir blib/arch/auto/IO mkdir blib/arch/auto/IO/Tty mkdir blib/lib/auto mkdir blib/lib/auto/IO mkdir blib/lib/auto/IO/Tty mkdir blib/man3 cp Pty.pm blib/lib/IO/Pty.pm cp Tty.pm blib/lib/IO/Tty.pm cp Tty/Constant.pm blib/lib/IO/Tty/Constant.pm /usr/bin/perl -I/usr/perl5/5.00503/sun4-solaris -I/usr/perl5/5.00503 / +usr/perl5/5.00503/ExtUtils/xsubpp -typemap /usr/perl5/5.00503/ExtUti +ls/typemap Tty.xs >xstmp.c && mv xstmp.c Tty.c cc -c -xO3 -xdepend -DVERSION=\"1.02\" -DXS_VERSION=\"1.02\" -KPI +C -I/usr/perl5/5.00503/sun4-solaris/CORE -DHAVE_DEV_PTMX -DHAVE_GRANT +PT -DHAVE_PTSNAME -DHAVE_SIGACTION -DHAVE_STRLCPY -DHAVE_SYS_STROPTS_ +H -DHAVE_TERMIOS_H -DHAVE_TERMIO_H -DHAVE_TTYNAME -DHAVE_UNLOCKPT Tty +.c cc: unrecognized option `-KPIC' cc: language depend not recognized cc: Tty.c: linker input file unused because linking not done Running Mkbootstrap for IO::Tty () chmod 644 Tty.bs LD_RUN_PATH="" cc -o blib/arch/auto/IO/Tty/Tty.so -G Tty.o cc: Tty.o: No such file or directory cc: No input files make: *** [blib/arch/auto/IO/Tty/Tty.so] Error 1 #
using perl -V I've ascertained that the installed default perl was compiled using the Solaris C/C++ compiler unsurprisingly. This seems to be the cause of the problem as we don't have that installed but use GCC instead. Anybody any ideas, I'm constrained to use what's already on the box, strangely IO::Stty has installed fine. TIA

Replies are listed 'Best First'.
Re: Compiling IO:Tty - arrggh!
by steves (Curate) on Feb 12, 2003 at 16:08 UTC

    I have never been able to mix cc and gcc binaries on Solaris. In fact, even upgrading gcc usually forces me to have to rebuild all Perl modules that have binary components. IO::Stty has no binary (C compiled) pieces, which is why it works.

      Thanks for the info - guess I'll have to think of a different solution.
Re: Compiling IO:Tty - arrggh!
by jacques (Priest) on Feb 12, 2003 at 17:44 UTC
    This seems to be the cause of the problem as we don't have that installed but use GCC instead.

    If you are using gcc, then why does the make output show that you are using cc?