Adding paths to @INC in perl

2007-03-26 Thread Ian A. Tegebo
I've found several methods for adding directories to @INC in perl:

www.ncode.ch/papers/Perl-Library-Mechanics.pdf

I was hoping to find a KNOB, or something I could put in pkgtools.conf
so that my custom library path gets included in perl's @INC.  I was
hoping -Dusesitecustomize would have not required a patch to the port's
Makefile but this didn't seem to be the case.  

I'm using -Dotherlibdirs now:

======
--- Makefile-perl   Sat Feb 10 13:11:20 2007
+++ Makefile-perl-rcSat Feb 10 13:10:56 2007
@@ -121,6 +121,10 @@
 .endif
 MAN3PREFIX=${TARGETDIR}/lib/perl5/${PERL_VER}/perl
 
+.if defined(WITH_LIBDIRS)
+CONFIGURE_ARGS+=   -Dotherlibdirs=${WITH_LIBDIRS}
+.endif
+
 test:
@(cd ${WRKSRC}; make test)
 
@@ -145,6 +149,7 @@
@${ECHO} "  WITHOUT_PERL_64BITINT=yes Disable 64 bit integers"
@${ECHO} "(affects only 32-bit 
platforms)."
@${ECHO} "  WITH_THREADS=yes  Build threaded perl."
+   @${ECHO} "  WITH_LIBDIRS=PATH:..  Set the otherlibdirs 
configure arguments."
@${ECHO} "  ENABLE_SUIDPERL=yes   Also build set-user-id 
suidperl binary."
@${ECHO} ""
==

Is there a better way to do this?  If not, should I submit this patch to the
port maintainer?  

-- 
Ian Tegebo
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: What happened to my Perl installation???

2007-03-25 Thread Peter Matulis





From: Garrett Cooper <[EMAIL PROTECTED]>
To: freebsd-questions@freebsd.org
Subject: Re: What happened to my Perl installation???
Date: Mon, 26 Mar 2007 21:28:28 +

Peter Matulis wrote:
> I did an upgrade of my ports and I got some errors regarding Perl
> modules.  The system asked my to remove BSDPAN which I did.  Later I
> discovered I had other problems updating certain ports because of
> missing Perl parts.  This is part of the problem:
>
> $ perldoc BSDPAN
> Can't locate File/Spec.pm in @INC (@INC contains:
> /usr/local/lib/perl5/site_perl/5.8.8/mach
> /usr/local/lib/perl5/site_perl/5.8.8 /usr/local/lib/perl5/site_perl
> /usr/local/lib/perl5/5.8.8/mach /usr/local/lib/perl5/5.8.8 .
> /usr/local/lib/perl5/5.8.8/BSDPAN
> /usr/local/lib/perl5/5.8.8/BSDPAN/..) at
> /usr/local/lib/perl5/5.8.8/File/Spec/Functions.pm line 3.
> BEGIN failed--compilation aborted at
> /usr/local/lib/perl5/5.8.8/File/Spec/Functions.pm line 3.
> Compilation failed in require at
> /usr/local/lib/perl5/5.8.8/Pod/Perldoc.pm line 10.
> BEGIN failed--compilation aborted at
> /usr/local/lib/perl5/5.8.8/Pod/Perldoc.pm line 10.
> Compilation failed in require at /usr/local/bin/perldoc line 9.
> BEGIN failed--compilation aborted at /usr/local/bin/perldoc line 9.
>
> How do I fix up my Perl installation?
>
> Thank you very much.
>
> Peter
Eep. That's not good. Have you tried reinstalling perl? I'm curious
because according to CPAN it appears that File::Spec is a part of the
base Perl system:
<http://search.cpan.org/~kwilliams/PathTools-3.24/lib/File/Spec.pm>.


Ok, I'm trying to reinstall now:

cd /usr/ports/lang/perl5.8
make reinstall

Peter


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: What happened to my Perl installation???

2007-03-25 Thread Garrett Cooper
Garrett Cooper wrote:
> Peter Matulis wrote:
>   
>> I did an upgrade of my ports and I got some errors regarding Perl
>> modules.  The system asked my to remove BSDPAN which I did.  Later I
>> discovered I had other problems updating certain ports because of
>> missing Perl parts.  This is part of the problem:
>>
>> $ perldoc BSDPAN
>> Can't locate File/Spec.pm in @INC (@INC contains:
>> /usr/local/lib/perl5/site_perl/5.8.8/mach
>> /usr/local/lib/perl5/site_perl/5.8.8 /usr/local/lib/perl5/site_perl
>> /usr/local/lib/perl5/5.8.8/mach /usr/local/lib/perl5/5.8.8 .
>> /usr/local/lib/perl5/5.8.8/BSDPAN
>> /usr/local/lib/perl5/5.8.8/BSDPAN/..) at
>> /usr/local/lib/perl5/5.8.8/File/Spec/Functions.pm line 3.
>> BEGIN failed--compilation aborted at
>> /usr/local/lib/perl5/5.8.8/File/Spec/Functions.pm line 3.
>> Compilation failed in require at
>> /usr/local/lib/perl5/5.8.8/Pod/Perldoc.pm line 10.
>> BEGIN failed--compilation aborted at
>> /usr/local/lib/perl5/5.8.8/Pod/Perldoc.pm line 10.
>> Compilation failed in require at /usr/local/bin/perldoc line 9.
>> BEGIN failed--compilation aborted at /usr/local/bin/perldoc line 9.
>>
>> How do I fix up my Perl installation?
>>
>> Thank you very much.
>>
>> Peter
>> 
> Eep. That's not good. Have you tried reinstalling perl? I'm curious
> because according to CPAN it appears that File::Spec is a part of the
> base Perl system:
> <http://search.cpan.org/~kwilliams/PathTools-3.24/lib/File/Spec.pm>.
>
> -Garrett
Here's a printout of my /usr/local/lib/perl/5.8.8 directory. Maybe you
can send it through diff and figure out what's not there -- assuming you
don't reinstall first which I think might be a better idea to be honest
since it sounds like Perl's pretty mucked up:
http://students.washington.edu/youshi10/posted/perl_printout.txt
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: What happened to my Perl installation???

2007-03-25 Thread Garrett Cooper
Peter Matulis wrote:
> I did an upgrade of my ports and I got some errors regarding Perl
> modules.  The system asked my to remove BSDPAN which I did.  Later I
> discovered I had other problems updating certain ports because of
> missing Perl parts.  This is part of the problem:
>
> $ perldoc BSDPAN
> Can't locate File/Spec.pm in @INC (@INC contains:
> /usr/local/lib/perl5/site_perl/5.8.8/mach
> /usr/local/lib/perl5/site_perl/5.8.8 /usr/local/lib/perl5/site_perl
> /usr/local/lib/perl5/5.8.8/mach /usr/local/lib/perl5/5.8.8 .
> /usr/local/lib/perl5/5.8.8/BSDPAN
> /usr/local/lib/perl5/5.8.8/BSDPAN/..) at
> /usr/local/lib/perl5/5.8.8/File/Spec/Functions.pm line 3.
> BEGIN failed--compilation aborted at
> /usr/local/lib/perl5/5.8.8/File/Spec/Functions.pm line 3.
> Compilation failed in require at
> /usr/local/lib/perl5/5.8.8/Pod/Perldoc.pm line 10.
> BEGIN failed--compilation aborted at
> /usr/local/lib/perl5/5.8.8/Pod/Perldoc.pm line 10.
> Compilation failed in require at /usr/local/bin/perldoc line 9.
> BEGIN failed--compilation aborted at /usr/local/bin/perldoc line 9.
>
> How do I fix up my Perl installation?
>
> Thank you very much.
>
> Peter
Eep. That's not good. Have you tried reinstalling perl? I'm curious
because according to CPAN it appears that File::Spec is a part of the
base Perl system:
<http://search.cpan.org/~kwilliams/PathTools-3.24/lib/File/Spec.pm>.

-Garrett

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


What happened to my Perl installation???

2007-03-25 Thread Peter Matulis
I did an upgrade of my ports and I got some errors regarding Perl modules.  
The system asked my to remove BSDPAN which I did.  Later I discovered I had 
other problems updating certain ports because of missing Perl parts.  This 
is part of the problem:


$ perldoc BSDPAN
Can't locate File/Spec.pm in @INC (@INC contains: 
/usr/local/lib/perl5/site_perl/5.8.8/mach 
/usr/local/lib/perl5/site_perl/5.8.8 /usr/local/lib/perl5/site_perl 
/usr/local/lib/perl5/5.8.8/mach /usr/local/lib/perl5/5.8.8 . 
/usr/local/lib/perl5/5.8.8/BSDPAN /usr/local/lib/perl5/5.8.8/BSDPAN/..) at 
/usr/local/lib/perl5/5.8.8/File/Spec/Functions.pm line 3.
BEGIN failed--compilation aborted at 
/usr/local/lib/perl5/5.8.8/File/Spec/Functions.pm line 3.
Compilation failed in require at /usr/local/lib/perl5/5.8.8/Pod/Perldoc.pm 
line 10.
BEGIN failed--compilation aborted at 
/usr/local/lib/perl5/5.8.8/Pod/Perldoc.pm line 10.

Compilation failed in require at /usr/local/bin/perldoc line 9.
BEGIN failed--compilation aborted at /usr/local/bin/perldoc line 9.

How do I fix up my Perl installation?

Thank you very much.

Peter


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Problems with perl script on 6.1/5.8.8

2007-02-07 Thread Jonathan McKeown
On Tuesday 06 February 2007 22:24, Don O'Neil wrote:
> I've got a perl script that just refuses to run on my new 6.1 box with Perl
> 5.8.8... Whenever I run it from the command line I get this:
>
> Can't modify single ref constructor in lock at ./caldisp.pl line 84, near
> "*LOCKF)"
> Execution of ./caldisp.pl aborted due to compilation errors.
>
> The lines in question are:
>
> if (open (LOCKF, ">$LOCKF"))
> {
> lock (\*LOCKF);
> }

No real comment on the error, but shouldn't you be using flock() rather than 
lock()? flock is for locking files, lock is for locking shared variables in 
threads (unless of course you have a lock() subroutine defined somewhere, in 
which case it overrides the CORE::lock).

See perldoc perlopentut for details (it's hard to say more without more 
context).

Jonathan
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Problems with perl script on 6.1/5.8.8

2007-02-06 Thread Josh Carroll

Can't modify single ref constructor in lock at ./caldisp.pl line 84, near
"*LOCKF)"
Execution of ./caldisp.pl aborted due to compilation errors.


I'm not sure what has changed in Perl 5.8, but this should work instead:

if(open my $fh, "> $LOCKF") {
  lock($fh);
}

Josh
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Problems with perl script on 6.1/5.8.8

2007-02-06 Thread Don O'Neil
I've got a perl script that just refuses to run on my new 6.1 box with Perl
5.8.8... Whenever I run it from the command line I get this:

Can't modify single ref constructor in lock at ./caldisp.pl line 84, near
"*LOCKF)"
Execution of ./caldisp.pl aborted due to compilation errors.

The lines in question are:

if (open (LOCKF, ">$LOCKF"))
{
lock (\*LOCKF);
}

Now the script work fine on my older 4.10 box with perl 5.6.1.

Anyone have any ideas on how to fix this?

Thanks!!!

P.S. Thanks for the 'doh!' from everyone on the 'rm' with scp... I didn't
even think of just using ssh!

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Unable to locate Net-SMTP-SSL-1.01 perl module in ports

2007-02-06 Thread Gerard Seibert
On Tuesday February 06, 2007 at 12:32:50 (PM) Justin Meyer wrote:


> Is this what you were looking for?
> 
> ttyp1 [EMAIL PROTECTED]:/usr/ports
> 0 09:30:21 545 # make search name=p5-net-smtp
> ..
> Port:   p5-Net-SMTP-TLS-0.12
> Path:   /usr/ports/mail/p5-Net-SMTP-TLS
> Info:   An SMTP client supporting TLS and AUTH
> Maint:  [EMAIL PROTECTED]
> B-deps: p5-Digest-HMAC-1.01 p5-Digest-SHA1-2.11 p5-IO-Socket-SSL-1.02
> p5-MIME-Base64-3.07 p5-Net-SSLeay-1.30_1 perl-5.8.8
> R-deps: perl-5.8.8
> WWW:http://search.cpan.org/dist/Net-SMTP-TLS/
> 
> TLS = SSLv3, IIRC.

No, it is not the module I am looking for. There is a Net::SMTP::SSL
perl module available from CPAN. I guess that nobody has ever ported it
to FBSD. If I knew how, I would; however that isn't going to happen
anytime in the near future. I will just use CPAN to install it.

-- 
Gerard
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Unable to locate Net-SMTP-SSL-1.01 perl module in ports

2007-02-06 Thread Justin Meyer
Hi Gerard!

On Mon, 05 Feb 2007, Gerard Seibert wrote:

> I am looking for the Net-SMTP-SSL perl module in the ports system. So
> far I have not been able to locate it.. If I cannot locate it, I will
> have to use CPAN to install it; which is something I would rather not do.
> 
> Does anyone know if it exists under a different name perhaps?

Is this what you were looking for?

ttyp1 [EMAIL PROTECTED]:/usr/ports
0 09:30:21 545 # make search name=p5-net-smtp
...
Port:   p5-Net-SMTP-TLS-0.12
Path:   /usr/ports/mail/p5-Net-SMTP-TLS
Info:   An SMTP client supporting TLS and AUTH
Maint:  [EMAIL PROTECTED]
B-deps: p5-Digest-HMAC-1.01 p5-Digest-SHA1-2.11 p5-IO-Socket-SSL-1.02
p5-MIME-Base64-3.07 p5-Net-SSLeay-1.30_1 perl-5.8.8
R-deps: perl-5.8.8
WWW:http://search.cpan.org/dist/Net-SMTP-TLS/

TLS = SSLv3, IIRC.

Justin
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Unable to locate Net-SMTP-SSL-1.01 perl module in ports

2007-02-05 Thread Gerard Seibert
I am looking for the Net-SMTP-SSL perl module in the ports system. So
far I have not been able to locate it.. If I cannot locate it, I will
have to use CPAN to install it; which is something I would rather not do.

Does anyone know if it exists under a different name perhaps?

Thanks!

-- 
Gerard

Ruth rode upon my motor bike
directly in back of me.
I hit a bump at 95
and rode on Ruthlessly.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Port upgrade/install problem: MySQL and Perl I/F

2007-02-03 Thread Ted Mittelstaedt
Stuff like this happens, you can e-mail the port maintainer and
bitch him out for making a stupid change to the dependency
requirement, or you can simply dispense with ports, download
the perl module and compile and install it "the old fashioned way"

You ought to have nuked and repaved that server, your just lucky
that this very minor thing was the only thing that blew up.

Ted

- Original Message - 
From: "Robert Inder" <[EMAIL PROTECTED]>
To: 
Sent: Saturday, February 03, 2007 11:58 AM
Subject: Port upgrade/install problem: MySQL and Perl I/F


> p5-DBD-mysql50 and mysql itself
> Date: 03 Feb 2007 19:58:22 +
> Message-ID: <[EMAIL PROTECTED]>
> Lines: 128
> User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3
> MIME-Version: 1.0
> Content-Type: text/plain; charset=us-ascii
>
>
> I've upgraded Perl (via "portupgrade"), but the ports I need
> to re-install to restore my perl-to-MySQL interface won't!
>
> I'm working on a rather long-neglected server running
>
>  FreeBSD 5.2.1-RELEASE-p7 FreeBSD 5.2.1-RELEASE-p7
>
> It was running Perl 5.6, but I'm trying to install some code that
> needs 5.8.  So I did "cvsup" and then
>
> portupgrade -o lang/perl5.8 perl
>
> All went smoothly, and "perl-after-upgrade" gave me a list of
> perl packages to re-install, and I did "portupgrade" on each of them.
>
> Super!
>
> EXCEPT for the Perl to MySQL interface package:  p5-DBD-mysql50
>
> This is causing me two problems.
>
> Currently, "mysql" is installed and working.
>
> # pkg_info -Ia | grep mysql
> mysql-client-5.0.0_2 Multithreaded SQL database (client)
> mysql-server-5.0.0_2 Multithreaded SQL database (server)
>
> When I try to portupgrade the perl interface, it starts trying to
> build mysql for itself, even without a "-R" option.  And it does the
> same thing even if I change to the ports directory and type "make".
>
> I don't understand why it is doing that.  I am guessing the installed
> version of mysql is too old for the perl interface.  But I didn't
> think upgrade (or a port "make") would recurse unless "told" to
> But here's what it says...
>
> ===>   p5-DBD-mysql50-4. depends on file:
/usr/local/lib/perl5/site_perl/5.8.8/mach/DBI.pm - found
> ===>   p5-DBD-mysql50-4. depends on file:
/usr/local/bin/perl5.8.8 - found
> ===>   p5-DBD-mysql50-4. depends on shared library:
mysqlclient.15 - not found
> ===>Verifying install for mysqlclient.15 in
/usr/ports/databases/mysql50-client
> ===>  Building for mysql-client-5.0.33
>
> The second problem is that the mysql port won't actually compile.  It
> announces that it is "Configuring for mysql-client-5.0.33", and then
> proceeds to report a whole slew (hundreds) of "checking..." activities.
> About a dozen that start "pthread_", and some of them succeed.  Then
> it starts compling, but this process finishes with
>
> mkdir .libs
> cc -DDBUG_OFF -O -pipe -mcpu=pentiumpro -D_THREAD_SAFE -o factorial
my_main.o factorial.o  libdbug.a ../mysys/libmysys.a
../strings/libmystrings.a -lcrypt -lm
> ../mysys/libmysys.a(my_thr_init.o): In function
`my_thread_global_end':
> my_thr_init.o(.text+0x1b7): undefined reference to
`pthread_cond_timedwait'
> *** Error code 1
>
> Stop in
/data/ports_build/usr/ports/databases/mysql50-client/work/mysql-5.0.33/dbug.
> *** Error code 1
>
> Stop in
/data/ports_build/usr/ports/databases/mysql50-client/work/mysql-5.0.33.
> *** Error code 1
>
> Stop in
/data/ports_build/usr/ports/databases/mysql50-client/work/mysql-5.0.33.
> *** Error code 1
>
> Stop in /usr/ports/databases/mysql50-client.
> *** Error code 1
>
> Stop in /usr/ports/databases/p5-DBD-mysql50.
>
> I've tried googling for this, but although I've found a handful of
> people with broadly similar problems, nobody has actually been offered
> anything I recognise as an applicable solution!
>
> The upshot of this is that the previous Perl application is now broken
> because it cannot access the MySQL database.
>
> So I need to either...
>
> get the latest MySQL port to compile, or
>
> somehow get p5-DBD-mysql50 to work with the existing MySQL.
>
> ...but I'm not sure how to start on either.
>
> Help?  Any advice welcome!
>
> I have tried putting the p5-DBD-mysql50 package back the way it was
> (albeit in a rather simple-minded way -- just copying
> /usr/ports/databases/p5-DBD-mysql50 from its sister machine).  But
> this didn't make any d

Port upgrade/install problem: MySQL and Perl I/F

2007-02-03 Thread Robert Inder
p5-DBD-mysql50 and mysql itself
Date: 03 Feb 2007 19:58:22 +
Message-ID: <[EMAIL PROTECTED]>
Lines: 128
User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii


I've upgraded Perl (via "portupgrade"), but the ports I need
to re-install to restore my perl-to-MySQL interface won't!

