Skip Menu |

This queue is for tickets about the IO-Tty CPAN distribution.

Report information
The Basics
Id: 124287
Status: resolved
Priority: 0/
Queue: IO-Tty

People
Owner: Nobody in particular
Requestors: gea [...] napp-it.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: IOO:TTy not compiling in new Oracle Solaris 11.4 (beta)
Date: Thu, 1 Feb 2018 10:17:22 +0100
To: bug-IO-Tty [...] rt.cpan.org
From: Guenther Ernst Alka <gea [...] napp-it.org>
I tried to compile Expect on the new Solaris 11.4 Beta as i need Tty.so but failed at the IO:Tty part what I have done, see https://forums.servethehome.com/index.php?threads/oracle-solaris-11-4.18133/#post-179726 I have tried IO-Tty rel 1.12 and 1.13_01 Writing Makefile for IO::Tty Writing MYMETA.yml and MYMETA.json root@solaris114:~/IO-Tty-1.13_01# make install cp Tty.pm blib/lib/IO/Tty.pm cp Pty.pm blib/lib/IO/Pty.pm cp Tty/Constant.pm blib/lib/IO/Tty/Constant.pm Running Mkbootstrap for IO::Tty () chmod 644 "Tty.bs" "/usr/perl5/5.22/bin/perl" "/usr/perl5/5.22/lib/ExtUtils/xsubpp" -typemap "/usr/perl5/5.22/lib/ExtUtils/typemap" Tty.xs > Tty.xsc && mv Tty.xsc Tty.c cc -c -D_REENTRANT -m64 -D_LARGEFILE64_SOURCE -DPERL_USE_SAFE_PUTENV -xO4 -DVERSION=\"1.13_01\" -DXS_VERSION=\"1.13_01\" -KPIC "-I/usr/perl5/5.22/lib/i86pc-solaris-thread-multi-64/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: error: unrecognized command line option '-KPIC' *** Error code 1 make: Fatal error: Command failed for target `Tty.o' root@solaris114:~/IO-Tty-1.13_01# best regards Gea -- Guenther Alka, Dipl.-Ing. (FH) Rektor-Klaus Str. 71 73525 Schwäbisch Gmünd
Subject: Re: [rt.cpan.org #124287] IOO:TTy not compiling in new Oracle Solaris 11.4 (beta)
Date: Tue, 6 Feb 2018 10:56:23 -0500
To: bug-IO-Tty [...] rt.cpan.org
From: Dave Jacoby <jacoby.david [...] gmail.com>
Hi. I was given responsibility for Expect, and also co-maint on many IO::*ty modules, including this one. I really don't know Solaris, nor this code base. The key, of course, is that the C compiler is kicking out the error "unrecognized command line option '-KPIC'". I did some searching, and that error seems to come from your perl being built with the Solaris C compiler and you trying to build your module with the Gnu C compiler, or perhaps the other way around. I'm not sure what flags you would need for perl Makefile.PL to get the this aligned with what has been built, but that's where I would start investigating. Best of luck. On Thu, Feb 1, 2018 at 4:25 AM, gea@napp-it.org via RT < bug-IO-Tty@rt.cpan.org> wrote: Show quoted text
> Thu Feb 01 04:25:39 2018: Request 124287 was acted upon. > Transaction: Ticket created by gea@napp-it.org > Queue: IO-Tty > Subject: IOO:TTy not compiling in new Oracle Solaris 11.4 (beta) > Broken in: (no value) > Severity: (no value) > Owner: Nobody > Requestors: gea@napp-it.org > Status: new > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=124287 > > > > I tried to compile Expect on the new Solaris 11.4 Beta as i need Tty.so > but failed at the IO:Tty part > > what I have done, see > https://forums.servethehome.com/index.php?threads/oracle- > solaris-11-4.18133/#post-179726 > > I have tried IO-Tty rel 1.12 and 1.13_01 > > Writing Makefile for IO::Tty > Writing MYMETA.yml and MYMETA.json > root@solaris114:~/IO-Tty-1.13_01# make install > cp Tty.pm blib/lib/IO/Tty.pm > cp Pty.pm blib/lib/IO/Pty.pm > cp Tty/Constant.pm blib/lib/IO/Tty/Constant.pm > Running Mkbootstrap for IO::Tty () > chmod 644 "Tty.bs" > "/usr/perl5/5.22/bin/perl" "/usr/perl5/5.22/lib/ExtUtils/xsubpp" > -typemap "/usr/perl5/5.22/lib/ExtUtils/typemap" Tty.xs > Tty.xsc && mv > Tty.xsc Tty.c > cc -c -D_REENTRANT -m64 -D_LARGEFILE64_SOURCE -DPERL_USE_SAFE_PUTENV > -xO4 -DVERSION=\"1.13_01\" -DXS_VERSION=\"1.13_01\" -KPIC > "-I/usr/perl5/5.22/lib/i86pc-solaris-thread-multi-64/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: error: unrecognized command line option '-KPIC' > *** Error code 1 > make: Fatal error: Command failed for target `Tty.o' > root@solaris114:~/IO-Tty-1.13_01# > > > > best regards > > > Gea > > -- > Guenther Alka, Dipl.-Ing. (FH) > > Rektor-Klaus Str. 71 > 73525 Schwäbisch Gmünd >
-- Dave Jacoby jacoby.david@gmail.com Don't panic when the crisis is happening, or you won't enjoy it.
Subject: Re: [rt.cpan.org #124287] IOO:TTy not compiling in new Oracle Solaris 11.4 (beta)
Date: Tue, 6 Feb 2018 14:25:56 -0500
To: bug-IO-Tty [...] rt.cpan.org
From: Dave Jacoby <jacoby.david [...] gmail.com>
I have just been informed that there's a non-system perl in /usr/perl5/5.22/bin that should include cpan, so you should be able to install IO::Tty with that, and that 5.26 is available via pkg. Best of luck. On Tue, Feb 6, 2018 at 10:56 AM, Dave Jacoby <jacoby.david@gmail.com> wrote: Show quoted text
> Hi. > > I was given responsibility for Expect, and also co-maint on many IO::*ty > modules, including this one. I really don't know Solaris, nor this code > base. > > The key, of course, is that the C compiler is kicking out the error "unrecognized > command line option '-KPIC'". > > I did some searching, and that error seems to come from your perl being > built with the Solaris C compiler and you trying to build your module with > the Gnu C compiler, or perhaps the other way around. > > I'm not sure what flags you would need for perl Makefile.PL to get the > this aligned with what has been built, but that's where I would start > investigating. > > Best of luck. > > > On Thu, Feb 1, 2018 at 4:25 AM, gea@napp-it.org via RT < > bug-IO-Tty@rt.cpan.org> wrote: >
>> Thu Feb 01 04:25:39 2018: Request 124287 was acted upon. >> Transaction: Ticket created by gea@napp-it.org >> Queue: IO-Tty >> Subject: IOO:TTy not compiling in new Oracle Solaris 11.4 (beta) >> Broken in: (no value) >> Severity: (no value) >> Owner: Nobody >> Requestors: gea@napp-it.org >> Status: new >> Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=124287 > >> >> >> I tried to compile Expect on the new Solaris 11.4 Beta as i need Tty.so >> but failed at the IO:Tty part >> >> what I have done, see >> https://forums.servethehome.com/index.php?threads/oracle-sol >> aris-11-4.18133/#post-179726 >> >> I have tried IO-Tty rel 1.12 and 1.13_01 >> >> Writing Makefile for IO::Tty >> Writing MYMETA.yml and MYMETA.json >> root@solaris114:~/IO-Tty-1.13_01# make install >> cp Tty.pm blib/lib/IO/Tty.pm >> cp Pty.pm blib/lib/IO/Pty.pm >> cp Tty/Constant.pm blib/lib/IO/Tty/Constant.pm >> Running Mkbootstrap for IO::Tty () >> chmod 644 "Tty.bs" >> "/usr/perl5/5.22/bin/perl" "/usr/perl5/5.22/lib/ExtUtils/xsubpp" >> -typemap "/usr/perl5/5.22/lib/ExtUtils/typemap" Tty.xs > Tty.xsc && mv >> Tty.xsc Tty.c >> cc -c -D_REENTRANT -m64 -D_LARGEFILE64_SOURCE -DPERL_USE_SAFE_PUTENV >> -xO4 -DVERSION=\"1.13_01\" -DXS_VERSION=\"1.13_01\" -KPIC >> "-I/usr/perl5/5.22/lib/i86pc-solaris-thread-multi-64/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: error: unrecognized command line option '-KPIC' >> *** Error code 1 >> make: Fatal error: Command failed for target `Tty.o' >> root@solaris114:~/IO-Tty-1.13_01# >> >> >> >> best regards >> >> >> Gea >> >> -- >> Guenther Alka, Dipl.-Ing. (FH) >> >> Rektor-Klaus Str. 71 >> 73525 Schwäbisch Gmünd >>
> > > > -- > Dave Jacoby > jacoby.david@gmail.com > > Don't panic when the crisis is happening, or you won't enjoy it. >
-- Dave Jacoby jacoby.david@gmail.com Don't panic when the crisis is happening, or you won't enjoy it.
Subject: Re: [rt.cpan.org #124287] IOO:TTy not compiling in new Oracle Solaris 11.4 (beta)
Date: Tue, 6 Feb 2018 21:06:17 +0100
To: bug-IO-Tty [...] rt.cpan.org
From: Guenther Alka <guenther.alka [...] gmail.com>
hello Jacoby Thanks for the reply. The problem was that Makefile expects the Sun compiler while I used GCC-5 - It works as  I edited the Makefile and changed (Solaris 11.4) CCCDLFLAGS = -KPIC to CCCDLFLAGS = -fPIC and commented the language option OPTIMIZE = -xO4 to #OPTIMIZE = -xO4  and was able to compile the Perl module (call from the module folder) via perl Makefile.PL make make test make install My napp-it where I needed the Tty.so binary for Expect is now working on Solaris 11.4b Gea Am 06.02.2018 um 20:26 schrieb jacoby.david@gmail.com via RT: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=124287 > > > I have just been informed that there's a non-system perl in > /usr/perl5/5.22/bin that should include cpan, so you should be able to > install IO::Tty with that, and that 5.26 is available via pkg. > > Best of luck. > > On Tue, Feb 6, 2018 at 10:56 AM, Dave Jacoby <jacoby.david@gmail.com> wrote: >
>> Hi. >> >> I was given responsibility for Expect, and also co-maint on many IO::*ty >> modules, including this one. I really don't know Solaris, nor this code >> base. >> >> The key, of course, is that the C compiler is kicking out the error "unrecognized >> command line option '-KPIC'". >> >> I did some searching, and that error seems to come from your perl being >> built with the Solaris C compiler and you trying to build your module with >> the Gnu C compiler, or perhaps the other way around. >> >> I'm not sure what flags you would need for perl Makefile.PL to get the >> this aligned with what has been built, but that's where I would start >> investigating. >> >> Best of luck. >> >> >> On Thu, Feb 1, 2018 at 4:25 AM, gea@napp-it.org via RT < >> bug-IO-Tty@rt.cpan.org> wrote: >>
>>> Thu Feb 01 04:25:39 2018: Request 124287 was acted upon. >>> Transaction: Ticket created by gea@napp-it.org >>> Queue: IO-Tty >>> Subject: IOO:TTy not compiling in new Oracle Solaris 11.4 (beta) >>> Broken in: (no value) >>> Severity: (no value) >>> Owner: Nobody >>> Requestors: gea@napp-it.org >>> Status: new >>> Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=124287 > >>> >>> >>> I tried to compile Expect on the new Solaris 11.4 Beta as i need Tty.so >>> but failed at the IO:Tty part >>> >>> what I have done, see >>> https://forums.servethehome.com/index.php?threads/oracle-sol >>> aris-11-4.18133/#post-179726 >>> >>> I have tried IO-Tty rel 1.12 and 1.13_01 >>> >>> Writing Makefile for IO::Tty >>> Writing MYMETA.yml and MYMETA.json >>> root@solaris114:~/IO-Tty-1.13_01# make install >>> cp Tty.pm blib/lib/IO/Tty.pm >>> cp Pty.pm blib/lib/IO/Pty.pm >>> cp Tty/Constant.pm blib/lib/IO/Tty/Constant.pm >>> Running Mkbootstrap for IO::Tty () >>> chmod 644 "Tty.bs" >>> "/usr/perl5/5.22/bin/perl" "/usr/perl5/5.22/lib/ExtUtils/xsubpp" >>> -typemap "/usr/perl5/5.22/lib/ExtUtils/typemap" Tty.xs > Tty.xsc && mv >>> Tty.xsc Tty.c >>> cc -c -D_REENTRANT -m64 -D_LARGEFILE64_SOURCE -DPERL_USE_SAFE_PUTENV >>> -xO4 -DVERSION=\"1.13_01\" -DXS_VERSION=\"1.13_01\" -KPIC >>> "-I/usr/perl5/5.22/lib/i86pc-solaris-thread-multi-64/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: error: unrecognized command line option '-KPIC' >>> *** Error code 1 >>> make: Fatal error: Command failed for target `Tty.o' >>> root@solaris114:~/IO-Tty-1.13_01# >>> >>> >>> >>> best regards >>> >>> >>> Gea >>> >>> -- >>> Guenther Alka, Dipl.-Ing. (FH) >>> >>> Rektor-Klaus Str. 71 >>> 73525 Schwäbisch Gmünd >>>
>> >> >> -- >> Dave Jacoby >> jacoby.david@gmail.com >> >> Don't panic when the crisis is happening, or you won't enjoy it. >>
> >
-- Guenther Ernst Alka, Dipl.-Ing. (FH) Rektor-Klaus Str.71 73525 Schwäbisch Gmünd gea@napp-it.org
Ticket migrated to github as https://github.com/toddr/IO-Tty/issues/18