[26518] in Perl-Users-Digest
Perl-Users Digest, Issue: 8669 Volume: 10
daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Tue Nov 15 18:05:59 2005
Date: Tue, 15 Nov 2005 15:05:08 -0800 (PST)
From: Perl-Users Digest <Perl-Users-Request@ruby.OCE.ORST.EDU>
To: Perl-Users@ruby.OCE.ORST.EDU (Perl-Users Digest)
Perl-Users Digest Tue, 15 Nov 2005 Volume: 10 Number: 8669
Today's topics:
Re: Bug in &= (bitwise or) (Anno Siegel)
LOESS (aka LOWESS) <no_given_address@landofthelost.net>
Re: Pattern Matching problem! <noreply@gunnar.cc>
Re: Pattern Matching problem! <francis@nospam.com>
problems with Oracle DBD <xiombarg@fnord.io.com>
Re: problems with Oracle DBD <mark.clementsREMOVETHIS@wanadoo.fr>
Re: problems with Oracle DBD <mark.clementsREMOVETHIS@wanadoo.fr>
Re: regexp that matches half then conditionally exclude <abigail@abigail.nl>
Digest Administrivia (Last modified: 6 Apr 01) (Perl-Users-Digest Admin)
----------------------------------------------------------------------
Date: 15 Nov 2005 18:59:02 GMT
From: anno4000@lublin.zrz.tu-berlin.de (Anno Siegel)
Subject: Re: Bug in &= (bitwise or)
Message-Id: <dldb5m$180$1@mamenchi.zrz.TU-Berlin.DE>
Anno Siegel <anno4000@lublin.zrz.tu-berlin.de> wrote in comp.lang.perl.misc:
> Anno Siegel <anno4000@lublin.zrz.tu-berlin.de> wrote in comp.lang.perl.misc:
> > Tassilo v. Parseval <tassilo.von.parseval@rwth-aachen.de> wrote in
> > comp.lang.perl.misc:
> >
> > > Did someone already file a bugreport?
> >
> > I will. Want to check against bleadperl first. I'll also at least go
> > through the motions of seeing if it has been reported before.
>
> [Anno again]
>
> The bug is still in perl-5.9.2, I've sent a report. Fun with perlbug, as
> usual.
...and fixed, at least the bug in &= is. The one in m// (relying on a
trailing zero) seems to be still there, but now it will be harder to
produce such strings in Perl.
The bug tracking ticket is #37616, if anyone cares.
Anno
--
If you want to post a followup via groups.google.com, don't use
the broken "Reply" link at the bottom of the article. Click on
"show options" at the top of the article, then click on the
"Reply" at the bottom of the article headers.
------------------------------
Date: Tue, 15 Nov 2005 15:48:55 -0700
From: "Mr. No Address" <no_given_address@landofthelost.net>
Subject: LOESS (aka LOWESS)
Message-Id: <dldq1l$tkt$1@news.nems.noaa.gov>
Been some time since I was here and now I'm almost fearful to post.
Have I googled enough? Have I searched CPAN enough? Did I read all the
books? Have I done everything reasonable to try and answer my question
before posting here? Ah, what the hell...
Locally Weighted Robust Regression (LOWESS or LOESS). Boss says it's
the thing to use for a particular job that needs to be done. Is there a
Perl module out there that does this?
------------------------------
Date: Tue, 15 Nov 2005 18:23:20 +0100
From: Gunnar Hjalmarsson <noreply@gunnar.cc>
Subject: Re: Pattern Matching problem!
Message-Id: <3tujs9FunknrU1@individual.net>
Francis Sylvester wrote:
>>Either you'd better stick to a simple regex, and skip the parsing module,
>>or (better) taking advantage of the module you are using, and doing
>>something like:
>>
>> while ( my $token = $parser->get_tag('a') ) {
>> if ($token->[1]{href} =~ /$mymatch/) {
>> print $parser->get_text('a')."\n";
>> }
>> }
>>
>>(I'm not sure if that's what you're looking for, but hopefully you get the
>>idea.)
>
> the code executes without error messages but I sometimes get unwanted
> results in $1.
And that may well be a result of the fact that you don't actually make
use of the module you are using for parsing HTML...
Didn't you understand my objection to your code?
http://groups.google.com/group/comp.lang.perl.misc/msg/60f72a205520c4b1
--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl
------------------------------
Date: Tue, 15 Nov 2005 20:04:09 GMT
From: "Francis Sylvester" <francis@nospam.com>
Subject: Re: Pattern Matching problem!
Message-Id: <Zaref.26548$Es4.15596@fe2.news.blueyonder.co.uk>
>>>(I'm not sure if that's what you're looking for, but hopefully you get
>>>the idea.)
>>
>> the code executes without error messages but I sometimes get unwanted
>> results in $1.
>
> And that may well be a result of the fact that you don't actually make use
> of the module you are using for parsing HTML...
>
> Didn't you understand my objection to your code?
> http://groups.google.com/group/comp.lang.perl.misc/msg/60f72a205520c4b1
>
> --
Thanks Gunnar. I did understand your objection but thought I needed to
resort to pattern matching for a specific section of the text I'm retrieving
after the link. Having read your message and looking at the module docs
again now - I think I might be able to achieve the desired result without
the pattern match. I'm very grateful to you for the responses - you've
probably saved me hours!
Thanks again,
Francis
------------------------------
Date: Tue, 15 Nov 2005 14:35:45 -0600
From: "Kirt "Loki" Dankmyer" <xiombarg@fnord.io.com>
Subject: problems with Oracle DBD
Message-Id: <TeqdnX_sMfo82-feRVn-hA@io.com>
Keywords: DBD,Oracle,DBI,Solaris
Okay, bear with me here. This is a long story, but I want to give all the
details.
I administrate a Solaris 8 box which is used for a large Oracle database.
We've updated from Oracle 8i to Oracle 10g.
There are some perl scripts that the main users of the database use, which
use DBI. When they try to run them, they get errors like this:
install_driver(Oracle) failed: Can't load
'/usr/lib/perl5/site_perl/5.6.0/sun4-solaris/auto/DBD/Oracle/Oracle.so'
for module DBD::Oracle: ld.so.1: /usr/bin/perl.tucker: fatal:
libclntsh.so.8.0: open failed: No such file or directory at
/usr/lib/perl5/5.6.0/sun4-solaris/DynaLoader.pm line 200.
at (eval 1) line 3
Compilation failed in require at (eval 1) line 3.
Perhaps a required shared library or dll isn't installed where expected
at ./do_uds.pl line 173
Of course, that whole mention of libclntsh.so.8.0 implies I'm dealing with
an old version of DBI (and the Oracle DBD) that doesn't recognize Oracle
10g.
So, I download DBI-1.48 and DBD-Oracle-1.16... They don't seem to like the
version of perl I'm using (5.6.0), so I download the 5.8.5 perl package
from sunfreeware.com...
I'm able to install DBI-1.48 just fine, but when I try to install
DBD-Oracle-1.16 I get all sorts of errors (examples further below) and it
complains that maybe I need to recompile perl to include threads.
Well, I'd used a precompiled version of perl. I downloaded the source for
perl 5.8.7 and tried compiling it... But after six attempts, I gave it. It
had problems with dynamic loading, it had problems with B, you name it, it
had problems. I couldn't get it to compile.
At this point, suggestions on how to proceed are welcome. Below is a
transcript of my last attempt to install DBD-Oracle-1.16 using the perl
5.8.5 package I got from sunfreeware.com ...
Using DBI 1.48 (for perl 5.008005 on sun4-solaris) installed in
/usr/local/lib/perl5/site_perl/5.8.5/sun4-solaris/auto/DBI/
Configuring DBD::Oracle ...
>>> Remember to actually *READ* the README file!
Especially if you have any problems.
Using Oracle in /array/oracle/orahome/10.1.0
DEFINE _SQLPLUS_RELEASE = "1001000400" (CHAR)
Oracle version 10.1.0.4 (10.1)
Found /array/oracle/orahome/10.1.0/rdbms/demo/demo_rdbms.mk
Using /array/oracle/orahome/10.1.0/rdbms/demo/demo_rdbms.mk
Reading /array/oracle/orahome/10.1.0/rdbms/demo/demo_rdbms.mk
Reading /array/oracle/orahome/10.1.0/rdbms/lib/env_rdbms.mk
Attempting to discover Oracle OCI build rules
gcc -B/usr/ccs/bin/ -c -I/array/oracle/orahome/10.1.0/rdbms/demo
-I/array/oracle/orahome/10.1.0/rdbms/public
-I/array/oracle/orahome/10.1.0/plsql/public
-I/array/oracle/orahome/10.1.0/network/public
-I/array/oracle/orahome/10.1.0/rdbms/demo
-I/array/oracle/orahome/10.1.0/plsql/public
-I/array/oracle/orahome/10.1.0/rdbms/public
-I/usr/local/lib/perl5/site_perl/5.8.5/sun4-solaris/auto/DBI/
-fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -O -DVERSION=\"1.16\" -DXS_VERSION=\"1.16\"
-fPIC "-I/usr/local/lib/perl5/5.8.5/sun4-solaris/CORE" -Wall -Wno-comment
-DUTF8_SUPPORT -DNEW_OCI_INIT -DORA_OCI_VERSION=\"10.1.0.4\" DBD_ORA_OBJ.c
by executing: [make -f
/array/oracle/orahome/10.1.0/rdbms/demo/demo_rdbms.mk build ECHODO=echo
ECHO=echo GENCLNTSH='echo genclntsh' CC=true OPTIMIZE= CCFLAGS=
EXE=DBD_ORA_EXE OBJS=DBD_ORA_OBJ.o]
Oracle oci build command:
[true -xarch=v9 -L/array/oracle/orahome/10.1.0/lib/
-L/array/oracle/orahome/10.1.0/rdbms/lib/ -o DBD_ORA_EXE DBD_ORA_OBJ.o
-lclntsh `cat /array/oracle/orahome/10.1.0/lib/sysliblist`
-R/array/oracle/orahome/10.1.0/lib -laio -lposix4 -lkstat -lm -lthread]
Found header files in plsql/public rdbms/public.
Checking for functioning wait.ph
System: perl5.008005 sunos 5.8 generic_108528-11 sun4u sparc
sunw,ultra-5_10
Compiler: gcc -B/usr/ccs/bin/ -O -fno-strict-aliasing -pipe
-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
Linker: /usr/ucb/ld
Sysliblist: -lnsl -lsocket -lgen -ldl
Oracle makefiles would have used these definitions but we override them:
CC: cc
CFLAGS: $(GFLAG) $(OPTIMIZE) $(CDEBUG) $(CCFLAGS) $(PFLAGS)\
$(SHARED_CFLAG) $(USRFLAGS)
[$(GFLAG) -xO3 $(CDEBUG) -Xa $(PROFILE) -xstrconst -dalign -xF
$(XS) $(MR) -xildoff -errtags=yes -v -xarch=v9 -xchip=ultra3 -W2,-AKNR_S
-Wd,-xsafe=unboundsym -Wc,-Qiselect-funcalign=32 -xcode=abs44
-Wc,-Qgsched-trace_late=1 -Wc,-Qgsched-T5 -xalias_level=weak -D_REENTRANT
-DSS_64BIT_SERVER -DBIT64 -DMACHINE64 -K PIC
-I/array/oracle/orahome/10.1.0/rdbms/demo
-I/array/oracle/orahome/10.1.0/rdbms/public
-I/array/oracle/orahome/10.1.0/plsql/public
-I/array/oracle/orahome/10.1.0/network/public -DSLMXMX_ENABLE
-DSLTS_ENABLE -D_SVID_GETTOD -D_REENTRANT $(LPFLAGS) $(USRFLAGS)]
LDFLAGS: -o $@ $(LDPATHFLAG)$(PRODLIBHOME) $(LDPATHFLAG)$(LIBHOME)
[-o $@ -L/array/oracle/orahome/10.1.0/rdbms/lib/ -L$(LIBHOME)]
Linking with OTHERLDFLAGS = -xarch=v9 -L/array/oracle/orahome/10.1.0/lib/
-L/array/oracle/orahome/10.1.0/rdbms/lib/ -lclntsh `cat
/array/oracle/orahome/10.1.0/lib/sysliblist`
-R/array/oracle/orahome/10.1.0/lib -laio -lposix4 -lkstat -lm -lthread
[from 'build' rule]
Warning: If you have problems you may need to rebuild perl with threading
enabled.
LD_RUN_PATH=/array/oracle/orahome/10.1.0/lib32:/array/oracle/orahome/10.1.0/rdbms/lib32
Using DBD::Oracle 1.16.
Using DBD::Oracle 1.16.
Using DBI 1.48 (for perl 5.008005 on sun4-solaris) installed in
/usr/local/lib/perl5/site_perl/5.8.5/sun4-solaris/auto/DBI/
Writing Makefile for DBD::Oracle
*** If you have problems...
read all the log printed above, and the README and README.help files.
(Of course, you have read README by now anyway, haven't you?)
bash-2.03# make
Skip blib/lib/DBD/Oracle.pm (unchanged)
Skip blib/lib/oraperl.ph (unchanged)
Skip blib/arch/auto/DBD/Oracle/dbdimp.h (unchanged)
Skip blib/arch/auto/DBD/Oracle/ocitrace.h (unchanged)
Skip blib/lib/Oraperl.pm (unchanged)
Skip blib/arch/auto/DBD/Oracle/Oracle.h (unchanged)
Skip blib/lib/DBD/Oracle/GetInfo.pm (unchanged)
Skip blib/arch/auto/DBD/Oracle/mk.pm (unchanged)
gcc -B/usr/ccs/bin/ -c -I/array/oracle/orahome/10.1.0/rdbms/demo
-I/array/oracle/orahome/10.1.0/rdbms/public
-I/array/oracle/orahome/10.1.0/plsql/public
-I/array/oracle/orahome/10.1.0/network/public
-I/array/oracle/orahome/10.1.0/rdbms/demo
-I/array/oracle/orahome/10.1.0/plsql/public
-I/array/oracle/orahome/10.1.0/rdbms/public
-I/usr/local/lib/perl5/site_perl/5.8.5/sun4-solaris/auto/DBI/
-fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -O -DVERSION=\"1.16\" -DXS_VERSION=\"1.16\"
-fPIC "-I/usr/local/lib/perl5/5.8.5/sun4-solaris/CORE" -Wall -Wno-comment
-DUTF8_SUPPORT -DNEW_OCI_INIT -DORA_OCI_VERSION=\"10.1.0.4\" Oracle.c
Oracle.c: In function `XS_DBD__Oracle__db_ora_lob_append':
Oracle.xs:191: warning: unused variable `startp'
gcc -B/usr/ccs/bin/ -c -I/array/oracle/orahome/10.1.0/rdbms/demo
-I/array/oracle/orahome/10.1.0/rdbms/public
-I/array/oracle/orahome/10.1.0/plsql/public
-I/array/oracle/orahome/10.1.0/network/public
-I/array/oracle/orahome/10.1.0/rdbms/demo
-I/array/oracle/orahome/10.1.0/plsql/public
-I/array/oracle/orahome/10.1.0/rdbms/public
-I/usr/local/lib/perl5/site_perl/5.8.5/sun4-solaris/auto/DBI/
-fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -O -DVERSION=\"1.16\" -DXS_VERSION=\"1.16\"
-fPIC "-I/usr/local/lib/perl5/5.8.5/sun4-solaris/CORE" -Wall -Wno-comment
-DUTF8_SUPPORT -DNEW_OCI_INIT -DORA_OCI_VERSION=\"10.1.0.4\" dbdimp.c
dbdimp.c: In function `dbd_rebind_ph_char':
dbdimp.c:1061: warning: value computed is not used
gcc -B/usr/ccs/bin/ -c -I/array/oracle/orahome/10.1.0/rdbms/demo
-I/array/oracle/orahome/10.1.0/rdbms/public
-I/array/oracle/orahome/10.1.0/plsql/public
-I/array/oracle/orahome/10.1.0/network/public
-I/array/oracle/orahome/10.1.0/rdbms/demo
-I/array/oracle/orahome/10.1.0/plsql/public
-I/array/oracle/orahome/10.1.0/rdbms/public
-I/usr/local/lib/perl5/site_perl/5.8.5/sun4-solaris/auto/DBI/
-fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -O -DVERSION=\"1.16\" -DXS_VERSION=\"1.16\"
-fPIC "-I/usr/local/lib/perl5/5.8.5/sun4-solaris/CORE" -Wall -Wno-comment
-DUTF8_SUPPORT -DNEW_OCI_INIT -DORA_OCI_VERSION=\"10.1.0.4\" oci8.c
oci8.c: In function `fetch_func_varfield':
oci8.c:540: warning: value computed is not used
oci8.c: In function `fetch_func_nty':
oci8.c:571: warning: value computed is not used
oci8.c: In function `dbd_rebind_ph_lob':
oci8.c:628: warning: value computed is not used
oci8.c: In function `ora_blob_read_mb_piece':
oci8.c:664: warning: value computed is not used
oci8.c:672: warning: value computed is not used
oci8.c:680: warning: value computed is not used
oci8.c:708: warning: value computed is not used
oci8.c: In function `ora_blob_read_piece':
oci8.c:768: warning: value computed is not used
oci8.c:775: warning: value computed is not used
oci8.c:782: warning: value computed is not used
oci8.c:812: warning: value computed is not used
oci8.c:842: warning: value computed is not used
oci8.c: In function `fetch_func_autolob':
oci8.c:911: warning: value computed is not used
oci8.c:944: warning: value computed is not used
oci8.c:953: warning: value computed is not used
oci8.c:973: warning: value computed is not used
oci8.c: In function `ora_st_fetch':
oci8.c:1449: warning: value computed is not used
oci8.c:1468: warning: value computed is not used
oci8.c: In function `post_execute_lobs':
oci8.c:1950: warning: value computed is not used
oci8.c:1953: warning: value computed is not used
oci8.c: At top level:
oci8.c:566: warning: `fetch_func_nty' defined but not used
oci8.c:1012: warning: `fbh_setup_getrefpv' defined but not used
Running Mkbootstrap for DBD::Oracle ()
chmod 644 Oracle.bs
rm -f blib/arch/auto/DBD/Oracle/Oracle.so
LD_RUN_PATH="/array/oracle/orahome/10.1.0/lib32:/array/oracle/orahome/10.1.0/rdbms/lib32"
gcc -B/usr/ccs/bin/ -G -L/usr/local/lib Oracle.o dbdimp.o oci8.o
-xarch=v9 -L/array/oracle/orahome/10.1.0/lib/
-L/array/oracle/orahome/10.1.0/rdbms/lib/ -lclntsh `cat
/array/oracle/orahome/10.1.0/lib/sysliblist`
-R/array/oracle/orahome/10.1.0/lib -laio -lposix4 -lkstat -lm -lthread
-o blib/arch/auto/DBD/Oracle/Oracle.so
ld: fatal: file /array/oracle/orahome/10.1.0/lib//libclntsh.so: wrong ELF
class: ELFCLASS64
ld: fatal: File processing errors. No output written to
blib/arch/auto/DBD/Oracle/Oracle.so
collect2: ld returned 1 exit status
gcc: file path prefix `/usr/ccs/bin/' never used
*** Error code 1
make: Fatal error: Command failed for target
`blib/arch/auto/DBD/Oracle/Oracle.so'
bash-2.03# make test
rm -f blib/arch/auto/DBD/Oracle/Oracle.so
LD_RUN_PATH="/array/oracle/orahome/10.1.0/lib32:/array/oracle/orahome/10.1.0/rdbms/lib32"
gcc -B/usr/ccs/bin/ -G -L/usr/local/lib Oracle.o dbdimp.o oci8.o
-xarch=v9 -L/array/oracle/orahome/10.1.0/lib/
-L/array/oracle/orahome/10.1.0/rdbms/lib/ -lclntsh `cat
/array/oracle/orahome/10.1.0/lib/sysliblist`
-R/array/oracle/orahome/10.1.0/lib -laio -lposix4 -lkstat -lm -lthread
-o blib/arch/auto/DBD/Oracle/Oracle.so
ld: fatal: file /array/oracle/orahome/10.1.0/lib//libclntsh.so: wrong ELF
class: ELFCLASS64
ld: fatal: File processing errors. No output written to
blib/arch/auto/DBD/Oracle/Oracle.so
collect2: ld returned 1 exit status
gcc: file path prefix `/usr/ccs/bin/' never used
*** Error code 1
make: Fatal error: Command failed for target
`blib/arch/auto/DBD/Oracle/Oracle.so'
bash-2.03# make install
rm -f blib/arch/auto/DBD/Oracle/Oracle.so
LD_RUN_PATH="/array/oracle/orahome/10.1.0/lib32:/array/oracle/orahome/10.1.0/rdbms/lib32"
gcc -B/usr/ccs/bin/ -G -L/usr/local/lib Oracle.o dbdimp.o oci8.o
-xarch=v9 -L/array/oracle/orahome/10.1.0/lib/
-L/array/oracle/orahome/10.1.0/rdbms/lib/ -lclntsh `cat
/array/oracle/orahome/10.1.0/lib/sysliblist`
-R/array/oracle/orahome/10.1.0/lib -laio -lposix4 -lkstat -lm -lthread
-o blib/arch/auto/DBD/Oracle/Oracle.so
ld: fatal: file /array/oracle/orahome/10.1.0/lib//libclntsh.so: wrong ELF
class: ELFCLASS64
ld: fatal: File processing errors. No output written to
blib/arch/auto/DBD/Oracle/Oracle.so
collect2: ld returned 1 exit status
gcc: file path prefix `/usr/ccs/bin/' never used
*** Error code 1
make: Fatal error: Command failed for target
`blib/arch/auto/DBD/Oracle/Oracle.so'
bash-2.03#
--
Kirt "Loki" Dankmyer -- http://ivanhoeunbound.com -- xiomBRAG on AIM
cats * hats * RPGs * love * Eris * Agent Patriot * anime * Dada * poetry
"Only ONE MAN can kill this many Russians. Bring his guitar to me!" -Death
------------------------------
Date: Tue, 15 Nov 2005 23:12:52 +0100
From: Mark Clements <mark.clementsREMOVETHIS@wanadoo.fr>
Subject: Re: problems with Oracle DBD
Message-Id: <437a5d67$0$19723$8fcfb975@news.wanadoo.fr>
Kirt Loki Dankmyer wrote:
> Okay, bear with me here. This is a long story, but I want to give all the
> details.
>
> I administrate a Solaris 8 box which is used for a large Oracle database.
> We've updated from Oracle 8i to Oracle 10g.
>
> There are some perl scripts that the main users of the database use, which
> use DBI. When they try to run them, they get errors like this:
>
<snip>
> Well, I'd used a precompiled version of perl. I downloaded the source for
> perl 5.8.7 and tried compiling it... But after six attempts, I gave it. It
> had problems with dynamic loading, it had problems with B, you name it, it
> had problems. I couldn't get it to compile.
>
> At this point, suggestions on how to proceed are welcome. Below is a
> transcript of my last attempt to install DBD-Oracle-1.16 using the perl
> 5.8.5 package I got from sunfreeware.com ...
<snip>
> gcc -B/usr/ccs/bin/ -G -L/usr/local/lib Oracle.o dbdimp.o oci8.o
> -xarch=v9 -L/array/oracle/orahome/10.1.0/lib/
> -L/array/oracle/orahome/10.1.0/rdbms/lib/ -lclntsh `cat
> /array/oracle/orahome/10.1.0/lib/sysliblist`
> -R/array/oracle/orahome/10.1.0/lib -laio -lposix4 -lkstat -lm -lthread
> -o blib/arch/auto/DBD/Oracle/Oracle.so
> ld: fatal: file /array/oracle/orahome/10.1.0/lib//libclntsh.so: wrong ELF
> class: ELFCLASS64
I don't have access to a Solaris box to check this on, but I would guess
that you are trying to link against 64-bit Oracle libraries when you
have compiled DBD::Oracle as 32-bit. You could try convincing gcc to
compile 64-bit binaries (flag is -m64), or linking against 32-bit
libraries instead. Googling for "solaris wrong elfclass ELFCLASS64" may
give you some more pointers.
Mark
------------------------------
Date: Tue, 15 Nov 2005 23:23:58 +0100
From: Mark Clements <mark.clementsREMOVETHIS@wanadoo.fr>
Subject: Re: problems with Oracle DBD
Message-Id: <437a6001$0$19722$8fcfb975@news.wanadoo.fr>
Mark Clements wrote:
> Kirt Loki Dankmyer wrote:
>> Okay, bear with me here. This is a long story, but I want to give all
>> the details.
>>
>> I administrate a Solaris 8 box which is used for a large Oracle
>> database. We've updated from Oracle 8i to Oracle 10g.
>>
>> There are some perl scripts that the main users of the database use,
>> which use DBI. When they try to run them, they get errors like this:
>>
>
> <snip>
>> Well, I'd used a precompiled version of perl. I downloaded the source
>> for perl 5.8.7 and tried compiling it... But after six attempts, I
>> gave it. It had problems with dynamic loading, it had problems with B,
>> you name it, it had problems. I couldn't get it to compile.
>>
>> At this point, suggestions on how to proceed are welcome. Below is a
>> transcript of my last attempt to install DBD-Oracle-1.16 using the
>> perl 5.8.5 package I got from sunfreeware.com ...
>
> <snip>
>
>> gcc -B/usr/ccs/bin/ -G -L/usr/local/lib Oracle.o dbdimp.o oci8.o
>> -xarch=v9 -L/array/oracle/orahome/10.1.0/lib/
>> -L/array/oracle/orahome/10.1.0/rdbms/lib/ -lclntsh `cat
>> /array/oracle/orahome/10.1.0/lib/sysliblist`
>> -R/array/oracle/orahome/10.1.0/lib -laio -lposix4 -lkstat -lm
>> -lthread -o blib/arch/auto/DBD/Oracle/Oracle.so ld: fatal: file
>> /array/oracle/orahome/10.1.0/lib//libclntsh.so: wrong ELF class:
>> ELFCLASS64
>
> I don't have access to a Solaris box to check this on, but I would guess
> that you are trying to link against 64-bit Oracle libraries when you
> have compiled DBD::Oracle as 32-bit. You could try convincing gcc to
> compile 64-bit binaries (flag is -m64), or linking against 32-bit
> libraries instead. Googling for "solaris wrong elfclass ELFCLASS64" may
> give you some more pointers.
come to think of it, I suspect that compiling DBD::Oracle as 64-bit
probably isn't going to help much if your perl is 32-bit. Not having a
Solaris box to hand, I can't confirm this and so am loathe to risk
giving you more misinformation. Sorry about that.
Mark
------------------------------
Date: 15 Nov 2005 22:12:38 GMT
From: Abigail <abigail@abigail.nl>
Subject: Re: regexp that matches half then conditionally excludes the other half
Message-Id: <slrndnknam.cvd.abigail@alexandra.abigail.nl>
Mike Ballard (dont_w@nt_spam.org) wrote on MMMMCDLIX September MCMXCIII
in <URL:news:m23bly7gi9.fsf@west_f1.net>:
%%
%% I have to search for string pairs such as "Kc Qd" and "Qh Ks" and am
%% having a problem figuring out a regexp that will exclude (for example):
%%
%% "Kd Qd"
%% "Kd Kc"
%% "Qd Qh"
%% "Qh Kh"
%%
%% IOW, both uppercase letters in each pair must be unique (discard "Kx Kx",
%% "Qx Qx") and the lowercase letters for each pair must be unique (discard
%% "Ks Qs", "Qc Kc", etc.). The range of lowercase letters is "cdhs".
%%
%% So if the first part of a pair is "Kh" and the second part is "Kx" or
%% "Qh", the whole thing needs to be skipped and I move on to the next one.
%%
%% Can someone tell me how to do this (it's in a perl script btw)?
There are several ways. One that hasn't been mentioned:
/([A-Z])([a-z]) \s+ ([A-Z])([a-z]) (?(?{($1 eq $3) || ($2 eq $4)})(?!))/x
Abigail
--
# Count the number of lines; code doesn't match \w. Linux specific.
()=<>;$!=$=;($:,$,,$;,$")=$!=~/.(.)..(.)(.)..(.)/;
$;++;$*++;$;++;$*++;$;++;`$:$,$;$" $. >&$*`;
------------------------------
Date: 6 Apr 2001 21:33:47 GMT (Last modified)
From: Perl-Users-Request@ruby.oce.orst.edu (Perl-Users-Digest Admin)
Subject: Digest Administrivia (Last modified: 6 Apr 01)
Message-Id: <null>
Administrivia:
#The Perl-Users Digest is a retransmission of the USENET newsgroup
#comp.lang.perl.misc. For subscription or unsubscription requests, send
#the single line:
#
# subscribe perl-users
#or:
# unsubscribe perl-users
#
#to almanac@ruby.oce.orst.edu.
NOTE: due to the current flood of worm email banging on ruby, the smtp
server on ruby has been shut off until further notice.
To submit articles to comp.lang.perl.announce, send your article to
clpa@perl.com.
#To request back copies (available for a week or so), send your request
#to almanac@ruby.oce.orst.edu with the command "send perl-users x.y",
#where x is the volume number and y is the issue number.
#For other requests pertaining to the digest, send mail to
#perl-users-request@ruby.oce.orst.edu. Do not waste your time or mine
#sending perl questions to the -request address, I don't have time to
#answer them even if I did know the answer.
------------------------------
End of Perl-Users Digest V10 Issue 8669
***************************************