I'm working on a rather long-neglected server running 

 FreeBSD 5.2.1-RELEASE-p7 FreeBSD 5.2.1-RELEASE-p7 

It was running Perl 5.6, but I'm trying to install some code that
needs 5.8.  So I did "cvsup" and then

portupgrade -o lang/perl5.8 perl

All went smoothly, and "perl-after-upgrade" gave me a list of
perl packages to re-install, and I did "portupgrade" on each of them.

Super!

EXCEPT for the Perl to MySQL interface package:  p5-DBD-mysql50

This is causing me two problems.

Currently, "mysql" is installed and working.

# pkg_info -Ia | grep mysql
mysql-client-5.0.0_2 Multithreaded SQL database (client)
mysql-server-5.0.0_2 Multithreaded SQL database (server)

When I try to portupgrade the perl interface, it starts trying to
build mysql for itself, even without a "-R" option.  And it does the
same thing even if I change to the ports directory and type "make".

I don't understand why it is doing that.  I am guessing the installed
version of mysql is too old for the perl interface.  But I didn't
think upgrade (or a port "make") would recurse unless "told" to
But here's what it says...

===>   p5-DBD-mysql50-4. depends on file: 
/usr/local/lib/perl5/site_perl/5.8.8/mach/DBI.pm - found
===>   p5-DBD-mysql50-4. depends on file: /usr/local/bin/perl5.8.8 - 
found
===>   p5-DBD-mysql50-4. depends on shared library: mysqlclient.15 - 
not found
===>Verifying install for mysqlclient.15 in 
/usr/ports/databases/mysql50-client
===>  Building for mysql-client-5.0.33

The second problem is that the mysql port won't actually compile.  It
announces that it is "Configuring for mysql-client-5.0.33", and then
proceeds to report a whole slew (hundreds) of "checking..." activities. 
About a dozen that start "pthread_", and some of them succeed.  Then
it starts compling, but this process finishes with

mkdir .libs
cc -DDBUG_OFF -O -pipe -mcpu=pentiumpro -D_THREAD_SAFE -o factorial 
my_main.o factorial.o  libdbug.a ../mysys/libmysys.a ../strings/libmystrings.a 
-lcrypt -lm
../mysys/libmysys.a(my_thr_init.o): In function `my_thread_global_end':
my_thr_init.o(.text+0x1b7): undefined reference to `pthread_cond_timedwait'
*** Error code 1

Stop in 
/data/ports_build/usr/ports/databases/mysql50-client/work/mysql-5.0.33/dbug.
*** Error code 1

Stop in 
/data/ports_build/usr/ports/databases/mysql50-client/work/mysql-5.0.33.
*** Error code 1

Stop in 
/data/ports_build/usr/ports/databases/mysql50-client/work/mysql-5.0.33.
*** Error code 1

Stop in /usr/ports/databases/mysql50-client.
*** Error code 1

Stop in /usr/ports/databases/p5-DBD-mysql50.

I've tried googling for this, but although I've found a handful of
people with broadly similar problems, nobody has actually been offered
anything I recognise as an applicable solution! 

The upshot of this is that the previous Perl application is now broken
because it cannot access the MySQL database.

So I need to either...

get the latest MySQL port to compile, or

somehow get p5-DBD-mysql50 to work with the existing MySQL.

...but I'm not sure how to start on either.

Help?  Any advice welcome!

I have tried putting the p5-DBD-mysql50 package back the way it was
(albeit in a rather simple-minded way -- just copying
/usr/ports/databases/p5-DBD-mysql50 from its sister machine).  But
this didn't make any difference.  It still decides that even this
version (which was working) is incompatible with the existing mysql...

boru/p5-DBD-mysql50# make   
===>  Vulnerability check disabled, database not found
===>  Extracting for p5-DBD-mysql50-2.9003
=> MD5 Checksum OK for DBD-mysql-2.9003.tar.gz.
===>   p5-DBD-mysql50-2.9003 depends on file: /usr/local/bin/perl5.8.8 - 
found
===>  Patching for p5-DBD-mysql50-2.9003
===>   p5-DBD-mysql50-2.9003 depends on file: /usr/local/bin/perl5.8.8 - 
found
===>   p5-DBD-mysql50-2.9003 depends on file: 
/usr/local/lib/perl5/site_perl/5.8.8/mach/DBI.pm - found
===>   p5-DBD-mysql50-2.9003 depends on file: /usr/local/bin/perl5.8.8 - 
found
===>   p5-DBD-mysql50-2.9003 depends on shared library: mysqlclient.15 - 
not found
:
:


Like the "current" version, this version claims it cannot find
mysqlclient.15.  And indeed, "locate" seems to confirm its absence...

# locate mysqlclient
/usr/loc

Re: perl substitution question

2007-01-15 Thread Gary Kline
On Mon, Jan 15, 2007 at 02:45:57PM -0800, Chuck Swiger wrote:
> On Jan 15, 2007, at 2:29 PM, Gary Kline wrote:
> >>OMG!  I managed to break a new shell war :)
> >>
> >>/me ducks and runs very far away
> >
> > No! no, cometh backeth, Giorgos!  No war, just peace, love
> > and flowers:-)
> 
> % cd /usr/ports/mail/imap-uw/ && make extract && cd work/imap-2004g
> % tail -3 Makefile
> # A monument to a hack of long ago and far away...
> love:
> @echo not war?


This was from *mumble* years ago, but if you do a make love 
in most Makefiles, you'll get "make: don't know how to make love.
Stop";  now is that old or what?

Oh-well.



> 
> >  Actually, I do use zsh, just have no clue how to
> > set noglob.  I was going to ask, but didn't want to show my
> > ignorance.  [[ been using zsh for 16, 17 years... ]]
> [ ... ]
> > Chuck, exactly what does noglob do? How to set/unset,  please?
> 
> noglob is a keyword (a "precommand modifier", specifically) that  
> disables wildcard filename globbing:
> 
>   % cd /tmp
>   % touch 'a*'
>   % touch 'ab'
>   % ls a*
>   a*  ab
>   % noglob ls a*
>   a*
> 
> This trivial case isn't too useful, but consider wanting to copy  
> all .jpg files from your home directory on another machine to the  
> local machine via scp or rsync:
> 
>   noglob scp [EMAIL PROTECTED]:*.jpg .
> 
> It's also amazingly handy in conjunction with the "find" command:
> 
>   noglob find /usr/obj -name *.a
> 
> ...so much so that I do:
> 
>   alias find='noglob find'
> 
> ...in my ZSH environment.
> 


Yes, indeed, thank you.  After playing around for some minutes,
your alias (or 'noglob find') finds much more easily.   Live and 
learnobviously.

gary


> -- 
> -Chuck
> 
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "[EMAIL PROTECTED]"

-- 
  Gary Kline  [EMAIL PROTECTED]   www.thought.org  Public Service Unix

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: perl substitution question

2007-01-15 Thread Chuck Swiger

On Jan 15, 2007, at 2:29 PM, Gary Kline wrote:

OMG!  I managed to break a new shell war :)

/me ducks and runs very far away


No! no, cometh backeth, Giorgos!  No war, just peace, love
and flowers:-)


% cd /usr/ports/mail/imap-uw/ && make extract && cd work/imap-2004g
% tail -3 Makefile
# A monument to a hack of long ago and far away...
love:
@echo not war?


  Actually, I do use zsh, just have no clue how to
set noglob.  I was going to ask, but didn't want to show my
ignorance.  [[ been using zsh for 16, 17 years... ]]

[ ... ]

Chuck, exactly what does noglob do? How to set/unset,  please?


noglob is a keyword (a "precommand modifier", specifically) that  
disables wildcard filename globbing:


  % cd /tmp
  % touch 'a*'
  % touch 'ab'
  % ls a*
  a*  ab
  % noglob ls a*
  a*

This trivial case isn't too useful, but consider wanting to copy  
all .jpg files from your home directory on another machine to the  
local machine via scp or rsync:


  noglob scp [EMAIL PROTECTED]:*.jpg .

It's also amazingly handy in conjunction with the "find" command:

  noglob find /usr/obj -name *.a

...so much so that I do:

  alias find='noglob find'

...in my ZSH environment.

--
-Chuck

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: perl substitution question

2007-01-15 Thread Gary Kline
On Tue, Jan 16, 2007 at 12:04:23AM +0200, Giorgos Keramidas wrote:
> On 2007-01-15 10:21, Chuck Swiger <[EMAIL PROTECTED]> wrote:
> > On Jan 14, 2007, at 1:44 PM, Gary Kline wrote:
> > >   Man!  truer words, (&c)... .  One o the very few suggestions
> > >   left for improving shells [ and/or subshells ] is a flag,
> > >   say '-N' which would have *nothing* to be escaped.  In other
> > >   words a '$' or '"' would be interpreted literally.But I'm
> > >   sure there are reasons for not escaping some bytes.
> >
> > ZSH has the "noglob" keyword which can be quite useful...
> 
> OMG!  I managed to break a new shell war :)
> 
> /me ducks and runs very far away
> 

No! no, cometh backeth, Giorgos!  No war, just peace, love
anf flowers:-)   Actually, I do use zsh, just have no clue how to
set noglob.  I was going to ask, but didn't want to show my
ignorance.  [[ been using zsh for 16, 17 years... ]]

Anyway, NOT to get into any kind of war--there being enuf
stupidity in the world--but I'm thinking of having essentially
a bare-threaded program loader.  A trivial shell (tsh?) that 
does little more than take any ISO.8859-[1-2] character and 
do a fork-exec.  Even "[" which is really /usr/bin/test, 
would be sucked in as a plain "[".   I do a  lot of regex
stuff that meaning finding obscure patterns in text files or
marked-up files.  I've got the regex book and a cheatsheet
several K lines long.  ()

Chuck, exactly what does noglob do? How to set/unset,  please?

gary


-- 
  Gary Kline  [EMAIL PROTECTED]   www.thought.org  Public Service Unix

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: perl substitution question

2007-01-15 Thread Giorgos Keramidas
On 2007-01-15 10:21, Chuck Swiger <[EMAIL PROTECTED]> wrote:
> On Jan 14, 2007, at 1:44 PM, Gary Kline wrote:
> > Man!  truer words, (&c)... .  One o the very few suggestions
> > left for improving shells [ and/or subshells ] is a flag,
> > say '-N' which would have *nothing* to be escaped.  In other
> > words a '$' or '"' would be interpreted literally.But I'm
> > sure there are reasons for not escaping some bytes.
>
> ZSH has the "noglob" keyword which can be quite useful...

OMG!  I managed to break a new shell war :)

/me ducks and runs very far away

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: perl substitution question

2007-01-15 Thread Chuck Swiger

On Jan 14, 2007, at 1:44 PM, Gary Kline wrote:

Man!  truer words, (&c)... .  One o the very few suggestions
left for improving shells [ and/or subshells ] is a flag,
say '-N' which would have *nothing* to be escaped.  In other
words a '$' or '"' would be interpreted literally.But I'm
sure there are reasons for not escaping some bytes.


ZSH has the "noglob" keyword which can be quite useful...

--
-Chuck

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: perl substitution question

2007-01-15 Thread Oliver Fromme
Gary Kline wrote:
 > Giorgos Keramidas wrote:
 > > Watch out for shells with funny 'expansion rules', like csh(1) :)
 > > [...]
 > 
 > Man!  truer words, (&c)... .  One o the very few suggestions 
 > left for improving shells [ and/or subshells ] is a flag, 
 > say '-N' which would have *nothing* to be escaped.  In other 
 > words a '$' or '"' would be interpreted literally.

Everything between single quotes (') is taken literally
and does not need to be escaped.  Except for the single
quote character itself, obviously, but that's not a big
deal anyway.

Best regards
   Oliver

PS:  I'm talking about standard bourne shell, of course
(a.k.a. /bin/sh, zsh, ksh or bash).  I recommend against
using csh or tcsh.

-- 
Oliver Fromme,  secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing
Dienstleistungen mit Schwerpunkt FreeBSD: http://www.secnetix.de/bsd
Any opinions expressed in this message may be personal to the author
and may not necessarily reflect the opinions of secnetix in any way.

"If you aim the gun at your foot and pull the trigger, it's
UNIX's job to ensure reliable delivery of the bullet to
where you aimed the gun (in this case, Mr. Foot)."
-- Terry Lambert, FreeBSD-hackers mailing list.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: perl substitution question

2007-01-14 Thread Gary Kline
On Sun, Jan 14, 2007 at 10:31:04PM +0200, Giorgos Keramidas wrote:
> On 2007-01-14 12:15, Gary Kline <[EMAIL PROTECTED]> wrote:
> > Thanks for all the ways, gents.  (I never thought of tr, but now that
> > seems like an option.)  A week+ ago I tried perl using 's/\xNN/"/g'
> > from the cmdline, but nojoy.  The online docs said that \N{xx} would
> > catch a hex character; that's what was fuzzy.
> 
> Watch out for shells with funny 'expansion rules', like csh(1) :)
> 
> Even in sh(1) variants, it's always a good idea to save the Perl script
> in a file first, and test it independently of the shell, with:
> 
>   perl filter.pl < infile > outfile
> 
> To avoid all the messy details about single-quotes, double-quotes,
> backquotes, stars, dollars, etc :)
> 

Man!  truer words, (&c)... .  One o the very few suggestions 
left for improving shells [ and/or subshells ] is a flag, 
say '-N' which would have *nothing* to be escaped.  In other 
words a '$' or '"' would be interpreted literally.But I'm
sure there are reasons for not escaping some bytes.   

-- 
  Gary Kline  [EMAIL PROTECTED]   www.thought.org  Public Service Unix

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: perl substitution question

2007-01-14 Thread Giorgos Keramidas
On 2007-01-14 12:15, Gary Kline <[EMAIL PROTECTED]> wrote:
> Thanks for all the ways, gents.  (I never thought of tr, but now that
> seems like an option.)  A week+ ago I tried perl using 's/\xNN/"/g'
> from the cmdline, but nojoy.  The online docs said that \N{xx} would
> catch a hex character; that's what was fuzzy.

Watch out for shells with funny 'expansion rules', like csh(1) :)

Even in sh(1) variants, it's always a good idea to save the Perl script
in a file first, and test it independently of the shell, with:

perl filter.pl < infile > outfile

To avoid all the messy details about single-quotes, double-quotes,
backquotes, stars, dollars, etc :)

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: perl substitution question

2007-01-14 Thread Gary Kline

Thanks for all the ways, gents.  (I never thought of tr,
but now that seems like an option.)  A week+ ago I tried
perl using 's/\xNN/"/g' from the cmdline, but nojoy. 
The online docs said that \N{xx} would catch a hex character;
that's what was fuzzy.

{Very} early this morning I retried using \x80 and 
\x9d, \x9c separately.  diff showed that things worked...
mostly; then I found more hex characters that I had to
carefully subs out.  I'll write a script to do the whole 
bunch.

No wonder I love Unix!

gary



-- 
  Gary Kline  [EMAIL PROTECTED]   www.thought.org  Public Service Unix

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: perl substitution question

2007-01-13 Thread perryh
> cat k | tr "\200" "\"" | tr "\235" "\"" > k.new

Or, skipping the unnecessary cat and invoking tr only once

tr "\200\235" "\"\"" < k > k.new
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: perl substitution question

2007-01-13 Thread Matt Emmerton
> o
> Anybody know if I can do a perl substitution of the scads of
> \x80\x9D to simple double-quotes (") from the command line?

80 hex = 200 octal
9D hex = 235 octal

cat k | tr "\200" "\"" | tr "\235" "\"" > k.new

--
Matt Emmerton
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: perl substitution question

2007-01-13 Thread Giorgos Keramidas
On 2007-01-13 18:45, Gary Kline <[EMAIL PROTECTED]> wrote:
> Anybody know if I can do a perl substitution of the scads of
> \x80\x9D to simple double-quotes (") from the command line?

You already have part of the syntax right:

,
| [EMAIL PROTECTED]:/home/keramida$ hd binary.dat 
|   80 68 65 6c 6c 6f 20 77  6f 72 6c 64 9d 0a|.hello world..|
| 000e
| [EMAIL PROTECTED]:/home/keramida$ perl -pe 's/\x80/"/; s/\x9d/"/;' < 
binary.dat 
| "hello world"
| [EMAIL PROTECTED]:/home/keramida$ 
`

Note how the file `binary.dat', which I edited with hexl-mode in Emacs,
to insert the 0x80 and 0x9D hex values, gets converted to "hello world"
on output.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


perl substitution question

2007-01-13 Thread Gary Kline
o
Anybody know if I can do a perl substitution of the scads of
\x80\x9D to simple double-quotes (") from the command line?

I've got many HTML files with this strange syntax (must be from
Windows) that  I'd like to make human-readable for myself.  I
know how to change s/OLD/NEW/ and make a *.bak of the old using
perl from the cmd line.  But nothing this obscure.  ---Yes, I have
scoured some web/perl docs; still fuzzy.  

thanks in advance, 

gary


-- 
  Gary Kline  [EMAIL PROTECTED]   www.thought.org  Public Service Unix

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: sparc64 and perl 5.8.8 port test failures?

2007-01-04 Thread Steven D. Yee
I tried deleting the work subdirectory
and doing both a 'make' and 'make WITHOUT_PERL_64BITINT=yes'
but make test still fails the same way on both the pack and integer tests ..
is it possible that there is some misconfiguration in my system that is 
confusing the
configure script w.r.t. 64bitness of my machine ?

I guess I could start mucking with the config.sh by hand but I'd rather figure 
out why
the port just doesn't work as is.

steve.

> - Original Message -
> From: "David Landgren" <[EMAIL PROTECTED]>
> To: "Steven D. Yee" <[EMAIL PROTECTED]>
> Subject: Re: sparc64 and perl 5.8.8 port test failures?
> Date: Wed, 03 Jan 2007 08:49:49 +0100
> 
> 
> Steven D. Yee wrote:
> > I'm seeing multiple errors from make test and I can't seem to
> > figure out how to get rid of them. As far as I can
> > tell it builds correctly.
> 
> [...]
> 
> > ../lib/integer..NOK 10
> > #   Failed test 'left shift'
> > #   in ../lib/integer.t at line 49.
> > #  got: '-4292583424'
> > # expected: '-9223372036854775808'
> > # Looks like you failed 1 test of 11.
> > ../lib/integer..dubious
> >  Test returned status 1 (wstat 256, 0x100)
> > DIED. FAILED test 10
> >  Failed 1/11 tests, 90.91% okay
> >
> >
> > I did try building with WITHOUT_PERL_64BITINT=yes  but that didn't
> > seem to make a difference, although its possible that I screwed that
> > up since conf.sh still shows multiple references to 64 bit ints 
> > (even use64bitint is defined)
> >
> > does anyone have any pointers as to what may be going on? or 
> > where to start looking?
> 
> This looks like the build is bringing in 64bitness when it 
> shouldn't (or vice versa). The build process might have remnants of 
> the previous config run lying around (in Policy.sh and/or 
> config.sh). Step down into the build directory and delete these two 
> files, and build again.
> 
> Or, better yet, just delete the entire ./work directory, and build it again.
> 
> Later,
> DAvid

>


-- 
___
Search for products and services at:
http://search.mail.com

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: sparc64 and perl 5.8.8 port test failures?

2007-01-03 Thread David Landgren

Steven D. Yee wrote:

I'm seeing multiple errors from make test and I can't seem to
figure out how to get rid of them. As far as I can
tell it builds correctly.


[...]


../lib/integer..NOK 10
#   Failed test 'left shift'
#   in ../lib/integer.t at line 49.
#  got: '-4292583424'
# expected: '-9223372036854775808'
# Looks like you failed 1 test of 11.
../lib/integer..dubious
 Test returned status 1 (wstat 256, 0x100)
DIED. FAILED test 10
 Failed 1/11 tests, 90.91% okay


I did try building with WITHOUT_PERL_64BITINT=yes  but that didn't
seem to make a difference, although its possible that I screwed that
up since conf.sh still shows multiple references to 64 bit ints (even 
use64bitint is defined)

does anyone have any pointers as to what may be going on? or where to 
start looking?


This looks like the build is bringing in 64bitness when it shouldn't (or 
vice versa). The build process might have remnants of the previous 
config run lying around (in Policy.sh and/or config.sh). Step down into 
the build directory and delete these two files, and build again.


Or, better yet, just delete the entire ./work directory, and build it again.

Later,
DAvid

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: sparc64 and perl 5.8.8 port test failures?

2007-01-03 Thread David Landgren

Steven D. Yee wrote:

I'm seeing multiple errors from make test and I can't seem to
figure out how to get rid of them. As far as I can
tell it builds correctly.


[...]


../lib/integer..NOK 10
#   Failed test 'left shift'
#   in ../lib/integer.t at line 49.
#  got: '-4292583424'
# expected: '-9223372036854775808'
# Looks like you failed 1 test of 11.
../lib/integer..dubious
 Test returned status 1 (wstat 256, 0x100)
DIED. FAILED test 10
 Failed 1/11 tests, 90.91% okay


I did try building with WITHOUT_PERL_64BITINT=yes  but that didn't
seem to make a difference, although its possible that I screwed that
up since conf.sh still shows multiple references to 64 bit ints (even 
use64bitint is defined)

does anyone have any pointers as to what may be going on? or where to 
start looking?


This looks like the build is bringing in 64bitness when it shouldn't (or 
vice versa). The build process might have remnants of the previous 
config run lying around (in Policy.sh and/or config.sh). Step down into 
the build directory and delete these two files, and build again.


