> Hello,
> I made a small program which uses DNS query mechanism.
> When I compile it on Solaris2.5.1, it compiles w/o
> any warnings and runs fine. But, when I do so on Solaris
> 2.6, it gives me such a warning.
> ild: (undefined symbol) dn_skipname -- referenced in the text segment of
> /vol1/nabe/mill2/lib/solaris2.5.1/libDmMain.a: dm_browser.o
> On Solaris2.6, dn_skipname becomes local function but __dn_skipname is
> newly defined, instead.
> [root*screw(201)]nm /usr/lib/libresolv.so | grep dn_skipname
> 358:[515] | 23828| 116|FUNC |GLOB |0 |11 |__dn_skipname
> 450:[47] | 44656| 12|FUNC |LOCL |0 |11 |dn_skipname
> On Solaris2.5.1,
> bash-2.01$ nm /usr/lib/libresolv.so | grep dn_skipname
> [241] | 10352| 96|FUNC |GLOB |0 |7 |dn_skipname
> I want to keep the same binary between 2.5.1 and 2.6. Is it possible??
> Anyway, I dont understand why they made such a change??? ANY REASON!?!?
> Thanks in advance,
> best regards,
> -Yoshi
> -o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-
> NK-Exa Corporation
> Network Management System Product Dept. R&D
> Solid Square East Tower 16F 580 Horikawa-cho,
> Saiwai-ku, Kawasaki, Kanagawa, 210 JAPAN
> TEL: +81-44-540-2185 FAX: +81-44-540-2393
> -o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-
your 2.6 source code and see if that makes a difference? Without
seeing anything pertinent I can't make very good guesses! But hey,
if you figure it out you could always enclose your work around in
an #IFDEF block where your test the was the OS version. I don't
recall the name of the define, but there is one and it is consitent.
Since the source code would have to be recompiled anyways - voila!
Jeff S.*son