Author Topic: Solaris  (Read 16718 times)

murlock

  • Guest
Re: Solaris
« Reply #15 on: December 02, 2006, 12:04:03 am »
Hi,

I've updated wiki with the new svn, ( --enable-compact24 )
the bootstrap is ok now, thanks

for src/sdk/scripting/sqplus/SquirrelVM.cpp, I've added
Code
#ifdef __sun
#include <strings.h>
#endif

now, I can't use codeblocks, it's the backtrace of gdb :
Code
#0  0xd05712c5 in _lwp_kill () from /lib/libc.so.1
#1  0xd056e19a in thr_kill () from /lib/libc.so.1
#2  0xd051cfa3 in raise () from /lib/libc.so.1
#3  0xd067a667 in wxTrap () at ./src/common/appbase.cpp:599
#4  0xd067aa31 in ShowAssertDialog (szFile=0xd0b689c4, nLine=1229, szCond=0xd0b68984, szMsg=0xd0b68db4, traits=0x8210f98)
    at ./src/common/appbase.cpp:823
#5  0xd067a3c1 in wxAppConsole::OnAssert (this=0x813e8c0, file=0xd0b689c4, line=1229, cond=0xd0b68984, msg=0xd0b68db4)
    at ./src/common/appbase.cpp:457
#6  0xd091b821 in wxApp::OnAssert (this=0x813e8c0, file=0xd0b689c4, line=1229, cond=0xd0b68984, msg=0xd0b68db4)
    at ./src/gtk/app.cpp:728
#7  0xd067a71e in wxOnAssert (szFile=0xd0b689c4, nLine=1229, szCond=0xd0b68984, szMsg=0xd0b68db4)
    at ./src/common/appbase.cpp:645
#8  0xd067a69a in wxAssert (cond=0, szFile=0xd0b689c4, nLine=1229, szCond=0xd0b68984, szMsg=0xd0b68db4)
    at ./src/common/appbase.cpp:612
#9  0xd0a60da3 in wxGenericTreeCtrl::GetLastChild (this=0x8573c00, item=@0xce1ddee8) at ./src/generic/treectlg.cpp:1229
#10 0xce623989 in ClassBrowserBuilderThread::RemoveInvalidNodes (this=0x82c8460, tree=0x8573c00, parent={m_pItem = 0x0})
    at classbrowserbuilderthread.cpp:177
#11 0xce623baa in ClassBrowserBuilderThread::BuildTree (this=0x82c8460) at treectlg.h:203
#12 0xce623e0a in ClassBrowserBuilderThread::Entry (this=0x82c8460) at classbrowserbuilderthread.cpp:97
#13 0xd06fec21 in wxThreadInternal::PthreadStart (thread=0x82c8460) at ./src/unix/threadpsx.cpp:763
#14 0xd06feab8 in wxPthreadStart (ptr=0x82c8460) at ./src/unix/threadpsx.cpp:715
#15 0xd056f9be in _thr_setup () from /lib/libc.so.1
#16 0xd056fca0 in L3_doit () from /lib/libc.so.1
#17 0xcea41000 in ?? ()
#18 0x00000000 in ?? ()
#19 0x00000000 in ?? ()


Offline afb

  • Developer
  • Lives here!
  • *****
  • Posts: 884
Re: Solaris
« Reply #16 on: December 02, 2006, 10:51:44 am »
Unfortunately NexentaOS looked good "on paper", but crashes a lot.
So I'll need to install a new Solaris distro before I can test anything...

Feel free to keep hacking on it yourself meanwhile, as that'll be a while.

murlock

  • Guest
Re: Solaris
« Reply #17 on: December 02, 2006, 08:45:44 pm »
There is another solution : my solaris for testing codeblocks is running inside vmware server (freely available), I can compress and host the iso.

gns

  • Guest
Re: Solaris
« Reply #18 on: December 06, 2006, 07:51:52 am »
I am trying to build codeblocks on a Solaris 9 box using the procedure at http://www.murlock.org/wiki/?wakka=CodeBlocksEN

wxWidgets built without problems.
But encountered problems while configuring CodeBlocks.
The link mentions about the ./configure that doesn't exist. The README from the svn checkout mentions about executing ./bootstrap. On executing the bootstrap script exited with the error
   /usr/sfw/share/aclocal/gimpprint.m4:8: warning: underquoted definition of AM_PATH_GIMPPRINT
   /usr/local/bin/autoconf: /usr/local/bin/autom4te: not found
   automake: autoconf failed with exit status: 1