Or, better yet, just delete the entire ./work directory, and build it again.

Later,
DAvid

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


sparc64 and perl 5.8.8 port test failures?

2007-01-02 Thread Steven D. Yee
I'm seeing multiple errors from make test and I can't seem to
figure out how to get rid of them. As far as I can
tell it builds correctly.

The errors look like:

...

t/op/pack.# Failed at op/pack.t line 631
# Failed at op/pack.t line 631
FAILED at test 514

...

lib/integer...#   Failed test 'left shift'
#   in ../lib/integer.t at line 49.
#  got: '-4292583424'
# expected: '-9223372036854775808'
FAILED at test 10

running harness directly gives a bit more information:

...

op/pack.ok 1/13864# Failed at 
op/pack.t line 631
# Failed at op/pack.t line 631
# Failed at op/pack.t line 631
op/pack.ok 108/13864# Failed at 
op/pack.t line 631
# Failed at op/pack.t line 631
# Failed at op/pack.t line 631
# Failed at op/pack.t line 631
op/pack.NOK 1284# Failed at 
op/pack.t line 631
# Failed at op/pack.t line 631
op/pack.ok 11275/13864# Failed at 
op/pack.t line 631
op/pack.FAILED tests 514, 624, 
954, 1284, 1614, 1944, 2274, 3374, 3429, 13057
 Failed 10/13864 tests, 99.93% okay

...
../lib/integer..NOK 10
#   Failed test 'left shift'
#   in ../lib/integer.t at line 49.
#  got: '-4292583424'
# expected: '-9223372036854775808'
# Looks like you failed 1 test of 11.
../lib/integer..dubious
 Test returned status 1 (wstat 256, 0x100)
DIED. FAILED test 10
 Failed 1/11 tests, 90.91% okay


I did try building with WITHOUT_PERL_64BITINT=yes  but that didn't
seem to make a difference, although its possible that I screwed that
up since conf.sh still shows multiple references to 64 bit ints (even 
use64bitint is defined)

does anyone have any pointers as to what may be going on? or where to 
start looking?

Sparc Ultra2 2GB memory
Freebsd 6.1-RELEASE-p11

steve.


-- 
___
Search for products and services at:
http://search.mail.com

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: perl CPAN shell CPAN.pm failure

2007-01-02 Thread Vizion
> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of Vizion
> Sent: Tuesday, January 02, 2007 4:07 AM
> To: freebsd-questions@freebsd.org
> Subject: perl CPAN shell CPAN.pm failure
> 
> 
> I seem to have something wrong in my installation...:
> --
> [EMAIL PROTECTED] /usr/ports/lang]# perl -MCPAN -e shell
> Can't locate Cwd.pm in @INC (@INC 
> contains: /usr/local/lib/perl5/5.8.8/BSDPAN 
> /usr/local/lib/perl5/site_perl/5.8.8/mach 
> /usr/local/lib/perl5/site_perl/5.8.8 
> /usr/local/lib/perl5/site_perl 
> /usr/local/lib/perl5/5.8.8/mach /usr/local/lib/perl5/5.8.8 .) 
> at /usr/local/lib/perl5/5.8.8/CPAN.pm line 13.
> BEGIN failed--compilation aborted at 
> /usr/local/lib/perl5/5.8.8/CPAN.pm line 
> 13.
> Compilation failed in require.
> BEGIN failed--compilation aborted.
> [EMAIL PROTECTED] /usr/ports/lang]# perl -MCPAN -e shell
> Can't locate Cwd.pm in @INC (@INC 
> contains: /usr/local/lib/perl5/5.8.8/BSDPAN 
> /usr/local/lib/perl5/site_perl/5.8.8/mach 
> /usr/local/lib/perl5/site_perl/5.8.8 
> /usr/local/lib/perl5/site_perl 
> /usr/local/lib/perl5/5.8.8/mach /usr/local/lib/perl5/5.8.8 .) 
> at /usr/local/lib/perl5/5.8.8/CPAN.pm line 13.
> BEGIN failed--compilation aborted at 
> /usr/local/lib/perl5/5.8.8/CPAN.pm line 
> 13.
> Compilation failed in require.
> BEGIN failed--compilation aborted.
> [EMAIL PROTECTED] /usr/ports/lang]# locate Cwd.pm
> /usr/cpan/build/PathTools-3.19/Cwd.pm
> /usr/cpan/build/PathTools-3.19/blib/lib/Cwd.pm
> /usr/local/lib/perl5/5.8.8/mach/Cwd.pm
> /usr1/local/lib/perl5/5.8.7/mach/Cwd.pm
> /usr1/local/lib/perl5/site_perl/5.8.7/mach/Cwd.pm
> [EMAIL PROTECTED] /usr/ports/lang]# ls -l |grep perl
> drwxr-xr-x  3 root  wheel   512 Aug 17 01:14 eperl
> drwxr-xr-x  2 root  wheel   512 Dec 27 10:53 linux-libperl5.8
> drwxr-xr-x  3 root  wheel   512 Aug 17 09:58 perl5
> drwxr-xr-x  3 root  wheel   512 Jan  2 00:54 perl5.8
> drwxr-xr-x  3 root  wheel   512 Aug 17 01:14 ruby-perl
> [EMAIL PROTECTED] /usr/ports/lang]# pkg_info |grep perl
> bsdpan-Archive-Zip-1.16 Unknown perl module
> bsdpan-CPAN-1.87CPAN - query, download and build perl 
> modules from CPAN 
> sit
> bsdpan-Term-ReadLine-Perl-1.0302 Unknown perl module
> bsdpan-TermReadKey-2.30 Term::ReadKey - A perl module for 
> simple terminal 
> control
> p5-DBI-1.53 The perl5 Database Interface.  Required 
> for DBD::* modules
> p5-Storable-2.15Persistency for perl data structures
> perl-5.8.8  Practical Extraction and Report Language
> tmake-1.7_2 Extremely portable perl-based make utility
> [EMAIL PROTECTED] /usr/ports/lang]#
> 
In my Original post I realize I posed no question
Does anyone have any idea how to fix the difficulty?

Thanks

David

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


perl CPAN shell CPAN.pm failure

2007-01-02 Thread Vizion
I seem to have something wrong in my installation...:
--
[EMAIL PROTECTED] /usr/ports/lang]# perl -MCPAN -e shell
Can't locate Cwd.pm in @INC (@INC 
contains: /usr/local/lib/perl5/5.8.8/BSDPAN 
/usr/local/lib/perl5/site_perl/5.8.8/mach /usr/local/lib/perl5/site_perl/5.8.8 
/usr/local/lib/perl5/site_perl /usr/local/lib/perl5/5.8.8/mach 
/usr/local/lib/perl5/5.8.8 .) 
at /usr/local/lib/perl5/5.8.8/CPAN.pm line 13.
BEGIN failed--compilation aborted at /usr/local/lib/perl5/5.8.8/CPAN.pm line 
13.
Compilation failed in require.
BEGIN failed--compilation aborted.
[EMAIL PROTECTED] /usr/ports/lang]# perl -MCPAN -e shell
Can't locate Cwd.pm in @INC (@INC 
contains: /usr/local/lib/perl5/5.8.8/BSDPAN 
/usr/local/lib/perl5/site_perl/5.8.8/mach /usr/local/lib/perl5/site_perl/5.8.8 
/usr/local/lib/perl5/site_perl /usr/local/lib/perl5/5.8.8/mach 
/usr/local/lib/perl5/5.8.8 .) 
at /usr/local/lib/perl5/5.8.8/CPAN.pm line 13.
BEGIN failed--compilation aborted at /usr/local/lib/perl5/5.8.8/CPAN.pm line 
13.
Compilation failed in require.
BEGIN failed--compilation aborted.
[EMAIL PROTECTED] /usr/ports/lang]# locate Cwd.pm
/usr/cpan/build/PathTools-3.19/Cwd.pm
/usr/cpan/build/PathTools-3.19/blib/lib/Cwd.pm
/usr/local/lib/perl5/5.8.8/mach/Cwd.pm
/usr1/local/lib/perl5/5.8.7/mach/Cwd.pm
/usr1/local/lib/perl5/site_perl/5.8.7/mach/Cwd.pm
[EMAIL PROTECTED] /usr/ports/lang]# ls -l |grep perl
drwxr-xr-x  3 root  wheel   512 Aug 17 01:14 eperl
drwxr-xr-x  2 root  wheel   512 Dec 27 10:53 linux-libperl5.8
drwxr-xr-x  3 root  wheel   512 Aug 17 09:58 perl5
drwxr-xr-x  3 root  wheel   512 Jan  2 00:54 perl5.8
drwxr-xr-x  3 root  wheel   512 Aug 17 01:14 ruby-perl
[EMAIL PROTECTED] /usr/ports/lang]# pkg_info |grep perl
bsdpan-Archive-Zip-1.16 Unknown perl module
bsdpan-CPAN-1.87CPAN - query, download and build perl modules from CPAN 
sit
bsdpan-Term-ReadLine-Perl-1.0302 Unknown perl module
bsdpan-TermReadKey-2.30 Term::ReadKey - A perl module for simple terminal 
control
p5-DBI-1.53 The perl5 Database Interface.  Required for DBD::* modules
p5-Storable-2.15Persistency for perl data structures
perl-5.8.8  Practical Extraction and Report Language
tmake-1.7_2 Extremely portable perl-based make utility
[EMAIL PROTECTED] /usr/ports/lang]#


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Perl error with Spam Assassin?

2006-12-30 Thread Ted Mittelstaedt
SA is a black box to troubleshoot, so many interrelated stuff.
portupgrading
isn't wise on a SA server.  When I deploy SA I build the initial server from
ports as well as SA, from that point on, all SA upgrades are manual.  Once
the rest of the code on the server gets too old for production, the server
is
cycled out and replaced with a new one that's a new initial build.

I realize this won't probably help you to solve the problem but may help you
avoid it in the future.

In your case since you undoubtedly don't want to take the server down to
the bear metal, all I can recommend is make deinstall SA and all dependent
programs, including
all perl modules as well as perl itself.  Then cvsup ports, and make install
SA  Good luck with it.

Ted

- Original Message - 
From: "David Kelly" <[EMAIL PROTECTED]>
To: "FreeBSD Questions" <[EMAIL PROTECTED]>
Sent: Thursday, December 28, 2006 7:40 PM
Subject: Perl error with Spam Assassin?


> I *think* the following is coming from Spam Assassin, which is
> launched by procmail, which is launched by fetchmail (so any of those
> could be the guilty party if they use perl).
>
> [31161] warn: (?:(?<=[\s,]))* matches null string many times in
> regex; marked by <-- HERE in m/\G(?:(?<=[\s,]))* <-- HERE \Z/ at /usr/
> local/lib/perl5/site_perl/5.8.8/Text/Wrap.pm line 46.
>
> Anyone else? Any suggestion as to what I may be doing wrong? Can't
> say that I can associate the occurance of the above with any
> portupgrade or similar. Might have been a portupgrade or a buildworld
> which started the error messages.
>
> --
> David Kelly N4HHE, [EMAIL PROTECTED]
> 
> Whom computers would destroy, they must first drive mad.
>
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to
"[EMAIL PROTECTED]"
>

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Perl error with Spam Assassin?

2006-12-29 Thread David Kelly
I *think* the following is coming from Spam Assassin, which is  
launched by procmail, which is launched by fetchmail (so any of those  
could be the guilty party if they use perl).


[31161] warn: (?:(?<=[\s,]))* matches null string many times in  
regex; marked by <-- HERE in m/\G(?:(?<=[\s,]))* <-- HERE \Z/ at /usr/ 
local/lib/perl5/site_perl/5.8.8/Text/Wrap.pm line 46.


Anyone else? Any suggestion as to what I may be doing wrong? Can't  
say that I can associate the occurance of the above with any  
portupgrade or similar. Might have been a portupgrade or a buildworld  
which started the error messages.


--
David Kelly N4HHE, [EMAIL PROTECTED]

Whom computers would destroy, they must first drive mad.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: can I use perl substitution to handle hex chars?

2006-12-12 Thread John Levine
>   Seems like lots of files I get off the net use \x80\x98 or the
>   like to denote various non-ascii characters.  Is there a way to
>   use perl (or any other unix tool) to replace
>   \x\x with, say whatever ASCII or ISO-8859-1
>   character or characters?

perl -pe 's/\\x(\w\w)/chr(hex("$1"))/eg'

R's,
John


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


can I use perl substitution to handle hex chars?

2006-12-11 Thread Gary Kline

To the tool wizards out there,

Seems like lots of files I get off the net use \x80\x98 or the
like to denote various non-ascii characters.  Is there a way to
use perl (or any other unix tool) to replace
\x\x with, say whatever ASCII or ISO-8859-1
character or characters?

thanks in advance, guys,

gary


-- 
  Gary Kline  [EMAIL PROTECTED]   www.thought.org  Public Service Unix

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: mimedefang, perl, and amd64 trouble

2006-10-19 Thread Wes Peters
I have a 3-day-old mimedefang installation running on 2.1-p10 with no  
such problems.  I'm completely up for debugging the problem if you've  
got a spare amd64 system you're not using.  ;^)


On Oct 17, 2006, at 6:54 PM, Michael W. Lucas wrote:


Hi,

(copying wes@, the mimedefang maintainer, just because it might
possibly be his headache.)

I have a brand-new, freshly-cvsupped 7.0 amd64 box as a mail server.
Perl seems to be having troubles; when I fire up mimedefang, it can't
load some dependencies.

Oct 17 21:47:39 bewilderbeast mimedefang-multiplexor[1730]:  
Starting slave 0 (pid 1747) (

1 running): Bringing slaves up to minSlaves (2)
Oct 17 21:47:39 bewilderbeast mimedefang-multiplexor[1730]: Slave 0  
stderr: Can't load '/
usr/local/lib/perl5/5.8.8/mach/auto/Sys/Hostname/Hostname.so' for  
module Sys::Hostname: /
usr/local/lib/perl5/5.8.8/mach/auto/Sys/Hostname/Hostname.so: mmap  
of entire address spac
e failed: Cannot allocate memory at /usr/local/lib/perl5/5.8.8/mach/ 
XSLoader.pm line 70.

 at /usr/local/lib/perl5/5.8.8/mach/Sys/Hostname.pm line 23
Oct 17 21:47:39 bewilderbeast mimedefang-multiplexor[1730]: Slave 0  
stderr: Can't load '/
usr/local/lib/perl5/5.8.8/mach/auto/File/Glob/Glob.so' for module  
File::Glob: /usr/local/
lib/perl5/5.8.8/mach/auto/File/Glob/Glob.so: mmap of entire address  
space failed: Cannot
allocate memory at /usr/local/lib/perl5/5.8.8/mach/XSLoader.pm line  
70.  at /usr/local/li
b/perl5/5.8.8/mach/File/Glob.pm line 96 Compilation failed in  
require at /usr/local/bin/m
imedefang.pl line 3197. BEGIN failed--compilation aborted at /usr/ 
local/bin/mimedefang.pl

 line 3197.
Oct 17 21:47:39 bewilderbeast mimedefang-multiplexor[1730]: Reap:  
slave 0 (pid 1747) exit

ed normally with status 255 (SLAVE DIED UNEXPECTEDLY)

Has anyone seen anything like this on FreeBSD before?  I know that
Wine has had some mmap problems, but I imagine a Perl failure would be
big news here...

Any ideas or suggestions appreciated.

==ml

--
Michael W. Lucas[EMAIL PROTECTED], [EMAIL PROTECTED]
http://www.BlackHelicopters.org/~mwlucas/
Latest book: PGP & GPG -- http://www.pgpandgpg.com
"The cloak of anonymity protects me from the nuisance of caring." - 
Non Sequitur


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions- 
[EMAIL PROTECTED]"


--
   Where am I, and what am I doing in this handbasket?
Wes Peters  
[EMAIL PROTECTED]


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Segfaulting perl

2006-10-18 Thread David King

For the archives:

I eventually found <http://www.talkaboutprogramming.com/group/ 
perl.libwww/messages/1556.html> and <http://lists.alioth.debian.org/ 
pipermail/pkg-openssl-devel/2005-October/000186.html>. It looks like  
a bug in p5-Crypt-SSLeay, and it not properly calling some OpenSSL  
routines, which causes perl to segfault. In fetchyahoo 2.10.6, it is  
on line 1435 of 2117, which reads:

$main_page = $ua->request($request);

$ua is a LWP::UserAgent object, and what's happening is that the  
request is redirecting to an SSL page, so even if you have SSL turned  
off it will end up making an SSL request.


I fixed it (very temporarily) by removing p5-Crypt-SSLeay (pkg_delete  
-f p5-Crypt-SSLeay). The UserAgent object sees that it can't do SSL  
without that package and follows the redirects but without SSL.


So obviously there is the drawback that SSL won't work, and also I  
have other packages that rely on that perl module (notably gnucash)  
that won't work with it not installed. That bug was filed with Debian  
a year ago (Bug#334938, Oct 20, 2005 <http://bugs.debian.org/cgi-bin/ 
bugreport.cgi?bug=334938>).



On 15 Oct 2006, at 13:10, David King wrote:

Just to make sure that no bad library dependancies were at work, I  
did a 'make buildworld installworld', and a 'portupgrade -frR  
fetchyahoo perl openssl', to no avail (and with the same backtrace  
generated by gdb as below).


Any ideas?

On 10 Oct 2006, at 11:05, David King wrote:

