Cross compile x86 to solaris2.10 half way through

Kai Ruottu karuottu@mbnet.fi
Mon Jun 19 08:09:00 GMT 2006


Kai Ruottu wrote:
>
> The 64-bit stuff will be searched automatically from 'lib/sparcv9' just
> as the default 32-bit stuff will be searched from 'lib'...  Just put 
> things
> being so that there are '.o' startups, '.a' static archives (none for 
> 64-bit)
> and '.so' shared libraries in your library directories and things will 
> start
> to work!

 There were NO startups in your 'sparcv9'!   My one has now the following
files:

/opt/host-sparc-solaris2.10/usr/lib/sparcv9 # ls
.                   libdoor.so.1       libpanel.so       liby.so.1
..                  libefi.so.1        libpanel.so.1     libz.so
0@0.so.1            libelf.so          libpkcs11.so.1    libz.so.1
crti.o              libelf.so.1        libplot.so        llib-l300.ln
crtn.o              libexacct.so       libplot.so.1      llib-l300s.ln
ld.so.1             libexacct.so.1     libproc.so        llib-l4014.ln
lib300.so           libform.so         libproc.so.1      llib-l450.ln
lib300.so.1         libform.so.1       libproject.so     llib-lbsdmalloc.ln
lib300s.so          libgen.so          libproject.so.1   llib-lcfgadm.ln
lib300s.so.1        libgen.so.1        libpthread.so     llib-lcrypt.ln
lib4014.so          libinetutil.so     libpthread.so.1   llib-lexacct.ln
lib4014.so.1        libinetutil.so.1   librac.so         llib-lform.ln
lib450.so           libintl.so         librac.so.1       llib-lgss.ln
lib450.so.1         libintl.so.1       librcm.so         llib-lipp.ln
libadm.so           libiostream.so.1   librcm.so.1       llib-lkvm.ln
libadm.so.1         libipp.so.1        libresolv.so      llib-lldap.ln
libaio.so           libkstat.so        libresolv.so.2    llib-llgrp.ln
libaio.so.1         libkstat.so.1      librestart.so.1   llib-lmail.ln
libavl.so.1         libkvm.so          librpcsvc.so      llib-lmalloc.ln
libbsdmalloc.so     libkvm.so.1        librpcsvc.so.1    llib-lmapmalloc.ln
libbsdmalloc.so.1   libldap.so.4       librtld_db.so     llib-lmenu.ln
libbsm.so           libldap.so.5       librtld_db.so.1   llib-lmtmalloc.ln
libbsm.so.1         libld.so.2         librtld.so        llib-lnls.ln
libc_db.so.1        liblgrp.so.1       librtld.so.1      llib-lpanel.ln
libcfgadm.so        liblm.so           librt.so          llib-lpasswdutil.ln
libcfgadm.so.1      liblm.so.1         librt.so.1        llib-lpkcs11.ln
libcle.a            libl.so            libscf.so.1       llib-lplot.ln
libcle.so.1         libl.so.1          libsched.so       llib-lproject.ln
libcmd.so           libmail.so         libsched.so.1     llib-lrac.ln
libcmd.so.1         libmail.so.1       libsctp.so.1      llib-lrcm.ln
libcmdutils.so.1    libmalloc.so       libsecdb.so       llib-lsasl.ln
libcontract.so.1    libmalloc.so.1     libsecdb.so.1     llib-lsched.ln
libcrle.so          libmapmalloc.so    libsec.so         llib-lsctp.ln
libcrle.so.1        libmapmalloc.so.1  libsec.so.1       llib-lsldap.ln
libCrun.so          libmd5.so          libsendfile.so    llib-lssagent.ln
libCrun.so.1        libmd5.so.1        libsendfile.so.1  llib-lssasnmp.ln
libcrypt_i.so       libmenu.so         libsldap.so       llib-lvolmgt.ln
libcrypt_i.so.1     libmenu.so.1       libsldap.so.1     llib-lvt0.ln
libcryptoutil.so.1  libmp.so           libsocket.so      llib-lz.ln
libc.so             libmp.so.2         libsocket.so.1    nss_compat.so.1
libc.so.1           libm.so            libsysevent.so    nss_dns.so.1
libCstd.so.1        libm.so.1          libsysevent.so.1  nss_files.so.1
libctf.so.1         libm.so.2          libthread.so      nss_ldap.so.1
libcurses.so        libmtmalloc.so     libthread.so.1    nss_nisplus.so.1
libcurses.so.1      libmtmalloc.so.1   libumem.so.1      nss_nis.so.1
libdemangle.so      libmtsk_db.so.1    libuuid.so.1      nss_user.so.1
libdemangle.so.1    libmtsk.so.1       libuutil.so.1     passwdutil.so.1
libdevice.so        libmvec.so.1       libvolmgt.so      straddr.so.2
libdevice.so.1      libnls.so          libvolmgt.so.1    values-Xa.o
libdevid.so         libnls.so.1        libvt0.so         values-Xc.o
libdevid.so.1       libnsl.so          libvt0.so.1       values-xpg4.o
libdevinfo.so       libnsl.so.1        libw.so           values-xpg6.o
libdevinfo.so.1     libnvpair.so       libw.so.1         values-Xs.o
libdl.so            libnvpair.so.1     libxnet.so        values-Xt.o
libdl.so.1          libpam.so          libxnet.so.1      watchmalloc.so.1
libdoor.so          libpam.so.1        liby.so

extracted from the SUNW 'bzip2-packed cpio-archives', my list
for them (all, including 32-bit ones) was:

/opt/host-sparc-solaris2.10 # cat SUNWpackages
SUNW5ttf
SUNWale
SUNWarc
SUNWarcx
SUNWbtoox
SUNWceuow
SUNWcg6h
SUNWcleu
SUNWcsl
SUNWcslr
SUNWcslx
SUNWcstl
SUNWcstlx
SUNWdfbh
SUNWdpl
SUNWdplx
SUNWhea
SUNWlibC
SUNWlibCf
SUNWlibCx
SUNWlibm
SUNWlmx
SUNWlibms
SUNWlibmsr
SUNWlmsr
SUNWlmsx
SUNWolinc
SUNWscpu
SUNWscpux
SUNWsprox
SUNWsra
SUNWsrh
SUNWtoox
SUNWxglh
SUNWxwinc
SUNWxwplt
SUNWzlib
SUNWzlibx

This list can be not complete, it was based on the list for Solaris9 
which was based on
Solaris8... Only some obvious missing stuff was added. There can also be 
now removed
obsolete names ot some totally vain stuff... For instance those '.ln' 
files can be vain,
they only were extracted among the used stuff.

If extracted from the install CDs, there are no '.so' symlinks to point 
to the '.so.[12]'
files, so a script like :

/opt/host-sparc-solaris2.10/usr/lib # cat set_library_symlinks.sh
ln -s lib300.so.1 lib300.so
ln -s lib300s.so.1 lib300s.so
ln -s lib4014.so.1 lib4014.so
ln -s lib450.so.1 lib450.so
ln -s libCrun.so.1 libCrun.so
ln -s libadm.so.1 libadm.so
ln -s libaio.so.1 libaio.so
ln -s libbsdmalloc.so.1 libbsdmalloc.so
ln -s libbsm.so.1 libbsm.so
ln -s libc.so.1 libc.so
ln -s libc2stubs.so.1 libc2stubs.so
ln -s libcfgadm.so.1 libcfgadm.so
ln -s libcmd.so.1 libcmd.so
ln -s libcrle.so.1 libcrle.so
ln -s libcrypt_i.so.1 libcrypt_i.so
ln -s libcurses.so.1 libcurses.so
ln -s libdemangle.so.1 libdemangle.so
ln -s libdevice.so.1 libdevice.so
ln -s libdevid.so.1 libdevid.so
ln -s libdevinfo.so.1 libdevinfo.so
ln -s libdhcpagent.so.1 libdhcpagent.so
ln -s libdhcputil.so.1 libdhcputil.so
ln -s libdl.so.1 libdl.so
ln -s libdoor.so.1 libdoor.so
ln -s libelf.so.1 libelf.so
ln -s libexacct.so.1 libexacct.so
ln -s libform.so.1 libform.so
ln -s libgen.so.1 libgen.so
ln -s libinetutil.so.1 libinetutil.so
ln -s libintl.so.1 libintl.so
ln -s libkstat.so.1 libkstat.so
ln -s libkvm.so.1 libkvm.so
ln -s libl.so.1 libl.so
ln -s liblm.so.1 liblm.so
ln -s libm.so.1 libm.so
ln -s libmail.so.1 libmail.so
ln -s libmalloc.so.1 libmalloc.so
ln -s libmapmalloc.so.1 libmapmalloc.so
ln -s libmd5.so.1 libmd5.so
ln -s libmenu.so.1 libmenu.so
ln -s libmp.so.2 libmp.so
ln -s libmtmalloc.so.1 libmtmalloc.so
ln -s libnls.so.1 libnls.so
ln -s libnsl.so.1 libnsl.so
ln -s libnvpair.so.1 libnvpair.so
ln -s libpam.so.1 libpam.so
ln -s libpanel.so.1 libpanel.so
ln -s libplot.so.1 libplot.so
ln -s libproc.so.1 libproc.so
ln -s libproject.so.1 libproject.so
ln -s libpthread.so.1 libpthread.so
ln -s librac.so.1 librac.so
ln -s librcm.so.1 librcm.so
ln -s libresolv.so.2 libresolv.so
ln -s librpcsvc.so.1 librpcsvc.so
ln -s librt.so.1 librt.so
ln -s librtld.so.1 librtld.so
ln -s librtld_db.so.1 librtld_db.so
ln -s libsched.so.1 libsched.so
ln -s libsec.so.1 libsec.so
ln -s libsecdb.so.1 libsecdb.so
ln -s libsendfile.so.1 libsendfile.so
ln -s libsldap.so.1 libsldap.so
ln -s libsocket.so.1 libsocket.so
ln -s libsys.so.1 libsys.so
ln -s libsysevent.so.1 libsysevent.so
ln -s libthread.so.1 libthread.so
ln -s libthread_db.so.1 libthread_db.so
ln -s libvolmgt.so.1 libvolmgt.so
ln -s libvt0.so.1 libvt0.so
ln -s libw.so.1 libw.so
ln -s libxnet.so.1 libxnet.so
ln -s liby.so.1 liby.so
ln -s libz.so.1 libz.so

could be useful... Once written, used more than once for Solaris7-10, Sparc
and x86, totally for 8  targets!
 


--
For unsubscribe information see http://sourceware.org/lists.html#faq



More information about the crossgcc mailing list