tora - Takamichi Akiyama schrieb:
export CC=/usr/sfw/bin/gcc
Please tell me about this one! I am still trying to compile it with
the Sun compilers. I don't trust the GCC that comes with OpenSolaris.
Its build against Sun ld and Sun ar. That caused some pain.
It's just for compilation of Perl modules.
I see. Compiling Perl modules worked fine with Sun's compiler in my
case. I don't even have GCC installed on my current snv 95 (vmware) OOo
build machine.
The gcc bundled in OpenSolaris seems to use
/usr/sbin/pkgchk -v SUNWgcc 2>&1 | grep /usr/sfw/bin/
/usr/sfw/bin/gcc
/usr/sbin/pkgchk -l -p /usr/sfw/bin/gld
...
SUNWbinutils
...
/usr/sbin/pkgchk -v SUNWbinutils 2>&1 | grep /usr/sfw/bin/
/usr/sfw/bin/gar ... for GNU ar
...
/usr/sfw/bin/gld ... for GNU ld
...
man -M /usr/sfw/man gld
NAME
ld - Using LD, the GNU linker
Look at the PATH above again, /usr/sfw/bin is prior to /usr/ccs/bin
/usr/ccs/bin/ld
/usr/ccs/bin/ar
I have set up a new Vmware box. I used the OpenSolaris snv 95 iso image
to install the virtual machine. After the installation of the image on
the disk I did not have a GCC installed. I installed GCC using pfexec
pkg install SUNWgcc:
-bash-3.2$ pfexec pkg list SUNWgcc
NAME (AUTHORITY) VERSION STATE
UFIX
SUNWgcc 3.4.3-0.95 installed
----
You can check the configure settings of GCC using gcc -V. It will show
that GCC has been compiled with --with-ld=/usr/ccs/bin/ld and
--without-gnu-ld:
-bash-3.2$ gcc -v
Reading specs from /usr/sfw/lib/gcc/i386-pc-solaris2.11/3.4.3/specs
Configured with: /builds2/sfwnv-gate/usr/src/cmd/gcc/gcc-3.4.3/configure
--prefix=/usr/sfw --with-as=/usr/sfw/bin/gas --with-gnu-as
--with-ld=/usr/ccs/bin/ld --without-gnu-ld
--enable-languages=c,c++,f77,objc --enable-shared
Thread model: posix
gcc version 3.4.3 (csl-sol210-3_4-20050802)
/usr/ccs/bin/ld -V gives me Solaris Link Editors: 5.11-1.1614 .
Note the mixture of GNU as and SUN ld. I had some fun with that before
on another virtual machine. (Yes, I love creating VMs, messing them up
and throwing them away.) The fun got solved by compiling GCC 4.2.1 .
My current issue is on jni.h. I'm trying to pass additional CPPFLAGS
but maybe its just about this --without-java vs. --with-jdk-home.
Why don't you simply use Java? Any problem with Java?
That's from the above mentioned newly created virtual machine:
-bash-3.2$ ldd /usr/jdk/instances/jdk1.6.0/jre/lib/i386/libjawt.so
libmawt.so => (file not found)
libjava.so =>
/usr/jdk/instances/jdk1.6.0/jre/lib/i386/libjava.so
[...]
I've posted it earlier on opensolaris-help@ [1] - no hints to far.
How did I get OOo to compile on the other virtual machine? This is how
it reads on my OOo OpenSolaris snv 95 build box created from the same
OpenSolaris ISO image:
[EMAIL PROTECTED]:~/oo.org-m28$ ldd
/usr/jdk/instances/jdk1.6.0/jre/lib/i386/libjawt.so
libmawt.so =>
/usr/jdk/instances/jdk1.6.0/jre/lib/i386/libmawt.so
libjava.so =>
[...]
How did I get there? I think I copied
/usr/jdk/instances/jdk1.6.0/jre/lib/i386/headless/libmawt.so to
/usr/jdk/instances/jdk1.6.0/jre/lib/i386/ , though, not sure any more.
Ulf
[1] http://opensolaris.org/jive/thread.jspa?threadID=69545&tstart=30
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]