When trying to run fetchyahoo (from ports), perl dumps core. It  
appears to be dumping core in OpenSSL. I've tried recompiling/ 
reinstalling all ports related to fetchyahoo, perl, and openssl.  
This happens whether or not I enable SSL in fetchyahoo's  
configuration.


It gets as far as:

~% fetchyahoo
Logging in insecurely via plaintext as username on Tue Oct 10  
09:49:20 2006

zsh: segmentation fault (core dumped)  fetchyahoo

Perl and OpenSSL have been compiled with:

~% egrep -i '^(COPT|CFLAG)' /etc/make.conf
CFLAGS+=-O -pipe -mtune=i686 -g
COPTFLAGS=-O -pipe -mtune=i686 -g

Here's the output of GDB and a backtrace

Core was generated by `perl5.8.8'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /usr/local/lib/perl5/5.8.8/mach/CORE/ 
libperl.so...done.

Loaded symbols for /usr/local/lib/perl5/5.8.8/mach/CORE/libperl.so
Reading symbols from /lib/libm.so.4...done.
Loaded symbols for /lib/libm.so.4
Reading symbols from /lib/libcrypt.so.3...done.
Loaded symbols for /lib/libcrypt.so.3
Reading symbols from /lib/libutil.so.5...done.
Loaded symbols for /lib/libutil.so.5
Reading symbols from /usr/lib/libpthread.so.2...done.
Loaded symbols for /usr/lib/libpthread.so.2
Reading symbols from /lib/libc.so.6...done.
Loaded symbols for /lib/libc.so.6
Reading symbols from /usr/local/lib/perl5/5.8.8/mach/auto/IO/ 
IO.so...done.

Loaded symbols for /usr/local/lib/perl5/5.8.8/mach/auto/IO/IO.so
Reading symbols from /usr/local/lib/perl5/5.8.8/mach/auto/Fcntl/ 
Fcntl.so...done.
Loaded symbols for /usr/local/lib/perl5/5.8.8/mach/auto/Fcntl/ 
Fcntl.so
Reading symbols from /usr/local/lib/perl5/site_perl/5.8.8/mach/ 
auto/MIME/Base64/Base64.so...done.
Loaded symbols for /usr/local/lib/perl5/site_perl/5.8.8/mach/auto/ 
MIME/Base64/Base64.so
Reading symbols from /usr/local/lib/perl5/5.8.8/mach/auto/Time/ 
HiRes/HiRes.so...done.
Loaded symbols for /usr/local/lib/perl5/5.8.8/mach/auto/Time/HiRes/ 
HiRes.so
Reading symbols from /usr/local/lib/perl5/5.8.8/mach/auto/Socket/ 
Socket.so...done.
Loaded symbols for /usr/local/lib/perl5/5.8.8/mach/auto/Socket/ 
Socket.so
Reading symbols from /usr/local/lib/perl5/5.8.8/mach/auto/Sys/ 
Hostname/Hostname.so...done.
Loaded symbols for /usr/local/lib/perl5/5.8.8/mach/auto/Sys/ 
Hostname/Hostname.so
Reading symbols from /usr/local/lib/perl5/site_perl/5.8.8/mach/ 
auto/Compress/Zlib/Zlib.so...done.
Loaded symbols for /usr/local/lib/perl5/site_perl/5.8.8/mach/auto/ 
Compress/Zlib/Zlib.so

Reading symbols from /lib/libz.so.3...done.
Loaded symbols for /lib/libz.so.3
Reading symbols from /usr/local/lib/perl5/site_perl/5.8.8/mach/ 
auto/HTML/Parser/Parser.so...done.
Loaded symbols for /usr/local/lib/perl5/site_perl/5.8.8/mach/auto/ 
HTML/Parser/Parser.so
Reading symbols from /usr/local/lib/perl5/site_perl/5.8.8/mach/ 
auto/Crypt/SSLeay/SSLeay.so...done.
Loaded symbols for /usr/local/lib/perl5/site_perl/5.8.8/mach/auto/ 
Crypt/SSLeay/SSLeay.so

Reading symbols from /usr/local/lib/libssl.so.5...done.
Loaded symbols for /usr/local/lib/libssl.so.5
Reading symbols from /usr/local/lib/libcrypto.so.5...done.
Loaded symbols for /usr/local/lib/libcrypto.so.5
Reading symbols from /libexec/ld-elf.so.1...done.
Loaded symbols for /libexec/ld-elf.so.1
#0  0x2839d420 in SSL_CTX_ctrl () from /usr/local/lib/libssl.so.5
[New LWP 100179]
(gdb) bt
#0  0x2839d420 in SSL_CTX_ctrl () from /usr/local/lib/libssl.so.5
#1  0x01c0 in ?? (

mimedefang, perl, and amd64 trouble

2006-10-17 Thread Michael W. Lucas
Hi,

(copying wes@, the mimedefang maintainer, just because it might
possibly be his headache.)

I have a brand-new, freshly-cvsupped 7.0 amd64 box as a mail server.
Perl seems to be having troubles; when I fire up mimedefang, it can't
load some dependencies.

Oct 17 21:47:39 bewilderbeast mimedefang-multiplexor[1730]: Starting slave 0 
(pid 1747) (
1 running): Bringing slaves up to minSlaves (2)
Oct 17 21:47:39 bewilderbeast mimedefang-multiplexor[1730]: Slave 0 stderr: 
Can't load '/
usr/local/lib/perl5/5.8.8/mach/auto/Sys/Hostname/Hostname.so' for module 
Sys::Hostname: /
usr/local/lib/perl5/5.8.8/mach/auto/Sys/Hostname/Hostname.so: mmap of entire 
address spac
e failed: Cannot allocate memory at /usr/local/lib/perl5/5.8.8/mach/XSLoader.pm 
line 70. 
 at /usr/local/lib/perl5/5.8.8/mach/Sys/Hostname.pm line 23
Oct 17 21:47:39 bewilderbeast mimedefang-multiplexor[1730]: Slave 0 stderr: 
Can't load '/
usr/local/lib/perl5/5.8.8/mach/auto/File/Glob/Glob.so' for module File::Glob: 
/usr/local/
lib/perl5/5.8.8/mach/auto/File/Glob/Glob.so: mmap of entire address space 
failed: Cannot 
allocate memory at /usr/local/lib/perl5/5.8.8/mach/XSLoader.pm line 70.  at 
/usr/local/li
b/perl5/5.8.8/mach/File/Glob.pm line 96 Compilation failed in require at 
/usr/local/bin/m
imedefang.pl line 3197. BEGIN failed--compilation aborted at 
/usr/local/bin/mimedefang.pl
 line 3197.
Oct 17 21:47:39 bewilderbeast mimedefang-multiplexor[1730]: Reap: slave 0 (pid 
1747) exit
ed normally with status 255 (SLAVE DIED UNEXPECTEDLY)

Has anyone seen anything like this on FreeBSD before?  I know that
Wine has had some mmap problems, but I imagine a Perl failure would be
big news here...

Any ideas or suggestions appreciated.

==ml

--
Michael W. Lucas[EMAIL PROTECTED], [EMAIL PROTECTED]
http://www.BlackHelicopters.org/~mwlucas/
Latest book: PGP & GPG -- http://www.pgpandgpg.com
"The cloak of anonymity protects me from the nuisance of caring." -Non Sequitur

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Segfaulting perl

2006-10-15 Thread David King
Just to make sure that no bad library dependancies were at work, I  
did a 'make buildworld installworld', and a 'portupgrade -frR  
fetchyahoo perl openssl', to no avail (and with the same backtrace  
generated by gdb as below).


Any ideas?

On 10 Oct 2006, at 11:05, David King wrote:

When trying to run fetchyahoo (from ports), perl dumps core. It  
appears to be dumping core in OpenSSL. I've tried recompiling/ 
reinstalling all ports related to fetchyahoo, perl, and openssl.  
This happens whether or not I enable SSL in fetchyahoo's  
configuration.


It gets as far as:

~% fetchyahoo
Logging in insecurely via plaintext as username on Tue Oct 10  
09:49:20 2006

zsh: segmentation fault (core dumped)  fetchyahoo

Perl and OpenSSL have been compiled with:

~% egrep -i '^(COPT|CFLAG)' /etc/make.conf
CFLAGS+=-O -pipe -mtune=i686 -g
COPTFLAGS=-O -pipe -mtune=i686 -g

Here's the output of GDB and a backtrace

Core was generated by `perl5.8.8'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /usr/local/lib/perl5/5.8.8/mach/CORE/ 
libperl.so...done.

Loaded symbols for /usr/local/lib/perl5/5.8.8/mach/CORE/libperl.so
Reading symbols from /lib/libm.so.4...done.
Loaded symbols for /lib/libm.so.4
Reading symbols from /lib/libcrypt.so.3...done.
Loaded symbols for /lib/libcrypt.so.3
Reading symbols from /lib/libutil.so.5...done.
Loaded symbols for /lib/libutil.so.5
Reading symbols from /usr/lib/libpthread.so.2...done.
Loaded symbols for /usr/lib/libpthread.so.2
Reading symbols from /lib/libc.so.6...done.
Loaded symbols for /lib/libc.so.6
Reading symbols from /usr/local/lib/perl5/5.8.8/mach/auto/IO/ 
IO.so...done.

Loaded symbols for /usr/local/lib/perl5/5.8.8/mach/auto/IO/IO.so
Reading symbols from /usr/local/lib/perl5/5.8.8/mach/auto/Fcntl/ 
Fcntl.so...done.

Loaded symbols for /usr/local/lib/perl5/5.8.8/mach/auto/Fcntl/Fcntl.so
Reading symbols from /usr/local/lib/perl5/site_perl/5.8.8/mach/auto/ 
MIME/Base64/Base64.so...done.
Loaded symbols for /usr/local/lib/perl5/site_perl/5.8.8/mach/auto/ 
MIME/Base64/Base64.so
Reading symbols from /usr/local/lib/perl5/5.8.8/mach/auto/Time/ 
HiRes/HiRes.so...done.
Loaded symbols for /usr/local/lib/perl5/5.8.8/mach/auto/Time/HiRes/ 
HiRes.so
Reading symbols from /usr/local/lib/perl5/5.8.8/mach/auto/Socket/ 
Socket.so...done.
Loaded symbols for /usr/local/lib/perl5/5.8.8/mach/auto/Socket/ 
Socket.so
Reading symbols from /usr/local/lib/perl5/5.8.8/mach/auto/Sys/ 
Hostname/Hostname.so...done.
Loaded symbols for /usr/local/lib/perl5/5.8.8/mach/auto/Sys/ 
Hostname/Hostname.so
Reading symbols from /usr/local/lib/perl5/site_perl/5.8.8/mach/auto/ 
Compress/Zlib/Zlib.so...done.
Loaded symbols for /usr/local/lib/perl5/site_perl/5.8.8/mach/auto/ 
Compress/Zlib/Zlib.so

Reading symbols from /lib/libz.so.3...done.
Loaded symbols for /lib/libz.so.3
Reading symbols from /usr/local/lib/perl5/site_perl/5.8.8/mach/auto/ 
HTML/Parser/Parser.so...done.
Loaded symbols for /usr/local/lib/perl5/site_perl/5.8.8/mach/auto/ 
HTML/Parser/Parser.so
Reading symbols from /usr/local/lib/perl5/site_perl/5.8.8/mach/auto/ 
Crypt/SSLeay/SSLeay.so...done.
Loaded symbols for /usr/local/lib/perl5/site_perl/5.8.8/mach/auto/ 
Crypt/SSLeay/SSLeay.so

Reading symbols from /usr/local/lib/libssl.so.5...done.
Loaded symbols for /usr/local/lib/libssl.so.5
Reading symbols from /usr/local/lib/libcrypto.so.5...done.
Loaded symbols for /usr/local/lib/libcrypto.so.5
Reading symbols from /libexec/ld-elf.so.1...done.
Loaded symbols for /libexec/ld-elf.so.1
#0  0x2839d420 in SSL_CTX_ctrl () from /usr/local/lib/libssl.so.5
[New LWP 100179]
(gdb) bt
#0  0x2839d420 in SSL_CTX_ctrl () from /usr/local/lib/libssl.so.5
#1  0x01c0 in ?? ()
#2  0x000d in ?? ()
#3  0x28325000 in ?? ()
#4  0x in ?? ()
#5  0x283683b4 in __JCR_LIST__ () from /usr/local/lib/perl5/ 
site_perl/5.8.8/mach/auto/Crypt/SSLeay/SSLeay.so

#6  0x0017 in ?? ()
#7  0x in ?? ()
#8  0x283608af in XS_Crypt__SSLeay__CTX_new (my_perl=0x8058000,  
cv=0x86b47b0) at SSLeay.xs:133
#9  0x2810fd9f in Perl_pp_entersub (my_perl=0x8058000) at pp_hot.c: 
2913

#10 0x280f22d9 in Perl_runops_debug (my_perl=0x8058000) at dump.c:1459
#11 0x2809e6b1 in S_run_body (my_perl=0x8058000, oldscope=4095) at  
perl.c:2366

#12 0x2809e222 in perl_run (my_perl=0x8058000) at perl.c:2283
#13 0x080492bc in main ()

Summary of my perl5 (revision 5 version 8 subversion 8) configuration:
  Platform:
osname=freebsd, osvers=6.1-release-p10, archname=i386-freebsd- 
thread-multi-64int
uname='freebsd melchoir.ketralnis.com 6.1-release-p10 freebsd  
6.1-release-p10 #5: mon oct 9 09:44:49 pdt 2006  
[EMAIL PROTECTED]:usrobjusrsrcsysmelchoir i386 '
config_args='-sde -Dprefix=/usr/local -Darchlib=/usr/local/lib/ 
perl5/5.8.8/mach -Dprivlib=/usr/local/lib/perl5/5.8.8 -Dman3dir=/ 
usr/local/lib/perl5/5.8.8/perl/man/man3 -Dman1dir=/usr/local/man/ 
man1 -Dsitearch=/usr/local/lib/perl5/site

Running Perl from a C program

2006-10-12 Thread Olivier Nicole
Hi,

I am facing a problem when running a Perl script from a C program.

My C calls 2 different Perl scripts. The way to call them is
completely similar.

One script does a 'require "timelocal.pl";' and is working.

The other try to do a 'use Email::MIME::Creator;' and is not working
(whatever the module I try to load).

Of course this script is working when called from the shell, so this is
not a syntax error.

This has to do with not being able to 'use' any module from withing a
Perl script called from C. A 'require' would not work either.

I know this may not be the best list for that question.

TIA

Olivier
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Segfaulting perl

2006-10-10 Thread David King
When trying to run fetchyahoo (from ports), perl dumps core. It  
appears to be dumping core in OpenSSL. I've tried recompiling/ 
reinstalling all ports related to fetchyahoo, perl, and openssl. This  
happens whether or not I enable SSL in fetchyahoo's configuration.


It gets as far as:

~% fetchyahoo
Logging in insecurely via plaintext as username on Tue Oct 10  
09:49:20 2006

zsh: segmentation fault (core dumped)  fetchyahoo

Perl and OpenSSL have been compiled with:

~% egrep -i '^(COPT|CFLAG)' /etc/make.conf
CFLAGS+=-O -pipe -mtune=i686 -g
COPTFLAGS=-O -pipe -mtune=i686 -g

Here's the output of GDB and a backtrace

