Re: [ntp:questions] questions] Cross-compiling NTP for the Raspberry Pi

2015-02-06 Thread catherine . wei1989
On Friday, February 6, 2015 at 3:10:01 PM UTC+8, Harlan Stenn wrote:
> This is a test from libevent, because it needs to know if the select()
> function will yield in threads.  I say that as if I know what I'm
> talking about, but it's "close enough".
> 
> We can run a test and figure out whether or not select() will yield, but
> we cannot run a test in a cross-compile environment, so in that case we
> expect the person running the build to know how the target behaves.
> 
> Personally, I think that specific autoconf macro,
> 
>  sntp/libevent/m4/openldap-thread-check.m4
> 
> is not well-written and it seems to have some problems.  But it's also
> 683 lines of autoconf macro, and it's not indented using a style I find
> easy to read, so I haven't been able to clean it up yet.
> 
> H

OK, thank you so much. Best wishes.

___
questions mailing list
questions@lists.ntp.org
http://lists.ntp.org/listinfo/questions


Re: [ntp:questions] questions] Cross-compiling NTP for the Raspberry Pi

2015-02-05 Thread Harlan Stenn
This is a test from libevent, because it needs to know if the select()
function will yield in threads.  I say that as if I know what I'm
talking about, but it's "close enough".

We can run a test and figure out whether or not select() will yield, but
we cannot run a test in a cross-compile environment, so in that case we
expect the person running the build to know how the target behaves.

Personally, I think that specific autoconf macro,

 sntp/libevent/m4/openldap-thread-check.m4

is not well-written and it seems to have some problems.  But it's also
683 lines of autoconf macro, and it's not indented using a style I find
easy to read, so I haven't been able to clean it up yet.

H
___
questions mailing list
questions@lists.ntp.org
http://lists.ntp.org/listinfo/questions


Re: [ntp:questions] questions] Cross-compiling NTP for the Raspberry Pi

2015-02-05 Thread catherine . wei1989
On Wednesday, February 19, 2014 at 4:34:59 AM UTC+8, David J Taylor wrote:
> From: Charles Swiger
> 
> Yes, you need to add --with-yielding_select=yes.
> (Or no, depending on what select() does on the target platform.)
> 
> ./configure normally runs a set of tests to figure all of this stuff out, 
> but those tests
> need to run on the target and not on the build platform when 
> cross-compiling.  If you
> don't already know the right answers, run ./configure on the target platform 
> and use
> those results when cross-compiling from a faster platform.
> 
> Regards,
> -Chuck
> 
> 
> Just what I needed to know, Chuck.  Running .\configure on the Raspberry Pi, 
> and saving the output shows three separate lines saying:
> 
>   checking if select yields when using pthreads... yes
> 
> so I guess I need "yes".  Quite why configure needs to check this three 
> times, on an already very slow RPi PC, is a mystery!
> 
> [sorry for non-standard quoting]
> 
> Cheers,
> David
> -- 
> SatSignal Software - Quality software written to your requirements
> Web: http://www.satsignal.eu
> Email: david-tay...@blueyonder.co.uk


Hi Chuck,
I met this problem too. When I add the --with-yielding_select=yes, the build 
succeeds, but I don't quite understand what the "--with-yielding_select=yes" is 
used for. Also, when I add --with-yielding_select=no or 
--with-yielding_select=manual, the build still passes.

___
questions mailing list
questions@lists.ntp.org
http://lists.ntp.org/listinfo/questions


Re: [ntp:questions] questions] Cross-compiling NTP for the Raspberry Pi

2014-02-18 Thread David J Taylor

From: Charles Swiger

Yes, you need to add --with-yielding_select=yes.
(Or no, depending on what select() does on the target platform.)

./configure normally runs a set of tests to figure all of this stuff out, 
but those tests
need to run on the target and not on the build platform when 
cross-compiling.  If you
don't already know the right answers, run ./configure on the target platform 
and use

those results when cross-compiling from a faster platform.

Regards,
-Chuck


Just what I needed to know, Chuck.  Running .\configure on the Raspberry Pi, 
and saving the output shows three separate lines saying:


 checking if select yields when using pthreads... yes

so I guess I need "yes".  Quite why configure needs to check this three 
times, on an already very slow RPi PC, is a mystery!


[sorry for non-standard quoting]

Cheers,
David
--
SatSignal Software - Quality software written to your requirements
Web: http://www.satsignal.eu
Email: david-tay...@blueyonder.co.uk 


___
questions mailing list
questions@lists.ntp.org
http://lists.ntp.org/listinfo/questions