01-23-04 10:20 PM
"Pablo J Royo" <royop@tb-solutions.com> writes:
quote:
> I have compiled an application on a SunFire V240 Solaris 9 machine, and
> when I try to execute it on a E250 Sparc Solaris 7 machine I get this error:[/QUOT
E]
None of the UNIXes I know about support this.
Solaris7-built binaries will (generally) work on Solaris9, but not
vice versa.
[QUOTE]
> I suppose I must link the program in some way in Solaris 9 so that the rig
th
> versioning info appears in it, and then Solaris 7 machine will "see" it
> correctly, but I donīt know how to doit.
This is possible to do, but is quite tricky and requires detailed
understanding of how ELF dynamic linker and symbol versioning work.
You are quite unlikely to get it working correctly. A much simpler
solution is just to build on a Solaris 7 machine.
If you still want to do it "the hard way", build gcc
Solaris9->Solaris7 cross-compiler [details on building gcc as
a cross-compiler are in gcc documentation].
quote:
> Is any option in "ld" linker (gnu or not) to do this?
No. GNU-ld will not make this any easier.
Cheers,
--
In order to understand recursion you must first understand recursion.
Remove /-nsp/ for email.
[ Post a follow-up to this message ]
|