<blockquote class="gmail_quote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; ">
Hi,</blockquote><div><br></div><div>I have two Solaris sytems, one which we have root-access for and the other only a normal user account.</div><div><br></div><div>On the system for which we have root, I've installed pkg-util and some OpenCSW packages (e.g. vim, bz2ip, gdb etc.).</div>
<div><br></div><div>I've then tarred up the /opt/csw directory, and transferred it to the other system in which we only have limited access (and write access only to ~ and "/db/pub/eq").</div><div><br></div>
<div>I then set the LD_LIBRARY_PATH to point to the /db/pub/eq/csw/opt/csw/lib directory.</div><div><br></div><div>I then try to run the programs (yes, I do know this whole thing is a dirty, dirty hack, but this was the quickest way of getting a decent development buildchain up on the limited-access system).</div>
<div><br></div><div>Some of them (e.g. vim, ruby or Python) do work.</div><div><br></div><div>Others, however, give an ELFCLASS32 error:</div><div><br></div><div><blockquote class="gmail_quote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; ">
bash$ ./bzip2<br>ld.so.1: bzip2: fatal: /db/pub/eq/csw/opt/csw/lib/libbz2.so.1.0: wrong ELF class: ELFCLASS32<br>Killed</blockquote></div><div><br></div><div><blockquote class="gmail_quote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; ">
bash$ ./gdb<br>ld.so.1: gdb: fatal: /db/pub/eq/csw/opt/csw/lib/libncurses.so.5: wrong ELF class: ELFCLASS32<br>Killed</blockquote></div><div><br></div><div>Uname on the root-access box (on which OpenCSW was installed):</div>
<div><br></div><div><blockquote class="gmail_quote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; ">
SunOS puppet 5.11 snv_151a i86pc i386 i86pc Solaris</blockquote></div><div><br></div><div>Uname on the limited-access box (where we are trying to run the tranplanted binaries):</div><div><br></div><blockquote class="gmail_quote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; ">
SunOS eqaegd05 5.10 Generic_144489-06 i86pc i386 i86pc</blockquote><div><br></div><div>Both bzip2 and libbz2.so appear to be 32-bit (at least from what I can tell):</div><div><br></div><div><blockquote class="gmail_quote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; ">
bash$ file bzip2<br>bzip2: ELF 32-bit LSB executable 80386 Version 1 [FPU], dynamically linked, not stripped, no debugging information available<br>bash$ file ../lib/libbz2.so<br>../lib/libbz2.so: ELF 32-bit LSB dynamic lib 80386 Version 1 [FPU], dynamically linked, stripped</blockquote>
</div><div><br></div><div>What would be causing this error? And how would I fix it? </div><div><br></div><div>Cheers,</div><div>Victor</div>