[19791] in Perl-Users-Digest

home help back first fref pref prev next nref lref last post

Perl-Users Digest, Issue: 1986 Volume: 10

daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Mon Oct 22 21:10:29 2001

Date: Mon, 22 Oct 2001 18:10:09 -0700 (PDT)
From: Perl-Users Digest <Perl-Users-Request@ruby.OCE.ORST.EDU>
To: Perl-Users@ruby.OCE.ORST.EDU (Perl-Users Digest)
Message-Id: <1003799409-v10-i1986@ruby.oce.orst.edu>
Content-Type: text

Perl-Users Digest           Mon, 22 Oct 2001     Volume: 10 Number: 1986

Today's topics:
    Re: Troubleshootng Bundle::libnet installation <kbatzer@earthlink.net>
    Re: Webpage Passwords (Martien Verbruggen)
    Re: Webpage Passwords (Martien Verbruggen)
    Re: xsub - does anything work? <rtrahan@monmouth.com>
    Re: xsub - does anything work? (Martien Verbruggen)
    Re: xsub - does anything work? <dan@tuatha.sidhe.org>
        Digest Administrivia (Last modified: 6 Apr 01) (Perl-Users-Digest Admin)

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

Date: Mon, 22 Oct 2001 23:47:57 GMT
From: "news.earthlink.net" <kbatzer@earthlink.net>
Subject: Re: Troubleshootng Bundle::libnet installation
Message-Id: <Ne2B7.3244$Sd.291286@newsread1.prod.itd.earthlink.net>

I've got the same problem trying to install libnet on Solaris: with perl
5.6.1. Any help would be appreciated.

perl Makefile.pl
Checking for Socket...ok
Checking for IO::Socket...ok
Checking if your kit is complete...
Looks good
Writing Makefile for Net

make
cp Net/POP3.pm blib/lib/Net/POP3.pm
cp Net/libnetFAQ.pod blib/lib/Net/libnetFAQ.pod
cp Net/Config.pm blib/lib/Net/Config.pm
cp Net/Domain.pm blib/lib/Net/Domain.pm
cp Net/SMTP.pm blib/lib/Net/SMTP.pm
cp Net/Time.pm blib/lib/Net/Time.pm
cp Net/NNTP.pm blib/lib/Net/NNTP.pm
cp Net/Cmd.pm blib/lib/Net/Cmd.pm
cp Net/Netrc.pm blib/lib/Net/Netrc.pm
cp Net/FTP/L.pm blib/lib/Net/FTP/L.pm
cp Net/FTP/dataconn.pm blib/lib/Net/FTP/dataconn.pm
cp Net/FTP.pm blib/lib/Net/FTP.pm
cp Net/FTP/E.pm blib/lib/Net/FTP/E.pm
cp Net/FTP/A.pm blib/lib/Net/FTP/A.pm
cp Net/FTP/I.pm blib/lib/Net/FTP/I.pm
cp libnet.cfg blib/lib/Net/libnet.cfg
Manifying blib/man3/Net::POP3.3
Manifying blib/man3/Net::Domain.3
Manifying blib/man3/Net::libnetFAQ.3
Manifying blib/man3/Net::SMTP.3
Manifying blib/man3/Net::Time.3
Manifying blib/man3/Net::NNTP.3
Manifying blib/man3/Net::Cmd.3
Manifying blib/man3/Net::Netrc.3
Manifying blib/man3/Net::FTP.3

make test
PERL_DL_NONLAZY=1
/usr/local/bin/perl -Iblib/arch -Iblib/lib -I/usr/local/lib/perl5/5.6.1/sun4
-solaris -I/usr/local/lib/perl5/5.6.1 -e 'use Test::Harness qw(&runtests
$verbose); $verbose=1; runtests @ARGV;' t/*.t
t/ftp...............1..0
skipped test on this platform
t/hostname..........1..1
ok 1
ok
t/nntp..............1..0
skipped test on this platform
t/require...........1..11
ok 1
ok 2
ok 3
ok 4
ok 5
ok 6
ok 7
not ok 8
not ok 9
ok 10
ok 11
FAILED tests 8-9
 Failed 2/11 tests, 81.82% okay
