IO::Tty is a pre-req for expect.pm
IO::Tty install reports that "Configuration looks good!" (See below)
but the makefile fails with missing Tty.so

Any suggestions?

------------------
# perl Makefile.PL
Now let's see what we can find out about your system
(logfiles of failing tests are available in the conf/ dir)...
Looking for _getpty()...... not found.
Looking for getpt()........ not found.
Looking for grantpt()...... FOUND.
Looking for openpty()...... not found.
Looking for posix_openpt(). FOUND.
Looking for ptsname()...... FOUND.
Looking for ptsname_r().... not found.
Looking for sigaction().... FOUND.
Looking for strlcpy()...... FOUND.
Looking for ttyname()...... FOUND.
Looking for unlockpt()..... FOUND.
Looking for libutil.h...... not found.
Looking for pty.h.......... not found.
Looking for sys/pty.h...... not found.
Looking for sys/ptyio.h.... not found.
Looking for sys/stropts.h.. FOUND.
Looking for termio.h....... FOUND.
Looking for termios.h...... FOUND.
Looking for util.h......... not found.
Checking which symbols compile OK...
(sorry for the tedious check, but some systems have not too clean
header files, to say the least; '+' means OK, '-' means not defined
and '*' has compile problems...)
+B0 +B110 +B115200 +B1200 +B134 +B150 +B153600 +B1800 +B19200 +B200 +B230400 +B2 400 +B300

+B307200 +B38400 +B460800 +B4800 +B50 +B57600 +B600 +B75 +B76800 +B960 0 +BRKINT +BS0 +BS1

+BSDLY +CBAUD +CBAUDEXT -CBRK +CCTS_OFLOW +CDEL +CDSUSP +CEO F +CEOL +CEOL2 +CEOT +CERASE +CESC

+CFLUSH +CIBAUD +CIBAUDEXT +CINTR +CKILL +CLN EXT +CLOCAL +CNSWTCH +CNUL +CQUIT +CR0 +CR1 +CR2

+CR3 +CRDLY +CREAD +CRPRNT +CRT SCTS +CRTSXOFF +CRTS_IFLOW +CS5 +CS6 +CS7 +CS8 +CSIZE +CSTART

+CSTOP +CSTOPB +CS USP +CSWTCH +CWERASE +DEFECHO +DIOC +DIOCGETP +DIOCSETP +DOSMODE +ECHO

+ECHOCTL +ECHOE +ECHOK +ECHOKE +ECHONL +ECHOPRT +EXTA +EXTB +FF0 +FF1 +FFDLY +FIORDCHK +F

LUSHO +HUPCL +ICANON +ICRNL +IEXTEN +IGNBRK +IGNCR +IGNPAR +IMAXBEL +INLCR +INPC

K +ISIG +ISTRIP +IUCLC +IXANY +IXOFF +IXON +KBENABLED +LDCHG +LDCLOSE +LDDMAP +L DEMAP

+LDGETT +LDGMAP +LDIOC +LDNMAP +LDOPEN +LDSETT +LDSMAP +LOBLK +NCCS +NL0 + NL1 +NLDLY +NOFLSH

+OCRNL +OFDEL +OFILL +OLCUC +ONLCR +ONLRET +ONOCR +OPOST +PAG EOUT +PARENB +PAREXT +PARMRK

+PARODD +PENDIN +RCV1EN +RTS_TOG +TAB0 +TAB1 +TAB2 +TAB3 +TABDLY +TCDSET +TCFLSH +TCGETA

+TCGETS +TCIFLUSH +TCIOFF +TCIOFLUSH +TCIO N +TCOFLUSH +TCOOFF +TCOON +TCSADRAIN +TCSAFLUSH

+TCSANOW +TCSBRK +TCSETA +TCSET AF +TCSETAW -TCSETCTTY +TCSETS +TCSETSF +TCSETSW +TCXONC

+TERM_D40 +TERM_D42 +TE RM_H45 +TERM_NONE +TERM_TEC +TERM_TEX +TERM_V10 +TERM_V61 +TIOCCBRK

+TIOCCDTR -T IOCCONS +TIOCEXCL +TIOCFLUSH +TIOCGETC +TIOCGETD +TIOCGETP +TIOCGLTC +TIOCGPGRP

+TIOCGSID +TIOCGSOFTCAR +TIOCGWINSZ +TIOCHPCL +TIOCKBOF +TIOCKBON +TIOCLBIC +TIO

CLBIS +TIOCLGET +TIOCLSET +TIOCMBIC +TIOCMBIS +TIOCMGET +TIOCMSET +TIOCM_CAR +TI OCM_CD

