Re: [Vala] Vala broken on non-gnu systems

2011-03-24 Thread pancake
Those defines should be defined by vala internally? All systems can be identified by __linux__ __FreeBSD__ ... do you think this should be defined by vala? Autoconf is imho not the right place for this. On 23/03/2011, at 12:41, Marco Trevisan (Treviño) m...@3v1n0.net wrote: Il giorno mer,

Re: [Vala] Vala broken on non-gnu systems

2011-03-23 Thread Treviño
Il giorno mer, 16/03/2011 alle 14.05 +0100, pancake ha scritto: /* Result of the benchmark: $ time ./a.out 1 real0m0.225s user0m0.223s sys 0m0.000s $ time ./a.out 0 real0m0.380s user0m0.377s sys 0m0.000s */ Well, since the difference seems sensible, it would

Re: [Vala] Vala broken on non-gnu systems

2011-03-16 Thread Alexander Kojevnikov
On 16 March 2011 13:49, Anatol Pomozov anatol.pomo...@gmail.com wrote: On Tue, Mar 15, 2011 at 10:46 PM, Alexander Kojevnikov alexan...@kojevnikov.com wrote: On 16 March 2011 12:07, Anatol Pomozov anatol.pomo...@gmail.com wrote: While you are here you might want to fix tests/testrunner.sh that

Re: [Vala] Vala broken on non-gnu systems

2011-03-16 Thread Anatol Pomozov
Hi On Tue, Mar 15, 2011 at 11:43 PM, Alexander Kojevnikov alexan...@kojevnikov.com wrote: On 16 March 2011 13:49, Anatol Pomozov anatol.pomo...@gmail.com wrote: On Tue, Mar 15, 2011 at 10:46 PM, Alexander Kojevnikov alexan...@kojevnikov.com wrote: On 16 March 2011 12:07, Anatol Pomozov

Re: [Vala] Vala broken on non-gnu systems

2011-03-16 Thread Anatol Pomozov
Hi On Wed, Mar 16, 2011 at 1:37 AM, Alexander Kojevnikov alexan...@kojevnikov.com wrote: On 16 March 2011 16:33, Anatol Pomozov anatol.pomo...@gmail.com wrote: But now tests are broken because of other error: make  check-TESTS TEST: Building...                                                

Re: [Vala] Vala broken on non-gnu systems

2011-03-16 Thread pancake
/* Result of the benchmark: $ time ./a.out 1 real0m0.225s user0m0.223s sys 0m0.000s $ time ./a.out 0 real0m0.380s user0m0.377s sys 0m0.000s */ #include string.h #include sys/types.h #define ITERS 10 int slen = ; char *str; static inline size_t mystrnlen(const

Re: [Vala] Vala broken on non-gnu systems

2011-03-16 Thread Jürg Billeter
On Tue, 2011-03-15 at 20:05 +0100, pancake wrote: The commit a2s2120.. dated at 2011-02-10 adds the use of strnlen function in glib-2.0.vapi. This function is a gnu extension on libc. This is not glib and this function is only available in GNU LibC. Do the build breaks on OSX, Windows and

[Vala] Vala broken on non-gnu systems

2011-03-15 Thread pancake
The commit a2s2120.. dated at 2011-02-10 adds the use of strnlen function in glib-2.0.vapi. This function is a gnu extension on libc. This is not glib and this function is only available in GNU LibC. Do the build breaks on OSX, Windows and probably all BSD systems. It would be great if

Re: [Vala] Vala broken on non-gnu systems

2011-03-15 Thread Anatol Pomozov
Hi On Tue, Mar 15, 2011 at 12:05 PM, pancake panc...@nopcode.org wrote: The commit a2s2120.. dated at 2011-02-10 adds the use of strnlen function in glib-2.0.vapi. This function is a gnu extension on libc. This is not glib and this function is only available in GNU LibC. Do the build

Re: [Vala] Vala broken on non-gnu systems

2011-03-15 Thread Alexander Kojevnikov
On 16 March 2011 12:07, Anatol Pomozov anatol.pomo...@gmail.com wrote: While you are here you might want to fix tests/testrunner.sh that also uses GNU extension (xargs -r). See line 167. Which Unix are you using? FreeBSD's xarg works fine with or without the -r option: -r

Re: [Vala] Vala broken on non-gnu systems

2011-03-15 Thread Anatol Pomozov
Hi On Tue, Mar 15, 2011 at 10:46 PM, Alexander Kojevnikov alexan...@kojevnikov.com wrote: On 16 March 2011 12:07, Anatol Pomozov anatol.pomo...@gmail.com wrote: While you are here you might want to fix tests/testrunner.sh that also uses GNU extension (xargs -r). See line 167. Which Unix are