🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
17 messages
17 total messages Started by Och Tue, 27 Mar 2001 05:50
Using Sunfreeware's perl in place of Sun's perl
#51492
Author: Och
Date: Tue, 27 Mar 2001 05:50
42 lines
2363 bytes
-----BEGIN PGP SIGNED MESSAGE-----


In a SolarisIA 8 environment, the perl that Sun distributes displays
the following errors when I invoke inn's mailpost


Can't locate syslog.ph in @INC (did you run h2ph?) (@INC contains: /usr/perl5/5.
00503/i86pc-solaris /usr/perl5/5.00503 /usr/perl5/site_perl/5.005/i86pc-solaris
/usr/perl5/site_perl/5.005 .) at /usr/perl5/5.00503/Sys/Syslog.pm line 117.
BEGIN failed--compilation aborted at /usr/news/bin/mailpost line 15.


Apparently perl displays this error because Sun used its proprietary
C compiler to create its perl distribution, but my host uses gcc.

It also seems that a pkgrm SUNWpl5? fails because the Solaris 8
kernel now depends upon perl.

How the heck can I install Sunfreeware's perl, compiled with gcc,
if Sun's perl refuses to remove itself?

I changed cc to gcc in /usr/perl5/5.00503/i86pc-solaris/Config.pm,
but the error still occurs.

TIA.

_______________________________________________________________________

Och                             finger och@nym.alias.net for public key

-----BEGIN PGP SIGNATURE-----
Version: 2.6.2

iQCVAwUBOsAlnIk2xl+M24IFAQG6zAP/fHeGCRPUZnJRNgeAE6DzbYLcv4sk0ap8
umu9Kl9SDMGIc5i+iAmVS+S0M3RK8E0ljP20yfJg3cnaXYZj/LBuxUnz8NVWiytn
amAMRHZLxweysyyi8Um49Cmsr1b4cSbW/ECa7yYna5PfWgn4QWo2xOX0+jR5mkc7
pMkxkVSDl2w=
=F05q
-----END PGP SIGNATURE-----
Re: Using Sunfreeware's perl in place of Sun's perl
#51501
Author: Och
Date: Tue, 27 Mar 2001 14:26
80 lines
3438 bytes
-----BEGIN PGP SIGNED MESSAGE-----


>   Mike:
>
>   Followups Trimmed.


Followups re-added.
This is an obscure problem (one hit on deja).
I'll be lucky if anyone in any of the groups can provide a correct answer.


>>  Och:
>> 
>>  In a SolarisIA 8 environment, the perl that Sun distributes displays
>>  the following errors when I invoke inn's mailpost
>>  
>>  Can't locate syslog.ph in @INC (did you run h2ph?) (@INC contains: /usr/perl5/5.
>>  00503/i86pc-solaris /usr/perl5/5.00503 /usr/perl5/site_perl/5.005/i86pc-solaris
>>  /usr/perl5/site_perl/5.005 .) at /usr/perl5/5.00503/Sys/Syslog.pm line 117.
>>  BEGIN failed--compilation aborted at /usr/news/bin/mailpost line 15.
>>  
>>  Apparently perl displays this error because Sun used its proprietary
>>  C compiler to create its perl distribution, but my host uses gcc.


>   Are you smoking drugs?
>   
>   THe error is so clear!
>   
>   type, as root:
>   
>           # h2ph /usr/include/syslog.h
>   
>   and try your comand again.
>   
>   In fact, it even asks yo uif you have run h2ph yet!