+TIOCM_CTS +TIOCM_DSR +TIOCM_DTR +TIOCM_LE +TIOCM_RI +TIOCM_RNG +TIOCM_RT S +TIOCM_SR +TIOCM_ST

+TIOCNOTTY +TIOCNXCL +TIOCOUTQ +TIOCREMOTE +TIOCSBRK +TIOC SCTTY +TIOCSDTR +TIOCSETC +TIOCSETD

+TIOCSETN +TIOCSETP +TIOCSIGNAL +TIOCSLTC +T IOCSPGRP -TIOCSSID +TIOCSSOFTCAR +TIOCSTART

+TIOCSTI +TIOCSTOP +TIOCSWINSZ +TM_A NL +TM_CECHO +TM_CINVIS +TM_LCF +TM_NONE +TM_SET +TM_SNL

+TOSTOP +VCEOF +VCEOL + VDISCARD +VDSUSP +VEOF +VEOL +VEOL2 +VERASE +VINTR +VKILL +VLNEXT +VMIN

+VQUIT +VREPRINT +VSTART +VSTOP +VSUSP +VSWTCH +VT0 +VT1 +VTDLY +VTIME +VWERASE +WRAP +XCASE +XCLUDE +XMT1EN +XTABS

>>> Configuration looks good! <<<

Writing IO::Tty::Constant.pm...
DEFINE = -DHAVE_DEV_PTMX -DHAVE_GRANTPT -DHAVE_POSIX_OPENPT -DHAVE_PTSNAME -DHAVE_SIGACTION -DHAVE_STRLCPY

-DHAVE_SYS_STROPTS_H -DHAVE_TERMIOS_H -DHAVE_TERMIO_H -DHAVE_TTYNAME -DHAVE_UNLOCKPT
Writing Makefile for IO::Tty
#

--------------------------------

# /usr/sfw/bin/gmake
Skip blib/lib/IO/Tty.pm (unchanged)
Skip blib/lib/IO/Tty/Constant.pm (unchanged)
Skip blib/lib/IO/Pty.pm (unchanged)
cc -c -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TS_ERRNO -xO3 -xspace -xildoff -DVERSION=\"1.08\" -DXS_VERSION=\"1.08\" -KPIC "-I/usr/perl5/5.8.4/lib/i86pc-solaris-64int/CORE" -DHAVE_DEV_PTMX -DHAVE_GRANTPT -DHAVE_POSIX_OPENPT -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 ildoff not recognized
cc: Tty.c: linker input file unused because linking not done
Running Mkbootstrap for IO::Tty ()
chmod 644 Tty.bs
rm -f blib/arch/auto/IO/Tty/Tty.so
LD_RUN_PATH="" cc -G Tty.o -o blib/arch/auto/IO/Tty/Tty.so
cc: Tty.o: No such file or directory
cc: no input files
gmake: *** [blib/arch/auto/IO/Tty/Tty.so] Error 1

gpx,

The destination may be Tty.so but I guess the source for your problem is the the make file which you are using. What version of solaris you are using?

If you keenly look in the gmake output which you attached to the thread, you could see a line stating that:

"cc: unrecognized option `-KPIC'"

Your gcc compiler doesnt recoganizes the option which is passed while you run make(its gmake what you use from bin). Check out the command:

cc -c -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TS_ERRNO -xO3 -xspace -xildoff -DVERSION=\"1.08\" -DXS_VERSION=\"1.08\" -KPIC "-I/usr/perl5/5.8.4/lib/i86pc-solaris-64int/CORE" -DHAVE_DEV_PTMX -DHAVE_GRANTPT -DHAVE_POSIX_OPENPT -DHAVE_PTSNAME -DHAVE_SIGACTION -DHAVE_STRLCPY -DHAVE_SYS_STROPTS_H -DHAVE_TERMIOS_H -DHAVE_TERMIO_H -DHAVE_TTYNAME -DHAVE_UNLOCKPT Tty.c

First, "-KPIC" is not recoganized by your compiler. So, this command breaks and no ouput is produced. The expected output is 'Tty.o'. This 'Tty.o' should be the input for the command following the cc command which was pasted above.

LD_RUN_PATH="" cc -G Tty.o -o blib/arch/auto/IO/Tty/Tty.so
cc: Tty.o: No such file or directory
cc: no input files
gmake: *** [blib/arch/auto/IO/Tty/Tty.so] Error 1

"cc: Tty.o: No such file or directory" - you can see the problem here, which intern affected the rest.

Can you paste your gmake to resolve this problem?

I can guess the problem but I dont want to confirm before seeing your gmake. If you cant paste the entire gmake, you can just paste the line which containing 'OPTIMIZE' in it.

Thanks,
~RDX~

Edited 6 Years Ago by rdxblast: added a line

This article has been dead for over six months. Start a new discussion instead.