Thread: dbmirror
Hi, I have been playing around with contrib/dbmirror with RC2 and faced with following errors: perl DBMirror.pl slaveDatabase.conf Global symbol "$setResult" requires explicit package name at DBMirror.pl line 131. Global symbol "$setResult" requires explicit package name at DBMirror.pl line 132. Global symbol "$setResult2" requires explicit package name at DBMirror.pl line 140. Global symbol "$setResult2" requires explicit package name at DBMirror.pl line 141. Execution of DBMirror.pl aborted due to compilation errors. This Linux and perl 5.6.1. -- Tatsuo Ishii
Yes, I get the same failure. with perl 5.005_03. Steven, can you comment on this? --------------------------------------------------------------------------- Tatsuo Ishii wrote: > Hi, I have been playing around with contrib/dbmirror with RC2 and > faced with following errors: > > perl DBMirror.pl slaveDatabase.conf > Global symbol "$setResult" requires explicit package name at DBMirror.pl line 131. > Global symbol "$setResult" requires explicit package name at DBMirror.pl line 132. > Global symbol "$setResult2" requires explicit package name at DBMirror.pl line 140. > Global symbol "$setResult2" requires explicit package name at DBMirror.pl line 141. > Execution of DBMirror.pl aborted due to compilation errors. > > This Linux and perl 5.6.1. > -- > Tatsuo Ishii > > ---------------------------(end of broadcast)--------------------------- > TIP 4: Don't 'kill -9' the postmaster > -- Bruce Momjian | http://candle.pha.pa.us pgman@candle.pha.pa.us | (610) 359-1001+ If your life is a hard drive, | 13 Roberts Road + Christ can be your backup. | Newtown Square, Pennsylvania19073
On Thu, 5 Dec 2002, Bruce Momjian wrote: It looks like the problem was introduced when the "SET autocommit" and "SET search_path" commands were added to the beginning of the script. The attatched patch should fix the problem. It probably should be applied against the 7.3 and 7.4 branches. > > Yes, I get the same failure. with perl 5.005_03. Steven, can you > comment on this? > > --------------------------------------------------------------------------- > > Tatsuo Ishii wrote: > > Hi, I have been playing around with contrib/dbmirror with RC2 and > > faced with following errors: > > > > perl DBMirror.pl slaveDatabase.conf > > Global symbol "$setResult" requires explicit package name at DBMirror.pl line 131. > > Global symbol "$setResult" requires explicit package name at DBMirror.pl line 132. > > Global symbol "$setResult2" requires explicit package name at DBMirror.pl line 140. > > Global symbol "$setResult2" requires explicit package name at DBMirror.pl line 141. > > Execution of DBMirror.pl aborted due to compilation errors. > > > > This Linux and perl 5.6.1. > > -- > > Tatsuo Ishii > > > > ---------------------------(end of broadcast)--------------------------- > > TIP 4: Don't 'kill -9' the postmaster > > > > -- Steven Singer ssinger@navtechinc.com Aircraft Performance Systems Phone: 519-747-1170 ext 282 Navtech Systems Support Inc. AFTN: CYYZXNSX SITA: YYZNSCR Waterloo, Ontario ARINC: YKFNSCR
Thanks. Applied to 7.3 and CVS HEAD. It was me who added those commands to set the envirnment, and I didn't realize it was the first use of those variables, hence the need for 'my'. Thanks. Fix will be in 7.3.1. --------------------------------------------------------------------------- Steven Singer wrote: > On Thu, 5 Dec 2002, Bruce Momjian wrote: > > It looks like the problem was introduced when the "SET autocommit" > and "SET search_path" commands were added to the beginning of the script. > > The attatched patch should fix the problem. It probably should be applied > against the 7.3 and 7.4 branches. > > > > > > > Yes, I get the same failure. with perl 5.005_03. Steven, can you > > comment on this? > > > > --------------------------------------------------------------------------- > > > > Tatsuo Ishii wrote: > > > Hi, I have been playing around with contrib/dbmirror with RC2 and > > > faced with following errors: > > > > > > perl DBMirror.pl slaveDatabase.conf > > > Global symbol "$setResult" requires explicit package name at DBMirror.pl line 131. > > > Global symbol "$setResult" requires explicit package name at DBMirror.pl line 132. > > > Global symbol "$setResult2" requires explicit package name at DBMirror.pl line 140. > > > Global symbol "$setResult2" requires explicit package name at DBMirror.pl line 141. > > > Execution of DBMirror.pl aborted due to compilation errors. > > > > > > This Linux and perl 5.6.1. > > > -- > > > Tatsuo Ishii > > > > > > ---------------------------(end of broadcast)--------------------------- > > > TIP 4: Don't 'kill -9' the postmaster > > > > > > > > > -- > Steven Singer ssinger@navtechinc.com > Aircraft Performance Systems Phone: 519-747-1170 ext 282 > Navtech Systems Support Inc. AFTN: CYYZXNSX SITA: YYZNSCR > Waterloo, Ontario ARINC: YKFNSCR Content-Description: [ Attachment, skipping... ] -- Bruce Momjian | http://candle.pha.pa.us pgman@candle.pha.pa.us | (610) 359-1001+ If your life is a hard drive, | 13 Roberts Road + Christ can be your backup. | Newtown Square, Pennsylvania19073