The GNU autotools are installed on the system and automake,autoconf,autom4te exist at /usr/local/bin
Same error is encountered irrespective of whether the two export WANT_AUTOMAKE (gentoo fixes) are commented or not.

Any pointers would be appreciated.

~gns

Offline afb

  • Developer
  • Lives here!
  • *****
  • Posts: 884
Re: Solaris
« Reply #19 on: December 06, 2006, 10:41:07 am »
There is another solution : my solaris for testing codeblocks is running inside vmware server (freely available), I can compress and host the iso.

I downloaded a copy of Solaris 10 6/06 x86 from Sun, just haven't bothered with setting it up yet.
The beauty of the GNU system was that it was ready to go and had a familiar user environment...

murlock

  • Guest
Re: Solaris
« Reply #20 on: December 08, 2006, 11:07:06 pm »
I am trying to build codeblocks on a Solaris 9 box using the procedure at http://www.murlock.org/wiki/?wakka=CodeBlocksEN

I'm currently downloading Sol9, I'll try to build CodeBlocks

murlock

  • Guest
Re: Solaris
« Reply #21 on: December 10, 2006, 02:29:07 pm »
With last build (3362), for the crash on startup, I've done a little search and in src/plugins/codecompletion/classbrowserbuilderthread.cpp :
I've added at line 177, in void ClassBrowserBuilderThread::RemoveInvalidNodes(wxTreeCtrl* tree, wxTreeItemId parent)
Code
if ( !parent.IsOk() )
    return;
before
Code
wxTreeItemId existing = tree->GetLastChild(parent);


Otherwise, I've a lot of warning about
Code
./src/common/menucmn.cpp(994): assert"wxAssertFailure" failed: attempt to enable an item which doesn't exist
and lot of about different size of picture in imagelist. (not very important ?)


EDIT:
I've created a little project and added a minimal hello world example, when I try to run, I've this message :
Code
xterm: can't execvp LD_LIBRARY_PATH=.:$LD_LIBRARY_PATH  /usr/local/test_cb/bin/cb_console_runner "/home/murlock/mytest/bin/Debug/mytest"

« Last Edit: December 10, 2006, 02:34:05 pm by murlock »

gns

  • Guest
Re: Solaris
« Reply #22 on: December 11, 2006, 03:15:22 pm »
I'm currently downloading Sol9, I'll try to build CodeBlocks
Ok. Will wait for the response. I had installed the GNU tools from sunfreeware.com.
One issue that I mentioned (quoted below) is independant of the Solaris version.

But encountered problems while configuring CodeBlocks.
The link mentions about the ./configure that doesn't exist.

rgds
gns

murlock

  • Guest
Re: Solaris
« Reply #23 on: December 11, 2006, 03:57:41 pm »
But encountered problems while configuring CodeBlocks.
The link mentions about the ./configure that doesn't exist.
configure is created by bootstrap.

I've tried to install Sol9 this weekend but I've to make space on my hd

gns

  • Guest
Re: Solaris
« Reply #24 on: January 20, 2007, 09:15:01 am »
I moved over to Solaris Express instead and gave the procedure a try.
This time, the bootstrap script executed without but subsequent command
./configure --prefix=/usr/local/test_cb/  --enable-debug
failed with the error message "You don't have pkg.m4 properly installed".
I have installed m4 from sunfreeware.com and it had installed without any problems.

Below is the last few lines of the output:

checking whether to build the scripted wizard plugin... yes
checking whether to build the to-do plugin... yes
checking whether to build the contrib plugins... no
checking if the compiler supports precompiled headers... yes
checking for pkg-config... DEBUG GNS : <Empty line>
DEBUG GNS : Value set to yes. -f=/usr/bin/pkg-config && test -x /usr/bin/pkg-config
DEBUG GNS : configure:24662: found /usr/bin/pkg-config
yes
DEBUG GNS : yes
WARNING GNS: You don't have pkg.m4 properly installed

The text marked GNS is due to additional echo statements that I included at the point of failure to get more information.
Any hints would be greatly appreciated.

best regards
gns

murlock

  • Guest
Re: Solaris
« Reply #25 on: January 27, 2007, 12:22:52 am »
Hi,

I've tried with Solaris 10 11/06 and ./configure is ok.
Have you got 'pkg-config' ? and /usr/share/aclocal/pkg.m4 ?

murlock

  • Guest
Re: Solaris
« Reply #26 on: January 27, 2007, 12:28:24 pm »
Otherwise I've put my yesterday build at http://murlock.free.fr/codeblocks_solaris.tar.bz2