[erlang-questions] Erlang RB12-1 Mac OS X Leopard problems

Kevin A. Smith kevin@REDACTED
Tue Feb 26 16:04:08 CET 2008


Do you have all the Apple developer tools installed? And if you do, do  
you have the updated version for Leopard?

--Kevin
On Feb 26, 2008, at 9:44 AM, kg9020@REDACTED wrote:

> Follow up on RB12-1
> /configure --enable-threads --enable-smp-support --enable-kernel- 
> poll --enable-darwin-64bit --without-gd
>
> make resulted in  follow error
>
> Undefined symbols:
>   "_main", referenced from:
>       start in crt1.10.5.o
> ld: symbol(s) not found
> collect2: ld returned 1 exit status
> make[4]: *** [../priv/bin/i386-apple-darwin9.2.0/obj_init_port]  
> Error 1
> make[3]: *** [opt] Error 2
> make[2]: *** [opt] Error 2
> make[1]: *** [opt] Error 2
> make: *** [libs] Error 2
>
> art
>
>
>
> 2008/2/26 <erlang-questions-request@REDACTED>:
> Send erlang-questions mailing list submissions to
>        erlang-questions@REDACTED
>
> To subscribe or unsubscribe via the World Wide Web, visit
>        http://www.erlang.org/mailman/listinfo/erlang-questions
> or, via email, send a message with subject or body 'help' to
>        erlang-questions-request@REDACTED
>
> You can reach the person managing the list at
>        erlang-questions-owner@REDACTED
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of erlang-questions digest..."
>
> Today's Topics:
>
>   1. Erlang RB12-1 Mac OS X Leopard problems (kg9020@REDACTED)
>   2. Re: (newbie) How to install Erlang selectively (Thomas Lindgren)
>   3. how: to serialize a function? (Tim Fletcher)
>   4. Re: how: to serialize a function? (Renato Lucindo)
>   5. Re: how: to serialize a function? (Matthew Dempsky)
>   6. Re: how: to serialize a function? (Tim Fletcher)
>   7. Re: how: to serialize a function? (Matthew Dempsky)
>   8. Re: how: to serialize a function? (Renato Lucindo)
>   9. Re: Erlounge in San Francisco, 17-22 February (Robert Virding)
>  10. Re: Erlang RB12-1 Mac OS X Leopard problems (=Bill.Barnhill)
>  11. Erlang Testing frameworks, sorry. (Berlin Brown)
>  12. Re: Erlang Testing frameworks, sorry. (Bengt Kleberg)
>
>
> ---------- Forwarded message ----------
> From: kg9020@REDACTED
> To: erlang-questions@REDACTED
> Date: Mon, 25 Feb 2008 12:16:23 -0600
> Subject: [erlang-questions] Erlang RB12-1 Mac OS X Leopard problems
> Hello,
>
> Is there anyone else having problems with RB12-1
> tried several configure options like darwin-universal would not build.
>
> When I did get a build to work
> erl c(program) gave file error
>
> I went back to RB12-0 able to build with 64 bit  smp .. no problems
> same configure on RB12-1 fails.
>
> aezbizs-macbook-pro-17:doc a$ sw_vers
> ProductName:	Mac OS X
> ProductVersion:	10.5.2
> BuildVersion:	9C31
>
> aezbizs-macbook-pro-17:doc a$ sw_vers
> ProductName:	Mac OS X
> ProductVersion:	10.5.2
> BuildVersion:	9C31
>
> Let me know if more information is needed
>
> thanks
>
> art
>
>
>
>
> ---------- Forwarded message ----------
> From: Thomas Lindgren <thomasl_erlang@REDACTED>
> To: erlang-questions@REDACTED
> Date: Mon, 25 Feb 2008 10:34:43 -0800 (PST)
> Subject: Re: [erlang-questions] (newbie) How to install Erlang  
> selectively
>
> --- Dimitry Golubovsky <golubovsky@REDACTED> wrote:
>
> > Hi,
> >
> > I need to perform a customized/selective Erlang
> > installation,
> > basically only kernel, sasl, stdlib (and whatever
> > they require, but
> > nothing beyond that).
>
> Create a 'release' containing only the applications
> you need. Have a look at the OTP docs for how to do
> this.
>
> Best,
> Thomas
>
>
>
>
>       
> ____________________________________________________________________________________
> Looking for last minute shopping deals?
> Find them fast with Yahoo! Search.  http://tools.search.yahoo.com/newsearch/category.php?category=shopping
>
>
>
> ---------- Forwarded message ----------
> From: "Tim Fletcher" <twoggle@REDACTED>
> To: erlang-questions@REDACTED
> Date: Mon, 25 Feb 2008 20:35:07 +0000
> Subject: [erlang-questions] how: to serialize a function?
> Given an example function like so:
>
>    > F = fun(X) -> X * X end.
>
> My first question is: how can I serialize (and de-serialize) that
> function completely (i.e. including its args)? I know that it's easy
> to send that function between processes/nodes, but how do I replicate
> that serialization myself?
>
> Next, given that I can get a string representation of the function  
> like so:
>
>    > erlang:fun_to_list(F).
>    "#Fun<erl_eval.6.49591080>"
>
> My second question is: what function do I use to turn that string back
> into (a proper "reference" to) the function F?
>
>
>
> ---------- Forwarded message ----------
> From: "Renato Lucindo" <lucindo@REDACTED>
> To: "Tim Fletcher" <twoggle@REDACTED>
> Date: Mon, 25 Feb 2008 17:51:38 -0300
> Subject: Re: [erlang-questions] how: to serialize a function?
> 1> F = fun(X) -> X * X end.
> #Fun<erl_eval.6.35866844>
> 2> B = term_to_binary(F).
> <<131,112,0,0,2,177,1,193,97,132,164,217,241,72,144,2,77,
>  131,144,112,241,112,21,0,0,0,2,0,0,...>>
> %%% you can send the binary to other processes
> 3> apply(F, [2]).
> 4
> 4> apply(binary_to_term(B), [2]).
> 4
> 5>
>
> []'s
>
> Lucindo
>
> On Mon, Feb 25, 2008 at 5:35 PM, Tim Fletcher <twoggle@REDACTED>  
> wrote:
> > Given an example function like so:
> >
> >     > F = fun(X) -> X * X end.
> >
> >  My first question is: how can I serialize (and de-serialize) that
> >  function completely (i.e. including its args)? I know that it's  
> easy
> >  to send that function between processes/nodes, but how do I  
> replicate
> >  that serialization myself?
> >
> >  Next, given that I can get a string representation of the  
> function like so:
> >
> >     > erlang:fun_to_list(F).
> >     "#Fun<erl_eval.6.49591080>"
> >
> >  My second question is: what function do I use to turn that string  
> back
> >  into (a proper "reference" to) the function F?
> >  _______________________________________________
> >  erlang-questions mailing list
> >  erlang-questions@REDACTED
> >  http://www.erlang.org/mailman/listinfo/erlang-questions
> >
>
>
>
> ---------- Forwarded message ----------
> From: "Matthew Dempsky" <matthew@REDACTED>
> To: "Tim Fletcher" <twoggle@REDACTED>
> Date: Mon, 25 Feb 2008 13:10:00 -0800
> Subject: Re: [erlang-questions] how: to serialize a function?
> On 2/25/08, Tim Fletcher <twoggle@REDACTED> wrote:
> >  Next, given that I can get a string representation of the  
> function like so:
> >
> >     > erlang:fun_to_list(F).
> >     "#Fun<erl_eval.6.49591080>"
> >
> >  My second question is: what function do I use to turn that string  
> back
> >  into (a proper "reference" to) the function F?
>
> The string representation of a fun is insufficient to reconstruct the
> fun.  It lacks important things like bound variables.  You need to use
> term_to_binary and binary_to_term for that.
>
>
>
> ---------- Forwarded message ----------
> From: "Tim Fletcher" <twoggle@REDACTED>
> To: "Matthew Dempsky" <matthew@REDACTED>
> Date: Mon, 25 Feb 2008 21:16:32 +0000
> Subject: Re: [erlang-questions] how: to serialize a function?
> > The string representation of a fun is insufficient to reconstruct  
> the
> >  fun.  It lacks important things like bound variables.  You need  
> to use
> >  term_to_binary and binary_to_term for that.
>
> Just checking - I wasn't sure whether it was something that could
> somehow be "looked up" in the process that defined the function.
>
> Thanks both.
>
>
>
> ---------- Forwarded message ----------
> From: "Matthew Dempsky" <matthew@REDACTED>
> To: "Tim Fletcher" <twoggle@REDACTED>
> Date: Mon, 25 Feb 2008 13:33:33 -0800
> Subject: Re: [erlang-questions] how: to serialize a function?
> On 2/25/08, Tim Fletcher <twoggle@REDACTED> wrote:
> > Just checking - I wasn't sure whether it was something that could
> >  somehow be "looked up" in the process that defined the function.
>
> Nope, two different funs at the same place with different bound
> variables will have the same string representation, even though
> they're different terms:
>
> 1> A = fun() -> true end.
> #Fun<erl_eval.20.67289768>
> 2> B = fun() -> false end.
> #Fun<erl_eval.20.67289768>
> 3> A == B.
> false
>
>
>
> ---------- Forwarded message ----------
> From: "Renato Lucindo" <lucindo@REDACTED>
> To: "Matthew Dempsky" <matthew@REDACTED>
> Date: Mon, 25 Feb 2008 18:52:18 -0300
> Subject: Re: [erlang-questions] how: to serialize a function?
> With some limitations its possible to use something like this:
>
> Eshell V5.6  (abort with ^G)
> 1> EvalStr = fun(Str) ->
> 1> {ok, Tokens, _} = erl_scan:string(Str),
> 1> {ok, [Form]} = erl_parse:parse_exprs(Tokens),
> 1> {value, Result, _} = erl_eval:expr(Form, erl_eval:new_bindings()),
> 1> Result
> 1> end.
> #Fun<erl_eval.6.35866844>
> 2> FStr = "fun(X) -> X * X end.".
> "fun(X) -> X * X end."
> 3> F = EvalStr(FStr).
> #Fun<erl_eval.6.35866844>
> 4> F(4).
> 16
> 5> GStr = "fun(X) -> A = 10, X * A end.".
> "fun(X) -> A = 10, X * A end."
> 6> G = EvalStr(GStr).
> #Fun<erl_eval.6.35866844>
> 7> G(4).
> 40
> 8>
>
> []'s
>
> Lucindo
>
> On Mon, Feb 25, 2008 at 6:33 PM, Matthew Dempsky  
> <matthew@REDACTED> wrote:
> > On 2/25/08, Tim Fletcher <twoggle@REDACTED> wrote:
> >
> > > Just checking - I wasn't sure whether it was something that could
> >  >  somehow be "looked up" in the process that defined the function.
> >
> >  Nope, two different funs at the same place with different bound
> >  variables will have the same string representation, even though
> >  they're different terms:
> >
> >  1> A = fun() -> true end.
> >  #Fun<erl_eval.20.67289768>
> >  2> B = fun() -> false end.
> >  #Fun<erl_eval.20.67289768>
> >  3> A == B.
> >  false
> >
> >
> > _______________________________________________
> >  erlang-questions mailing list
> >  erlang-questions@REDACTED
> >  http://www.erlang.org/mailman/listinfo/erlang-questions
> >
>
>
>
> ---------- Forwarded message ----------
> From: "Robert Virding" <rvirding@REDACTED>
> To: "Erlang Questions" <erlang-questions@REDACTED>
> Date: Tue, 26 Feb 2008 01:58:55 +0100
> Subject: Re: [erlang-questions] Erlounge in San Francisco, 17-22  
> February
> Thanks for the turn-out last Monday. It was fun to meet other  
> Erlangers in San Francisco, especially, for me, new faces I hadn't  
> met before. I'm back in Sweden now and managed to bring home some  
> real US-flu. :-) Anyway I got the most important things done early  
> on, like meeting the right people.
>
> I have 2 photos from the 21st amendment which I can post if there is  
> interest.
>
> Thanks again,
>
> Robert
>
>
>
> ---------- Forwarded message ----------
> From: "=Bill.Barnhill" <xmlarchitect@REDACTED>
> To: erlang-questions@REDACTED
> Date: Tue, 26 Feb 2008 01:44:43 +0000 (UTC)
> Subject: Re: [erlang-questions] Erlang RB12-1 Mac OS X Leopard  
> problems
> <kg9020 <at> gmail.com> writes:
>
> >
> > Is there anyone else having problems with RB12-1
> > tried several configure options like darwin-universal would not  
> build.
> >
>
> Had this this problem myself, with libgd seemingly the culprit.
>
> Built successfully by:
>
> ./configure \
>     --enable-smp-support \
>     --enable-hipe \
>     --enable-darwin-64bit \
>     --without-gd \
>     --enable-kernel-poll
>
> make
>
> sudo make install
>
>
> Hope that helps,
> =Bill.Barnhill
> Communitivity, Inc.
>
>
>
>
>
>
>
> ---------- Forwarded message ----------
> From: "Berlin Brown" <berlin.brown@REDACTED>
> To: erlang-questions@REDACTED
> Date: Tue, 26 Feb 2008 00:20:38 -0500
> Subject: [erlang-questions] Erlang Testing frameworks, sorry.
> I have been researching the erlang test frameworks.  I still can't
> come to a consensus on what to use.
>
> I can tell you my background and why I am trying to do and maybe you  
> can help.
>
> I am used to junit/unit test driven development and ideally would like
> a stable system that has some of these properties.  I have also been
> looking at the behavior driven systems like ruby's rspec and maybe
> combining the unit testing and behavior tests.
>
> Is there anything similar.  I also, don't want to stray too far from
> what is established on the erlang platform ("When in rome?")
>
> So far, I want to use test server; it is unique but seems very stable
> and robust.
> http://www.erlang.org/project/test_server/index.html
>
> --
> Berlin Brown
> http://botspiritcompany.com/botlist/spring/help/about.html
>
>
>
> ---------- Forwarded message ----------
> From: Bengt Kleberg <bengt.kleberg@REDACTED>
> To:
> Date: Tue, 26 Feb 2008 08:08:07 +0100
> Subject: Re: [erlang-questions] Erlang Testing frameworks, sorry.
> Greetings,
>
> You do not mention if you have looked in the FAQ:
>
> http://erlang.org/faq/faq.html#AEN785
>
>
> In addition to those there is also
>
> Eunit
> (http://svn.process-one.net/contribs/trunk/eunit/doc/overview-summary.html 
> )
> and
> yatsy (http://code.google.com/p/yatsy/)
>
>
> bengt
>
> On Tue, 2008-02-26 at 00:20 -0500, Berlin Brown wrote:
> > I have been researching the erlang test frameworks.  I still can't
> > come to a consensus on what to use.
> >
> > I can tell you my background and why I am trying to do and maybe  
> you can help.
> >
> > I am used to junit/unit test driven development and ideally would  
> like
> > a stable system that has some of these properties.  I have also been
> > looking at the behavior driven systems like ruby's rspec and maybe
> > combining the unit testing and behavior tests.
> >
> > Is there anything similar.  I also, don't want to stray too far from
> > what is established on the erlang platform ("When in rome?")
> >
> > So far, I want to use test server; it is unique but seems very  
> stable
> > and robust.
> > http://www.erlang.org/project/test_server/index.html
> >
>
>
>
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://www.erlang.org/mailman/listinfo/erlang-questions
>
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://www.erlang.org/mailman/listinfo/erlang-questions




More information about the erlang-questions mailing list