Author Topic: Compile on Solaris  (Read 3543 times)

murlock

  • Guest
Compile on Solaris
« on: April 20, 2006, 09:52:40 pm »
Hi,

I'm currently trying to compile CodeBlocks (SVN version) on Solaris 10u1 x86 with GCC from Sun and automake / autoconf from blastwave.
./bootstrap => I've to remove the two lines export WANT_#### but it seems to works
./configure => ok
gmake, compile is ok but linking don't work

Code
gmake[4]: Entering directory `/home/murlock/prog/codeblock/trunk/src/sdk/as'
...
libtool: link: `/usr/sfw//lib/libstdc++.la' is not a valid libtool archive

I've trying with
./configure
./configure --enable-static --disable-shared
and always the same error

Any tips ?

Thanks in advance,
Michael


murlock

  • Guest
Re: Compile on Solaris
« Reply #1 on: April 22, 2006, 08:14:22 pm »
After several hours of trying and search,
I've found that the default ld is the Sun LD ( ./configure show that ) which don't accept the .lo or .la files. (the dlo format ?)

So I've added the /opt/sfw/lib/bin where GNU ld is.

And i've another error (the last ?) : gdk_window_get_pointer undefined symbol from  src/src/wxAUI/manager.c
I'm using wxWidget with --with-gtk...

any tips ?

murlock

  • Guest
Re: Compile on Solaris
« Reply #2 on: April 22, 2006, 09:45:04 pm »
...

The -lgdk was missing...
but another problem,
I have to run ./configure with --enable-static --disable-shared

The alloc.c in src/plugins/compilergcc/depslibs/src need little fix at lines 27, 32, 57 & 63  (missings casts )

Well after all, gmake install (in /home/murlock/cc) works fines
When I launch /home/murlock/cc/bin/codeblocks, the infamous coredump appears...


Any Tips ?

Thanks