Core was generated by `perl5.8.8'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /usr/local/lib/perl5/5.8.8/mach/CORE/ 
libperl.so...done.

Loaded symbols for /usr/local/lib/perl5/5.8.8/mach/CORE/libperl.so
Reading symbols from /lib/libm.so.4...done.
Loaded symbols for /lib/libm.so.4
Reading symbols from /lib/libcrypt.so.3...done.
Loaded symbols for /lib/libcrypt.so.3
Reading symbols from /lib/libutil.so.5...done.
Loaded symbols for /lib/libutil.so.5
Reading symbols from /usr/lib/libpthread.so.2...done.
Loaded symbols for /usr/lib/libpthread.so.2
Reading symbols from /lib/libc.so.6...done.
Loaded symbols for /lib/libc.so.6
Reading symbols from /usr/local/lib/perl5/5.8.8/mach/auto/IO/ 
IO.so...done.

Loaded symbols for /usr/local/lib/perl5/5.8.8/mach/auto/IO/IO.so
Reading symbols from /usr/local/lib/perl5/5.8.8/mach/auto/Fcntl/ 
Fcntl.so...done.

Loaded symbols for /usr/local/lib/perl5/5.8.8/mach/auto/Fcntl/Fcntl.so
Reading symbols from /usr/local/lib/perl5/site_perl/5.8.8/mach/auto/ 
MIME/Base64/Base64.so...done.
Loaded symbols for /usr/local/lib/perl5/site_perl/5.8.8/mach/auto/ 
MIME/Base64/Base64.so
Reading symbols from /usr/local/lib/perl5/5.8.8/mach/auto/Time/HiRes/ 
HiRes.so...done.
Loaded symbols for /usr/local/lib/perl5/5.8.8/mach/auto/Time/HiRes/ 
HiRes.so
Reading symbols from /usr/local/lib/perl5/5.8.8/mach/auto/Socket/ 
Socket.so...done.

Loaded symbols for /usr/local/lib/perl5/5.8.8/mach/auto/Socket/Socket.so
Reading symbols from /usr/local/lib/perl5/5.8.8/mach/auto/Sys/ 
Hostname/Hostname.so...done.
Loaded symbols for /usr/local/lib/perl5/5.8.8/mach/auto/Sys/Hostname/ 
Hostname.so
Reading symbols from /usr/local/lib/perl5/site_perl/5.8.8/mach/auto/ 
Compress/Zlib/Zlib.so...done.
Loaded symbols for /usr/local/lib/perl5/site_perl/5.8.8/mach/auto/ 
Compress/Zlib/Zlib.so

Reading symbols from /lib/libz.so.3...done.
Loaded symbols for /lib/libz.so.3
Reading symbols from /usr/local/lib/perl5/site_perl/5.8.8/mach/auto/ 
HTML/Parser/Parser.so...done.
Loaded symbols for /usr/local/lib/perl5/site_perl/5.8.8/mach/auto/ 
HTML/Parser/Parser.so
Reading symbols from /usr/local/lib/perl5/site_perl/5.8.8/mach/auto/ 
Crypt/SSLeay/SSLeay.so...done.
Loaded symbols for /usr/local/lib/perl5/site_perl/5.8.8/mach/auto/ 
Crypt/SSLeay/SSLeay.so

Reading symbols from /usr/local/lib/libssl.so.5...done.
Loaded symbols for /usr/local/lib/libssl.so.5
Reading symbols from /usr/local/lib/libcrypto.so.5...done.
Loaded symbols for /usr/local/lib/libcrypto.so.5
Reading symbols from /libexec/ld-elf.so.1...done.
Loaded symbols for /libexec/ld-elf.so.1
#0  0x2839d420 in SSL_CTX_ctrl () from /usr/local/lib/libssl.so.5
[New LWP 100179]
(gdb) bt
#0  0x2839d420 in SSL_CTX_ctrl () from /usr/local/lib/libssl.so.5
#1  0x01c0 in ?? ()
#2  0x000d in ?? ()
#3  0x28325000 in ?? ()
#4  0x in ?? ()
#5  0x283683b4 in __JCR_LIST__ () from /usr/local/lib/perl5/site_perl/ 
5.8.8/mach/auto/Crypt/SSLeay/SSLeay.so

#6  0x0017 in ?? ()
#7  0x in ?? ()
#8  0x283608af in XS_Crypt__SSLeay__CTX_new (my_perl=0x8058000,  
cv=0x86b47b0) at SSLeay.xs:133

#9  0x2810fd9f in Perl_pp_entersub (my_perl=0x8058000) at pp_hot.c:2913
#10 0x280f22d9 in Perl_runops_debug (my_perl=0x8058000) at dump.c:1459
#11 0x2809e6b1 in S_run_body (my_perl=0x8058000, oldscope=4095) at  
perl.c:2366

#12 0x2809e222 in perl_run (my_perl=0x8058000) at perl.c:2283
#13 0x080492bc in main ()

Summary of my perl5 (revision 5 version 8 subversion 8) configuration:
  Platform:
osname=freebsd, osvers=6.1-release-p10, archname=i386-freebsd- 
thread-multi-64int
uname='freebsd melchoir.ketralnis.com 6.1-release-p10 freebsd  
6.1-release-p10 #5: mon oct 9 09:44:49 pdt 2006  
[EMAIL PROTECTED]:usrobjusrsrcsysmelchoir i386 '
config_args='-sde -Dprefix=/usr/local -Darchlib=/usr/local/lib/ 
perl5/5.8.8/mach -Dprivlib=/usr/local/lib/perl5/5.8.8 -Dman3dir=/usr/ 
local/lib/perl5/5.8.8/perl/man/man3 -Dman1dir=/usr/local/man/man1 - 
Dsitearch=/usr/local/lib/perl5/site_perl/5.8.8/mach -Dsitelib=/usr/ 
local/lib/perl5/site_perl/5.8.8 -Dscriptdir=/usr/local/bin - 
Dsiteman3dir=/usr/local/lib/perl5/5.8.8/man/man3 -Dsiteman1dir=/usr/ 
local/man/man1 -Ui_malloc -Ui_iconv -Uinstallusrbinperl -Dcc=cc - 
Duseshrplib -Dccflags=-DAPPLLIB_EXP="/usr/local/lib/perl5/5.8.8/ 
BSDPAN&q

Re: W3Mail/Perl Mail Module

2006-10-05 Thread Karol Kwiatkowski
[resending - my email bounced due to my old IP (ADSL) was listed in
spam dbl; running your own mail server is becoming less fun everyday
:( sorry for the confusion]

On 05/10/2006 20:54, Don O'Neil wrote:
> -Original Message-
> From: Karol Kwiatkowski [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, October 05, 2006 11:05 AM
> To: Don O'Neil
> Cc: freebsd-questions@freebsd.org
> Subject: Re: W3Mail/Perl Mail Module
> 
> On 05/10/2006 19:29, Don O'Neil wrote:
>>> Hi all... 
>>>
>>> I know this isn't necessarily the right group to be asking, but I 
>>> thought I'd start here
>>>
>>> I have been using CascadeSoft's W3Mail webmail program, and up until 
>>> last night everything worked great We had a crash on the server, 
>>> and something obviously got corrupted
>>>
>>> Now when I try to send a message through W3Mail I get the following error:
>>>
>>> Error: Message was not successfully sent.
>>> The SMTP server responded: Can't call method "mail" on an undefined 
>>> value at 
>>> /var/shc/servers/lizardhill.com/root/webmail/cgi/sendmessage.cgi line 179,
>>> line 4.
>>> Line 179 is-
>>> $smtp->mail($replyto);
>>>
>>> I tried replacing the Net::SMTP module from Perl, thinking that maybe 
>>> it was corrupted, but still it gives the same error.
>>>
>>> Any ideas where I should look/check next?
>> 
>> Hi Don,
>> 
>> you're probably in a hurry, but please don't send more messages, we got all
>> three of them :)
>> 
>> If you're unsure if a message got through you can check the archives here:
>>  http://lists.freebsd.org/pipermail/freebsd-questions/
>> 
>> As for your problem with W3Mail - I don't know anything about that. If you
>> won't get any replies here try to contact W3Mail users/developers.
>> 
>> Regards,
>> 
>> Karol
>>
> Karol,
>   Thanks for your reply. I was trying to send the message to different
> groups and accidentally sent it 2x to the freebsd list... I didn't realize
> it went there 3x.
> 
> My problem is that CascadeSoft seems to be out of business, and I can't find
> a support group for them anywhere. Any suggestions on where to look or post
> a question would be appreciated.
> 
> Don 

Sorry, I can't help you. Maybe someone else can - cc'ing @questions.

Best luck,

Karol

-- 
Karol Kwiatkowski  
OpenPGP: http://www.orchid.homeunix.org/carlos/gpg/0x06E09309.asc





signature.asc
Description: OpenPGP digital signature


W3Mail/Perl Mail Module

2006-10-05 Thread Don O'Neil
Hi all... 

I know this isn't necessarily the right group to be asking, but I thought
I'd start here

I have been using CascadeSoft's W3Mail webmail program, and up until last
night everything worked great We had a crash on the server, and
something obviously got corrupted

Now when I try to send a message through W3Mail I get the following error:

Error: Message was not successfully sent.
The SMTP server responded: Can't call method "mail" on an undefined value at
/var/shc/servers/lizardhill.com/root/webmail/cgi/sendmessage.cgi line 179,
line 4.  

Line 179 is- 
$smtp->mail($replyto);

I tried replacing the Net::SMTP module from Perl, thinking that maybe it was
corrupted, but still it gives the same error.

Any ideas where I should look/check next?

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


W3Mail/Perl Mail Module

2006-10-05 Thread Don O'Neil
Hi all... 

I know this isn't necessarily the right group to be asking, but I thought
I'd start here

I have been using CascadeSoft's W3Mail webmail program, and up until last
night everything worked great We had a crash on the server, and
something obviously got corrupted

Now when I try to send a message through W3Mail I get the following error:

Error: Message was not successfully sent.
The SMTP server responded: Can't call method "mail" on an undefined value at
/var/shc/servers/lizardhill.com/root/webmail/cgi/sendmessage.cgi line 179,
line 4.  

Line 179 is- 
$smtp->mail($replyto);

I tried replacing the Net::SMTP module from Perl, thinking that maybe it was
corrupted, but still it gives the same error.

Any ideas where I should look/check next?

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


W3Mail/Perl Mail Module

2006-10-05 Thread Don O'Neil
Hi all... 

I know this isn't necessarily the right group to be asking, but I thought
I'd start here

I have been using CascadeSoft's W3Mail webmail program, and up until last
night everything worked great We had a crash on the server, and
something obviously got corrupted

Now when I try to send a message through W3Mail I get the following error:

Error: Message was not successfully sent.
The SMTP server responded: Can't call method "mail" on an undefined value at
/var/shc/servers/lizardhill.com/root/webmail/cgi/sendmessage.cgi line 179,
line 4.  

Line 179 is- 
$smtp->mail($replyto);

I tried replacing the Net::SMTP module from Perl, thinking that maybe it was
corrupted, but still it gives the same error.

Any ideas where I should look/check next?

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Thread libraries and Perl

2006-09-28 Thread Kevin Oberman
I use a Perl program that uses GTK2 for its display. This means that it
uses the p5-Gtk2 port. Many GTK2 routines are threaded, and when they
are called, the rtld fails to resolve the symbol "pthread_getschedparam"
and the program exists.

I know that normally the inclusion of the threading libraries is done at
compile time for the main code which will be using threading routines in
libraries to which it is linked, but Perl is not compiled and, if I
don't do something to pull libpthread into the process, such as using
LD_PRELOAD, I will get the error.

My question is, what is the best way to do this? Should the Perl
bindings to the threaded libraries do it? (In this case, p5-Gtk2) or is
there a better way.
-- 
R. Kevin Oberman, Network Engineer
Energy Sciences Network (ESnet)
Ernest O. Lawrence Berkeley National Laboratory (Berkeley Lab)
E-mail: [EMAIL PROTECTED]   Phone: +1 510 486-8634
Key fingerprint:059B 2DDF 031C 9BA3 14A4  EADA 927D EBB3 987B 3751


pgprVUKjrQe3n.pgp
Description: PGP signature


Re: When to use SUID Perl (5.8.x)?

2006-09-25 Thread Olivier Nicole
Hi, 

> Just wondering what do you need suid perl for?

To run a Perl script that needs to get root privileges.

> it is a security risk having it?

It is always a risk to have a powerfull tool installed when you don't
need it. If a security bug is discovered in Perl, one could be able to
become root without you wanting it.

> Is the risk that if the webserver/webserver-app gets comprimised the 
> user could use perl?

It depends on whatyou are running on your server.

If you don't need setuid perl, do not install it :))

Olivier
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


When to use SUID Perl (5.8.x)?

2006-09-25 Thread B. Cook

Hello,

Just wondering what do you need suid perl for?

I run a webserver for staff users, and have had no real need for it, and 
considering removing it.


I think it goes to back the days when SA (possibly?) needed it and I 
just cp'd the make.conf across boxes over the years.. :)


it is a security risk having it?

Is the risk that if the webserver/webserver-app gets comprimised the 
user could use perl?


Thanks in advance.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: portmanager and perl handling

2006-08-21 Thread Gerard Seibert
On Sunday 20 August 2006 19:31, Noah wrote:
> Okay I am looking at these files.  I am looking for something that
> automatically executes a 'use.perl port' after upgrading or reinstalling
> perl.  It is most probable that I will always want the latest perl port
> active.
>
> I cant figure out how to do that from the documentation and/or files you
> have sent to me.
>
> Cheers,
> Noah

I am not sure about this, but perhap you have to chmod the 'use.perl' program 
to  0755 and then run "use.perl port" manually. In any case, You do have to 
execute the 'perl-after-upgrade' program. Check the manual for further info 
on that program.

Just out of curiosity, after running portmanger, and assuming it does claim to 
have upgraded perl, what is the out put of 'perl -V'?

Ciao!


-- 
Gerard Seibert
[EMAIL PROTECTED]

All life evolves by the differential survival of replicating entities.

Dawkins


pgpNyVtLrmEhu.pgp
Description: PGP signature


Re: portmanager and perl handling

2006-08-20 Thread Noah

Gerard Seibert wrote:

On Sunday 20 August 2006 17:40, Noah wrote:
  

 am running portmanager with the following switches "portmanager -u -f
-l -y"
 which is building all the dependencies.  I find that perl is set to the
system version of 5.003 .   I do not want this behavior.

I want to keep updating Perl to the newer version and I want perl to
always be set to the latest port which is currently 5.8.8.  what do I
need to change in my portmanager.conf file to make sure this happens?



I thought that portmanager did that automatically. Anyway, in the pkg-message 
file, there is a notation about 'use.perl port'. That is located 
in /usr/ports/lang/perl5.8/files directory. However, you will need to chmod 
it to get it to run. There is also the 'perl-after-upgrade' file there that I 
believe replaces the 'use.perl' program. I may be wrong about that though. In 
any case, read the man on 'perl-after-upgrade' and run it. That might correct 
the problem. Perhaps someone else know more about the 'use.perl' program.


  

Hi,

Okay I am looking at these files.  I am looking for something that 
automatically executes a 'use.perl port' after upgrading or reinstalling 
perl.  It is most probable that I will always want the latest perl port 
active.


I cant figure out how to do that from the documentation and/or files you 
have sent to me.


Cheers,
Noah




Ciao!


  


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: portmanager and perl handling

2006-08-20 Thread Gerard Seibert
On Sunday 20 August 2006 17:40, Noah wrote:
>  am running portmanager with the following switches "portmanager -u -f
> -l -y"
>  which is building all the dependencies.  I find that perl is set to the
> system version of 5.003 .   I do not want this behavior.
>
> I want to keep updating Perl to the newer version and I want perl to
> always be set to the latest port which is currently 5.8.8.  what do I
> need to change in my portmanager.conf file to make sure this happens?

I thought that portmanager did that automatically. Anyway, in the pkg-message 
file, there is a notation about 'use.perl port'. That is located 
in /usr/ports/lang/perl5.8/files directory. However, you will need to chmod 
it to get it to run. There is also the 'perl-after-upgrade' file there that I 
believe replaces the 'use.perl' program. I may be wrong about that though. In 
any case, read the man on 'perl-after-upgrade' and run it. That might correct 
the problem. Perhaps someone else know more about the 'use.perl' program.

Ciao!


-- 
Gerard Seibert
[EMAIL PROTECTED]

I'm all for computer dating, but I
wouldn't want one to marry my sister.


pgpEeoskoOMjX.pgp
Description: PGP signature


portmanager and perl handling

2006-08-20 Thread Noah


I am running portmanager with the following switches "portmanager -u -f 
-l -y"
which is building all the dependencies.  I find that perl is set to the 
system version of 5.003 .   I do not want this behavior.


I want to keep updating Perl to the newer version and I want perl to 
always be set to the latest port which is currently 5.8.8.  what do I 
need to change in my portmanager.conf file to make sure this happens?


Cheers,

Noah

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: portmanager ignoring update perl

2006-08-20 Thread Noah

Gerard Seibert wrote:

Noah wrote:

  
I am running portmanager and updating all dependencies along the way. I 
am finding that perl gets updated to the system version.  I want to keep 
it to version 5.8. . FreeBSD4-11 is my OS.


so in order to get portmanager to stop updating perl do I add the 
following to /usr/local/etc/portmanager/pm-020.conf


 snip ---

IGNORE|lang/perl5.8|


--- snip ---


will that work?



It should work. I have it configured to ignore JAVA and OpenOfice. It
just issues a message in the log that the port is being ignored.

Out of curiosity, why can you not run a newer version of Perl on that OS?


  



I am running the newest version of PERL.  I am running perl 5.8.8 which 
is the latets port.  for some reason when I am running portmanager and 
update dependencies it wants to reverts perl back to the system perl.  
any clues how to keep perl updated but not set to the system port?


cheers,

Noah


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: portmanager ignoring update perl

2006-08-20 Thread Gerard Seibert
Noah wrote:

> I am running portmanager and updating all dependencies along the way. I 
> am finding that perl gets updated to the system version.  I want to keep 
> it to version 5.8. . FreeBSD4-11 is my OS.
> 
> so in order to get portmanager to stop updating perl do I add the 
> following to /usr/local/etc/portmanager/pm-020.conf
> 
>  snip ---
> 
> IGNORE|lang/perl5.8|
> 
> 
> --- snip ---
> 
> 
> will that work?

It should work. I have it configured to ignore JAVA and OpenOfice. It
just issues a message in the log that the port is being ignored.

Out of curiosity, why can you not run a newer version of Perl on that OS?


-- 
Gerard Seibert
[EMAIL PROTECTED]

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


portmanager ignoring update perl

2006-08-20 Thread Noah


Hi there,

I am running portmanager and updating all dependencies along the way. I 
am finding that perl gets updated to the system version.  I want to keep 
it to version 5.8. . FreeBSD4-11 is my OS.


so in order to get portmanager to stop updating perl do I add the 
following to /usr/local/etc/portmanager/pm-020.conf


 snip ---

IGNORE|lang/perl5.8|


--- snip ---


will that work?

Cheers,

Noah

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Perl question.

2006-08-17 Thread Greg Groth



Dan Nelson wrote:


A quick web search shows that POE::Preprocessor was removed from POE in
March.  http://search.cpan.org/src/RCAPUTO/POE-0.3601/CHANGES :

 2006-03-11 23:11:39 (r1887) by rcaputo
  poe/lib/POE/Preprocessor.pm D; poe/lib/POE/Macro D;
  poe/tests/10_units/01_preprocessor D; poe/mylib/preprocessor.perl A;
  poe/mylib/PoeBuildInfo.pm M

Remove POE::Preprocessor. Replaced it with a simple, almost one-liner
preprocessor that's run at Makefile.PL time. 



Thanks for finding this for me.  A search on http://search.cpan.org for 
POE::Preprocessor brought up zilch, not sure why it couldn't locate this 
doc.


Best regards,
Greg Groth
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Perl question.

2006-08-17 Thread Dan Nelson
In the last episode (Aug 17), Greg Groth said:
> I'm trying to install bandersnatch in conjunction with Jabber2 and
> running into some trouble.  I'm following the how-to at:
> http://www.funkypenguin.co.za/bandersnatch_with_jabberd2
> 
> I've installed all of the listed sources from the ports, but when I
> run bandersnatch2.pl, I receive the following error:
> 
> Can't locate POE/Preprocessor.pm in @INC
> 
> It seems that Preprocessor.pm does not exist on my system.  Can
> someone tell me which relevant port would have this module? 
> Installing POE::Preprocessor from CPAN comes up with a blank, as well
> as searching the ports for anything with the same name.

A quick web search shows that POE::Preprocessor was removed from POE in
March.  http://search.cpan.org/src/RCAPUTO/POE-0.3601/CHANGES :

 2006-03-11 23:11:39 (r1887) by rcaputo
  poe/lib/POE/Preprocessor.pm D; poe/lib/POE/Macro D;
  poe/tests/10_units/01_preprocessor D; poe/mylib/preprocessor.perl A;
  poe/mylib/PoeBuildInfo.pm M

Remove POE::Preprocessor. Replaced it with a simple, almost one-liner
preprocessor that's run at Makefile.PL time. 

-- 
Dan Nelson
[EMAIL PROTECTED]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Perl question.

2006-08-17 Thread Greg Groth
I'm trying to install bandersnatch in conjunction with Jabber2 and 
running into some trouble.  I'm following the how-to at:

http://www.funkypenguin.co.za/bandersnatch_with_jabberd2

I've installed all of the listed sources from the ports, but when I run 
bandersnatch2.pl, I receive the following error:


Can't locate POE/Preprocessor.pm in @INC

It seems that Preprocessor.pm does not exist on my system.  Can someone 
tell me which relevant port would have this module?  Installing 
POE::Preprocessor from CPAN comes up with a blank, as well as searching 
the ports for anything with the same name.


Best regards,
Greg Groth
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: perl problem

2006-08-07 Thread Giorgos Keramidas
On 2006-08-03 10:50, RJ45 <[EMAIL PROTECTED]> wrote:
> Hello using imapsync to make a transition from imapuw to a
> cyrus server make the imapsync perl process to die on FreeBSD
> 6.1 because it uses more than 512MB of memory.
> 
> this does not happen using imapsync with the same transfer
> operations on hte same mailboxes on a Linux fedora box the
> memory used also is less than 512MB.
> 
> recompiling ther kernel of FreeBSD rising the memory to 1GB
> does not fix this at all. Seems like the perl process on
> FreeBSD explodes in memory.

You don't have to rebuild your kernel to raise the maximum data
segment size.  Just set kern.maxdsiz in /boot/loader.conf and
boot with the new setting.

> How can I do to fix this issue, any hints ?

Increasing kern.maxdsiz and checking that the user limits are not
still set to 512 MB may help a bit, but if the program still
tries to allocate enormous amounts of memory I'm not sure if this
is going to help a lot.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


perl problem

2006-08-03 Thread RJ45


Hello using imapsync to make a transition from imapuw to a cyrus server
make the imapsync perl process to die on FreeBSD 6.1 because it uses more 
than 512MB of memory.


this does not happen using imapsync with the same transfer operations on 
hte same mailboxes on a Linux fedora box the memory used also is less than 
512MB.


recompiling ther kernel of FreeBSD rising the memory to 1GB does not fix 
this at all. Seems like the perl process on FreeBSD explodes in memory.


How can I do to fix this issue, any hints ?

thanks a lot

Rick

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Port for Perl modules

2006-07-16 Thread Gerard Seibert
Nikolas Britton wrote:

> > > On 7/14/06, Gerard Seibert <[EMAIL PROTECTED]> wrote:
> > > > Sorry if I asked this before, but does anyone know if there is a port
> > > > for the following Perl modules:
> > > >
> > > > 1) Net-SMTP-SSL
> > > > 2) Bundle Libnet
> > > >
> > >
> > > http://www.freebsd.org/cgi/ports.cgi?query=p5&stype=all
> >
> > That was probably the first thing I did. Unfortunately, the ports tree
> > does not list Perl modules as they are listen on CPAN. Consequently,
> > finding the exact module can sometimes be a challenge. In this
> > particular case, I have not been able to isolate either of the two
> > modules list above. I find it hard to believe that neither of them has
> > been ported however, especially since so many obscure modules do reside
> > in the ports tree.
> >
> 
> I donno... try:
> http://www.freebsd.org/cgi/url.cgi?ports/mail/p5-Net-SMTP-TLS/pkg-descr
> http://www.freebsd.org/cgi/url.cgi?ports/net/libnet10/pkg-descr

The /net/libnet10 port might be the same as the CPAN Bundle-Libnet
module(s). I will have to investigate that one. However, the
/mail/p5-Net_SMTP-TLS port is not the same as the CPAN Net-SMTP-SSL
module, which is the one I am looking for. CPAN lists both the
Net::SMTP::SSL and Net::SMTP::TLS modules. They are not identical.

I need the Net::SMTP::SSL module for a Perl program that I am using. It
is required by the program.

Thanks anyway. I will probably just use CPAN to install the modules.


-- 
Gerard Seibert
[EMAIL PROTECTED]


 Why does the bride always wear white?

 Because it is good for the dishwasher to match the stove and
 refrigerator.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Port for Perl modules

2006-07-15 Thread Warren Block

On Sat, 15 Jul 2006, Gerard Seibert wrote:


Nikolas Britton wrote:


On 7/14/06, Gerard Seibert <[EMAIL PROTECTED]> wrote:

Sorry if I asked this before, but does anyone know if there is a port
for the following Perl modules:

1) Net-SMTP-SSL
2) Bundle Libnet


http://www.freebsd.org/cgi/ports.cgi?query=p5&stype=all


That was probably the first thing I did. Unfortunately, the ports tree
does not list Perl modules as they are listen on CPAN. Consequently,
finding the exact module can sometimes be a challenge. In this
particular case, I have not been able to isolate either of the two
modules list above. I find it hard to believe that neither of them has
been ported however, especially since so many obscure modules do reside
in the ports tree.


The names are formatted a little differently, but they seem to be 
consistent.  CPAN's Net::SMTP would be p5-Net-SMTP in ports.  Replace 
the double colon with a dash; the search will work without the "p5".


You can use CPAN directly, of course; the main reason not to is the 
ports make updating and deinstalling easier.


There's also CPANPLUS (/usr/ports/devel/p5-CPANPLUS) which is supposed 
to be the new way to deal with CPAN, at least for the non-FreeBSD world. 
I haven't tried it.


-Warren Block * Rapid City, South Dakota USA
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Port for Perl modules

2006-07-15 Thread Nikolas Britton

On 7/15/06, Gerard Seibert <[EMAIL PROTECTED]> wrote:

Nikolas Britton wrote:

> On 7/14/06, Gerard Seibert <[EMAIL PROTECTED]> wrote:
> > Sorry if I asked this before, but does anyone know if there is a port
> > for the following Perl modules:
> >
> > 1) Net-SMTP-SSL
> > 2) Bundle Libnet
> >
>
> http://www.freebsd.org/cgi/ports.cgi?query=p5&stype=all

That was probably the first thing I did. Unfortunately, the ports tree
does not list Perl modules as they are listen on CPAN. Consequently,
finding the exact module can sometimes be a challenge. In this
particular case, I have not been able to isolate either of the two
modules list above. I find it hard to believe that neither of them has
been ported however, especially since so many obscure modules do reside
in the ports tree.



I donno... try:
http://www.freebsd.org/cgi/url.cgi?ports/mail/p5-Net-SMTP-TLS/pkg-descr
http://www.freebsd.org/cgi/url.cgi?ports/net/libnet10/pkg-descr


--
BSD Podcasts @:
http://bsdtalk.blogspot.com/
http://freebsdforall.blogspot.com/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Port for Perl modules

2006-07-15 Thread Gerard Seibert
Nikolas Britton wrote:

> On 7/14/06, Gerard Seibert <[EMAIL PROTECTED]> wrote:
> > Sorry if I asked this before, but does anyone know if there is a port
> > for the following Perl modules:
> >
> > 1) Net-SMTP-SSL
> > 2) Bundle Libnet
> >
> 
> http://www.freebsd.org/cgi/ports.cgi?query=p5&stype=all

That was probably the first thing I did. Unfortunately, the ports tree
does not list Perl modules as they are listen on CPAN. Consequently,
finding the exact module can sometimes be a challenge. In this
particular case, I have not been able to isolate either of the two
modules list above. I find it hard to believe that neither of them has
been ported however, especially since so many obscure modules do reside
in the ports tree.

-- 
Gerard Seibert
[EMAIL PROTECTED]


Why does the bride always wear white?
Because it is good for the dishwasher to match the stove and
refrigerator.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Port for Perl modules

2006-07-15 Thread Nikolas Britton

On 7/14/06, Gerard Seibert <[EMAIL PROTECTED]> wrote:

Sorry if I asked this before, but does anyone know if there is a port
for the following Perl modules:

1) Net-SMTP-SSL
2) Bundle Libnet



http://www.freebsd.org/cgi/ports.cgi?query=p5&stype=all


--
BSD Podcasts @:
http://bsdtalk.blogspot.com/
http://freebsdforall.blogspot.com/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Port for Perl modules

2006-07-14 Thread Gerard Seibert
Sorry if I asked this before, but does anyone know if there is a port
for the following Perl modules:

1) Net-SMTP-SSL
2) Bundle Libnet

Thanks!


-- 
Gerard Seibert
[EMAIL PROTECTED]

"My parents saw the president they loved get shot in the head. I saw my
president get head."

 Elon Gold
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Perl in 6.1

2006-06-13 Thread Erik Trulsson
On Tue, Jun 13, 2006 at 04:05:03PM -0400, [EMAIL PROTECTED] wrote:
> I've just installed a fresh 6.1 system and I noted perl wasn't included in
> the core build.  I also see it mentioned in the ObsoleteFiles area in
> /usr/src.
> 
> Where is the announcement about perl being removed, etc.  What's the scoop.
> 

Perl was removed from 5-CURRENT back in 2002 and so has not been included in
any of the 5.x or 6.x releases.
You can find a note about it in the release notes for 5.0-RELEASE.



-- 

Erik Trulsson
[EMAIL PROTECTED]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Perl in 6.1

2006-06-13 Thread forrie
> [EMAIL PROTECTED] writes:
>
>> I've just installed a fresh 6.1 system and I noted perl wasn't included
>> in
>> the core build.  I also see it mentioned in the ObsoleteFiles area in
>> /usr/src.
>>
>> Where is the announcement about perl being removed, etc.  What's the
>> scoop.
>
> It was in the release announcement when 5.0 was released.  Perl hasn't
> been in the base system since 2003.
>
> Just install it from the ports or packages, as the installation
> program would have done for you if you had installed a port that
> needed it.
>

Okay, thanks.

I recall there being a bit of perl code in the system build, so they would
have had to rewrite all that in shell.


Thanks again,

Forrest


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Perl in 6.1

2006-06-13 Thread Lowell Gilbert
[EMAIL PROTECTED] writes:

> I've just installed a fresh 6.1 system and I noted perl wasn't included in
> the core build.  I also see it mentioned in the ObsoleteFiles area in
> /usr/src.
>
> Where is the announcement about perl being removed, etc.  What's the scoop.

It was in the release announcement when 5.0 was released.  Perl hasn't
been in the base system since 2003.

Just install it from the ports or packages, as the installation
program would have done for you if you had installed a port that
needed it.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Perl in 6.1

2006-06-13 Thread forrie
I've just installed a fresh 6.1 system and I noted perl wasn't included in
the core build.  I also see it mentioned in the ObsoleteFiles area in
/usr/src.

Where is the announcement about perl being removed, etc.  What's the scoop.


Thanks.


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: ldconfig -m for libs... how about upgrading @INC for perl modules??

2006-06-04 Thread Kris Kennaway
On Sun, Jun 04, 2006 at 08:16:41PM -0700, Mark Jayson Alvarez wrote:
> Hi,
> 
> After upgrading perl, a lot of applications broke,
> primarily because the new perl looks into
> site_perl/5.8.8 however my application modules are
> still in site_perl/5.8.7
> 
> Question:
> Is there an "ldconfig -m" sort of thing for this job?
> My new perl package installation process didn't bother
> about this one...
> Any idea? Thanks.

/usr/ports/UPDATING

Kris


pgpixVDllQjEg.pgp
Description: PGP signature


ldconfig -m for libs... how about upgrading @INC for perl modules??

2006-06-04 Thread Mark Jayson Alvarez
Hi,

After upgrading perl, a lot of applications broke,
primarily because the new perl looks into
site_perl/5.8.8 however my application modules are
still in site_perl/5.8.7

Question:
Is there an "ldconfig -m" sort of thing for this job?
My new perl package installation process didn't bother
about this one...
Any idea? Thanks.

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: can't build perl-5.8.8 in a jail

2006-05-22 Thread Andy Greenwood

Not sure what I did, but It's compiled now. Sorry for the noise

On 5/22/06, Andy Greenwood <[EMAIL PROTECTED]> wrote:

I'm trying to build perl 5.8.8 inside a jail and it won't build. I
always error at the same spot. Below is the last 100 lines out of
make. Anyone have any ideas?


Finding dependencies for pp_ctl.o.
Finding dependencies for pp_sys.o.
Finding dependencies for regcomp.o.
Finding dependencies for regexec.o.
Finding dependencies for utf8.o.
Finding dependencies for gv.o.
Finding dependencies for sv.o.
Finding dependencies for taint.o.
Finding dependencies for toke.o.
Finding dependencies for util.o.
Finding dependencies for deb.o.
Finding dependencies for run.o.
Finding dependencies for universal.o.
Finding dependencies for xsutils.o.
Finding dependencies for pad.o.
Finding dependencies for globals.o.
Finding dependencies for perlio.o.
Finding dependencies for perlapi.o.
Finding dependencies for numeric.o.
Finding dependencies for locale.o.
Finding dependencies for pp_pack.o.
Finding dependencies for pp_sort.o.
Finding dependencies for miniperlmain.o.
Finding dependencies for perlmain.o.
Finding dependencies for opmini.o.
echo Makefile.SH cflags.SH config_h.SH makeaperl.SH makedepend.SH
makedir.SH myconfig.SH writemain.SH pod/Makefile.SH | tr ' ' '\n'
>.shlist
Updating makefile...
test -s perlmain.c && touch perlmain.c
cd x2p; make depend
sh ../makedepend MAKE=make
echo hash.c  str.c util.c walk.c | tr ' ' '\n' >.clist
Finding dependencies for hash.o.
Finding dependencies for str.o.
Finding dependencies for util.o.
Finding dependencies for walk.o.
echo Makefile.SH cflags.SH | tr ' ' '\n' >.shlist
Updating makefile...
Now you must run 'make'.

If you compile perl5 on a different machine or from a different object
directory, copy the Policy.sh file from this object directory to the
new one before you run Configure -- this will help you with most of
the policy defaults.

===>  Building for perl-5.8.8
`sh  cflags "optimize='-O2 -fno-strict-aliasing -pipe'"
miniperlmain.o` -DPIC -fPIC miniperlmain.c
`sh  cflags "optimize='-O2 -fno-strict-aliasing -pipe'" perl.o` -DPIC
-fPIC perl.c
`sh  cflags "optimize='-O2 -fno-strict-aliasing -pipe'" malloc.o`
-DPIC -fPIC malloc.c
`sh  cflags "optimize='-O2 -fno-strict-aliasing -pipe'" gv.o` -DPIC -fPIC gv.c
`sh  cflags "optimize='-O2 -fno-strict-aliasing -pipe'" toke.o` -DPIC
-fPIC toke.c
`sh  cflags "optimize='-O2 -fno-strict-aliasing -pipe'" perly.o` -DPIC
-fPIC perly.c
`sh  cflags "optimize='-O2 -fno-strict-aliasing -pipe'" op.o` -DPIC -fPIC op.c
`sh  cflags "optimize='-O2 -fno-strict-aliasing -pipe'" pad.o` -DPIC -fPIC pad.c
`sh  cflags "optimize='-O2 -fno-strict-aliasing -pipe'" regcomp.o`
-DPIC -fPIC regcomp.c
`sh  cflags "optimize='-O2 -fno-strict-aliasing -pipe'" dump.o` -DPIC
-fPIC dump.c
`sh  cflags "optimize='-O2 -fno-strict-aliasing -pipe'" util.o` -DPIC
-fPIC util.c
`sh  cflags "optimize='-O2 -fno-strict-aliasing -pipe'" mg.o` -DPIC -fPIC mg.c
`sh  cflags "optimize='-O2 -fno-strict-aliasing -pipe'" reentr.o`
-DPIC -fPIC reentr.c
`sh  cflags "optimize='-O2 -fno-strict-aliasing -pipe'" hv.o` -DPIC -fPIC hv.c
`sh  cflags "optimize='-O2 -fno-strict-aliasing -pipe'" av.o` -DPIC -fPIC av.c
`sh  cflags "optimize='-O2 -fno-strict-aliasing -pipe'" run.o` -DPIC -fPIC run.c
`sh  cflags "optimize='-O2 -fno-strict-aliasing -pipe'" pp_hot.o`
-DPIC -fPIC pp_hot.c
`sh  cflags "optimize='-O2 -fno-strict-aliasing -pipe'" sv.o` -DPIC -fPIC sv.c
`sh  cflags "optimize='-O2 -fno-strict-aliasing -pipe'" pp.o` -DPIC -fPIC pp.c
`sh  cflags "optimize='-O2 -fno-strict-aliasing -pipe'" scope.o` -DPIC
-fPIC scope.c
`sh  cflags "optimize='-O2 -fno-strict-aliasing -pipe'" pp_ctl.o`
-DPIC -fPIC pp_ctl.c
`sh  cflags "optimize='-O2 -fno-strict-aliasing -pipe'" pp_sys.o`
-DPIC -fPIC pp_sys.c
`sh  cflags "optimize='-O2 -fno-strict-aliasing -pipe'" doop.o` -DPIC
-fPIC doop.c
`sh  cflags "optimize='-O2 -fno-strict-aliasing -pipe'" doio.o` -DPIC
-fPIC doio.c
`sh  cflags "optimize='-O2 -fno-strict-aliasing -pipe'" regexec.o`
-DPIC -fPIC regexec.c
`sh  cflags "optimize='-O2 -fno-strict-aliasing -pipe'" utf8.o` -DPIC
-fPIC utf8.c
`sh  cflags "optimize='-O2 -fno-strict-aliasing -pipe'" taint.o` -DPIC
-fPIC taint.c
`sh  cflags "optimize='-O2 -fno-strict-aliasing -pipe'" deb.o` -DPIC -fPIC deb.c
`sh  cflags "optimize=&#x

can't build perl-5.8.8 in a jail

2006-05-22 Thread Andy Greenwood

I'm trying to build perl 5.8.8 inside a jail and it won't build. I
always error at the same spot. Below is the last 100 lines out of
make. Anyone have any ideas?


Finding dependencies for pp_ctl.o.
Finding dependencies for pp_sys.o.
Finding dependencies for regcomp.o.
Finding dependencies for regexec.o.
Finding dependencies for utf8.o.
Finding dependencies for gv.o.
Finding dependencies for sv.o.
Finding dependencies for taint.o.
Finding dependencies for toke.o.
Finding dependencies for util.o.
Finding dependencies for deb.o.
Finding dependencies for run.o.
Finding dependencies for universal.o.
Finding dependencies for xsutils.o.
Finding dependencies for pad.o.
Finding dependencies for globals.o.
Finding dependencies for perlio.o.
Finding dependencies for perlapi.o.
Finding dependencies for numeric.o.
Finding dependencies for locale.o.
Finding dependencies for pp_pack.o.
Finding dependencies for pp_sort.o.
Finding dependencies for miniperlmain.o.
Finding dependencies for perlmain.o.
Finding dependencies for opmini.o.
echo Makefile.SH cflags.SH config_h.SH makeaperl.SH makedepend.SH
makedir.SH myconfig.SH writemain.SH pod/Makefile.SH | tr ' ' '\n'

.shlist

Updating makefile...
test -s perlmain.c && touch perlmain.c
cd x2p; make depend
sh ../makedepend MAKE=make
echo hash.c  str.c util.c walk.c | tr ' ' '\n' >.clist
Finding dependencies for hash.o.
Finding dependencies for str.o.
Finding dependencies for util.o.
Finding dependencies for walk.o.
echo Makefile.SH cflags.SH | tr ' ' '\n' >.shlist
Updating makefile...
Now you must run 'make'.

If you compile perl5 on a different machine or from a different object
directory, copy the Policy.sh file from this object directory to the
new one before you run Configure -- this will help you with most of
the policy defaults.

===>  Building for perl-5.8.8
`sh  cflags "optimize='-O2 -fno-strict-aliasing -pipe'"
miniperlmain.o` -DPIC -fPIC miniperlmain.c
`sh  cflags "optimize='-O2 -fno-strict-aliasing -pipe'" perl.o` -DPIC
-fPIC perl.c
`sh  cflags "optimize='-O2 -fno-strict-aliasing -pipe'" malloc.o`
-DPIC -fPIC malloc.c
`sh  cflags "optimize='-O2 -fno-strict-aliasing -pipe'" gv.o` -DPIC -fPIC gv.c
`sh  cflags "optimize='-O2 -fno-strict-aliasing -pipe'" toke.o` -DPIC
-fPIC toke.c
`sh  cflags "optimize='-O2 -fno-strict-aliasing -pipe'" perly.o` -DPIC
-fPIC perly.c
`sh  cflags "optimize='-O2 -fno-strict-aliasing -pipe'" op.o` -DPIC -fPIC op.c
`sh  cflags "optimize='-O2 -fno-strict-aliasing -pipe'" pad.o` -DPIC -fPIC pad.c
`sh  cflags "optimize='-O2 -fno-strict-aliasing -pipe'" regcomp.o`
-DPIC -fPIC regcomp.c
`sh  cflags "optimize='-O2 -fno-strict-aliasing -pipe'" dump.o` -DPIC
-fPIC dump.c
`sh  cflags "optimize='-O2 -fno-strict-aliasing -pipe'" util.o` -DPIC
-fPIC util.c
`sh  cflags "optimize='-O2 -fno-strict-aliasing -pipe'" mg.o` -DPIC -fPIC mg.c
`sh  cflags "optimize='-O2 -fno-strict-aliasing -pipe'" reentr.o`
-DPIC -fPIC reentr.c
`sh  cflags "optimize='-O2 -fno-strict-aliasing -pipe'" hv.o` -DPIC -fPIC hv.c
`sh  cflags "optimize='-O2 -fno-strict-aliasing -pipe'" av.o` -DPIC -fPIC av.c
`sh  cflags "optimize='-O2 -fno-strict-aliasing -pipe'" run.o` -DPIC -fPIC run.c
`sh  cflags "optimize='-O2 -fno-strict-aliasing -pipe'" pp_hot.o`
-DPIC -fPIC pp_hot.c
`sh  cflags "optimize='-O2 -fno-strict-aliasing -pipe'" sv.o` -DPIC -fPIC sv.c
`sh  cflags "optimize='-O2 -fno-strict-aliasing -pipe'" pp.o` -DPIC -fPIC pp.c
`sh  cflags "optimize='-O2 -fno-strict-aliasing -pipe'" scope.o` -DPIC
-fPIC scope.c
`sh  cflags "optimize='-O2 -fno-strict-aliasing -pipe'" pp_ctl.o`
-DPIC -fPIC pp_ctl.c
`sh  cflags "optimize='-O2 -fno-strict-aliasing -pipe'" pp_sys.o`
-DPIC -fPIC pp_sys.c
`sh  cflags "optimize='-O2 -fno-strict-aliasing -pipe'" doop.o` -DPIC
-fPIC doop.c
`sh  cflags "optimize='-O2 -fno-strict-aliasing -pipe'" doio.o` -DPIC
-fPIC doio.c
`sh  cflags "optimize='-O2 -fno-strict-aliasing -pipe'" regexec.o`
-DPIC -fPIC regexec.c
`sh  cflags "optimize='-O2 -fno-strict-aliasing -pipe'" utf8.o` -DPIC
-fPIC utf8.c
`sh  cflags "optimize='-O2 -fno-strict-aliasing -pipe'" taint.o` -DPIC
-fPIC taint.c
`sh  cflags "optimize='-O2 -fno-strict-aliasing -pipe'" deb.o` -DPIC -fPIC deb.c
`sh  cflags "optimize='-O2 -fno-strict-aliasing -pipe'" universal.o`
-DPIC -fPIC universal.c
`sh  cflags "optimize='-O2 -fno-strict-aliasi

Re: setuid perl scripts ?

2006-05-11 Thread John Levine
>It is my distinct impression that setuid perl scripts are supposed to
>work.

Never mind, I figured it out.  You have to rebuild perl with
ENABLE_SUIDPERL=yes

R's,
John
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


setuid perl scripts ?

2006-05-11 Thread John Levine
It is my distinct impression that setuid perl scripts are supposed to
work.  That is, if you have an executable perl script with the setuid
bit, perl will start itself up and run suidperl or something and do
the necessary backflips to get itself running with the script's owner
as the effective UID.

This doesn't seem to to work in perl 5.8.8 on FreeBSD 6.0, using a
copy of perl built in the obvious way in the ports tree.  Is it
supposed to work?  Do I have to do something special to turn it on?

R's,
John



Characteristics of this binary (from libperl):
  Compile-time options: MYMALLOC PERL_MALLOC_WRAP USE_64_BIT_INT
USE_LARGE_FILES USE_PERLIO
  Locally applied patches:
defined-or
  Built under freebsd
  Compiled at May 10 2006 20:36:34
  @INC:
/usr/local/lib/perl5/5.8.8/BSDPAN
/usr/local/lib/perl5/site_perl/5.8.8/mach
/usr/local/lib/perl5/site_perl/5.8.8
/usr/local/lib/perl5/site_perl/5.8.7
/usr/local/lib/perl5/site_perl/5.8.6
/usr/local/lib/perl5/site_perl
/usr/local/lib/perl5/5.8.8/mach
/usr/local/lib/perl5/5.8.8
.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: "Inappropriate file type or format" error when accessing berkely DB file via perl

2006-05-04 Thread mark
 P5-BerkeleyDB  proved to be a functional  solution for me at any rate, many 
thanks for the pointer.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: "Inappropriate file type or format" error when accessing berkely DB file via perl

2006-05-03 Thread Parv
in message <[EMAIL PROTECTED]>,
wrote mark thusly...

> I am trying to access my squidguard berkely db files via perl  and
> DB_File (as per the SquidGuard docs)
...
> #!/usr/bin/perl
> use DB_File;
> my (%url,%domain);
>
>   $DB_BTREE->{compare} = \&domainmatch;
^ ^ ^ ^ ^ ^
^ ^ ^ ^ ^ ^
I suppose you have domainmatch() sub defined somewhere used in this
file but omitted from your post?


>   my $domain_db =
> tie(%domain, "DB_File", "/var/db/squidGuard/warez/domains.db", O_CREAT|
> O_RDWR, 0664, $DB_BTREE) || die("domains.db: $!\n");
  ^ ^ ^ ^ ^ ^ ^ ^ ^ ^
  ^ ^ ^ ^ ^ ^ ^ ^ ^ ^
>   $domain_db->put(".six.com","") unless(exists($domain{"six.com"}));
>   $domain_db->sync; # Seems to only sync the last change.
>
>   undef($domain_db); # Destroy the object
>   untie(%domain); # Sync and close the file and undef the hash
>
> The following is returned
>
> domains.db: Inappropriate file type or format
  ^ ^ ^ ^ ^ ^
  ^ ^ ^ ^ ^ ^
So the program is dying due to failure in tie()ing.

Did you check if both SquidGuard & DB_File are linked with the same db
library?

> When I do a file /var/db/squidGuard/warez/domains.db
...
> /var/db/squidGuard/warez/domains.db: Berkeley DB
> (Btree, version 8, native byte-order)
...
> When I create a db with perl
>
> #!/usr/bin/perl -w
> use strict;
> use DB_File;
> my  %database;
> tie %database, 'DB_File', "createdb.dat"
> or die "Can't initialize database: $!\n";
> untie %database;
...
> file createdb.dat
...
> createdb.dat: Berkeley DB 1.85 (Hash, version 2, native byte-order)
   ^ ^ ^ ^ ^ ^ ^ ^ ^
   ^ ^ ^ ^ ^ ^ ^ ^ ^
> I suspect the version 2 / version 8  is the srouce of my
> innappropriate file type or format error!

mach::DB_File(3) lists ...

  Using DB_File with Berkeley DB version 2 or greater

  Although DB_File is intended to be used with Berkeley DB version 1,
  it can also be used with version 2, 3 or 4. In this case the
  interface is limited to the functionality provided by Berkeley DB
  1.x. Anywhere the version 2 or greater interface differs, DB_File
  arranges for it to work like version 1.


... so it is not surprising that, in your second case, the db file
created is of version 1.x.  (Note also that since you had not
specified that you wanted a BTree db type, the type is hash.)


> I tried reinstalling DB_file   guessing that it had some kind of
> dependency on DB3.. Thsi had no effect. I tried reinstalling Perl
> itself.  Also no effect.
...
> Relevant Ports installed
>
> db3-3.3.11_2,1
> bsdpan-DB_File-1.814
...
> perl-5.8.8

DB_File (same version that you had installed separately) is included w/
Perl (at least in 5.8.8).


Well, i just searched "Google Groups" for 'perl DB_File db3
"Inappropriate file type or format"' which presented ...

  
http://groups.google.com/group/fa.freebsd.questions/browse_thread/thread/783254b63fbba089/3a8af6e2d78282f9



  - Parv

-- 

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


"Inappropriate file type or format" error when accessing berkely DB file via perl

2006-05-03 Thread mark
I am trying to access my squidguard berkely db files via perl  and DB_File
(as per the SquidGuard docs)

When I run the following perl snippet

#!/usr/bin/perl
use DB_File;
my (%url,%domain);

$DB_BTREE->{compare} = \&domainmatch;
my $domain_db = 
tie(%domain, "DB_File", "/var/db/squidGuard/warez/domains.db", O_CREAT|
O_RDWR, 0664, $DB_BTREE) || die("domains.db: $!\n");


$domain_db->put(".six.com","") unless(exists($domain{"six.com"}));
$domain_db->sync; # Seems to only sync the last change.

undef($domain_db); # Destroy the object
untie(%domain); # Sync and close the file and undef the hash

The following is returned

domains.db: Inappropriate file type or format


When I do a file /var/db/squidGuard/warez/domains.db

the following is displayed

/var/db/squidGuard/warez/domains.db: Berkeley DB 
(Btree, version 8, native byte-order)


When I create a db with perl 

#!/usr/bin/perl -w
use strict;
use DB_File;
my  %database;
tie %database, 'DB_File', "createdb.dat"
or die "Can't initialize database: $!\n";
untie %database;
exit; 

then

file createdb.dat  

reveals :- 

createdb.dat: Berkeley DB 1.85 (Hash, version 2, native byte-order)

I suspect the version 2 / version 8  is the srouce of my innappropriate file 
type or format error!

So ..  I tried reinstalling DB_file   guessing that it had some kind of 
dependency on DB3.. Thsi had no effect. I tried reinstalling Perl itself.
Also no effect.

So I am a bit stuck, How do I get DB_File to play nice with DB3 or should I be 
trying some other method to access these files.

Relevant Ports installed

db3-3.3.11_2,1
bsdpan-DB_File-1.814
p5-DBD-mysql41-3.0002
squid-2.5.13
squidGuard-1.2.0_1
perl-5.8.8

possible related ports
dbh-1.0.24_1
gdbm-1.8.3_2
p5-DBI-1.50

FreeBSD pcmarpxy.mwrwin2k.se 6.0-STABLE FreeBSD 6.0-STABLE #1: Fri Dec 23 
11:58:53 CET 2005 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/MARK  
i386


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: REINPLACE_CMD (perl-5.8.8)

2006-04-29 Thread Marc

My bad an out of date ports-base was to blame...

Marc


At 09:41 AM 04/29/2006, Marc Hunter wrote:
Forgive me if this has been addressed, as I'm setting up some 
FreeBsd boxes after not having tinkered with things in a while.


I've set up a brand new FreeBsd 6 box, updated the ports and went to 
install /usr/ports/www/apache22.  This in turn triggered an install 
of perm-5.8.8 which failed as follows:


 make install
===>  Vulnerability check disabled, database not found

You may use the following build options:

WITH_DEBUGGING=yes    Build perl with debugging support.
WITH_GDBM=yes Build GDBM_File extension.
WITHOUT_PERL_MALLOC=yes   Use FreeBSD system malloc
  (uses less memory, but slower).
WITHOUT_PERL_64BITINT=yes Disable 64 bit integers
  (affects only 32-bit platforms).
WITH_THREADS=yes  Build threaded perl.
ENABLE_SUIDPERL=yes   Also build set-user-id suidperl binary.

===>  Extracting for perl-5.8.8
=> Checksum OK for perl-5.8.8.tar.bz2.
=> Checksum OK for BSDPAN-5.8.8.tar.bz2.
=> Checksum OK for defined-or-5.8.8.bz2.
===>  Patching for perl-5.8.8
===>  Applying distribution patches for perl-5.8.8
===>  Applying FreeBSD patches for perl-5.8.8
/usr/bin/sed -e 's|%%PREFIX%%|/usr/local|g;'  -e 
's|%%PERL_VER%%|5.8.8|g;'  -e 's|%%PERL_VERSION%%|5.8.8|g;'  -e 
's|%%PERL_ARCH%%|mach|g;'  -e 's|%%MAKE_CONF%%|/etc/make.conf|g;' 
/usr/ports/lang/perl5.8/files/use.perl  > /usr/ports/lang/perl5.8/work/use.perl
/usr/bin/sed -e 's|%%PERL%%|/usr/local/bin/perl|g;' 
/usr/ports/lang/perl5.8/files/perl-after-upgrade  > 
/usr/ports/lang/perl5.8/work/perl-after-upgrade
/bin/cp /usr/ports/lang/perl5.8/work/use.perl 
/usr/ports/lang/perl5.8/work/pkg-install
/bin/cp /usr/ports/lang/perl5.8/work/use.perl 
/usr/ports/lang/perl5.8/work/pkg-deinstall
-e 's|%%PTHREAD_LIBS%%||g;'  -e 's|%%PTHREAD_CFLAGS%%||g;' 
/usr/ports/lang/perl5.8/work/perl-5.8.8/hints/freebsd.sh

-e: not found
*** Error code 127

Stop in /usr/ports/lang/perl5.8.

The code relating to this seems to be:

post-patch:
${SED} -e 's|%%PREFIX%%|${PREFIX}|g;' \
-e 's|%%PERL_VER%%|${PERL_VER}|g;' \
-e 's|%%PERL_VERSION%%|${PERL_VERSION}|g;' \
-e 's|%%PERL_ARCH%%|${PERL_ARCH}|g;' \
    -e 's|%%MAKE_CONF%%|${__MAKE_CONF}|g;' \
${FILESDIR}/use.perl \
> ${WRKDIR}/use.perl
${SED} -e 's|%%PERL%%|${PERL}|g;' \
${FILESDIR}/perl-after-upgrade \
> ${WRKDIR}/perl-after-upgrade
${CP} ${WRKDIR}/use.perl ${PKGINSTALL}
${CP} ${WRKDIR}/use.perl ${PKGDEINSTALL}
.if defined(WITH_THREADS)
${REINPLACE_CMD} -e 's|%%PTHREAD_LIBS%%|${PTHREAD_LIBS}|g;' \
-e 's|%%PTHREAD_CFLAGS%%|${PTHREAD_CFLAGS}|g;' \
${WRKSRC}/hints/freebsd.sh
.else
${REINPLACE_CMD} -e 's|%%PTHREAD_LIBS%%||g;' \
-e 's|%%PTHREAD_CFLAGS%%||g;' \
${WRKSRC}/hints/freebsd.sh
.endif

As near as I can tell (which is not very near) the REINPLACE_CMD 
seems to be evaluating to nothing.  Is this a problem with the 
Makefile?  or the system configuration?  I have no idea what 
REINPLACE_CMD does or is, so any help would be appreciated.


Thanks!

Marc


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"





___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


REINPLACE_CMD (perl-5.8.8)

2006-04-29 Thread Marc Hunter
Forgive me if this has been addressed, as I'm setting up some FreeBsd 
boxes after not having tinkered with things in a while.


I've set up a brand new FreeBsd 6 box, updated the ports and went to 
install /usr/ports/www/apache22.  This in turn triggered an install 
of perm-5.8.8 which failed as follows:


 make install
===>  Vulnerability check disabled, database not found

You may use the following build options:

WITH_DEBUGGING=yes    Build perl with debugging support.
WITH_GDBM=yes Build GDBM_File extension.
WITHOUT_PERL_MALLOC=yes   Use FreeBSD system malloc
  (uses less memory, but slower).
WITHOUT_PERL_64BITINT=yes Disable 64 bit integers
  (affects only 32-bit platforms).
WITH_THREADS=yes  Build threaded perl.
ENABLE_SUIDPERL=yes   Also build set-user-id suidperl binary.

===>  Extracting for perl-5.8.8
=> Checksum OK for perl-5.8.8.tar.bz2.
=> Checksum OK for BSDPAN-5.8.8.tar.bz2.
=> Checksum OK for defined-or-5.8.8.bz2.
===>  Patching for perl-5.8.8
===>  Applying distribution patches for perl-5.8.8
===>  Applying FreeBSD patches for perl-5.8.8
/usr/bin/sed -e 's|%%PREFIX%%|/usr/local|g;'  -e 
's|%%PERL_VER%%|5.8.8|g;'  -e 's|%%PERL_VERSION%%|5.8.8|g;'  -e 
's|%%PERL_ARCH%%|mach|g;'  -e 
's|%%MAKE_CONF%%|/etc/make.conf|g;' 
/usr/ports/lang/perl5.8/files/use.perl  > /usr/ports/lang/perl5.8/work/use.perl
/usr/bin/sed -e 
's|%%PERL%%|/usr/local/bin/perl|g;' 
/usr/ports/lang/perl5.8/files/perl-after-upgrade  > 
/usr/ports/lang/perl5.8/work/perl-after-upgrade
/bin/cp /usr/ports/lang/perl5.8/work/use.perl 
/usr/ports/lang/perl5.8/work/pkg-install
/bin/cp /usr/ports/lang/perl5.8/work/use.perl 
/usr/ports/lang/perl5.8/work/pkg-deinstall
-e 's|%%PTHREAD_LIBS%%||g;'  -e 
's|%%PTHREAD_CFLAGS%%||g;' 
/usr/ports/lang/perl5.8/work/perl-5.8.8/hints/freebsd.sh

-e: not found
*** Error code 127

Stop in /usr/ports/lang/perl5.8.

The code relating to this seems to be:

post-patch:
${SED} -e 's|%%PREFIX%%|${PREFIX}|g;' \
-e 's|%%PERL_VER%%|${PERL_VER}|g;' \
-e 's|%%PERL_VERSION%%|${PERL_VERSION}|g;' \
-e 's|%%PERL_ARCH%%|${PERL_ARCH}|g;' \
    -e 's|%%MAKE_CONF%%|${__MAKE_CONF}|g;' \
${FILESDIR}/use.perl \
> ${WRKDIR}/use.perl
${SED} -e 's|%%PERL%%|${PERL}|g;' \
${FILESDIR}/perl-after-upgrade \
> ${WRKDIR}/perl-after-upgrade
${CP} ${WRKDIR}/use.perl ${PKGINSTALL}
${CP} ${WRKDIR}/use.perl ${PKGDEINSTALL}
.if defined(WITH_THREADS)
${REINPLACE_CMD} -e 's|%%PTHREAD_LIBS%%|${PTHREAD_LIBS}|g;' \
-e 's|%%PTHREAD_CFLAGS%%|${PTHREAD_CFLAGS}|g;' \
${WRKSRC}/hints/freebsd.sh
.else
${REINPLACE_CMD} -e 's|%%PTHREAD_LIBS%%||g;' \
-e 's|%%PTHREAD_CFLAGS%%||g;' \
${WRKSRC}/hints/freebsd.sh
.endif

As near as I can tell (which is not very near) the REINPLACE_CMD 
seems to be evaluating to nothing.  Is this a problem with the 
Makefile?  or the system configuration?  I have no idea what 
REINPLACE_CMD does or is, so any help would be appreciated.


Thanks!

Marc


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Perl: sort string alphabetically, or remove dupe chars?

2006-04-27 Thread Nikolas Britton
On 4/27/06, Andrew Reitz <[EMAIL PROTECTED]> wrote:
>
> On Apr 26, 2006, at 12:34 AM, Nikolas Britton wrote:
>
> > On 4/25/06, Parv <[EMAIL PROTECTED]> wrote:
> [snip]
> > Thanks parv... I meant the algorithm was clunky, not the code... I'm
> > so new at this that I can't read your code, and I have a hard enough
> > time reading mine own :-).
> >
> > I've got another simple problem now. How do I get this code to stop
> > printing everything on a newline, I'm not using \n in my print
> > statement so why does it do that and how do I get it to stop?
> >
> > @wordlist1 = `sed /^$sedstring1\\\$/\\!d < enable2k_wordlist`;
> > foreach (@wordlist1) {
> >   $string = $_;
> >   $string =~ s/[$solvedletters1]//g;
> >   my @chars = split("", $string);
> >   $string = ""; @chars = sort (@chars);
> > foreach (@chars) {
> >   $string .= $_;
> > }
> >   $string =~ tr///cs;
> >   print "$string";
> > }
>
> Hi Nikolas,
>
> Most likely, your input has '\n' characters at the end of every line,
> and you aren't doing anything in perl to strip those away. Try adding
> a 'chomp($string);' line before you print.
>

Hey thanks, I think I did try that already... anyways... it doesn't
matter now because I reworked the code block, this is what I have so
far:

open(DATA, "< $wordlistfile")
or die "Couldn't open $wordlistfile for reading: $!\n";

$regex = qr{^$sedstring1$};
my %freq;#keys = characters, values = frequency count
while () {
   chomp;
   if (/$regex/) {
  push @guesswords, "\n$_";
  $_ =~ s/[$solvedletters1]//g;
  my @chars = split("", $_);
  $_ = ""; @chars = sort (@chars);
  foreach (@chars) {
 $foobar3 .= $_;
  }
  $_ = "$foobar3"; $foobar3 = "";
  $_ =~ tr///cs;
  #print "$_\n"; # For debugging
  $freq{$_}++ for  split(//, lc $_);
   }
}

$_ = scalar @guesswords;
print " Guesswords in list: $_\n";
if (@guesswords <= "20") {
   print "@guesswords\n\n";
}

# Print probabilities list.
foreach $_ (sort {$freq{$a} <=> $freq{$b}} (keys(%freq))) {
   print " $_\t=>\t$freq{$_}\n";
}


--
BSD Podcasts @ http://bsdtalk.blogspot.com/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Perl: sort string alphabetically, or remove dupe chars?

2006-04-27 Thread Andrew Reitz


On Apr 26, 2006, at 12:34 AM, Nikolas Britton wrote:


On 4/25/06, Parv <[EMAIL PROTECTED]> wrote:

[snip]

Thanks parv... I meant the algorithm was clunky, not the code... I'm
so new at this that I can't read your code, and I have a hard enough
time reading mine own :-).

I've got another simple problem now. How do I get this code to stop
printing everything on a newline, I'm not using \n in my print
statement so why does it do that and how do I get it to stop?

@wordlist1 = `sed /^$sedstring1\\\$/\\!d < enable2k_wordlist`;
foreach (@wordlist1) {
  $string = $_;
  $string =~ s/[$solvedletters1]//g;
  my @chars = split("", $string);
  $string = ""; @chars = sort (@chars);
foreach (@chars) {
  $string .= $_;
}
  $string =~ tr///cs;
  print "$string";
}


Hi Nikolas,

Most likely, your input has '\n' characters at the end of every line,  
and you aren't doing anything in perl to strip those away. Try adding  
a 'chomp($string);' line before you print.


-Andy Reitz.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Perl: sort string alphabetically, or remove dupe chars?

2006-04-26 Thread Nikolas Britton
On 4/25/06, Parv <[EMAIL PROTECTED]> wrote:
> in message <[EMAIL PROTECTED]>,
> wrote Nikolas Britton thusly...
> >
> > This works... but it's clunky:
> >
> > my $string = "letter";
> > my @chars = split("", $string);
> > $string = ""; @chars = sort (@chars);
> > foreach (@chars) {
> > $string .= $_;
> > }
> > $string =~ tr///cs;
> > print "$string";
>
> You could combine some of the steps ...
>
>   my $string = 'letter';
>   $string = join '' , sort split '', $string;
>   $string =~ tr///cs;
>   print $string;
>
> ... another but rather clunky version is ...
>
>   my $string = 'letter';
>   {
> my %string;
> @string{ split '' , $string } = ();
> $string = join '' , sort keys %string;
>   }
>   print $string;
>

Thanks parv... I meant the algorithm was clunky, not the code... I'm
so new at this that I can't read your code, and I have a hard enough
time reading mine own :-).

I've got another simple problem now. How do I get this code to stop
printing everything on a newline, I'm not using \n in my print
statement so why does it do that and how do I get it to stop?

@wordlist1 = `sed /^$sedstring1\\\$/\\!d < enable2k_wordlist`;
foreach (@wordlist1) {
  $string = $_;
  $string =~ s/[$solvedletters1]//g;
  my @chars = split("", $string);
  $string = ""; @chars = sort (@chars);
foreach (@chars) {
  $string .= $_;
}
  $string =~ tr///cs;
  print "$string";
}

Then I have to make a probabilty engine to count the frequency of the
letters I get from the above code block. looking for something simple
like this: http://www.amstat.org/publications/jse/secure/v7n2/count-char.cfm


--
BSD Podcasts @ http://bsdtalk.blogspot.com/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Perl: sort string alphabetically, or remove dupe chars?

2006-04-25 Thread Parv
in message <[EMAIL PROTECTED]>,
wrote Nikolas Britton thusly...
>
> On 4/25/06, Nikolas Britton <[EMAIL PROTECTED]> wrote:
> > basically what I want to do:
...
> > my $wordlist = "letter";
> > ## some whizbang regex that removes dupe chars
> > ## from words like "alphabetically" --> "alphbeticy".
> > print "$wordlist\n";
...
> This works... but it's clunky:
> 
> my $string = "letter";
> my @chars = split("", $string);
> $string = ""; @chars = sort (@chars);
> foreach (@chars) {
> $string .= $_;
> }
> $string =~ tr///cs;
> print "$string";

You could combine some of the steps ...

  my $string = 'letter';
  $string = join '' , sort split '', $string;
  $string =~ tr///cs;
  print $string;


... another but rather clunky version is ...

  my $string = 'letter';
  {
my %string;
@string{ split '' , $string } = ();
$string = join '' , sort keys %string;
  }
  print $string;


  - Parv

-- 

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Perl: sort string alphabetically, or remove dupe chars?

2006-04-25 Thread Nikolas Britton
On 4/25/06, Nikolas Britton <[EMAIL PROTECTED]> wrote:
> basically what I want to do:
>
> my @wordlist = (letter, remember, alphabetically);
> ## some whizbang code that changes words like
> ## "letter" to "eelrtt", remember to beeemmrr,
> ## and alphabetically to aaabcehilllpty.
> @foobar =~ tr///cs; #hmm, doesn't work.
> print "@wordlist\n";
>
> Hmm, that's broke, how about this:
>
> my $wordlist = "letter";
> ## some whizbang regex that removes dupe chars
> ## from words like "alphabetically" --> "alphbeticy".
> print "$wordlist\n";
>

This works... but it's clunky:

my $string = "letter";
my @chars = split("", $string);
$string = ""; @chars = sort (@chars);
foreach (@chars) {
$string .= $_;
}
$string =~ tr///cs;
print "$string";


--
BSD Podcasts @ http://bsdtalk.blogspot.com/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Perl: sort string alphabetically, or remove dupe chars?

2006-04-25 Thread Nikolas Britton
basically what I want to do:

my @wordlist = (letter, remember, alphabetically);
## some whizbang code that changes words like
## "letter" to "eelrtt", remember to beeemmrr,
## and alphabetically to aaabcehilllpty.
@foobar =~ tr///cs; #hmm, doesn't work.
print "@wordlist\n";

Hmm, that's broke, how about this:

my $wordlist = "letter";
## some whizbang regex that removes dupe chars
## from words like "alphabetically" --> "alphbeticy".
print "$wordlist\n";


Thanks.
--
BSD Podcasts @ http://bsdtalk.blogspot.com/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: How to link CPAN to FreeBSD ports perl modules?

2006-04-19 Thread Alex Zbyslaw

David Robillard wrote:


Hello everyone,

I'm looking for a way to link perl modules found in CPAN and the ones
found in the FreeBSD ports repository.

For example, let's say I need to install the following CPAN module:

http://search.cpan.org/dist/libwww-perl/lib/HTTP/Request/Common.pm

A search in the ports for " ^p5-HTTP " will return all perl modules
which names start with p5-HTTP. But the above CPAN module does not
exist.

Does this means that the CPAN module is not in the ports? Or is there
another way to link CPAN modules to the ports collection?
 


The CPAN module is libwww-perl, in the ports as p5-libwww-perl

$ pkg_info -o p5-libwww\*
Information for p5-libwww-5.805:

Origin:
www/p5-libwww

hth,

--Alex


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


How to link CPAN to FreeBSD ports perl modules?

2006-04-19 Thread David Robillard
Hello everyone,

I'm looking for a way to link perl modules found in CPAN and the ones
found in the FreeBSD ports repository.

For example, let's say I need to install the following CPAN module:

http://search.cpan.org/dist/libwww-perl/lib/HTTP/Request/Common.pm

A search in the ports for " ^p5-HTTP " will return all perl modules
which names start with p5-HTTP. But the above CPAN module does not
exist.

Does this means that the CPAN module is not in the ports? Or is there
another way to link CPAN modules to the ports collection?

Any help would be appreciated.

Cheers,

David

--
David Robillard
UNIX systems administrator, CISSP
Montreal: +1 514 966 0122
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: ports and a new version of perl

2006-03-31 Thread Kris Kennaway
On Fri, Mar 31, 2006 at 05:22:17PM +0200, Michael Grant wrote:
> I installed perl in /usr/local to have a later version of perl. 
> Certain ports require the new version.  How can I set the default
> version of perl that make uses in /usr/ports?  I tried make.conf, that
> didn't work.  I also tried editing /usr/ports/Mk/bsd.port.mk but the
> change goes away when I update ports.  What's the right answer?

Described in /usr/ports/UPDATING along with the upgrade procedure.

Kris


pgpiIZ6do2qzw.pgp
Description: PGP signature


ports and a new version of perl

2006-03-31 Thread Michael Grant
I installed perl in /usr/local to have a later version of perl. 
Certain ports require the new version.  How can I set the default
version of perl that make uses in /usr/ports?  I tried make.conf, that
didn't work.  I also tried editing /usr/ports/Mk/bsd.port.mk but the
change goes away when I update ports.  What's the right answer?

Michael Grant
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: help: fetchyahoo crash in perl on upgrading to 6.1-PRERELEASE #0

2006-03-23 Thread Rajarajan Rajamani
On 10:04 Thu 23 Mar , Greg Barniskis wrote:
> Rajarajan Rajamani wrote:
> >I am having a crash when trying to use fetchyahoo.
> >Prior to upgrading my box from 5.4 to 6.1 there was no problem.
> >After upgrading to 6.1 (and cvsup'ing all the ports) 
> >I did a portupgrade -fa to recompile all of them.
> >Now I am having the following problem
> [snip]
> >
> >
> >I have recompiled perl and all the ports that fetchyahoo uses but to no 
> >avail.
> 
> 
> [snip]
> 
> re: perl, did you perform the required perl-after-upgrade tasks (see 
> /usr/ports/UPDATING)? Perl going funky after a major upgrade is 
> often due to overlooking this.
> 
> [snip]
> Greg Barniskis, Computer Systems Integrator

Yes - I forgot to mention it, but I did this too and perl-after-upgrade
reported 0 packages moved since I had 5.8.8 before upgrading
my OS from 5.4 to 6.1. None of the ports were upgraded since they were
already up to date - that is why I thought portupgrade -fa would just
cause them to use the new so files of 6.1 without causing any trouble.

Other than this one - all my other perl scripts/tools are working ok.

Rajarajan
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: help: fetchyahoo crash in perl on upgrading to 6.1-PRERELEASE #0

2006-03-23 Thread Greg Barniskis

Rajarajan Rajamani wrote:

I am having a crash when trying to use fetchyahoo.
Prior to upgrading my box from 5.4 to 6.1 there was no problem.
After upgrading to 6.1 (and cvsup'ing all the ports) 
I did a portupgrade -fa to recompile all of them.

Now I am having the following problem

[snip]



I have recompiled perl and all the ports that fetchyahoo uses but to no avail.



[snip]

re: perl, did you perform the required perl-after-upgrade tasks (see 
/usr/ports/UPDATING)? Perl going funky after a major upgrade is 
often due to overlooking this.


I've no idea if that is related to your problem or how to address 
your problem if it's not, I just know of several folks who were 
bitten by not submitting themselves to UPDATING wisdom. Your mention 
of perl brought it to mind.


--
Greg Barniskis, Computer Systems Integrator
South Central Library System (SCLS)
Library Interchange Network (LINK)
, (608) 266-6348
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


help: fetchyahoo crash in perl on upgrading to 6.1-PRERELEASE #0

2006-03-23 Thread Rajarajan Rajamani
I am having a crash when trying to use fetchyahoo.
Prior to upgrading my box from 5.4 to 6.1 there was no problem.
After upgrading to 6.1 (and cvsup'ing all the ports) 
I did a portupgrade -fa to recompile all of them.
Now I am having the following problem

> fetchyahoo
Logging in securely via SSL as null_function on Thu Mar 23 10:24:39 2006
Segmentation fault (core dumped)

Using truss I found the following 
> truss /usr/local/bin/fetchyahoo --quiet 
> --configfile=$HOME/.fetchyahoorc-null_function
-- snip --
open("/usr/local/lib/perl5/site_perl/5.8.8/mach/Crypt/SSLeay/CTX.pm",0x0,0666) =
fstat(3,0xbfbfbf10)  = 0 (0x0)
read(0x3,0x807b000,0x1000)   = 54 (0x36)
break(0x8578000) = 0 (0x0)
read(0x3,0x807b000,0x1000)   = 0 (0x0)
close(3) = 0 (0x0)
break(0x8579000) = 0 (0x0)
mmap(0x0,12288,(0x3)PROT_READ|PROT_WRITE,(0x1002)MAP_ANON|MAP_PRIVATE,-1,0x0) =
munmap(0x28286000,0x1000)= 0 (0x0)
break(0x857a000) = 0 (0x0)
break(0x857b000) = 0 (0x0)
break(0x857c000) = 0 (0x0)
break(0x857d000) = 0 (0x0)
break(0x857e000) = 0 (0x0)
stat("/dev/urandom",0xbfbfe1d0)  = 0 (0x0)
open("/dev/urandom",0x0,0666)= 3 (0x3)
read(0x3,0x28284303,0x1) = 1 (0x1)

---The line   read(0x3,0x28284303,0x1) = 1 (0x1)
---is repeated 1024 times before the following segmentation fault

read(0x3,0x28284303,0x1) = 1 (0x1)
close(3) = 0 (0x0)
getpid() = 72949 (0x11cf5)
SIGNAL 11 (SIGSEGV)
SIGNAL 11 (SIGSEGV)
Process stopped because of:  16
process exit, rval = 139
Segmentation fault


I have recompiled perl and all the ports that fetchyahoo uses but to no avail.

Any clues ?

Thanks - I have learnt a lot of stuff from this list.

RR
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: perl regex help request... .

2006-03-22 Thread Andrew Pantyukhin
On 3/23/06, Gary Kline <[EMAIL PROTECTED]> wrote:
>
> Guys,
>
> perlmonks was helpful in explaining that "[[](\d+)[]]" is
> what is required to match [NN].   So that will catch the
> footnote numbers.  I had thought that I would have to do the
>  NN xyz  anchor by hand.   Maybe not, if
> somebody can clue me in on the perl regex for matching
>
> "NN plus any/every character following until \n"
>
> I can't find my regex book, and am not exactly clear if this
> will work, but if I go back over my files and insert braces
> around each note (at the page bottom) like:
>
> {14, DEWEY AND TUFTS, *Ethics*, pp 345-7, § 4 }
>
> would this:
>
> s/{(\d+)}(.+)/
>
> capture the "14" plus  the rest on the bracketed line?  The
> HTML would be (methinks):
>
> 14, DEWEY AND TUFTS, *Ethics*, pp 345-7, § 4 
>
> with the $1 capturing the 14 and $2 capturing the rest?
>
> The entire s//g expr would be::
>
> s/{(\d+)}(.+)/http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


perl regex help request... .

2006-03-22 Thread Gary Kline

Guys,

perlmonks was helpful in explaining that "[[](\d+)[]]" is
what is required to match [NN].   So that will catch the 
footnote numbers.  I had thought that I would have to do the
 NN xyz  anchor by hand.   Maybe not, if
somebody can clue me in on the perl regex for matching

"NN plus any/every character following until \n"

I can't find my regex book, and am not exactly clear if this
will work, but if I go back over my files and insert braces 
around each note (at the page bottom) like:

{14, DEWEY AND TUFTS, *Ethics*, pp 345-7, § 4 }

would this:

s/{(\d+)}(.+)/

capture the "14" plus  the rest on the bracketed line?  The 
HTML would be (methinks):

14, DEWEY AND TUFTS, *Ethics*, pp 345-7, § 4 

with the $1 capturing the 14 and $2 capturing the rest?

The entire s//g expr would be::

s/{(\d+)}(.+)/http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: using perl to sub § for \xa7.

2006-03-17 Thread Parv
in message <[EMAIL PROTECTED]>,
wrote Gary Kline thusly...
>
> On Fri, Mar 17, 2006 at 06:14:17PM -0500, Parv wrote:
> > in message <[EMAIL PROTECTED]>,
> > wrote Gary Kline thusly...
> > >
> > > I've got several chapters with footnptes with that double-S
> > > "section" character.  In HTML, the code is §   The thing I
> > > want to do is use perl to s/ \xa7/§/g.but don't know the
> > > keycombo to /find or designate tthe hex a7 byte.  Can anybody clue
> > > me in?
> > 
> > Use '-i' option for in place editing, '-p' to print the results to
> > the file, '-e' to specify the code to run ...
> > 
> >   perl -pi -e 's/\xa7/§/g' file-1 file-2 file-3
> > 
> 
> Yeah, this is what I use for most cmd-line subs, but will a
> literal "\xa7" be interpreted by the shell as the section
> character?

Well, shell's understanding is immaterial, but not the tool's -- perl
in this case; and quite possibly tool's behaviour under currently
set locale(1) -- which will be doing the substitution.


> (Where is there an online map of all ISO-8859-1 keycodes?  [E.g.:
> an aigu is -i; it is "\xe9" in keystrokes.])

Can't say, but you can generate your own ...

  http://perlmonks.org/index.pl?node_id=246185


  - Parv

-- 

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: using perl to sub § for \xa7.

2006-03-17 Thread Gary Kline
On Fri, Mar 17, 2006 at 06:14:17PM -0500, Parv wrote:
> in message <[EMAIL PROTECTED]>,
> wrote Gary Kline thusly...
> >
> > I've got several chapters with footnptes with that double-S
> > "section" character.  In HTML, the code is §   The thing I
> > want to do is use perl to s/ \xa7/§/g.but don't know the
> > keycombo to /find or designate tthe hex a7 byte.  Can anybody clue
> > me in?
> 
> Use '-i' option for in place editing, '-p' to print the results to
> the file, '-e' to specify the code to run ...
> 
>   perl -pi -e 's/\xa7/§/g' file-1 file-2 file-3
> 

Yeah, this is what I use for most cmd-line subs, but 
will a literal "\xa7" be interpreted by the shell as the 
section character?  (Where is there an online map of all
ISO-8859-1 keycodes?  [E.g.: an aigu is -i; it is
"\xe9" in keystrokes.])

> 
> ... if you have quite many files use 'find' to find the HTML files,
> say in directory named '/html/files' ...
> 
>   find /html/files -type f -name '*.html' -print0 \
>   | xargs -0 perl -pi -e 's/\xa7/§/g'
> 
> 
Thanks.  I've still got does dozens of files/chapters. 
X-|

:)

gary



>   - Parv
> 
> -- 
> 
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "[EMAIL PROTECTED]"

-- 
   Gary Kline [EMAIL PROTECTED]   www.thought.org Public service Unix

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: using perl to sub § for \xa7.

2006-03-17 Thread Parv
in message <[EMAIL PROTECTED]>,
wrote Gary Kline thusly...
>
> I've got several chapters with footnptes with that double-S
> "section" character.  In HTML, the code is §   The thing I
> want to do is use perl to s/ \xa7/§/g.but don't know the
> keycombo to /find or designate tthe hex a7 byte.  Can anybody clue
> me in?

Use '-i' option for in place editing, '-p' to print the results to
the file, '-e' to specify the code to run ...

  perl -pi -e 's/\xa7/§/g' file-1 file-2 file-3


... if you have quite many files use 'find' to find the HTML files,
say in directory named '/html/files' ...

  find /html/files -type f -name '*.html' -print0 \
  | xargs -0 perl -pi -e 's/\xa7/§/g'


  - Parv

-- 

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


<    2   3   4   5   6   7   8   9   10   11   >