Discussion:
Replication failing to start
(too old to reply)
Guto
2009-09-08 17:19:32 UTC
Permalink
Hey Guys and Gals,

mars:/sybase/sybase_125/REP-12_5 > /sybase/sybase_125/REP-12_5/
RUN_MARSTESTPRS1
ld.so.1: repserver: fatal: relocation error: file /sybase/sybase_125/
OCS-12_5/lib/libsrv_r.so: symbol syb_net_property: referenced symbol
not found

Solaris 8
Sybase 12.5.4
Replication 12.5

here's more details:
mars
-rwxr-xr-x 1 root bin 920500 Feb 18 2008 /usr/lib/
libnsl.so.1
-rwxr-xr-x 1 root bin 46932 May 2 2003 /usr/lib/
libaio.so.1
-rwxr-xr-x 1 root bin 183560 Feb 18 2008 /usr/lib/
libthread.so.1
-rwxr-xr-x 1 root bin 5480 Aug 24 2007 /usr/lib/
libdl.so.1
-rwxr-xr-x 1 root bin 1157932 Feb 18 2008 /usr/lib/libc.so.
1
-rwxr-xr-x 1 sybase sybase 1275876 Sep 13 2003 /sybase/
sybase_125/OCS-12_5/lib/libsrv_r.so
-rwxr-xr-x 1 sybase sybase 1116504 Jan 13 2006 /sybase/
sybase_125/OCS-12_5/lib/libct_r.so
-rwxr-xr-x 1 sybase sybase 132048 Jan 13 2006 /sybase/
sybase_125/OCS-12_5/lib/libcs_r.so
-rwxr-xr-x 1 sybase sybase 588124 Jan 13 2006 /sybase/
sybase_125/OCS-12_5/lib/libtcl_r.so
-rwxr-xr-x 1 sybase sybase 819744 Jan 13 2006 /sybase/
sybase_125/OCS-12_5/lib/libcomn_r.so
-rwxr-xr-x 1 sybase sybase 110816 Jan 13 2006 /sybase/
sybase_125/OCS-12_5/lib/libintl_r.so
-rwxr-xr-x 1 root bin 70864 Sep 10 2002 /usr/lib/
libsocket.so.1
-rwxr-xr-x 1 root bin 24968 Jan 5 2000 /usr/lib/
libmp.so.2
-rwxr-xr-x 1 root bin 38904 Feb 18 2008 /usr/lib/
libpthread.so.1
lrwxrwxrwx 1 root root 29 Nov 15 2007 /usr/platform/
SUNW,Ultra-Enterprise/lib/libc_psr.so.1 -> ../../sun4u/lib/libc_psr.so.
1
-rwxr-xr-x 1 sybase sybase 1275876 Sep 13 2003 /sybase/
sybase_125/OCS-12_5/lib/libsrv_r.so

mars:/sybase > ls -atlr /sybase/sybase_125/OCS-12_5/lib/libsrv_r.so
-rwxr-xr-x 1 sybase sybase 1275876 Sep 13 2003 /sybase/
sybase_125/OCS-12_5/lib/libsrv_r.so
mars:/sybase > file /sybase/sybase_125/OCS-12_5/lib/libsrv_r.so
/sybase/sybase_125/OCS-12_5/lib/libsrv_r.so: ELF 32-bit MSB dynamic
lib SPARC Version 1, dynamically linked, not stripped


Thanks
Guto.
Guto
2009-09-14 13:43:21 UTC
Permalink
Post by Guto
Hey Guys and Gals,
mars:/sybase/sybase_125/REP-12_5 >   /sybase/sybase_125/REP-12_5/
RUN_MARSTESTPRS1
ld.so.1: repserver: fatal: relocation error: file /sybase/sybase_125/
OCS-12_5/lib/libsrv_r.so: symbol syb_net_property: referenced symbol
not found
Solaris 8
Sybase 12.5.4
Replication 12.5
mars
-rwxr-xr-x   1 root     bin       920500 Feb 18  2008 /usr/lib/
libnsl.so.1
-rwxr-xr-x   1 root     bin        46932 May  2  2003 /usr/lib/
libaio.so.1
-rwxr-xr-x   1 root     bin       183560 Feb 18  2008 /usr/lib/
libthread.so.1
-rwxr-xr-x   1 root     bin         5480 Aug 24  2007 /usr/lib/
libdl.so.1
-rwxr-xr-x   1 root     bin      1157932 Feb 18  2008 /usr/lib/libc.so.
1
-rwxr-xr-x   1 sybase   sybase   1275876 Sep 13  2003 /sybase/
sybase_125/OCS-12_5/lib/libsrv_r.so
-rwxr-xr-x   1 sybase   sybase   1116504 Jan 13  2006 /sybase/
sybase_125/OCS-12_5/lib/libct_r.so
-rwxr-xr-x   1 sybase   sybase    132048 Jan 13  2006 /sybase/
sybase_125/OCS-12_5/lib/libcs_r.so
-rwxr-xr-x   1 sybase   sybase    588124 Jan 13  2006 /sybase/
sybase_125/OCS-12_5/lib/libtcl_r.so
-rwxr-xr-x   1 sybase   sybase    819744 Jan 13  2006 /sybase/
sybase_125/OCS-12_5/lib/libcomn_r.so
-rwxr-xr-x   1 sybase   sybase    110816 Jan 13  2006 /sybase/
sybase_125/OCS-12_5/lib/libintl_r.so
-rwxr-xr-x   1 root     bin        70864 Sep 10  2002 /usr/lib/
libsocket.so.1
-rwxr-xr-x   1 root     bin        24968 Jan  5  2000 /usr/lib/
libmp.so.2
-rwxr-xr-x   1 root     bin        38904 Feb 18  2008 /usr/lib/
libpthread.so.1
lrwxrwxrwx   1 root     root          29 Nov 15  2007 /usr/platform/
SUNW,Ultra-Enterprise/lib/libc_psr.so.1 -> ../../sun4u/lib/libc_psr.so.
1
-rwxr-xr-x   1 sybase   sybase   1275876 Sep 13  2003 /sybase/
sybase_125/OCS-12_5/lib/libsrv_r.so
mars:/sybase > ls -atlr /sybase/sybase_125/OCS-12_5/lib/libsrv_r.so
-rwxr-xr-x   1 sybase   sybase   1275876 Sep 13  2003 /sybase/
sybase_125/OCS-12_5/lib/libsrv_r.so
mars:/sybase > file /sybase/sybase_125/OCS-12_5/lib/libsrv_r.so
/sybase/sybase_125/OCS-12_5/lib/libsrv_r.so:    ELF 32-bit MSB dynamic
lib SPARC Version 1, dynamically linked, not stripped
Thanks
Guto.
Hi guys and gals,

I have the replication running on venus, so I copied the whole $SYBASE
dir to mars
and started the database, and I was able to run the rs_init creating
the DRS and the PRS sucessfully
but at a start time rs_init isn't able to bring the PRS up.
So manually I tried to run the RUN file and I'm having this error:

ld.so.1: repserver: fatal: relocation error: file /sybase/sybase_125/
OCS-12_5/lib/libsrv_r.so: symbol syb_net_property: referenced symbol
not found

Then I have updated the machine's patch level, but I'm still facing
the error..

venus:/sybase_125 > uname -a
SunOS venus 5.8 Generic_117350-47 sun4u sparc SUNW,Ultra-Enterprise

mars:/sybase > uname -a
SunOS mars 5.8 Generic_117350-62 sun4u sparc SUNW,Ultra-Enterprise



Any tips?
Thanks!
Keith
2009-09-15 13:24:07 UTC
Permalink
Post by Guto
Hey Guys and Gals,
mars:/sybase/sybase_125/REP-12_5 >   /sybase/sybase_125/REP-12_5/
RUN_MARSTESTPRS1
ld.so.1: repserver: fatal: relocation error: file /sybase/sybase_125/
OCS-12_5/lib/libsrv_r.so: symbol syb_net_property: referenced symbol
not found
Solaris 8
Sybase 12.5.4
Replication 12.5
mars
-rwxr-xr-x   1 root     bin       920500 Feb 18  2008 /usr/lib/
libnsl.so.1
-rwxr-xr-x   1 root     bin        46932 May  2  2003 /usr/lib/
libaio.so.1
-rwxr-xr-x   1 root     bin       183560 Feb 18  2008 /usr/lib/
libthread.so.1
-rwxr-xr-x   1 root     bin         5480 Aug 24  2007 /usr/lib/
libdl.so.1
-rwxr-xr-x   1 root     bin      1157932 Feb 18  2008 /usr/lib/libc.so.
1
-rwxr-xr-x   1 sybase   sybase   1275876 Sep 13  2003 /sybase/
sybase_125/OCS-12_5/lib/libsrv_r.so
-rwxr-xr-x   1 sybase   sybase   1116504 Jan 13  2006 /sybase/
sybase_125/OCS-12_5/lib/libct_r.so
-rwxr-xr-x   1 sybase   sybase    132048 Jan 13  2006 /sybase/
sybase_125/OCS-12_5/lib/libcs_r.so
-rwxr-xr-x   1 sybase   sybase    588124 Jan 13  2006 /sybase/
sybase_125/OCS-12_5/lib/libtcl_r.so
-rwxr-xr-x   1 sybase   sybase    819744 Jan 13  2006 /sybase/
sybase_125/OCS-12_5/lib/libcomn_r.so
-rwxr-xr-x   1 sybase   sybase    110816 Jan 13  2006 /sybase/
sybase_125/OCS-12_5/lib/libintl_r.so
-rwxr-xr-x   1 root     bin        70864 Sep 10  2002 /usr/lib/
libsocket.so.1
-rwxr-xr-x   1 root     bin        24968 Jan  5  2000 /usr/lib/
libmp.so.2
-rwxr-xr-x   1 root     bin        38904 Feb 18  2008 /usr/lib/
libpthread.so.1
lrwxrwxrwx   1 root     root          29 Nov 15  2007 /usr/platform/
SUNW,Ultra-Enterprise/lib/libc_psr.so.1 -> ../../sun4u/lib/libc_psr.so.
1
-rwxr-xr-x   1 sybase   sybase   1275876 Sep 13  2003 /sybase/
sybase_125/OCS-12_5/lib/libsrv_r.so
mars:/sybase > ls -atlr /sybase/sybase_125/OCS-12_5/lib/libsrv_r.so
-rwxr-xr-x   1 sybase   sybase   1275876 Sep 13  2003 /sybase/
sybase_125/OCS-12_5/lib/libsrv_r.so
mars:/sybase > file /sybase/sybase_125/OCS-12_5/lib/libsrv_r.so
/sybase/sybase_125/OCS-12_5/lib/libsrv_r.so:    ELF 32-bit MSB dynamic
lib SPARC Version 1, dynamically linked, not stripped
Thanks
Guto.
Is your environment the same? ($LD_LIBRARY_PATH, etc.?) I would do
something like:

env | sort > /tmp/env.`hostname

on both boxes and diff them.
Guto
2009-09-15 14:16:38 UTC
Permalink
Post by Guto
Hey Guys and Gals,
mars:/sybase/sybase_125/REP-12_5 >   /sybase/sybase_125/REP-12_5/
RUN_MARSTESTPRS1
ld.so.1: repserver: fatal: relocation error: file /sybase/sybase_125/
OCS-12_5/lib/libsrv_r.so: symbol syb_net_property: referenced symbol
not found
Solaris 8
Sybase 12.5.4
Replication 12.5
mars
-rwxr-xr-x   1 root     bin       920500 Feb 18  2008 /usr/lib/
libnsl.so.1
-rwxr-xr-x   1 root     bin        46932 May  2  2003 /usr/lib/
libaio.so.1
-rwxr-xr-x   1 root     bin       183560 Feb 18  2008 /usr/lib/
libthread.so.1
-rwxr-xr-x   1 root     bin         5480 Aug 24  2007 /usr/lib/
libdl.so.1
-rwxr-xr-x   1 root     bin      1157932 Feb 18  2008 /usr/lib/libc.so.
1
-rwxr-xr-x   1 sybase   sybase   1275876 Sep 13  2003 /sybase/
sybase_125/OCS-12_5/lib/libsrv_r.so
-rwxr-xr-x   1 sybase   sybase   1116504 Jan 13  2006 /sybase/
sybase_125/OCS-12_5/lib/libct_r.so
-rwxr-xr-x   1 sybase   sybase    132048 Jan 13  2006 /sybase/
sybase_125/OCS-12_5/lib/libcs_r.so
-rwxr-xr-x   1 sybase   sybase    588124 Jan 13  2006 /sybase/
sybase_125/OCS-12_5/lib/libtcl_r.so
-rwxr-xr-x   1 sybase   sybase    819744 Jan 13  2006 /sybase/
sybase_125/OCS-12_5/lib/libcomn_r.so
-rwxr-xr-x   1 sybase   sybase    110816 Jan 13  2006 /sybase/
sybase_125/OCS-12_5/lib/libintl_r.so
-rwxr-xr-x   1 root     bin        70864 Sep 10  2002 /usr/lib/
libsocket.so.1
-rwxr-xr-x   1 root     bin        24968 Jan  5  2000 /usr/lib/
libmp.so.2
-rwxr-xr-x   1 root     bin        38904 Feb 18  2008 /usr/lib/
libpthread.so.1
lrwxrwxrwx   1 root     root          29 Nov 15  2007 /usr/platform/
SUNW,Ultra-Enterprise/lib/libc_psr.so.1 -> ../../sun4u/lib/libc_psr.so.
1
-rwxr-xr-x   1 sybase   sybase   1275876 Sep 13  2003 /sybase/
sybase_125/OCS-12_5/lib/libsrv_r.so
mars:/sybase > ls -atlr /sybase/sybase_125/OCS-12_5/lib/libsrv_r.so
-rwxr-xr-x   1 sybase   sybase   1275876 Sep 13  2003 /sybase/
sybase_125/OCS-12_5/lib/libsrv_r.so
mars:/sybase > file /sybase/sybase_125/OCS-12_5/lib/libsrv_r.so
/sybase/sybase_125/OCS-12_5/lib/libsrv_r.so:    ELF 32-bit MSB dynamic
lib SPARC Version 1, dynamically linked, not stripped
Thanks
Guto.
Is your environment the same?  ($LD_LIBRARY_PATH, etc.?)  I would do
env | sort > /tmp/env.`hostname
on both boxes and diff them.
Hi Keith!
They differ on the $SYBASE
one is /sybase_125 the other one is /sybase/sybase_125:
04/Sep
mars:
LD_LIBRARY_PATH=/sybase/sybase_125/OCS-12_5/lib:/sybase/sybase_125/
OCS-12_5/lib3p:/sybase/sybase_125/ASE-12_5/lib:
LD_LIBRARY_PATH_64=/sybase/sybase_125/OCS-12_5/lib:/sybase/sybase_125/
OCS-12_5/lib3p64:
venus
LD_LIBRARY_PATH=/sybase_125/OCS-12_5/lib:/sybase_125/OCS-12_5/lib3p:/
sybase_125/ASE-12_5/lib:
LD_LIBRARY_PATH_64=/sybase_125/OCS-12_5/lib:/sybase_125/OCS-12_5/
lib3p64:
SybaseNeal
2009-10-16 17:05:48 UTC
Permalink
Hello,

This error indicates you have different versions of the Open Server
library.

On the server where you were able to start Rep Server do the
following:

Get the PID of the repserver:
ps -ef | grep repserver

Find which Open Server library it loaded:
pldd <PID> | grep libsrv_r

Check the version string of this Open Server library:
strings -a /sybase_125/OCS-12_5/lib/lisbsrv_r.so | grep Sybase

On the server where it is failing to start use the "ldd" command to
find out which Open Server it is loading:
(make sure your LD_LIBRARY_PATH is the same as in the RUN_repserver
file)...
% ldd repserver | grep libsrv_r
libsrv_r.so => /remote/releases/solaris/rel125_rs/OCS-12_5/
lib/libsrv_r.so

