LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Solaris / OpenSolaris (https://www.linuxquestions.org/questions/solaris-opensolaris-20/)
-   -   Compile a 64bit library (https://www.linuxquestions.org/questions/solaris-opensolaris-20/compile-a-64bit-library-4175610403/)

jlliagre 07-30-2017 02:07 PM

Quote:

Originally Posted by abourke (Post 5740447)
yes I think it must be 32bit. That explains my problem. I dont know how I missed that. I thought Oracle stopped distributing 32 bit Solaris.

You were actually right. Sun (now Oracle) stopped delivering 32 bit Solaris on SPARC with Solaris 10 and on x86 with Solaris 11 so you are definitely running a 64 bit OS. It is able to compile and run both 32 and 64 bit binaries.

Please note that there is a dedicated Solaris forum here on LinuxQuestions where I suggest you follow up your question.

jlliagre 07-30-2017 06:52 PM

Here is how to get a 64 bit murrine library on Solaris 11.3. No need to mess with /usr/local/bin:

Code:

# pkg install autoconf automake libtool gcc
Code:

$ export CFLAGS=-m64
$ export PATH=/usr/gnu/bin:$PATH
$ (./autogen.sh)
$ gmake
$ file ./.libs/libmurrine.so
./.libs/libmurrine.so:  ELF 64-bit LSB dynamic lib AMD64 Version 1, dynamically linked, not stripped, no debugging information available


abourke 08-05-2017 08:13 AM

Yes that command is the Solaris equivalent to uname. It's definitely a 64bit OS. Solaris is no longer available in 32bit.

abourke 08-05-2017 10:02 AM

Yes, success! That last compile command worked.
Thanks

sobhsepid 02-10-2018 04:23 AM

If I remember well you need to use a cross-compiler to be able to compile for a different target system.[removed URL]


All times are GMT -5. The time now is 07:59 AM.