Erlang Mailing Lists

Author Message

<  Erlang questions mailing list  ~  gs?

bhyde at pobox.com
Posted: Fri Feb 12, 1999 7:35 pm Reply with quote
Guest
Hi again -

I'm attempting to get gs to work now. I followed the
direction for getting and building the unique tcl, and
moving the files into the gs directory tree. The commands
given in that README seem to be wrong

< cp tcl7.6/unix/libtcl7.6.a $CC_ROOT/libraries/gs/c_src/lib/
> cp tcl7.6/unix/libtcl76.a $CC_ROOT/libraries/gs/c_src/lib/

< cp tcl7.6/unix/tcl2c $CC_ROOT/lib/libraries/gs/lib/
> cp tcl7.6/unix/tcl2c $CC_ROOT/libraries/gs/lib/

< cp tk4.2/unix/libtk4.2.a $CC_ROOT/libraries/gs/c_src/lib/
> cp tk4.2/unix/libtk42.a $CC_ROOT/libraries/gs/c_src/lib/

After building it (see: <http://zap.ml.org/tmp/gs.log>)
it just hangs. Below is the result of using dbg:c on it
as it starts up. This was the first time I'd used dbg so
I won't pretend to know what it means - but I think I'm
missing something called "wrap."

Thanks for your help. - ben

(z_at_zap)1> l(gs).
{module,gs}
(z_at_zap)2> dbg:c(gs, start, []).
(<0.34.0>) call erlang:whereis(code_server)
...
(<0.41.0>) call erlang:db_put(12,{1,lives})
(<0.41.0>) call erlang:whereis(code_server)
(<0.41.0>) call erlang:make_ref()
(<0.41.0>) call erlang:node(code_server)
(<0.41.0>) call erlang:whereis(code_server)
(<0.41.0>) {'$gen_call',{<0.41.0>,#Ref},{ensure_loaded,gtk}} ! code_server
(<0.41.0>) << {#Ref,{module,gtk}}
(<0.41.0>) call erlang:function_exported(gtk,start_link,4)
(<0.41.0>) call erlang:element(1,{kernel,false})
(<0.41.0>) call erlang:element(1,{{default,all,font},{screen,12}})
(<0.41.0>) call erlang:spawn_link(gtk,init,[{1,<0.41.0>,<0.41.0>,[{kernel,false},{{default,all,font},{screen,12}}]}])
(<0.41.0>) spawn <0.42.0>
(<0.41.0>) link <0.42.0>
(<0.41.0>) << {'EXIT',<0.42.0>,
{choose_file,"/home/bhyde/work/erlang/erlang-47.4.0/erts-47.4.0/lib/gs-1.3.5/ebin/../priv/bin/",
"wrap",
[],
{error,enoent}}}
... then it just hangs.

There is nothing in
/home/bhyde/work/erlang/erlang-47.4.0/erts-47.4.0/lib/gs-1.3.5/ebin/../priv/bin/


Post generated using Mail2Forum (http://m2f.sourceforge.net)
klacke at erix.ericsson.s
Posted: Fri Feb 12, 1999 11:08 pm Reply with quote
Guest
Ben Hyde writes:
>
> Hi again -
>
> I'm attempting to get gs to work now. I followed the
> direction for getting and building the unique tcl, and
> moving the files into the gs directory tree. The commands
> given in that README seem to be wrong
>
> < cp tcl7.6/unix/libtcl7.6.a $CC_ROOT/libraries/gs/c_src/lib/
> > cp tcl7.6/unix/libtcl76.a $CC_ROOT/libraries/gs/c_src/lib/
>
> < cp tcl7.6/unix/tcl2c $CC_ROOT/lib/libraries/gs/lib/
> > cp tcl7.6/unix/tcl2c $CC_ROOT/libraries/gs/lib/
>
> < cp tk4.2/unix/libtk4.2.a $CC_ROOT/libraries/gs/c_src/lib/
> > cp tk4.2/unix/libtk42.a $CC_ROOT/libraries/gs/c_src/lib/
>
> After building it (see: <http://zap.ml.org/tmp/gs.log>)
> it just hangs. Below is the result of using dbg:c on it
> as it starts up. This was the first time I'd used dbg so
> I won't pretend to know what it means - but I think I'm
> missing something called "wrap."
>


Ok I just checked your build log and it didn't look to bright.
It is all our fault and we have allready apologized ourselves enough
over the pretty crappy makefiles in the first release ov Open
Source Erlang.

We're expecting to release a new version with clean Makefiles
in just a couple of days, hopefully on monday. !! Which supposedly
builds everything straight.

Building "gs" with the first release requires exactly the right
moves visavi picking up the patched version of tcl/tk, and copying the
5 right files to tye directory gs/c_src/lib

This was a bad move from our side and in the next release this
hazzle is removed. (Monday ..)

Now, for the .... trace ..

> Thanks for your help. - ben
>
> (z_at_zap)1> l(gs).
> {module,gs}
> (z_at_zap)2> dbg:c(gs, start, []).
> (<0.34.0>) call erlang:whereis(code_server)
> ...
> (<0.41.0>) call erlang:db_put(12,{1,lives})
> (<0.41.0>) call erlang:whereis(code_server)
> (<0.41.0>) call erlang:make_ref()
> (<0.41.0>) call erlang:node(code_server)
> (<0.41.0>) call erlang:whereis(code_server)
> (<0.41.0>) {'$gen_call',{<0.41.0>,#Ref},{ensure_loaded,gtk}} ! code_server
> (<0.41.0>) << {#Ref,{module,gtk}}
> (<0.41.0>) call erlang:function_exported(gtk,start_link,4)
> (<0.41.0>) call erlang:element(1,{kernel,false})
> (<0.41.0>) call erlang:element(1,{{default,all,font},{screen,12}})
> (<0.41.0>) call erlang:spawn_link(gtk,init,[{1,<0.41.0>,<0.41.0>,[{kernel,false},{{default,all,font},{screen,12}}]}])
> (<0.41.0>) spawn <0.42.0>
> (<0.41.0>) link <0.42.0>
> (<0.41.0>) << {'EXIT',<0.42.0>,
> {choose_file,"/home/bhyde/work/erlang/erlang-47.4.0/erts-47.4.0/lib/gs-1.3.5/ebin/../priv/bin/",
> "wrap",
> [],
> {error,enoent}}}
> ... then it just hangs.


And this is also expected since the buildlog (at your URL)
shows that the build failed just at the place where the above trace
tries to find the executable file
/home/bhyde .... /lib/gs-1.3.5/ebin/../priv/bin/wrap

So, here are your options.

1. Retry the gs build (read te README in gs/c_src very carefully)
2. Await the next release

/klacke

PS. I'm happy to see that you've found my good old trusty
'dbg' module, I thought I was the only user nowadays :-)





Post generated using Mail2Forum (http://m2f.sourceforge.net)
bhyde at pobox.com
Posted: Sat Feb 13, 1999 1:02 am Reply with quote
Guest
Claes Wikstrom writes:

thanks!

>Ben Hyde writes:
> > I'm attempting to get gs to work...
>Ok I just checked your build log and it didn't look to bright.

duh, I'll try again.

>It is all our fault and we have allready apologized ourselves enough

I want my money back!

>We're expecting to release a new version with clean Makefiles
>in just a couple of days, hopefully on monday.

Monday is a holiday in the US so I think you ought
to take the day off.

> ... copying the
>5 right files ...

It only mentions 4.

> to the directory gs/c_src/lib

It says to put one of the four some place else.

>So, here are your options.
>
>1. Retry the gs build (read te README in gs/c_src very carefully)
>2. Await the next release

I - greedy american - will take both.

>PS. I'm happy to see that you've found my good old trusty
>'dbg' module, I thought I was the only user nowadays :-)

:-) - ben


Post generated using Mail2Forum (http://m2f.sourceforge.net)

Display posts from previous:  

All times are GMT
Page 1 of 1
This forum is locked: you cannot post, reply to, or edit topics.

Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum