Re: Test Mac::Carbon build for me?

2002-12-12 Thread Ken Williams

On Friday, December 13, 2002, at 10:50  AM, Chris Nandor wrote:


At 10:35 +1100 2002.12.13, Ken Williams wrote:

Chris, do you know where 'keyReplyPortAttr' is defined?


Hm.  That's in AEMach.h.  This is the workaround I was using to 
get AESend
to work at all on Mac OS X.  If that won't work, I wonder if even
precompiled binaries will work.

To see if it will, use the 0.02 binaries you have installed and 
try this
one-liner:

% perl -MMac::AppleEvents -e '$e = AEBuildAppleEvent(qw(misc 
actv sign MACS
-1 0), ""); AESend($e, kAEWaitReply); AEDisposeDesc($e)'

It should activate the Finder, then the script should exit.

Okay, I installed the 0.02 binaries, and then one-liner above 
worked fine.

The EU::MM shipped with perl 5.6.1 doesn't have the 
ExtUtils::Command::MM package, so you might want to mention that 
an ExtUtils::MakeMaker upgrade may be required in order to run 
the tests manually.  Or there's probably another way to write 
that one-liner that works with older EU::MMs.

After upgrading EU::MM (this is a different computer than I was 
using a few days ago), I ran the test suite from the 0.02_01 
source and got the following warnings & failures:


