Re: dnscurve updates
Andy Bradford <[email protected]>
| Newsgroups | gmane.network.djbdns |
|---|---|
| Message-ID | <[email protected]> |
Thus said Matthew Dempsky on Wed, 07 Oct 2009 14:25:44 PDT: > During compile time, NaCl automatically benchmarks how fast different > implementations run on the host using different compilers and compiler > flags and chooses the fastest one. The benchmarking, however, requires > system-specific code, and NaCl 20090405 just didn't include that code > for OpenBSD. It looks like there are other pieces missing. In the following case, it would appear that a different method for allocating aligned memory is being used than has been used in other programs written by Prof. Bernstein. Specifically, it uses posix_memalign which doesn't exist on OpenBSD: === Wed Jan 6 20:49:54 MST 2010 === x86 crypto_box/curve25519xsalsa20poly1305 measuring === Wed Jan 6 20:50:06 MST 2010 === starting commandline/nacl-sha256 === Wed Jan 6 20:50:06 MST 2010 === commandline/nacl-sha256 x86 gcc -m32 -O -fomit-frame-pointer /tmp//cctrMqzj.o(.text+0x163): In function `main': : undefined reference to `posix_memalign' collect2: ld returned 1 exit status Andy -- [-----------[system uptime]--------------------------------------------] 12:00pm up 28 min, 1 user, load average: 1.00, 1.07, 1.08