RE: What does this error message mean (db-library)?
"Wechsler, Steven" <[email protected]> Mon, 6 Apr 2009 09:51:27 -0400
| Newsgroups | gmane.comp.lang.perl.modules.dbi.sybase |
|---|---|
| Message-ID | <9BFA664319211B4780C5F8A4FB060FF50410925E@LAZYTOWN.mtvn.ad.viacom.com> |
This is a multi-part message in MIME format. ------_=_NextPart_001_01C9B6BE.C850C86E Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable For what it's worth: =20 We ended up rewriting it in DBI, which works fine. =20 However, in testing, I noted that DBLibrary scripts have the same problem with certain linux logins, even without using Sudo, and even if I set all environment variables the same for the non-working logins as the working logins have. =20 Any ideas? =20 Steve ________________________________ From: Michael Peppler [mailto:[email protected]]=20 Sent: Sunday, April 05, 2009 8:16 AM To: Michael Peppler Cc: Wechsler, Steven; [email protected] Subject: Re: What does this error message mean (db-library)? Actually, now that I think about this - it may be that DBlib.so is linked with the kerberos library (libskrb.so, or something like that) in the Sybase libs. Some versions of sybperl always included this file in the link line, but it's only needed for the Ctlib side, and even there it should normally get loaded dynamically at run-time.=20 Michael On Apr 5, 2009, at 2:03 PM, Michael Peppler wrote: Try using sudo -u -H=20 I'm guessing you're getting a different version of glibc under the sudo environment for some reason, or maybe there is something like SElinux that is playing games... Michael On Mar 31, 2009, at 10:02 PM, Wechsler, Steven wrote: This script runs fine when I run it as my own ID or as the Sybase user, but when I run it as a different user, using sudo -u sybase, I get this error: /usr/bin/perl: relocation error: /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi/auto/Sybase/DBlib /DBlib.so: symbol dbopen, version FLSSL_1 not defined in file libsybdb.so with link time reference Return from switch_default_db.pl was 32512 I have never seen this particular error before, and neither has Google, apparently (except for one non-English article). Thanks,=20 Steve=20 ------_=_NextPart_001_01C9B6BE.C850C86E Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META content=3D"text/html; charset=3Dus-ascii" = http-equiv=3DContent-Type> <META name=3DGENERATOR content=3D"MSHTML 8.00.6001.18241"></HEAD> <BODY=20 style=3D"WORD-WRAP: break-word; -webkit-nbsp-mode: space; = -webkit-line-break: after-white-space"> <DIV dir=3Dltr align=3Dleft><FONT color=3D#0000ff size=3D2 = face=3DArial><SPAN=20 class=3D977254913-06042009>For what it's worth:</SPAN></FONT></DIV> <DIV dir=3Dltr align=3Dleft><FONT color=3D#0000ff size=3D2 = face=3DArial><SPAN=20 class=3D977254913-06042009></SPAN></FONT> </DIV> <DIV dir=3Dltr align=3Dleft><FONT color=3D#0000ff size=3D2 = face=3DArial><SPAN=20 class=3D977254913-06042009>We ended up rewriting it in DBI, which = works=20 fine.</SPAN></FONT></DIV> <DIV dir=3Dltr align=3Dleft><FONT color=3D#0000ff size=3D2 = face=3DArial><SPAN=20 class=3D977254913-06042009></SPAN></FONT> </DIV> <DIV dir=3Dltr align=3Dleft><FONT color=3D#0000ff size=3D2 = face=3DArial><SPAN=20 class=3D977254913-06042009>However, in testing, I noted that DBLibrary = scripts=20 have the same problem with certain linux logins, even without using = Sudo, and=20 even if I set all environment variables the same for the non-working = logins as=20 the working logins have.</SPAN></FONT></DIV> <DIV dir=3Dltr align=3Dleft><FONT color=3D#0000ff size=3D2 = face=3DArial><SPAN=20 class=3D977254913-06042009></SPAN></FONT> </DIV> <DIV dir=3Dltr align=3Dleft><FONT color=3D#0000ff size=3D2 = face=3DArial><SPAN=20 class=3D977254913-06042009>Any ideas?</SPAN></FONT></DIV> <DIV dir=3Dltr align=3Dleft><FONT color=3D#0000ff size=3D2 = face=3DArial><SPAN=20 class=3D977254913-06042009></SPAN></FONT> </DIV> <DIV dir=3Dltr align=3Dleft><FONT color=3D#0000ff size=3D2 = face=3DArial><SPAN=20 class=3D977254913-06042009>Steve</SPAN></FONT></DIV><BR> <DIV dir=3Dltr lang=3Den-us class=3DOutlookMessageHeader align=3Dleft> <HR tabIndex=3D-1> <FONT size=3D2 face=3DTahoma><B>From:</B> Michael Peppler=20 [mailto:[email protected]] <BR><B>Sent:</B> Sunday, April 05, 2009 = 8:16=20 AM<BR><B>To:</B> Michael Peppler<BR><B>Cc:</B> Wechsler, Steven;=20 [email protected]<BR><B>Subject:</B> Re: What does this error = message mean=20 (db-library)?<BR></FONT><BR></DIV> <DIV></DIV>Actually, now that I think about this - it may be that = DBlib.so is=20 linked with the kerberos library (libskrb.so, or something like that) in = the=20 Sybase libs. Some versions of sybperl always included this file in the = link=20 line, but it's only needed for the Ctlib side, and even there it should = normally=20 get loaded dynamically at run-time. <DIV><BR></DIV> <DIV>Michael</DIV> <DIV><BR></DIV> <DIV><BR> <DIV> <DIV>On Apr 5, 2009, at 2:03 PM, Michael Peppler wrote:</DIV><BR=20 class=3DApple-interchange-newline> <BLOCKQUOTE type=3D"cite"> <DIV=20 style=3D"WORD-WRAP: break-word; -webkit-nbsp-mode: space; = -webkit-line-break: after-white-space">Try=20 using sudo -u -H <DIV><BR></DIV> <DIV>I'm guessing you're getting a different version of glibc under = the sudo=20 environment for some reason, or maybe there is something like SElinux = that is=20 playing games...</DIV> <DIV><BR></DIV> <DIV>Michael</DIV> <DIV><BR></DIV> <DIV><BR> <DIV> <DIV>On Mar 31, 2009, at 10:02 PM, Wechsler, Steven wrote:</DIV><BR=20 class=3DApple-interchange-newline> <BLOCKQUOTE type=3D"cite"> <DIV><!-- Converted from text/rtf format --> <P><FONT size=3D2 face=3DArial>This script runs fine when I run it = as my own ID=20 or as the Sybase user, but when I run it as a different user, using = sudo -u=20 sybase, I get this error:</FONT></P> <P><FONT size=3D2 face=3DArial>/usr/bin/perl: relocation error:=20 = /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi/auto/Sybase/DBlib/= DBlib.so:=20 symbol dbopen, version FLSSL_1 not defined in file libsybdb.so with = link=20 time reference Return from switch_default_db.pl was 32512</FONT></P> <P><FONT size=3D2 face=3DArial>I have never seen this particular = error before,=20 and neither has Google, apparently (except for one non-English=20 article).</FONT></P> <P><FONT size=3D2 face=3DArial>Thanks,</FONT> </P> <P><FONT size=3D2 face=3DArial>Steve</FONT>=20 = </P></DIV></BLOCKQUOTE></DIV></DIV></DIV></BLOCKQUOTE></DIV></DIV></BODY>= </HTML> ------_=_NextPart_001_01C9B6BE.C850C86E--