Ralf S. Engelschall wrote on 26/07/2006 08:59:
> Seems like the beecrypt library headers contain things which break under
> OpenBSD. Either it is the BEECRYPTAPI macro or the swap16 conflicts with
> a macro somewhere in the OpenBSD system headers. Try to build BeeCrypt
> 4.1.2 stand-alone on OpenBSD first, hack the endianness.h to get it
> working and then let us integrate the hack into the bootstrap process.
i agree, but location of the problem is not really clear.
what is returned by compiler doesn't seem to stick with files
>> /tmp/openpkg-2.20060622/beecrypt-4.1.2/endianness.h:107: error: syntax
>> error before "__extension__"
>> /tmp/openpkg-2.20060622/beecrypt-4.1.2/endianness.h:107: error: syntax
>> error before '?' token
105 #else
106 BEECRYPTAPI
107 int16_t swap16 (int16_t);
108 BEECRYPTAPI
109 uint16_t swapu16(uint16_t);
no __extension__, no ?
>> /tmp/openpkg-2.20060622/beecrypt-4.1.2/endianness.h:31:1:
unterminated #else
>> /tmp/openpkg-2.20060622/beecrypt-4.1.2/endianness.h:26:1: unterminated
>> #ifndef
24 */
25
26 #ifndef _ENDIANNESS_H
27 #define _ENDIANNESS_H
28
29 #include "beecrypt/beecrypt.h"
30
31 #if defined(__cplusplus) || HAVE_INLINE
32
33 static inline int16_t _swap16(int16_t n)
34 {
if i look system files
$ grep -rin swap16 /usr/include/*
this can interested you
/usr/include/sys/endian.h:
>>>
#if __GNUC__
#define swap16(x) __extension__({ \
u_int16_t __swap16_x = (x); \
\
__builtin_constant_p(x) ? __swap16gen(__swap16_x) : \
__swap16md(__swap16_x); \
})
#define swap32(x) __extension__({ \
<<<
Regards
Julien
______________________________________________________________________
The OpenPKG Project www.openpkg.org
User Communication List [email protected]