[25820] in Perl-Users-Digest
Perl-Users Digest, Issue: 8057 Volume: 10
daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Fri May 6 18:05:34 2005
Date: Fri, 6 May 2005 15:05:05 -0700 (PDT)
From: Perl-Users Digest <Perl-Users-Request@ruby.OCE.ORST.EDU>
To: Perl-Users@ruby.OCE.ORST.EDU (Perl-Users Digest)
Perl-Users Digest Fri, 6 May 2005 Volume: 10 Number: 8057
Today's topics:
Re: compilation problem when adding a module <alazar@mdsi.ca>
Re: compilation problem when adding a module <alazar@mdsi.ca>
Re: compilation problem when adding a module <mark.clementsREMOVETHIS@wanadoo.fr>
Re: compilation problem when adding a module <alazar@mdsi.ca>
Re: compilation problem when adding a module <mark.clementsREMOVETHIS@wanadoo.fr>
Re: compilation problem when adding a module <alazar@mdsi.ca>
Re: compilation problem when adding a module <alazar@mdsi.ca>
Re: install Mail::Internet via CPAN shell on Windows (n <harbell@beerburp.com>
Re: install Mail::Internet via CPAN shell on Windows (n (Anno Siegel)
Re: Offline Perl obfusquator ? <tadmc@augustmail.com>
Re: RFC: Google Groups grabber in Perl <someone@example.com>
Re: RFC: Google Groups grabber in Perl <apeiron+usenet@coitusmentis.info>
Digest Administrivia (Last modified: 6 Apr 01) (Perl-Users-Digest Admin)
----------------------------------------------------------------------
Date: Fri, 06 May 2005 14:26:20 -0400
From: "Adi2k5" <alazar@mdsi.ca>
Subject: Re: compilation problem when adding a module
Message-Id: <fd0e8abd403eefeecc86335bf0b43671@localhost.talkaboutprogramming.com>
I'm interested in finding out how to solve this as well. I'm trying to
compile Math::GMP and I can't get past this.
lahar /yvr/project/perlssh/SunOS/perl-5.8.6/lib/Math/Math-GMP-2.04 111>
perl Makefile.PL
Note (probably harmless): No library found for -lgmp
Writing Makefile for Math::GMP
lahar /yvr/project/perlssh/SunOS/perl-5.8.6/lib/Math/Math-GMP-2.04 112>
lahar /yvr/project/perlssh/SunOS/perl-5.8.6/lib/Math/Math-GMP-2.04 112>
lahar /yvr/project/perlssh/SunOS/perl-5.8.6/lib/Math/Math-GMP-2.04 112>
make
"Version_check" is not exported by the ExtUtils::MakeMaker module
Can't continue after import errors at -e line 0
BEGIN failed--compilation aborted.
*** Error code 255
make: Fatal error: Command failed for target `Version_check'
lahar /yvr/project/perlssh/SunOS/perl-5.8.6/lib/Math/Math-GMP-2.04 113>
lahar /yvr/project/perlssh/SunOS/perl-5.8.6/lib/Math/Math-GMP-2.04 113>
lahar /yvr/project/perlssh/SunOS/perl-5.8.6/lib/Math/Math-GMP-2.04 113>
uname -a
SunOS lahar 5.6 Generic_105181-20 sun4u sparc SUNW,Ultra-Enterprise
------------------------------
Date: Fri, 06 May 2005 14:27:11 -0400
From: "Adi2k5" <alazar@mdsi.ca>
Subject: Re: compilation problem when adding a module
Message-Id: <98c942d2d00c183f530d0663fb6a3d8a@localhost.talkaboutprogramming.com>
I'm interested in finding out how to solve this as well. I'm trying to
compile Math::GMP and I can't get past this.
lahar /yvr/project/perlssh/SunOS/perl-5.8.6/lib/Math/Math-GMP-2.04 111>
perl Makefile.PL
Note (probably harmless): No library found for -lgmp
Writing Makefile for Math::GMP
lahar /yvr/project/perlssh/SunOS/perl-5.8.6/lib/Math/Math-GMP-2.04 112>
lahar /yvr/project/perlssh/SunOS/perl-5.8.6/lib/Math/Math-GMP-2.04 112>
lahar /yvr/project/perlssh/SunOS/perl-5.8.6/lib/Math/Math-GMP-2.04 112>
make
"Version_check" is not exported by the ExtUtils::MakeMaker module
Can't continue after import errors at -e line 0
BEGIN failed--compilation aborted.
*** Error code 255
make: Fatal error: Command failed for target `Version_check'
lahar /yvr/project/perlssh/SunOS/perl-5.8.6/lib/Math/Math-GMP-2.04 113>
lahar /yvr/project/perlssh/SunOS/perl-5.8.6/lib/Math/Math-GMP-2.04 113>
lahar /yvr/project/perlssh/SunOS/perl-5.8.6/lib/Math/Math-GMP-2.04 113>
uname -a
SunOS lahar 5.6 Generic_105181-20 sun4u sparc SUNW,Ultra-Enterprise
------------------------------
Date: 06 May 2005 18:44:04 GMT
From: "Mark Clements" <mark.clementsREMOVETHIS@wanadoo.fr>
Subject: Re: compilation problem when adding a module
Message-Id: <427bbaf4$0$11702$8fcfb975@news.wanadoo.fr>
Adi2k5 wrote:
> I'm interested in finding out how to solve this as well. I'm trying to
> compile Math::GMP and I can't get past this.
>
> lahar /yvr/project/perlssh/SunOS/perl-5.8.6/lib/Math/Math-GMP-2.04
> 111> perl Makefile.PL
> Note (probably harmless): No library found for -lgmp
> Writing Makefile for Math::GMP
> lahar /yvr/project/perlssh/SunOS/perl-5.8.6/lib/Math/Math-GMP-2.04
> 112> lahar
> /yvr/project/perlssh/SunOS/perl-5.8.6/lib/Math/Math-GMP-2.04 112>
> lahar /yvr/project/perlssh/SunOS/perl-5.8.6/lib/Math/Math-GMP-2.04
> 112> make "Version_check" is not exported by the ExtUtils::MakeMaker
> module Can't continue after import errors at -e line 0
> BEGIN failed--compilation aborted.
> *** Error code 255
> make: Fatal error: Command failed for target `Version_check'
> lahar /yvr/project/perlssh/SunOS/perl-5.8.6/lib/Math/Math-GMP-2.04
> 113> lahar
> /yvr/project/perlssh/SunOS/perl-5.8.6/lib/Math/Math-GMP-2.04 113>
> lahar /yvr/project/perlssh/SunOS/perl-5.8.6/lib/Math/Math-GMP-2.04
> 113> uname -a SunOS lahar 5.6 Generic_105181-20 sun4u sparc
> SUNW,Ultra-Enterprise
You need the gmp library. You can find a package for it (though maybe
not for Solaris 2.6) on www.sunfreeware.com .
Mark
------------------------------
Date: Fri, 06 May 2005 15:00:01 -0400
From: "Adi2k5" <alazar@mdsi.ca>
Subject: Re: compilation problem when adding a module
Message-Id: <12e11eeb4338ad54537459197682f62b@localhost.talkaboutprogramming.com>
Hi Mark,
I have the GMP lib.
lahar /yvr/project/perlssh/SunOS/perl-5.8.6/lib/Math 138> ls -ltr
total 952
-r-xr-xr-x 1 alazar staff 26328 Jan 31 2002 Complex.t
-r--r--r-- 1 alazar staff 44369 Jan 31 2002 Complex.pm
-r--r--r-- 1 alazar staff 14333 May 1 2003 Trig.pm
-r-xr-xr-x 1 alazar staff 5155 May 1 2003 Trig.t
-r--r--r-- 1 alazar staff 89656 Oct 21 2004 BigFloat.pm
-r--r--r-- 1 alazar staff 130656 Oct 21 2004 BigInt.pm
-r--r--r-- 1 alazar staff 42406 Oct 21 2004 BigRat.pm
drwxr-xr-x 3 alazar staff 4096 Nov 27 11:02 BigRat
drwxr-xr-x 3 alazar staff 4096 Nov 27 11:02 BigInt
drwxr-xr-x 2 alazar staff 4096 May 4 13:32 BigFloat
-rw-r--r-- 1 alazar staff 71680 May 4 16:44 Math-GMP-2.04.tar
-rw-r--r-- 1 alazar staff 8910 May 6 11:59 GMP.pm
drwxr-xr-x 5 alazar staff 4096 May 6 11:59 Math-GMP-2.04
I'm trying to build in ./Math-GMP-2.04
I don't know why 'perl Makefile.PL' can't find it tho.
------------------------------
Date: 06 May 2005 19:21:58 GMT
From: "Mark Clements" <mark.clementsREMOVETHIS@wanadoo.fr>
Subject: Re: compilation problem when adding a module
Message-Id: <427bc3d4$0$3118$8fcfb975@news.wanadoo.fr>
Adi2k5 wrote:
> Hi Mark,
>
> I have the GMP lib.
>
> lahar /yvr/project/perlssh/SunOS/perl-5.8.6/lib/Math 138> ls -ltr
> total 952
> -r-xr-xr-x 1 alazar staff 26328 Jan 31 2002 Complex.t
> -r--r--r-- 1 alazar staff 44369 Jan 31 2002 Complex.pm
> -r--r--r-- 1 alazar staff 14333 May 1 2003 Trig.pm
> -r-xr-xr-x 1 alazar staff 5155 May 1 2003 Trig.t
> -r--r--r-- 1 alazar staff 89656 Oct 21 2004 BigFloat.pm
> -r--r--r-- 1 alazar staff 130656 Oct 21 2004 BigInt.pm
> -r--r--r-- 1 alazar staff 42406 Oct 21 2004 BigRat.pm
> drwxr-xr-x 3 alazar staff 4096 Nov 27 11:02 BigRat
> drwxr-xr-x 3 alazar staff 4096 Nov 27 11:02 BigInt
> drwxr-xr-x 2 alazar staff 4096 May 4 13:32 BigFloat
> -rw-r--r-- 1 alazar staff 71680 May 4 16:44
> Math-GMP-2.04.tar -rw-r--r-- 1 alazar staff 8910 May 6
> 11:59 GMP.pm drwxr-xr-x 5 alazar staff 4096 May 6 11:59
> Math-GMP-2.04
>
> I'm trying to build in ./Math-GMP-2.04
>
> I don't know why 'perl Makefile.PL' can't find it tho.
I think you misunderstand. You need the gmp library, not the CPAN GMP
module. If you run
gcc -lgmp
You'll get probably get a "library not found error".
On my system:
bob 953 $ locate libgmp
/usr/local/lib/libgmp.a
/usr/local/lib/libgmp.la
/usr/local/lib/libgmp.so
/usr/local/lib/libgmp.so.3
/usr/local/lib/libgmp.so.3.3.2
bob 954 $ pkgchk -lp /usr/local/lib/libgmp.a
Pathname: /usr/local/lib/libgmp.a
Type: regular file
Expected mode: 0644
Expected owner: root
Expected group: bin
Expected file size (bytes): 2902116
Expected sum(1) of contents: 12280
Expected last modification: Mar 01 16:49:58 2004
Referenced by the following packages:
SMCgmp
Current status: installed
Look on www.sunfreeware.com for this package.
Note: CPAN modules sometimes have dependencies on external libraries,
eg DBD::mysql relies on the MySQL binary distribution, DBD::Oracle on
the Oracle client, XML::LibXML on libxml and so on.
Mark
------------------------------
Date: Fri, 06 May 2005 15:58:43 -0400
From: "Adi2k5" <alazar@mdsi.ca>
Subject: Re: compilation problem when adding a module
Message-Id: <e8899b452d1852175e8419c4b4d99193@localhost.talkaboutprogramming.com>
Hi Mark,
I have the GMP lib.
lahar /yvr/project/perlssh/SunOS/perl-5.8.6/lib/Math 138> ls -ltr
total 952
-r-xr-xr-x 1 alazar staff 26328 Jan 31 2002 Complex.t
-r--r--r-- 1 alazar staff 44369 Jan 31 2002 Complex.pm
-r--r--r-- 1 alazar staff 14333 May 1 2003 Trig.pm
-r-xr-xr-x 1 alazar staff 5155 May 1 2003 Trig.t
-r--r--r-- 1 alazar staff 89656 Oct 21 2004 BigFloat.pm
-r--r--r-- 1 alazar staff 130656 Oct 21 2004 BigInt.pm
-r--r--r-- 1 alazar staff 42406 Oct 21 2004 BigRat.pm
drwxr-xr-x 3 alazar staff 4096 Nov 27 11:02 BigRat
drwxr-xr-x 3 alazar staff 4096 Nov 27 11:02 BigInt
drwxr-xr-x 2 alazar staff 4096 May 4 13:32 BigFloat
-rw-r--r-- 1 alazar staff 71680 May 4 16:44 Math-GMP-2.04.tar
-rw-r--r-- 1 alazar staff 8910 May 6 11:59 GMP.pm
drwxr-xr-x 5 alazar staff 4096 May 6 11:59 Math-GMP-2.04
I'm trying to build in ./Math-GMP-2.04
I don't know why 'perl Makefile.PL' can't find it tho.
------------------------------
Date: Fri, 06 May 2005 16:02:12 -0400
From: "Adi2k5" <alazar@mdsi.ca>
Subject: Re: compilation problem when adding a module
Message-Id: <225f0258e9790d525844f082e08a7ed6@localhost.talkaboutprogramming.com>
I'll try installing the libgmp library.
Thanks for the help.
------------------------------
Date: Fri, 06 May 2005 18:22:10 GMT
From: Jaz <harbell@beerburp.com>
Subject: Re: install Mail::Internet via CPAN shell on Windows (newbie question)
Message-Id: <t7dn71tbeher5hmapc3nb80d5f7srudrb9@4ax.com>
Jaz <harbell@beerburp.com> wrote:
>I need advice on installing Mail-Internet.
{snip}
>When I run CPAN install (from cygwin or DOS) I get the errors below.
{snip}
>Writing Makefile for Mail
> -- NOT OK
>Running make test
> Can't test without successful make
>Running make install
> make had returned bad status, install seems impossible
Got it.
I just cd'ed into the build dir and manually ran make and make
install. Worked fine. Go figure(??)
(Please excuse the 'burp' when replying (b))
------------------------------
Date: 6 May 2005 19:30:07 GMT
From: anno4000@lublin.zrz.tu-berlin.de (Anno Siegel)
Subject: Re: install Mail::Internet via CPAN shell on Windows (newbie question)
Message-Id: <d5ggjv$3t7$1@mamenchi.zrz.TU-Berlin.DE>
Jaz <replyto@newsgroup.com> wrote in comp.lang.perl.misc:
> Jaz <harbell@beerburp.com> wrote:
> >I need advice on installing Mail-Internet.
> {snip}
> >When I run CPAN install (from cygwin or DOS) I get the errors below.
> {snip}
> >Writing Makefile for Mail
> > -- NOT OK
> >Running make test
> > Can't test without successful make
> >Running make install
> > make had returned bad status, install seems impossible
>
> Got it.
>
> I just cd'ed into the build dir and manually ran make and make
> install. Worked fine. Go figure(??)
No "make test"? Risky.
Anno
------------------------------
Date: Fri, 6 May 2005 15:22:45 -0500
From: Tad McClellan <tadmc@augustmail.com>
Subject: Re: Offline Perl obfusquator ?
Message-Id: <slrnd7nkgl.h3q.tadmc@magna.augustmail.com>
Christopher Nehren <apeiron+usenet@coitusmentis.info> wrote:
> On 2005-05-06, John W. Krahn scribbled these
> curious markings:
>>> That would require me to have some script or program that can obfusquate
>>> (even by just playing with the code layout) a few blocks of code.
>>
>> http://search.cpan.org/~dconway/Acme-Bleach-1.12/
>
> Keep in mind that any code obfuscator in the Bleach line is not perfect.
Of course not.
Anything called an "obfuscator" is not security at all.
If it was better (I hesitate to use "perfect") we would be
calling it "encryption" instead.
--
Tad McClellan SGML consulting
tadmc@augustmail.com Perl programming
Fort Worth, Texas
------------------------------
Date: Fri, 06 May 2005 18:58:18 GMT
From: "John W. Krahn" <someone@example.com>
Subject: Re: RFC: Google Groups grabber in Perl
Message-Id: <e7Pee.40548$tg1.30771@edtnps84>
Arthur J. O'Dwyer wrote:
>
> Just a request-for-comments and minor self-promotion:
> http://www.contrib.andrew.cmu.edu/~ajo/usenet_archive/retrieve.txt
>
> I've written a little Perl script that goes through Google Groups
> Classic's archive and extracts the texts of all my Usenet posts
> (that is, all the posts found with a given "author:foo" search string).
> (As a bonus, 'ls' in the resulting directory produces a Message-ID list
> ready to submit to http://groups-beta.google.com/groups/msgs_remove !)
> I would appreciate comments on:
>
> (1) Does it have any security holes? I'm leery of the way it calls
> Lynx, even with '' quotes present, and I wonder what could go wrong
> by using the Message-ID itself as a unique filename for each message
> text.
>
> (2) How is it bad Perl code? I'm not an even semi-regular Perl user,
> so I know this source code is naive and clumsy. So if you have the
> inclination to critique Perl code, go right ahead.
>
> (3) [more for comp.programming] Is it useful? What other tools exist
> for Usenet scraping? What more sensible naming scheme or file format
> could I use to store Usenet posts and headers, numbered in the low
> thousands? (How do Usenet servers do it?)
>
> I release the code to the public domain; please take it, use it, and
> promulgate it if you find it useful. But hurry --- the door of opportunity
> is shutting quickly!
>
> http://www.contrib.andrew.cmu.edu/~ajo/usenet_archive/retrieve.txt
Three problems I can see right off the bat:
> printf STDOUT ("from url ${url}\n");
The variable $url may contain printf formatting characters.
print STDOUT "from url $url\n";
And because STDOUT is the default output filehandle:
print "from url $url\n";
> open $outfile, '>', "$msgid";
> print { $outfile } $msgtext;
> close $outfile;
You are trying to open a file and print to it. You should test these
functions for error conditions.
open my $outfile, '>', $msgid or die "Error: $!";
print $outfile $msgtext or die "Error: $!";
close $outfile or die "Error: $!";
> for my $msgid ($indexpage =~ m{<a href=/groups.*selm=(.*)&rnum=.*>}g) {
The '*' quantifier is greedy so you _may_ be matching more then you intended.
Aside from that there is a lot of superfluous punctuation and the use of file
scoped instead of locally scoped variables.
John
--
use Perl;
program
fulfillment
------------------------------
Date: 06 May 2005 19:44:58 GMT
From: Christopher Nehren <apeiron+usenet@coitusmentis.info>
Subject: Re: RFC: Google Groups grabber in Perl
Message-Id: <slrnd7ni9q.1evg.apeiron+usenet@prophecy.dyndns.org>
On 2005-05-06, Arthur J. O'Dwyer scribbled these
curious markings:
>
> Just a request-for-comments and minor self-promotion:
> http://www.contrib.andrew.cmu.edu/~ajo/usenet_archive/retrieve.txt
No warnings? No way to allow the user to specify a different URL
retrieval method? Why not even just use LWP? That way, it's much more
portable (and easily so), because you keep everything in Perl.
Best Regards,
Christopher Nehren
--
I abhor a system designed for the "user", if that word is a coded
pejorative meaning "stupid and unsophisticated". -- Ken Thompson
If you ask the wrong questions, you get answers like "42" and "God".
Unix is user friendly. However, it isn't idiot friendly.
------------------------------
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.
NOTE: due to the current flood of worm email banging on ruby, the smtp
server on ruby has been shut off until further notice.
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 8057
***************************************