t/smtp..............1..0
skipped test on this platform
Failed Test Status Wstat Total Fail  Failed  List of Failed
----------------------------------------------------------------------------
----
t/require.t               11    2  18.18%  8-9
3 tests skipped.
Failed 1/5 test scripts, 80.00% okay. 2/12 subtests failed, 83.33% okay.
*** Error code 29
make: Fatal error: Command failed for target `test_dynamic'



"bill" <bill02115@hotmail.com> wrote in message
news:9qlc4e$fcc$1@panix3.panix.com...
>
>
> I tried to install Bundle::libnet (following CPAN.pm's
> recommendation), but the installation fails for reasons I don't
> understand.  I include CPAN.pm's entire output below, but the crucial
> portion, as far as I can tell, is this:
>
>     Running make test
>     PERL_DL_NONLAZY=1
/usr/local/bin/perl -Iblib/arch -Iblib/lib -I/usr/local/lib/perl5/5.6.1/i586
-linux -I/usr/local/lib/perl5/5.6.1 -e 'use Test::Harness qw(&runtests
$verbose); $verbose=0; runtests @ARGV;' t/*.t
>     t/ftp...............skipped test on this platform
>     t/hostname..........Use of uninitialized value in pattern match (m//)
at blib/lib/Net/Domain.pm line 226.
>     Use of uninitialized value in split at blib/lib/Net/Domain.pm line
233.
>     ok
>     t/nntp..............skipped test on this platform
>     t/require...........FAILED tests 8-9
>     Failed 2/11 tests, 81.82% okay
>     t/smtp..............skipped test on this platform
>     Failed Test Status Wstat Total Fail  Failed  List of Failed
>     ----------------------------------------------------------------------
----------
>     t/require.t               11    2  18.18%  8-9
>     3 tests skipped.
>     Failed 1/5 test scripts, 80.00% okay. 2/12 subtests failed, 83.33%
okay.
>     make: *** [test_dynamic] Error 29
>       /usr/bin/make test -- NOT OK
>     Running make install
>       make test had returned bad status, won't install without force
>     Bundle summary: The following items in bundle Bundle::libnet had
>     installation problems:
>       Net::Cmd
>
> I'm at a loss as to how to proceed.  All I know is that some tests
> failed, but there is no indication of why they failed.  Any
> suggestions on what to do next would be most welcome.
>
> FWIW, the machine I'm trying to install Bundle::libnet on is connected
> to the Internet via a PPP connection.  My ISP is Panix.
>
> Thanks,
>
> bill
>
> PS.  The full CPAN.pm session is given below
>
>
>     $ perl -MCPAN -e shell
>
>     cpan shell -- CPAN exploration and modules installation (v1.59_54)
>     ReadLine support enabled
>
>     cpan> install Bundle::libnet
>
>     Going to read /root/.cpan/sources/authors/01mailrc.txt.gz
>     Going to read /root/.cpan/sources/modules/02packages.details.txt.gz
>       Database was generated on Mon, 15 Oct 2001 21:32:56 GMT
>     CPAN: HTTP::Date loaded ok
>     Going to read /root/.cpan/sources/modules/03modlist.data.gz
>     Data::Dumper is up to date.
>     Net::Telnet is up to date.
>     Running install for module Net::Cmd
>     Running make for G/GB/GBARR/libnet-1.0704.tar.gz
>     CPAN: MD5 loaded ok
>     Checksum for
/root/.cpan/sources/authors/id/G/GB/GBARR/libnet-1.0704.tar.gz ok
>     Scanning cache /root/.cpan/build for sizes
>     libnet-1.0704/
>     libnet-1.0704/Net/
>     libnet-1.0704/Net/NNTP.pm
>     libnet-1.0704/Net/FTP/
>     libnet-1.0704/Net/FTP/dataconn.pm
>     libnet-1.0704/Net/FTP/I.pm
>     libnet-1.0704/Net/FTP/L.pm
>     libnet-1.0704/Net/FTP/A.pm
>     libnet-1.0704/Net/FTP/E.pm
>     libnet-1.0704/Net/POP3.pm
>     libnet-1.0704/Net/SMTP.pm
>     libnet-1.0704/Net/FTP.pm
>     libnet-1.0704/Net/Time.pm
>     libnet-1.0704/Net/Cmd.pm
>     libnet-1.0704/Net/Config.pm
>     libnet-1.0704/Net/Domain.pm
>     libnet-1.0704/Net/libnetFAQ.pod
>     libnet-1.0704/Net/Netrc.pm
>     libnet-1.0704/t/
>     libnet-1.0704/t/require.t
>     libnet-1.0704/t/hostname.t
>     libnet-1.0704/t/nntp.t
>     libnet-1.0704/t/smtp.t
>     libnet-1.0704/t/ftp.t
>     libnet-1.0704/Configure
>     libnet-1.0704/demos/
>     libnet-1.0704/demos/smtp.self
>     libnet-1.0704/demos/nntp
>     libnet-1.0704/demos/pop3
>     libnet-1.0704/demos/nntp.mirror
>     libnet-1.0704/demos/ftp
>     libnet-1.0704/demos/time
>     libnet-1.0704/demos/inetd
>     libnet-1.0704/Hostname.pm.eg
>     libnet-1.0704/ChangeLog
>     libnet-1.0704/Makefile.PL
>     libnet-1.0704/README
>     libnet-1.0704/Config.eg
>     libnet-1.0704/MANIFEST
>     Removing previously used /root/.cpan/build/libnet-1.0704
>
>       CPAN.pm: Going to build G/GB/GBARR/libnet-1.0704.tar.gz
>
>     Checking for Socket...ok
>     Checking for IO::Socket...ok
>     Checking if your kit is complete...
>     Looks good
>
>     Ah, I see you already have installed libnet before.
>
>     Do you want to modify/update your configuration (y|n) ? [no]
>     This script will prompt you to enter hostnames that can be used as
>     defaults for some of the modules in the libnet distribution.
>
>     To ensure that you do not enter an invalid hostname, I can perform a
>     lookup on each hostname you enter. If your internet connection is via
>     a dialup line then you may not want me to perform these lookups, as
>     it will require you to be on-line.
>
>     Do you want me to perform hostname lookups (y|n) ? [yes]
>
>     The following questions all require a list of host names, separated
>     with spaces. If you do not have a host available for any of the
>     services, then enter a single space, followed by <CR>. To accept the
>     default, hit <CR>
>
>     Enter a list of available NNTP hosts : []
>     Enter a list of available SMTP hosts : []
>     Enter a list of available POP3 hosts : []
>     Enter a list of available SNPP hosts : []
>     Enter a list of available PH Hosts   : []
>     Enter a list of available TIME Hosts   : []
>     Enter a list of available DAYTIME Hosts   : []
>
>     Do you have a firewall/ftp proxy  between your machine and the
internet
>
>     If you use a SOCKS firewall answer no
>
>     (y|n) ? [no]
>
>     Normally when FTP needs a data connection the client tells the server
>     a port to connect to, and the server initiates a connection to the
client.
>
>     Some setups, in particular firewall setups, can/do not work using this
>     protocol. In these situations the client must make the connection to
the
>     server, this is called a passive transfer.
>
>     Should all FTP connections be passive (y|n) ? [no]
>
>     What is your local internet domain name : []
>
>     If you specified some default hosts above, it is possible for me to
>     do some basic tests when you run `make test'
>
>     This will cause `make test' to be quite a bit slower and, if your
>     internet connection is via dialup, will require you to be on-line
>     unless the hosts are local.
>
>     Do you want me to run these tests (y|n) ? [yes]
>
>     To allow Net::FTP to be tested I will need a hostname. This host
>     should allow anonymous access and have a /pub directory
>
>     What host can I use : []
>
>     Writing libnet.cfg
>     Writing Makefile for Net
>     cp Net/POP3.pm blib/lib/Net/POP3.pm
>     cp Net/libnetFAQ.pod blib/lib/Net/libnetFAQ.pod
>     cp Net/Config.pm blib/lib/Net/Config.pm
>     cp Net/Domain.pm blib/lib/Net/Domain.pm
>     cp Net/SMTP.pm blib/lib/Net/SMTP.pm
>     cp Net/Time.pm blib/lib/Net/Time.pm
>     cp Net/NNTP.pm blib/lib/Net/NNTP.pm
>     cp Net/Cmd.pm blib/lib/Net/Cmd.pm
>     cp Net/Netrc.pm blib/lib/Net/Netrc.pm
>     cp Net/FTP/L.pm blib/lib/Net/FTP/L.pm
>     cp Net/FTP/dataconn.pm blib/lib/Net/FTP/dataconn.pm
>     cp Net/FTP.pm blib/lib/Net/FTP.pm
>     cp Net/FTP/E.pm blib/lib/Net/FTP/E.pm
>     cp Net/FTP/A.pm blib/lib/Net/FTP/A.pm
>     cp Net/FTP/I.pm blib/lib/Net/FTP/I.pm
>     cp libnet.cfg blib/lib/Net/libnet.cfg
>     Manifying blib/man3/Net::POP3.3
>     Manifying blib/man3/Net::Domain.3
>     Manifying blib/man3/Net::libnetFAQ.3
>     Manifying blib/man3/Net::SMTP.3
>     Manifying blib/man3/Net::Time.3
>     Manifying blib/man3/Net::NNTP.3
>     Manifying blib/man3/Net::Cmd.3
>     Manifying blib/man3/Net::Netrc.3
>     Manifying blib/man3/Net::FTP.3
>       /usr/bin/make  -- OK
>     Running make test
>     PERL_DL_NONLAZY=1
/usr/local/bin/perl -Iblib/arch -Iblib/lib -I/usr/local/lib/perl5/5.6.1/i586
-linux -I/usr/local/lib/perl5/5.6.1 -e 'use Test::Harness qw(&runtests
$verbose); $verbose=0; runtests @ARGV;' t/*.t
>     t/ftp...............skipped test on this platform
>     t/hostname..........Use of uninitialized value in pattern match (m//)
at blib/lib/Net/Domain.pm line 226.
>     Use of uninitialized value in split at blib/lib/Net/Domain.pm line
233.
>     ok
>     t/nntp..............skipped test on this platform
>     t/require...........FAILED tests 8-9
>     Failed 2/11 tests, 81.82% okay
>     t/smtp..............skipped test on this platform
>     Failed Test Status Wstat Total Fail  Failed  List of Failed
>     ----------------------------------------------------------------------
----------
>     t/require.t               11    2  18.18%  8-9
>     3 tests skipped.
>     Failed 1/5 test scripts, 80.00% okay. 2/12 subtests failed, 83.33%
okay.
>     make: *** [test_dynamic] Error 29
>       /usr/bin/make test -- NOT OK
>     Running make install
>       make test had returned bad status, won't install without force
>     Bundle summary: The following items in bundle Bundle::libnet had
>     installation problems:
>       Net::Cmd
>




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

Date: Mon, 22 Oct 2001 22:51:22 GMT
From: mgjv@tradingpost.com.au (Martien Verbruggen)
Subject: Re: Webpage Passwords
Message-Id: <slrn9t98na.1bv.mgjv@verbruggen.comdyn.com.au>

On Mon, 22 Oct 2001 13:58:25 +0100,
	Diehard Duck <diehard@nospam.userve.co.uk> wrote:
> "Martien Verbruggen" <mgjv@tradingpost.com.au> wrote in message
> news:slrn9t85jo.cnu.mgjv@martien.heliotrope.home...
>> On Mon, 22 Oct 2001 13:30:26 +0100,
>> Diehard Duck <diehard@nospam.userve.co.uk> wrote:
>> >
>> > "Scott Bell" <news@scottbell.org> wrote in message
>> > news:FmSA7.54149$sF.4733750@news2-win.server.ntlworld.com...
>> >> I wish to create a CGI script that allows users to create accounts. Is
>> > there
>> >> a way of getting the popup box in internet browsers that asks for the
>> > login
>> >> name and password via a CGI script?
>> >>
>> >
>> > I'm not sure of the code to do this, but I think what you need to do is
>> > allow users to set up accounts from a script on a webpage.  The script
>> > writes username/password to a .htaccess file in the root of the folder
> you
>> > want restricted.  Then when anyone tries accessing that folder
>> > (www.foo.com/restricted for example) they must have signed up to have
>> > access.
>>
>> Now, this is the sort of (bad) answer you can expect when you ask an
> offtopic
>> question like this. This has nothing at all to do with Perl, and
>> therefore should not be asked in a Perl newsgroup.
>>
> 
> Could Perl not be used to sign people up and to write to the .htaccess file?
> Then all Scott has to do is find out about .htaccess files, in, as you
> suggest, comp.infosystems.www.  I don't see how this has 'nothing to do with
> perl'.  Take a look at what he wants to achieve overall, and try and be
> helpful, and if you feel this has nothing to with Perl, at least explain
> why. Not everyone is necessarily as clued up as you are! I'm sure even you
> had to ask questions once that seem dumb now.

Perl could probably be used to maintain the .htpassword file, although
I would consider it very, very bad security if the web server user
could write to that file. But that is beside the issue, and it wasn't
the question.

Experience teaches us that many people ask Web server and Web
programming related questions here, simply because they don't
understand the difference between a language often used for Web
programming and the protocols and services that make up the Web. A
pointer to more appropriate groups is, in my opinion, better than an
answer which is half guessed, and maybe wrong.

> (Diehard Duck cowers in a puddle awaiting a good flaming)

I don't doubt for a second that that will follow now. This exact
discussion comes up here once every week or so. People here are pretty
much tired of explaining this over and over again.

Martien
-- 
Martien Verbruggen              | 
                                | Little girls, like butterflies, need
Trading Post Australia Pty Ltd  | no excuse - Lazarus Long
                                | 


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

Date: Mon, 22 Oct 2001 22:53:42 GMT
From: mgjv@tradingpost.com.au (Martien Verbruggen)
Subject: Re: Webpage Passwords
Message-Id: <slrn9t98rm.1bv.mgjv@verbruggen.comdyn.com.au>

On Mon, 22 Oct 2001 15:09:17 +0100,
	Diehard Duck <diehard@nospam.userve.co.uk> wrote:
> [snip]
> 
>>
>> But at least you had time to post your little "please put me in your
>> kill file" tirade.
> 
> I admit it. I'm an idiot. I don't know enough about Perl to be offering
> assistance. It was simply the only idea I could think of.

You're still missing the point.

The question posed originally had nothing to do with Perl, but with
Web server configuration.

> I'll go back to my national radio presenting and leave programming to people
> who know how.

Overreacting like this isn't going to get you anywhere. Learning from
this that topicality matters in technical newsgroups might.

If I were you, and I wanted to learn about Perl, I would just ignore
what happened, and continue reading.

Martien
-- 
Martien Verbruggen              | 
                                | In a world without fences, who needs
Trading Post Australia Pty Ltd  | Gates?
                                | 


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

Date: Mon, 22 Oct 2001 18:47:43 -0700
From: Richard Trahan <rtrahan@monmouth.com>
Subject: Re: xsub - does anything work?
Message-Id: <3BD4CC3F.F1AA91AA@monmouth.com>

Benjamin Goldberg wrote:
> 
(snip)
> 
> This is only vaguely related to XS or SWIG, but have you considered
> writing your code with Inline::C ?  Surely that would be a much better
> module for a beginner to use.
> 

I'm curious: what do you think I'm a beginner at? Perl? C? XS?
Programming?

BTW, my remark about any code working anywhere was - to me, at least -
clearly a sarcasm expressing my frustration with XS, but others seem
to have taken it differently. I knew I was the only sane one ... :-)

Now here is an on-topic question for you to ponder: if I give you
a sub that returns cubes (e.g., 2 -> 8, 3 -> 27, etc.), but my
documentation reads: "cubesub will return the square of its argument",
what is at fault: (a) the sub, (b) the documentation, (c) nothing,
since Perl hackers claim you should figure it out for yourself,
(c) other (specify).

Corollary: if I claim that I am the volunteer author of cubesub and 
kindred functions and you should therefore be grateful for whatever 
crumbs I let fall from my table for you to devour, should you: 
(a) be grateful and grovel, (b) be angry only when the crumbs are 
moldly, and grovel, (c) just grovel, (d) other (specify).


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

Date: Mon, 22 Oct 2001 23:19:02 GMT
From: mgjv@tradingpost.com.au (Martien Verbruggen)
Subject: Re: xsub - does anything work?
Message-Id: <slrn9t9ab6.1bv.mgjv@verbruggen.comdyn.com.au>

On Mon, 22 Oct 2001 18:47:43 -0700,
	Richard Trahan <rtrahan@monmouth.com> wrote:
> Benjamin Goldberg wrote:
>> 
> (snip)
>> 
>> This is only vaguely related to XS or SWIG, but have you considered
>> writing your code with Inline::C ?  Surely that would be a much better
>> module for a beginner to use.
>> 
> 
> I'm curious: what do you think I'm a beginner at? Perl? C? XS?
> Programming?
> 
> BTW, my remark about any code working anywhere was - to me, at least -
> clearly a sarcasm expressing my frustration with XS, but others seem
> to have taken it differently. I knew I was the only sane one ... :-)
> 
> Now here is an on-topic question for you to ponder: if I give you
> a sub that returns cubes (e.g., 2 -> 8, 3 -> 27, etc.), but my
> documentation reads: "cubesub will return the square of its argument",
> what is at fault: (a) the sub, (b) the documentation, (c) nothing,
> since Perl hackers claim you should figure it out for yourself,
> (c) other (specify).

I understand what you are saying, but you're probably talking to the
wrong people about this.

If you feel strongly enough about this, maybe you should take it to
the p5p [1], and ask them whether they shouldn't finally insist on
documentation being up to par with the development fo the actual code
implementation. Many of the more esoteric features of Perl could be
more useful to a wider audience, if better documented.

On the other hand, writing documentation will slow down the
development of these very features, and I'm not even mentioning that
many of the people who would write these features are probably faintly
allergic to writing documentation.

As said: We have no influence over how this works and gets
distributed. The p5p and the holder of the Perl Patch Pumpkin do. Talk
to them.

Martien

[1] perl 5 porters mailing list. www.cpan.org has information.
-- 
Martien Verbruggen              | 
                                | Can't say that it is, 'cause it
Trading Post Australia Pty Ltd  | ain't.
                                | 


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

Date: Tue, 23 Oct 2001 00:01:09 GMT
From: Dan Sugalski <dan@tuatha.sidhe.org>
Subject: Re: xsub - does anything work?
Message-Id: <9r2B7.118913$NT3.12317232@news1.rdc1.ct.home.com>

Martien Verbruggen <mgjv@tradingpost.com.au> wrote:

> If you feel strongly enough about this, maybe you should take it to
> the p5p [1], and ask them whether they shouldn't finally insist on
> documentation being up to par with the development fo the actual code
> implementation. Many of the more esoteric features of Perl could be
> more useful to a wider audience, if better documented.

> On the other hand, writing documentation will slow down the
> development of these very features, and I'm not even mentioning that
> many of the people who would write these features are probably faintly
> allergic to writing documentation.

The esoteric features are the very ones that desperately need good
documentation before they're added. Features nobody uses because nobody
understands them are worse than useless, since they usually mess up the
underlying source for no appreciable benefit anyone to speak of.

It's probably too late to fix this totally for perl 5. It will *not* be
allowed for perl 6. (No docs or tests, then no code commit. Period. Not
even for me...)

					Dan



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

Date: 6 Apr 2001 21:33:47 GMT (Last modified)
From: Perl-Users-Request@ruby.oce.orst.edu (Perl-Users-Digest Admin) 
Subject: Digest Administrivia (Last modified: 6 Apr 01)
Message-Id: <null>


Administrivia:

The Perl-Users Digest is a retransmission of the USENET newsgroup
comp.lang.perl.misc.  For subscription or unsubscription requests, send
the single line:

	subscribe perl-users
or:
	unsubscribe perl-users

to almanac@ruby.oce.orst.edu.  

To submit articles to comp.lang.perl.announce, send your article to
clpa@perl.com.

To request back copies (available for a week or so), send your request
to almanac@ruby.oce.orst.edu with the command "send perl-users x.y",
where x is the volume number and y is the issue number.

For other requests pertaining to the digest, send mail to
perl-users-request@ruby.oce.orst.edu. Do not waste your time or mine
sending perl questions to the -request address, I don't have time to
answer them even if I did know the answer.


------------------------------
End of Perl-Users Digest V10 Issue 1986
***************************************


home help back first fref pref prev next nref lref last post