MacPerl/t/MacPerl..1..13
ok 1 - Volumes: FF9C0001:Snowdrop
ok 2 - MakePath: /
ok 3 - MakeFSSpec
Argument "10.1.2" isn't numeric in numeric ge (>=) at 
MacPerl/t/MacPerl.t line 40.
ok 4 - Finder v10.1.2
ok 5 - creator of '/System/Library/CoreServices/Finder'
ok 6 - type of '/System/Library/CoreServices/Finder'
ok 7 - creator of './foo'
ok 8 - type of './foo'
ok 9 - creator of './foo'
ok 10 - type of './foo'
Use of uninitialized value in pattern match (m//) at 
/Library/Perl/darwin/MacPerl.pm line 144.
Use of uninitialized value in substitution (s///) at 
/Library/Perl/darwin/MacPerl.pm line 145.
Use of uninitialized value in substitution (s///) at 
/Library/Perl/darwin/MacPerl.pm line 146.
not ok 11 - Pick()
# Failed test (MacPerl/t/MacPerl.t at line 88)
#  got: undef
# expected: '3'
Use of uninitialized value in pattern match (m//) at 
/Library/Perl/darwin/MacPerl.pm line 125.
Use of uninitialized value in substitution (s///) at 
/Library/Perl/darwin/MacPerl.pm line 126.
Use of uninitialized value in substitution (s///) at 
/Library/Perl/darwin/MacPerl.pm line 127.
# Failed test (MacPerl/t/MacPerl.t at line 91)
#  got: 'ken'
# expected: undef
not ok 12 - Ask()
Use of uninitialized value in substitution (s///) at 
/Library/Perl/darwin/MacPerl.pm line 107.
Use of uninitialized value in substitution (s///) at 
/Library/Perl/darwin/MacPerl.pm line 108.
Use of uninitialized value in string eq at 
/Library/Perl/darwin/MacPerl.pm line 110.
Use of uninitialized value in string eq at 
/Library/Perl/darwin/MacPerl.pm line 110.
Use of uninitialized value in string eq at 
/Library/Perl/darwin/MacPerl.pm line 110.
not ok 13 - Answer()
# Failed test (MacPerl/t/MacPerl.t at line 94)
#  got: ''
# expected: '1'
# Looks like you failed 3 tests of 13.
dubious
Test returned status 3 (wstat 768, 0x300)
DIED. FAILED tests 11-13
Failed 3/13 tests, 76.92% okay
Notification/t/Notification1..10
Can't call method "processLauncher" on an undefined value at 
Notification/t/Notification.t line 27.
# Looks like your test died before it could output anything.
dubious
Test returned status 206 (wstat 52736, 0xce00)
DIED. FAILED tests 1-10
Failed 10/10 tests, 0.00% okay
Processes/t/Processes..1..6
ok 1 - check process paths
not ok 2 - psn == pid
# Failed test (Processes/t/Processes.t at line 22)
#  got: undef
# expected: '1916'
not ok 3 - pid == psn
# Failed test (Processes/t/Processes.t at line 23)
#  got: undef
# expected: '0'
Use of uninitialized value in subroutine entry at 
Processes/t/Processes.t line 24.
ok 4 - SameProcess(psn, pid)
Can't call method "processLauncher" on an undefined value at 
Processes/t/Processes.t line 28.
# Looks like you planned 6 tests but only ran 4.
# Looks like your test died just after 4.
dubious
Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 2-3, 5-6
Failed 4/6 tests, 33.33% okay
Failed Test   Stat Wstat Total Fail  Failed  
List of Failed
---
MacPerl/t/MacPerl.t  3   768133  23.08%  11-13
Notification/t/Notification.t  206 5273610   10 100.00%  1-10
Processes/t/Processes.t255 65280 64  66.67%  2-3 5-6
Failed 3/13 test scripts, 76.92% okay. 17/85 subtests failed, 
80.00% okay.



I didn't see any dialog boxes during the MacPerl test.

Again for the record, this is perl 5.6.1 and OS X 10.1.5.

 -Ken



Re: Test Mac::Carbon build for me?

2002-12-12 Thread Enrique Terrazas
Hi,

> The original message mentioned the version on the web site, which isn't on
> the CPAN.
> 
>  http://dev.macperl.org/tmp/Mac-Carbon-0.02_01.tar.gz
> 
> The errors you got were expected with the version you used.  Thanks,

Whoops!  Sorry about that.  Builds and installs fine on 10.2.2 & perl 5.8.0.

Enrique

-- 

Enrique Terrazas, MD, MS







Re: Test Mac::Carbon build for me?

2002-12-12 Thread Chris Nandor
At 13:57 +1100 2002.12.13, Ken Williams wrote:
>0.02 binaries?  Where are those available?  I only have the 0.01
>binaries installed for Mac::Carbon, and it looks like Mac::AppleEvents
>isn't part of that.

Ah.  I mentioned them in another post, I think.  They are on
SourceForge.net (http://sf.net/projects/macperl/).

-- 
Chris Nandor  [EMAIL PROTECTED]http://pudge.net/
Open Source Development Network[EMAIL PROTECTED] http://osdn.com/



Re: Test Mac::Carbon build for me?

2002-12-12 Thread Ken Williams

On Friday, December 13, 2002, at 04:27  PM, brian d foy wrote:


In article <[EMAIL PROTECTED]>, Enrique Terrazas
<[EMAIL PROTECTED]> wrote:


I tried installing using cpan (Jaguar 10.2.2, perl 5.8.0) and 
ran into the
following problem:


cp Carbon.pm blib/lib/Mac/Carbon.pm
cp AppleEvents.pm ../blib/lib/Mac/AppleEvents.pm
/usr/local/bin/perl /Library/Perl/ExtUtils/xsubpp


the developers release that isn't on CPAN does not use the
standard xsubpp.  if you see "ExtUtils/xsubpp" in the output,
you have an older version of the Mac::Carbon distribution.


I've been working on the ExtUtils::ParseXS module, which is 
designed to render this approach obsolete.  It's on CPAN right 
now, maybe it could be used here instead of 
custom/version-specific xsubpps?

The goal is to have One True Version of xsubpp, as a module 
instead of a script, which works on any [reasonable] platform & 
version of perl.  I've started with the xsubpp in bleadperl, and 
it seems to backport fine to 5.6.0 from my testing so far.

 -Ken



Re: Test Mac::Carbon build for me?

2002-12-12 Thread brian d foy
In article <[EMAIL PROTECTED]>, Enrique Terrazas
<[EMAIL PROTECTED]> wrote:

> I tried installing using cpan (Jaguar 10.2.2, perl 5.8.0) and ran into the
> following problem:

> cp Carbon.pm blib/lib/Mac/Carbon.pm
> cp AppleEvents.pm ../blib/lib/Mac/AppleEvents.pm
> /usr/local/bin/perl /Library/Perl/ExtUtils/xsubpp

the developers release that isn't on CPAN does not use the
standard xsubpp.  if you see "ExtUtils/xsubpp" in the output,
you have an older version of the Mac::Carbon distribution.



Re: Test Mac::Carbon build for me?

2002-12-12 Thread Chris Nandor
In article <[EMAIL PROTECTED]>,
 [EMAIL PROTECTED] (Enrique Terrazas) wrote:

> I tried installing using cpan (Jaguar 10.2.2, perl 5.8.0) and ran into the
> following problem:
> 
> CPAN.pm: Going to build C/CN/CNANDOR/Mac-Carbon-0.02.tar.gz

The original message mentioned the version on the web site, which isn't on 
the CPAN.

   http://dev.macperl.org/tmp/Mac-Carbon-0.02_01.tar.gz

The errors you got were expected with the version you used.  Thanks,

-- 
Chris Nandor  [EMAIL PROTECTED]http://pudge.net/
Open Source Development Network[EMAIL PROTECTED] http://osdn.com/



Re: Test Mac::Carbon build for me?

2002-12-12 Thread Enrique Terrazas
Hi,

I tried installing using cpan (Jaguar 10.2.2, perl 5.8.0) and ran into the
following problem:

CPAN.pm: Going to build C/CN/CNANDOR/Mac-Carbon-0.02.tar.gz

[...]

cp Carbon.pm blib/lib/Mac/Carbon.pm
cp AppleEvents.pm ../blib/lib/Mac/AppleEvents.pm
/usr/local/bin/perl /Library/Perl/ExtUtils/xsubpp -noprototypes -typemap
/Library/Perl/ExtUtils/typemap  AppleEvents.xs > AppleEvents.xsc && mv
AppleEvents.xsc AppleEvents.c
cc -c  -I/Developer/Headers/FlatCarbon/ -pipe -fno-common -no-cpp-precomp
-fno-strict-aliasing -O3   -DVERSION=\"1.23\" -DXS_VERSION=\"1.23\"
"-I/Library/Perl/darwin/CORE"   AppleEvents.c
AppleEvents.xs: In function `XS_Mac__AppleEvents_AEGetNthDesc':
AppleEvents.xs:424: parse error before "AEDesc"
AppleEvents.xs:426: parse error before "OSType"
make[1]: *** [AppleEvents.o] Error 1
make: *** [subdirs] Error 2
  /usr/bin/make  -- NOT OK
Running make test
  Can't test without successful make
Running make install
  make had returned bad status, install seems impossible

-- 

Enrique Terrazas, MD, MS







Re: Test Mac::Carbon build for me?

2002-12-12 Thread Ken Williams

On Friday, December 13, 2002, at 10:50 AM, Chris Nandor wrote:


At 10:35 +1100 2002.12.13, Ken Williams wrote:

Chris, do you know where 'keyReplyPortAttr' is defined?


Hm.  That's in AEMach.h.  This is the workaround I was using to get 
AESend
to work at all on Mac OS X.  If that won't work, I wonder if even
precompiled binaries will work.

To see if it will, use the 0.02 binaries you have installed and try this
one-liner:

% perl -MMac::AppleEvents -e '$e = AEBuildAppleEvent(qw(misc actv sign 
MACS
-1 0), ""); AESend($e, kAEWaitReply); AEDisposeDesc($e)'

0.02 binaries?  Where are those available?  I only have the 0.01 
binaries installed for Mac::Carbon, and it looks like Mac::AppleEvents 
isn't part of that.

 -Ken



Re: Test Mac::Carbon build for me?

2002-12-12 Thread Chris Nandor
At 10:35 +1100 2002.12.13, Ken Williams wrote:
>Chris, do you know where 'keyReplyPortAttr' is defined?

Hm.  That's in AEMach.h.  This is the workaround I was using to get AESend
to work at all on Mac OS X.  If that won't work, I wonder if even
precompiled binaries will work.

To see if it will, use the 0.02 binaries you have installed and try this
one-liner:

% perl -MMac::AppleEvents -e '$e = AEBuildAppleEvent(qw(misc actv sign MACS
-1 0), ""); AESend($e, kAEWaitReply); AEDisposeDesc($e)'

It should activate the Finder, then the script should exit.

-- 
Chris Nandor  [EMAIL PROTECTED]http://pudge.net/
Open Source Development Network[EMAIL PROTECTED] http://osdn.com/



Re: Test Mac::Carbon build for me?

2002-12-12 Thread Ken Williams
Still no go for me.  I believe the things about precompiled 
headers are just warnings, i.e. it'll compile it from scratch 
rather than using the precompiled version.  But then some real 
errors follow.

Chris, do you know where 'keyReplyPortAttr' is defined?


[pe-242:~/Downloads/perl/Mac-Carbon-0.02_01] ken% make test
cp Carbon.pm blib/lib/Mac/Carbon.pm
cp AppleEvents.pm ../blib/lib/Mac/AppleEvents.pm
cp AppleEvents.pod ../blib/lib/Mac/AppleEvents.pod
/usr/bin/perl -I/System/Library/Perl/darwin 
-I/System/Library/Perl ../xsubpps/xsubpp-5.6.1 -noprototypes 
-typemap /System/Library/Perl/ExtUtils/typemap AppleEvents.xs > 
AppleEvents.xsc && mv AppleEvents.xsc AppleEvents.c
cc -c -I/Developer/Headers/FlatCarbon/ -pipe -fno-common 
-DHAS_TELLDIR_PROTOTYPE -fno-strict-aliasing -O3   
-DVERSION=\"1.24\" -DXS_VERSION=\"1.24\"  
-I/System/Library/Perl/darwin/CORE  AppleEvents.c
/Developer/Headers/FlatCarbon//Events.h:1: warning: could not 
use precompiled header 
'/System/Library/Frameworks/Carbon.framework/Headers/Carbon.p', 
because:
/Developer/Headers/FlatCarbon//Events.h:1: warning: macro 'bool' 
defined by /System/Library/Perl/darwin/CORE/handy.h conflicts 
with precomp
/System/Library/Frameworks/Carbon.framework/Headers/Carbon.h:20: 
warning: could not use precompiled header 
'/System/Library/Frameworks/CoreServices.framework/Headers/CoreServices.p'
, because:
/System/Library/Frameworks/Carbon.framework/Headers/Carbon.h:20: 
warning: macro 'bool' defined by 
/System/Library/Perl/darwin/CORE/handy.h conflicts with precomp
/System/Library/Frameworks/Carbon.framework/Headers/Carbon.h:24: 
warning: could not use precompiled header 
'/System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.
p', because:
/System/Library/Frameworks/Carbon.framework/Headers/Carbon.h:24: 
warning: macro 'bool' defined by 
/System/Library/Perl/darwin/CORE/handy.h conflicts with precomp
In file included from 
/System/Library/Frameworks/CoreFoundation.framework/Headers/CFBase.h:28,
 from 
/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.
h:5,
 from 
/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/
Headers/CarbonCore.h:20,
 from 
/System/Library/Frameworks/CoreServices.framework/Headers/CoreServices.h:21,
 from 
/System/Library/Frameworks/Carbon.framework/Headers/Carbon.h:20,
 from /Developer/Headers/FlatCarbon//Events.h:2,
 from ../Carbon.h:32,
 from AppleEvents.xs:41:
/usr/include/stdbool.h:10: warning: useless keyword or type name 
in empty declaration
/usr/include/stdbool.h:10: warning: empty declaration
AppleEvents.xs: In function `XS_Mac__AppleEvents_AESend':
AppleEvents.xs:624: `keyReplyPortAttr' undeclared (first use in 
this function)
AppleEvents.xs:624: (Each undeclared identifier is reported only once
AppleEvents.xs:624: for each function it appears in.)
make[1]: *** [AppleEvents.o] Error 1
make: *** [subdirs] Error 2
[pe-242:~/Downloads/perl/Mac-Carbon-0.02_01] ken%


On Friday, December 13, 2002, at 09:18  AM, Chris Nandor wrote:

http://dev.macperl.org/tmp/Mac-Carbon-0.02_01.tar.gz

If you have the time, please try this build out, compiling and testing.
It's been tested with perl 5.6.0 and gcc2/gcc3 on Mac OS X 10.2, but I
imagine it should work with any combination of perl 5.6.0/5.6.1/5.8.0,
gcc2/gcc3, and Mac OS X 10.1/10.2.

Thanks,

--
Chris Nandor  [EMAIL PROTECTED]http://pudge.net/
Open Source Development Network[EMAIL PROTECTED] http://osdn.com/




 -Ken




Re: Test Mac::Carbon build for me?

2002-12-12 Thread David Wheeler
On Thursday, December 12, 2002, at 02:18  PM, Chris Nandor wrote:


http://dev.macperl.org/tmp/Mac-Carbon-0.02_01.tar.gz

If you have the time, please try this build out, compiling and testing.
It's been tested with perl 5.6.0 and gcc2/gcc3 on Mac OS X 10.2, but I
imagine it should work with any combination of perl 5.6.0/5.6.1/5.8.0,
gcc2/gcc3, and Mac OS X 10.1/10.2.


Works fine for me on OS X 10.2.2, Perl 5.8.0.

David

--
David Wheeler AIM: dwTheory
[EMAIL PROTECTED] ICQ: 15726394
http://david.wheeler.net/  Yahoo!: dew7e
   Jabber: [EMAIL PROTECTED]




Test Mac::Carbon build for me?

2002-12-12 Thread Chris Nandor
http://dev.macperl.org/tmp/Mac-Carbon-0.02_01.tar.gz

If you have the time, please try this build out, compiling and testing.  
It's been tested with perl 5.6.0 and gcc2/gcc3 on Mac OS X 10.2, but I 
imagine it should work with any combination of perl 5.6.0/5.6.1/5.8.0, 
gcc2/gcc3, and Mac OS X 10.1/10.2.

Thanks,

-- 
Chris Nandor  [EMAIL PROTECTED]http://pudge.net/
Open Source Development Network[EMAIL PROTECTED] http://osdn.com/



DBD::Pg won't install

2002-12-12 Thread kurt
It's not often that I struggle with a problem for this long, find no  
answers, submit the question to a list and then

EUREKA!

Find the answer elsewhere on the 'net!

Made the changes and I am BACK IN BUSINESS!

Here it is folks, for those of you who have been struggling with the  
same problem,

http:[EMAIL PROTECTED]/msg04283.html

Re: DBD::Pg
--- 
-

*	To: Charles Albrecht <[EMAIL PROTECTED]>,	Perl List  
<[EMAIL PROTECTED]>
*	Subject: Re: DBD::Pg
*	From: Randall Perry <[EMAIL PROTECTED]>
*	Date: Mon, 09 Dec 2002 11:32:41 -0500
*	Delivered-to: mailing list [EMAIL PROTECTED]
*	In-reply-to: <[EMAIL PROTECTED]>
*	Mailing-list: contact [EMAIL PROTECTED]; run by ezmlm
*	User-agent: Microsoft-Entourage/10.1.0.2006

--- 
-


Just thought I'd tell you what I discovered. You don't have to  
sacrifice
PostgreSQL SSL support to use DBD::Pg. Just do the following (also  
works for
Pg module):

> setenv POSTGRES_LIB "/usr/local/pgsql/lib"
>
> to
>
> setenv POSTGRES_LIB "/usr/local/pgsql/lib -lssl'
>
> so the trick is to include the flag -lssl during the dbd build.



> On Mon, Sep 23, 2002 at 12:59:19PM +0100, Vincent D Murphy wrote:
>>
>> i have omitted the remainder of the output, it just says that the  
other
>> tests are skipped.
>>
>> i presume this those symbols are the names of C functions, and that
>> this a problem with XS code somewhere.  but why the hell would a DBD
>> driver be interested in SSL?
>>
>> i am hoping somebody else has followed this road less travelled [0]  
[1]
>> with more success and can help me.
>>
>> 0. http:[EMAIL PROTECTED]/index.html#03128
>> 1. http://david.wheeler.net/osx.html
>
> I recompiled PostgreSQL without SSL (TLS) and then DBD::Pg compiled  
fine
> for me.
>
> -Charles Albrecht
> [EMAIL PROTECTED]

--
Randall Perry
sysTame







Re: DBD::Pg won't install

2002-12-12 Thread David H. Adler
On Thu, Dec 12, 2002 at 04:01:15PM -0500, kurt wrote:
> 
> ===
> Apologies in advance for the long post, but I figured it would help  
> forestall any of the obvious questions.
> 
> I've been trying to install DBD::Pg for Postgres.
> Perl 5.8.0 is installed and working properly.
> Postgres 7.2.1 is installed and working properly.
> DBI installed without any problems.
> I have set the environment variables as follows:
>   export POSTGRES_INCLUDE="/usr/local/pgsql/include"
>   export POSTGRES_LIB="/usr/local/pgsql/lib/libpq.so"
> 
> Problem:
>   DBD::Pg fails to install with an "Undefined symbols" error.
> 
> Can anyone shed some light?

I just went through this yesterday.

This is what worked for me:

POSTGRES_INCLUDE='/usr/local/pgsql/include'
POSTGRES_LIB='/usr/local/pgsql/lib -lssl'

that '-lssl' seems to make the difference.

Mind you, that may cause some side effect that I'm not aware of.

cf. http://www.mail-archive.com/dbi-users@perl.org/msg14684.html

good luck,

dha
-- 
David H. Adler - <[EMAIL PROTECTED]> - http://www.panix.com/~dha/
"Look, vultures!  My dress is made of steaks!"
   - Allison Drennan



Re: DBD::Pg won't install

2002-12-12 Thread David Wheeler
On Thursday, December 12, 2002, at 01:01  PM, kurt wrote:


I have set the environment variables as follows:
	export POSTGRES_INCLUDE="/usr/local/pgsql/include"
	export POSTGRES_LIB="/usr/local/pgsql/lib/libpq.so"

Problem:
	DBD::Pg fails to install with an "Undefined symbols" error.

Can anyone shed some light?


Yes, set POSTGRES_LIB to "/usr/local/pgsql/lib", instead. Or better 
yet, don't set it or POSTGRES_INCLUDE at all. Let DBD::Pg 1.20's 
Makefile.PL find the libraries itself.

HTH,

David

--
David Wheeler AIM: dwTheory
[EMAIL PROTECTED] ICQ: 15726394
http://david.wheeler.net/  Yahoo!: dew7e
   Jabber: [EMAIL PROTECTED]



DBD::Pg won't install

2002-12-12 Thread kurt

===
Apologies in advance for the long post, but I figured it would help  
forestall any of the obvious questions.

I've been trying to install DBD::Pg for Postgres.
Perl 5.8.0 is installed and working properly.
Postgres 7.2.1 is installed and working properly.
DBI installed without any problems.
I have set the environment variables as follows:
	export POSTGRES_INCLUDE="/usr/local/pgsql/include"
	export POSTGRES_LIB="/usr/local/pgsql/lib/libpq.so"

Problem:
	DBD::Pg fails to install with an "Undefined symbols" error.

Can anyone shed some light?

Thanks.

Kurt
===
bash-2.05a$ perl Makefile.PL
Configuring Pg
Remember to actually read the README file !
OS: darwin
Using DBI 1.32 installed in /Library/Perl/darwin/auto/DBI
Note (probably harmless): No library found for -lpq
Writing Makefile for DBD::Pg
bash-2.05a$ make
cc -c  -I/usr/local/pgsql/include -I/Library/Perl/darwin/auto/DBI -pipe  
-fno-common -no-cpp-precomp -fno-strict-aliasing -O3
-DVERSION=\"1.20\" -DXS_VERSION=\"1.20\"  "-I/Library/Perl/darwin/CORE"  
  Pg.c
cc -c  -I/usr/local/pgsql/include -I/Library/Perl/darwin/auto/DBI -pipe  
-fno-common -no-cpp-precomp -fno-strict-aliasing -O3
-DVERSION=\"1.20\" -DXS_VERSION=\"1.20\"  "-I/Library/Perl/darwin/CORE"  
  dbdimp.c
Running Mkbootstrap for DBD::Pg ()
chmod 644 Pg.bs
rm -f blib/arch/auto/DBD/Pg/Pg.bundle
LD_RUN_PATH="" cc  -flat_namespace -bundle -undefined suppress Pg.o  
dbdimp.o  -o blib/arch/auto/DBD/Pg/Pg.bundle
chmod 755 blib/arch/auto/DBD/Pg/Pg.bundle
cp Pg.bs blib/arch/auto/DBD/Pg/Pg.bs
chmod 644 blib/arch/auto/DBD/Pg/Pg.bs
Manifying blib/man3/DBD::dbd-pg.3
Manifying blib/man3/DBD::Pg.3
bash-2.05a$ make test
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e"  
"test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/00basic...dyld: /usr/bin/perl Undefined symbols:
_PQclear
_PQcmdStatus
_PQcmdTuples
_PQconnectdb
_PQconsumeInput
_PQendcopy
_PQerrorMessage
_PQexec
_PQfinish
_PQfname
_PQfsize
_PQftype
_PQgetisnull
_PQgetline
_PQgetvalue
_PQnfields
_PQnotifies
_PQntuples
_PQoidStatus
_PQputline
_PQresultStatus
_PQsocket
_PQstatus
_lo_close
_lo_creat
_lo_export
_lo_import
_lo_lseek
_lo_open
_lo_read
_lo_tell
_lo_unlink
_lo_write
t/00basic...dubious
Test returned status 0 (wstat 5, 0x5)
t/01connect.skipped
all skipped: cannot test without DB info
t/01constants...dyld: /usr/bin/perl Undefined symbols:
_PQclear
_PQcmdStatus
_PQcmdTuples
_PQconnectdb
_PQconsumeInput
_PQendcopy
_PQerrorMessage
_PQexec
_PQfinish
_PQfname
_PQfsize
_PQftype
_PQgetisnull
_PQgetline
_PQgetvalue
_PQnfields
_PQnotifies
_PQntuples
_PQoidStatus
_PQputline
_PQresultStatus
_PQsocket
_PQstatus
_lo_close
_lo_creat
_lo_export
_lo_import
_lo_lseek
_lo_open
_lo_read
_lo_tell
_lo_unlink
_lo_write
t/01constants...dubious
Test returned status 0 (wstat 5, 0x5)
DIED. FAILED tests 1-20
Failed 20/20 tests, 0.00% okay
t/01setup...skipped
all skipped: cannot test without DB info
t/02prepare.skipped
all skipped: cannot test without DB info
t/03bindskipped
all skipped: cannot test without DB info
t/04execute.skipped
all skipped: cannot test without DB info
t/05fetch...skipped
all skipped: cannot test without DB info
t/06disconnect..skipped
all skipped: cannot test without DB info
t/07reuse...skipped
all skipped: cannot test without DB info
t/08txn.skipped
all skipped: cannot test without DB info
t/09autocommit..skipped
all skipped: cannot test without DB info
t/11quoting.skipped
all skipped: cannot test without DB info
t/12placeholdersskipped
all skipped: cannot test without DB info
t/13pgtype..skipped
all skipped: cannot test without DB info
t/15funct...skipped
all skipped: cannot test without DB info
t/99cleanup.skipped
all skipped: cannot test without DB info
Failed Test Stat Wstat Total Fail  Failed  List of Failed
 
---
t/00basic.t0 5??   ??   %  ??
t/01constants.t0 520   20 100.00%  1-20
15 tests skipped.
Failed 2/17 test scripts, 88.24% okay. 20/20 subtests failed, 0.00%  
okay.
make: *** [test_dynamic] Error 2
bash-2.05a$
===



global modifier not starting from top of file...

2002-12-12 Thread Matthew Galaher

Can anyone explain why when the following matches the if, the second
lines 'global' modifier doesn't seem to be global but picks up from
where the first match in the 'if' statement left off. I've been able
to get it working by putting the $file into a separate variable, but
in a large script this seems very inefficient use of memory and creates
a lot of extra code. Thanks for any help.

if ($file =~ m/(out of office|auto reply)/i){
	@auto_reply = $file =~ m/(findthis|findthat)/ig;
	for (@auto_reply){
		$auto_reply = $auto_reply . "\"" . $_ . "\" ";
	}
}


$file_temp = $file;
if ($file =~ m/(out of office|auto reply)/i){
	@auto_reply = $file_temp =~ m/(findthis|findthat)/ig;
	for (@auto_reply){
		$auto_reply = $auto_reply . "\"" . $_ . "\" ";
	}
}