# ./h2ph /usr/include/syslog.h
/usr/include/syslog.h -> /usr/include/syslog.ph
# cat zz | mailpost local.ipfilter
Can't locate syslog.ph in @INC (did you run h2ph?) (@INC contains: /usr/perl5/5.
00503/i86pc-solaris /usr/perl5/5.00503 /usr/perl5/site_perl/5.005/i86pc-solaris
/usr/perl5/site_perl/5.005 .) at /usr/perl5/5.00503/Sys/Syslog.pm line 117.
BEGIN failed--compilation aborted at /usr/local/news/bin/mailpost line 15.# ls /usr/include/*.ph
/usr/include/*.ph: No such file or directory
# ls /usr/include/*.ph
/usr/include/*.ph: No such file or directory


Now, what was that bit about the error being so clear?


>>  I changed cc to gcc in /usr/perl5/5.00503/i86pc-solaris/Config.pm,
>>  but the error still occurs.


>   That has nothing to do with it.


You don't know much about the Sun perl versus gcc perl problem in
Solaris do you?

_______________________________________________________________________

Och                             finger och@nym.alias.net for public key

-----BEGIN PGP SIGNATURE-----
Version: 2.6.2

iQCVAwUBOsCfMIk2xl+M24IFAQEonAP/WaCsxLQyindurjRZ4elus4Cy5jezNi2O
8RDFlwaJW0iPLwEV5M1GshkRU8XraUv0SL6yUX0AdWa2gFkRRl63CeLGB7T/6p3h
PmHgHX1EvO6zUIbxZ3vbiW13EScHARPMi5LYUtKJgUow9eURfKRVhL1L38uP1q2i
ca7K3SeJgjI=
=poxr
-----END PGP SIGNATURE-----
Re: Using Sunfreeware's perl in place of Sun's perl
#51503
Author: Garry Williams
Date: Tue, 27 Mar 2001 15:47
50 lines
3131 bytes
On 27 Mar 2001 05:50:26 -0000, Och <och@nym.alias.net> wrote:
> 
> In a SolarisIA 8 environment, the perl that Sun distributes displays
> the following errors when I invoke inn's mailpost
> 
> Can't locate syslog.ph in @INC (did you run h2ph?) (@INC contains: /usr/perl5/5.
> 00503/i86pc-solaris /usr/perl5/5.00503 /usr/perl5/site_perl/5.005/i86pc-solaris
> /usr/perl5/site_perl/5.005 .) at /usr/perl5/5.00503/Sys/Syslog.pm line 117.
> BEGIN failed--compilation aborted at /usr/news/bin/mailpost line 15.
> 
> Apparently perl displays this error because Sun used its proprietary
> C compiler to create its perl distribution, but my host uses gcc.

I would disagree.  The C compiler is not involved here.  The
interpreter simply cannot find syslog.ph.  

> It also seems that a pkgrm SUNWpl5? fails because the Solaris 8
> kernel now depends upon perl.

That's interesting.  How did you conclude that?  

> How the heck can I install Sunfreeware's perl, compiled with gcc,
> if Sun's perl refuses to remove itself?

Installing a Perl distribution is straightforward.  The default
configuration will want to install in /usr/local, but you can change
that to whatever you'd like.  (See the installation documentation in
the perl distribution.)  

> I changed cc to gcc in /usr/perl5/5.00503/i86pc-solaris/Config.pm,
> but the error still occurs.

That's a Bad Thing.  The Sun compiler and gcc are quite incompatible
on their command lines.  You will not (in general) get away with this
hack.  

I encountered problems about a year ago, when I began using an
UltraSparc 10 that came with Solaris 8.  I may have even run into the
same error -- I don't remember.  I do remember not finding things I
expected to be included with perl.  I concluded that the perl
installation was defective, obtained the latest distribution and built
perl using the Workshop 5.0 compiler.  I removed the /bin/perl
(/usr/bin/perl) file that shipped with Solaris and replaced it with a
symbolic link to my installation.  I've never looked back.  

Hope this helps.  

-- 
Garry Williams
Re: Using Sunfreeware's perl in place of Sun's perl
#51505
Author: Och
Date: Tue, 27 Mar 2001 17:01
21 lines
1450 bytes
>>  Mike:
>>  
>>  This is a perl problem, not an INN problem.


Says who?


>   This is an obscure problem (one hit on deja).


>>  deja is gone, how can you have one hit?


Google bought them out newbie.

http://groups.google.com/advanced_group_search

Go away little one, let the adults talk in peace.
Re: Using Sunfreeware's perl in place of Sun's perl
#51504
Author: those who know me have no need o...
Date: Tue, 27 Mar 2001 17:19
26 lines
1717 bytes
[f-u set]

<20010327142629.15126.qmail@nym.alias.net> divulged:

>This is an obscure problem (one hit on deja).
>I'll be lucky if anyone in any of the groups can provide a correct answer.

actually, it seems more like a "you can't even read" problem.

># ls /usr/include/*.ph
>/usr/include/*.ph: No such file or directory

that's not where they go -- typically.  ``man h2ph''

try:  ``find /usr/perl5 -name '*.ph' -print'' if they are not there
_that_ is the problem.

>>>  I changed cc to gcc in /usr/perl5/5.00503/i86pc-solaris/Config.pm,
>>>  but the error still occurs.

meaningless, unless you also recompiled perl (which requires the proper
voodoo lest your change be lost).

-- 
okay, have a sig then
Re: Using Sunfreeware's perl in place of Sun's perl
#51506
Author: Och
Date: Tue, 27 Mar 2001 17:28
57 lines
2849 bytes
>>  Och:
>>     
>>  It also seems that a pkgrm SUNWpl5? fails because the Solaris 8
>>  kernel now depends upon perl.


>   garry:
>
>   That's interesting.  How did you conclude that?


A deja search returned many hits posted by people experiencing
problems using Sun's perl in a gcc environment.

My first inclination was to just download Sunfreeware's perl,
but I thought it best to remove Sun's perl first. Unfortunately,
pkgrm displays the following errors on each perl package:


_______________________________________________________________________

# pkgrm SUNWpl5m

The following package is currently installed:
   SUNWpl5m        Perl5 On-Line Manual Pages
                   (i386) 1.0,REV=2

Do you want to remove this package? y
WARNING: Stale lock installed for pkgrm, pkg SUNWpl5m quit in initial state.
    Removing lock.

## Removing installed package instance <SUNWpl5m>
(A previous attempt may have been unsuccessful.)
## Verifying package dependencies.
## Processing package information.
pkgrm: ERROR: bad read of contents file
pkgrm: ERROR: pathname=/usr.dt/appconfig/icnns/C/Fpexit.s.bm
pkgrm: ERROR: problem=unable to read mode/owner/group

_______________________________________________________________________


Further deja research produced an old post from a Sun engineer
asking people not to remove Sun's perl packages because the
Solaris 8 kernel now depends upon perl.

It appears that early Solaris 8 releases used to allow people
to remove perl.

My hunch is that Sun made it impossible to remove perl from
recent Solaris 8 releases.

_______________________________________________________________________

Och                             finger och@nym.alias.net for public key 
Re: Using Sunfreeware's perl in place of Sun's perl
#51507
Author: John D Groenveld
Date: Tue, 27 Mar 2001 17:33
10 lines
1362 bytes
In article <20010327172834.16041.qmail@nym.alias.net>,
Och  <och@nym.alias.net> wrote:
>asking people not to remove Sun's perl packages because the
>Solaris 8 kernel now depends upon perl.

No, but kstat(1M) and possibly other useful commands depend on
SUNWpl5u
John
groenveld@acm.org
Re: Using Sunfreeware's perl in place of Sun's perl
#51509
Author: Och
Date: Tue, 27 Mar 2001 18:04
26 lines
1748 bytes
I put the missing froups back in the header for you.


>   not:   
>  
>   actually, it seems more like a "you can't even read" problem.


That doesn't even make sense slaphead, when everyone clearly sees
that my problem lies with newbies who keep posting unsolicited
opinions.


>   try:  ``find /usr/perl5 -name '*.ph' -print'' if they are not there
>   _that_ is the problem.
 

$ find /usr/perl5 -name '*.ph' -print
/usr/perl5/site_perl/5.005/i86pc-solaris/_h2ph_pre.ph
/usr/perl5/site_perl/5.005/i86pc-solaris/usr/include/syslog.ph
/usr/perl5/site_perl/5.005/i86pc-solaris/syslog.ph


Do you have any more worthless advice to offer up Einstein?
Re: Using Sunfreeware's perl in place of Sun's perl
#51508
Author: Kenneth Simpson
Date: Tue, 27 Mar 2001 18:13
77 lines
4050 bytes
Hi - I didn't have any trouble removing perl5 completely from my
Solaris 8 system.

The CDE errors you posted in removing perl man pages are not in any
manner related to perl - your system or CDE is simply screwed up.

Also, if there was installed software which was depended upon perl, 
then pkgrm would warn you of the dependency when you try to remove it.

-- Ken 
 

Och wrote:
> 
> >>  Och:
> >>
> >>  It also seems that a pkgrm SUNWpl5? fails because the Solaris 8
> >>  kernel now depends upon perl.
> 
> >   garry:
> >
> >   That's interesting.  How did you conclude that?
> 
> A deja search returned many hits posted by people experiencing
> problems using Sun's perl in a gcc environment.
> 
> My first inclination was to just download Sunfreeware's perl,
> but I thought it best to remove Sun's perl first. Unfortunately,
> pkgrm displays the following errors on each perl package:
> 
> _______________________________________________________________________
> 
> # pkgrm SUNWpl5m
> 
> The following package is currently installed:
>    SUNWpl5m        Perl5 On-Line Manual Pages
>                    (i386) 1.0,REV=2
> 
> Do you want to remove this package? y
> WARNING: Stale lock installed for pkgrm, pkg SUNWpl5m quit in initial state.
>     Removing lock.
> 
> ## Removing installed package instance <SUNWpl5m>
> (A previous attempt may have been unsuccessful.)
> ## Verifying package dependencies.
> ## Processing package information.
> pkgrm: ERROR: bad read of contents file
> pkgrm: ERROR: pathname=/usr.dt/appconfig/icnns/C/Fpexit.s.bm
> pkgrm: ERROR: problem=unable to read mode/owner/group
> 
> _______________________________________________________________________
> 
> Further deja research produced an old post from a Sun engineer
> asking people not to remove Sun's perl packages because the
> Solaris 8 kernel now depends upon perl.
> 
> It appears that early Solaris 8 releases used to allow people
> to remove perl.
> 
> My hunch is that Sun made it impossible to remove perl from
> recent Solaris 8 releases.
> 
> _______________________________________________________________________
> 
> Och                             finger och@nym.alias.net for public key

-- 

========================================================================
Ken Simpson                          	 Well Connected Computing, Inc.
Email: ken@wellconnected.com             1001 Bridgeway, Suite 630
Voice: +1.415.332.5018                   Sausalito, CA 94965
FAX:   +1.415.332.9197                   USA, Earth
========================================================================

	        Printed using 100% recycled electrons.
Re: Using Sunfreeware's perl in place of Sun's perl
#51510
Author: Kenneth Simpson
Date: Tue, 27 Mar 2001 18:49
32 lines
2227 bytes
Hi - and 

	rpm2cpio

to name another.
	
-- Ken


John D Groenveld wrote:
> 
> In article <20010327172834.16041.qmail@nym.alias.net>,
> Och  <och@nym.alias.net> wrote:
> >asking people not to remove Sun's perl packages because the
> >Solaris 8 kernel now depends upon perl.
> 
> No, but kstat(1M) and possibly other useful commands depend on
> SUNWpl5u
> John
> groenveld@acm.org

-- 

========================================================================
Ken Simpson                          	 Well Connected Computing, Inc.
Email: ken@wellconnected.com             1001 Bridgeway, Suite 630
Voice: +1.415.332.5018                   Sausalito, CA 94965
FAX:   +1.415.332.9197                   USA, Earth
========================================================================

	        Printed using 100% recycled electrons.
Re: Using Sunfreeware's perl in place of Sun's perl
#51513
Author: Russ Allbery
Date: Tue, 27 Mar 2001 21:29
21 lines
1885 bytes
In news.software.nntp, Och <och@nym.alias.net> writes:

> # ./h2ph /usr/include/syslog.h
> /usr/include/syslog.h -> /usr/include/syslog.ph

h2ph doesn't like absolute path names.  Did you, by any chance, try
following the instructions in the INN installation manual, which say to
do:

    # cd /usr/include
    # h2ph * sys/*

Those instructions are in the section on controlchan, so you may have
missed them.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>

          Please post questions rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: Using Sunfreeware's perl in place of Sun's perl
#51515
Author: Och
Date: Wed, 28 Mar 2001 03:04
37 lines
2089 bytes
>   Ken:
>   
>   Hi - I didn't have any trouble removing perl5 completely from my
>   Solaris 8 system.
>   
>   The CDE errors you posted in removing perl man pages are not in any
>   manner related to perl - your system or CDE is simply screwed up.


Bingo!

Something corrupted a half dozen, widely separated, lines in
/var/sadm/install.

For instance, it contained

   /usr.dt/appconfig/icnns/C/Fpexit.s.bm

instead of

   /usr/dt/appconfig/icons/C/Fpexit.s.bm


pkgrm successfully removed the three perl packages bundled
with Solaris after I fixed the erroneous lines in
/var/sadm/install.

Tip - whenever you use pkgrm it completely reads /var/sadm/install
from top to bottom. It stops when it finds any corruption, even with
files belonging to other packages.


_______________________________________________________________________

Och                             finger och@nym.alias.net for public key
Re: Using Sunfreeware's perl in place of Sun's perl
#51517
Author: Och
Date: Wed, 28 Mar 2001 04:40
43 lines
2476 bytes
>   Russ:
>
>   h2ph doesn't like absolute path names.  Did you, by any chance, try
>   following the instructions in the INN installation manual, which say to
>   do:
>   
>     # cd /usr/include
>     # h2ph * sys/*
>   
>   Those instructions are in the section on controlchan, so you may have
>   missed them.


That caused the following set of new errors to appear: 

_______________________________________________________________________

Warning: Use of "defined" without parens is ambiguous at /usr/perl5/site_perl/5.
005/i86pc-solaris/_h2ph_pre.ph line 2.
Can't use subscript on subroutine entry at /usr/perl5/site_perl/5.005/i86pc-sola
ris/_h2ph_pre.ph line 2, near "} }"
(Did you mean $ or @ instead of &?)
syntax error at /usr/perl5/site_perl/5.005/i86pc-solaris/_h2ph_pre.ph line 4, ne
ar "unless"
BEGIN failed--compilation aborted at /usr/local/news/bin/mailpost line 15.
_______________________________________________________________________


Apparently perl doesn't like the following line that h2ph adds to 
/usr/perl5/site_perl/5.005/i86pc-solaris/_h2ph_pre.ph:

     unless (defined &) { sub () { "" } }

But, after you comment it out, everything seems to work.

Problem solved, thanks. ;-)


_______________________________________________________________________

Och                             finger och@nym.alias.net for public key
Re: Using Sunfreeware's perl in place of Sun's perl
#51516
Author: Kenneth Simpson
Date: Wed, 28 Mar 2001 07:10
60 lines
3568 bytes
Hi - this should work without any modifications to any code
anywhere under Solaris 8.

If it doesn't, then either your environment or system is screwed up.

-- Ken


Och wrote:
> 
> >   Russ:
> >
> >   h2ph doesn't like absolute path names.  Did you, by any chance, try
> >   following the instructions in the INN installation manual, which say to
> >   do:
> >
> >     # cd /usr/include
> >     # h2ph * sys/*
> >
> >   Those instructions are in the section on controlchan, so you may have
> >   missed them.
> 
> That caused the following set of new errors to appear:
> 
> _______________________________________________________________________
> 
> Warning: Use of "defined" without parens is ambiguous at /usr/perl5/site_perl/5.
> 005/i86pc-solaris/_h2ph_pre.ph line 2.
> Can't use subscript on subroutine entry at /usr/perl5/site_perl/5.005/i86pc-sola
> ris/_h2ph_pre.ph line 2, near "} }"
> (Did you mean $ or @ instead of &?)
> syntax error at /usr/perl5/site_perl/5.005/i86pc-solaris/_h2ph_pre.ph line 4, ne
> ar "unless"
> BEGIN failed--compilation aborted at /usr/local/news/bin/mailpost line 15.
> _______________________________________________________________________
> 
> Apparently perl doesn't like the following line that h2ph adds to
> /usr/perl5/site_perl/5.005/i86pc-solaris/_h2ph_pre.ph:
> 
>      unless (defined &) { sub () { "" } }
> 
> But, after you comment it out, everything seems to work.
> 
> Problem solved, thanks. ;-)
> 
> _______________________________________________________________________
> 
> Och                             finger och@nym.alias.net for public key

-- 

========================================================================
Ken Simpson                          	 Well Connected Computing, Inc.
Email: ken@wellconnected.com             1001 Bridgeway, Suite 630
Voice: +1.415.332.5018                   Sausalito, CA 94965
FAX:   +1.415.332.9197                   USA, Earth
========================================================================

	        Printed using 100% recycled electrons.
Re: Using Sunfreeware's perl in place of Sun's perl
#51518
Author: Tony Walton
Date: Wed, 28 Mar 2001 09:11
34 lines
2396 bytes
Och wrote:
> 
> I put the missing froups back in the header for you.
> 
> >   not:
> >
> >   actually, it seems more like a "you can't even read" problem.
> 
> That doesn't even make sense slaphead, when everyone clearly sees
> that my problem lies with newbies who keep posting unsolicited
> opinions.
> 
> >   try:  ``find /usr/perl5 -name '*.ph' -print'' if they are not there
> >   _that_ is the problem.
> 
> 
> $ find /usr/perl5 -name '*.ph' -print
> /usr/perl5/site_perl/5.005/i86pc-solaris/_h2ph_pre.ph
> /usr/perl5/site_perl/5.005/i86pc-solaris/usr/include/syslog.ph
> /usr/perl5/site_perl/5.005/i86pc-solaris/syslog.ph
> 
> Do you have any more worthless advice to offer up Einstein?


Could you two both please grow up and leave out the schoolboy
namecalling, in comp.unix.solaris at least?

Thank you very much.

fu set to alt.dev.null

-- 
Tony Walton
Re: Using Sunfreeware's perl in place of Sun's perl
#51520
Author: Stuart Krivis
Date: Wed, 28 Mar 2001 11:58
29 lines
2351 bytes
On 27 Mar 2001 13:29:10 -0800, Russ Allbery <rra@stanford.edu> wrote:
>In news.software.nntp, Och <och@nym.alias.net> writes:
>
>Those instructions are in the section on controlchan, so you may have
>missed them.
>


This isn't an answer, but Sun does not recommend removing their version
of Perl. Unfortunately, their version was compiled using their Forte C
compiler, and people have reported problems when adding things compiled
with gcc.

The solution is to add your own Perl somewhere like /usr/local/bin and
work forward from there.

Sun claims that some of their admin tools and scripts depend upon their
version of Perl and that simply replacing it will cause problems. True?
I have no idea.



-- 



Stuart Krivis

Re: Using Sunfreeware's perl in place of Sun's perl
#51519
Author: Casper H.S. Dik - Network Securi...
Date: Wed, 28 Mar 2001 12:53
42 lines
2976 bytes
[[ PLEASE DON'T SEND ME EMAIL COPIES OF POSTINGS ]]

jd@mongo.krivis.com (Stuart Krivis) writes:

>This isn't an answer, but Sun does not recommend removing their version
>of Perl. Unfortunately, their version was compiled using their Forte C
>compiler, and people have reported problems when adding things compiled
>with gcc.

That doesn't matter; multiple version of perl can live together.

Unfortunately, as with many freeware programs, configuration for some
things is done at compile time.  (If you ship a binary only release, you
know better than to configure using #ifdef FEATURE)

In perl's case, only few features are determined in that way, but the
Config.pm contents from which all modules are build is hardcoded.

I don't think we have yet figured out a way to make Config.pm behave
nicely for both compiles and how to distinguish between the two
compilers at load time.

>Sun claims that some of their admin tools and scripts depend upon their
>version of Perl and that simply replacing it will cause problems. True?
>I have no idea.


Tehre are two dependencies: one on Sun/Solaris modules which may
or may not be in mainstream perl and the path name:

/bin/kstat:	executable /usr/perl5/bin/perl script

You can safely remove /usr/bin perl, but I suggest you do not remove
the perl packages.

Casper
--
Expressed in this posting are my opinions.  They are in no way related
to opinions held by my employer, Sun Microsystems.
Statements on Sun products included here are not gospel and may
be fiction rather than truth.
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads