Operating System - Tru64 Unix
1753835 Members
8295 Online
108806 Solutions
New Discussion юеВ

More linker issues...

 
Allen Brand
Occasional Advisor

More linker issues...

[code]
# uname -a
OSF1 section9 V5.1 2650 alpha
# snmpwalk -v1 -c tswf3to localhost system
SNMPv2-MIB::sysDescr.0 = STRING: section9 Digital AlphaPC 164LX 533 MHz Compaq Tru64 UNIX V5.1B (Rev. 2650); Fri Oct 27 18:17:09 PDT 2006 TCP/IP[/code]

While I know there is some sort of linking problem here, I am not sure what to look for, as there is really not enough information in the error itself. I'm attempting to run mrtg, which uses another binary called 'rateup' to generate graphs. However, when rateup is run, this the error received:

[code]# /usr/local/mrtg-2/bin/mrtg /usr/local/mrtg-2/cfg/mrtg.cfg
135266:/usr/local/mrtg-2/bin/rateup: /sbin/loader: Fatal Error: call to unresolved symbol from /usr/local/lib/libpng12.so.0 (pc=0x3000002d568)
2006-11-07 14:47:47: ERROR: Skipping webupdates because rateup did not return anything sensible
2006-11-07 14:47:47: WARNING: rateup died from Signal 0
with Exit Value 1 when doing router 'localhost_1'
Signal was 0, Returncode was 1[/code]

Obviously a linking/compiler issue. However, where do I look for a resolution? My digging on websearch has turned up nothing, so it would appear I am the first to have this problem. Unsettling as that may be, I thought I'd check in with some of you. Here are the prerequisites:

[code]
# ldd -V /usr/local/mrtg-2/bin/rateup
ldd version 5.1

Main => /usr/local/mrtg-2/bin/rateup
libgd.so.2 => /usr/local/lib/libgd.so.2
libpng12.so.0 => /usr/local/lib/libpng12.so.0
libm.so => /usr/shlib/libm.so
libc.so => /usr/shlib/libc.so
libiconv.so => /usr/shlib/libiconv.so[/code]

An 'nm' of the module produced nothing on 'pc=0x3000002d568', but I may have misread the error. Likely 'pc=0x3000002d568' is an error code, rather than a string. At any rate...anyone have an idea? Should I compile libpng with additional options?
2 REPLIES 2
Allen Brand
Occasional Advisor

Re: More linker issues...

...so I decided to try the version of libpng that comes with the OSSC disc, and at least now I get a completely different error message from libpng:

# /usr/local/mrtg-2/bin/mrtg /usr/local/mrtg-2/cfg/mrtg.cfg
11840:/usr/local/mrtg-2/bin/rateup: /sbin/loader: Fatal Error: object libpng12.so.0 from liblist in /usr/local/mrtg-2/bin/rateup has version "12.0", which does not match the found object: /usr/local/lib/libpng12.so.0 (with version "_null")
2006-11-10 15:29:17: ERROR: Skipping webupdates because rateup did not return anything sensible
2006-11-10 15:29:17: WARNING: rateup died from Signal 0
with Exit Value 1 when doing router 'localhost_1'
Signal was 0, Returncode was 1

I'm going to recompile mrtg and see what happens...
Allen Brand
Occasional Advisor

Re: More linker issues...

Alright, no-one was interested in the thread, but I 'solved' this issue by dumping rateup in favor of rrdtool. Using rrdtool with MRTG is better, anyway, so if you are happening through ITRC and find this thread, then my advice to you is forget rateup, it sucks anyway, just compile and install rrdtool. 'Nuff said.