Check it's version:
% strings -a /remote/releases/solaris/rel125_rs/OCS-12_5/lib/
libsrv_r.so | grep Sybase
Sybase Server-Library/12.5/P-EBF10072-10071/DRV.12.5.0.1/SPARC/Solaris
2.8 Native Threads/BUILD125-012/OPT/Wed Feb 27 13:54:29 2002

If they aren't of the same version, date, etc. you need to sync them
up properly.

Keith
2009-09-16 12:15:27 UTC
Permalink
Post by Guto
Hey Guys and Gals,
mars:/sybase/sybase_125/REP-12_5 >   /sybase/sybase_125/REP-12_5/
RUN_MARSTESTPRS1
ld.so.1: repserver: fatal: relocation error: file /sybase/sybase_125/
OCS-12_5/lib/libsrv_r.so: symbol syb_net_property: referenced symbol
not found
Solaris 8
Sybase 12.5.4
Replication 12.5
mars
-rwxr-xr-x   1 root     bin       920500 Feb 18  2008 /usr/lib/
libnsl.so.1
-rwxr-xr-x   1 root     bin        46932 May  2  2003 /usr/lib/
libaio.so.1
-rwxr-xr-x   1 root     bin       183560 Feb 18  2008 /usr/lib/
libthread.so.1
-rwxr-xr-x   1 root     bin         5480 Aug 24  2007 /usr/lib/
libdl.so.1
-rwxr-xr-x   1 root     bin      1157932 Feb 18  2008 /usr/lib/libc.so.
1
-rwxr-xr-x   1 sybase   sybase   1275876 Sep 13  2003 /sybase/
sybase_125/OCS-12_5/lib/libsrv_r.so
-rwxr-xr-x   1 sybase   sybase   1116504 Jan 13  2006 /sybase/
sybase_125/OCS-12_5/lib/libct_r.so
-rwxr-xr-x   1 sybase   sybase    132048 Jan 13  2006 /sybase/
sybase_125/OCS-12_5/lib/libcs_r.so
-rwxr-xr-x   1 sybase   sybase    588124 Jan 13  2006 /sybase/
sybase_125/OCS-12_5/lib/libtcl_r.so
-rwxr-xr-x   1 sybase   sybase    819744 Jan 13  2006 /sybase/
sybase_125/OCS-12_5/lib/libcomn_r.so
-rwxr-xr-x   1 sybase   sybase    110816 Jan 13  2006 /sybase/
sybase_125/OCS-12_5/lib/libintl_r.so
-rwxr-xr-x   1 root     bin        70864 Sep 10  2002 /usr/lib/
libsocket.so.1
-rwxr-xr-x   1 root     bin        24968 Jan  5  2000 /usr/lib/
libmp.so.2
-rwxr-xr-x   1 root     bin        38904 Feb 18  2008 /usr/lib/
libpthread.so.1
lrwxrwxrwx   1 root     root          29 Nov 15  2007 /usr/platform/
SUNW,Ultra-Enterprise/lib/libc_psr.so.1 -> ../../sun4u/lib/libc_psr.so.
1
-rwxr-xr-x   1 sybase   sybase   1275876 Sep 13  2003 /sybase/
sybase_125/OCS-12_5/lib/libsrv_r.so
mars:/sybase > ls -atlr /sybase/sybase_125/OCS-12_5/lib/libsrv_r.so
-rwxr-xr-x   1 sybase   sybase   1275876 Sep 13  2003 /sybase/
sybase_125/OCS-12_5/lib/libsrv_r.so
mars:/sybase > file /sybase/sybase_125/OCS-12_5/lib/libsrv_r.so
/sybase/sybase_125/OCS-12_5/lib/libsrv_r.so:    ELF 32-bit MSB dynamic
lib SPARC Version 1, dynamically linked, not stripped
Thanks
Guto.
I see. But you are sure the tree you copied is in the renamed $SYBASE
var on the box which doesn't work, no? (You can use "sum", e.g. to
check
the libs it's complaining about.).


Keith
Loading...