Operating System - HP-UX
1759888 Members
3566 Online
108889 Solutions
New Discussion юеВ

Re: Unsatisfied code symbol '_ZNSo5seekpElSt12_Ios_Seekdir'

 
Prabha (SunTec)
Occasional Advisor

Unsatisfied code symbol '_ZNSo5seekpElSt12_Ios_Seekdir'

In our site environment, Seekg/Seekp functions give the below error during runtime
/usr/lib/hpux64/dld.so: Unsatisfied code symbol '_ZNSo5seekpElSt12_Ios_Seekdir'
in load module

But the same is working fine in the offshore environment.

on further analysis, we found mismatch in the library file libstdc++.so

GCC Version is 4.2.1 at both site and offshore. but the size of libstdc++.so at site and offshore is different.

the one at offshore:
$ ll /usr/local/lib/hpux64/libstdc++.so
-r-xr-xr-x 1 root sys 9266840 Jul 25 2007


Site environment:
ll ./hp-gcc-4.2.1/lib/hpux64/libstdc++.so
-r-xr-xr-x 1 bin bin 9258272 Jul 30 2007

Operating Environment is HP Itanium 11.31

How to verify which lib file is correct with respect to GCC version?

Also how do we rectify the error in seekg/seekp with site library file?
4 REPLIES 4
Dennis Handly
Acclaimed Contributor

Re: Unsatisfied code symbol '_ZNSo5seekpElSt12_Ios_Seekdir'

What are the versions of these two libstdc++.so? Use what(1) on both.) They must be different to have that member function missing.

It seems funny that a libstdc++.so in a directory with hp-gcc-4.2.1 fails.
Prabha (SunTec)
Occasional Advisor

Re: Unsatisfied code symbol '_ZNSo5seekpElSt12_Ios_Seekdir'

Dennis, thanks for the quick reply.

'what' doesnt return any info in base environment.
$ pwd
/usr/local/lib/hpux64
$ what -s libstdc++.so
libstdc++.so:

But in site environment, ll command shows that libstdc++.so is linked to libstdc++.so 6.9

Dennis Handly
Acclaimed Contributor

Re: Unsatisfied code symbol '_ZNSo5seekpElSt12_Ios_Seekdir'

>'what' doesn't return any info in base environment.

Hmm, how else would you tell the version?
Was this installed with swinstall? Would swlist give you the version?
Otherwise do you know how that shlib was installed on the two systems?

>libstdc++.so 6.9

Nothing like that link on the other system?
Prabha (SunTec)
Occasional Advisor

Re: Unsatisfied code symbol '_ZNSo5seekpElSt12_Ios_Seekdir'

We couldnt find the version of the library.

Now we have upgraded GCC to 4.2.3 in both site and offshore environments. It is working fine with 4.2.3 libraries.

Thanks for your help Dennis. This thread can be closed