search for: byte_order

Displaying 20 results from an estimated 39 matches for "byte_order".

2001 Feb 27
4
Bad packet length in 2.5.1 with rijndael
it seems that this check does not work on solaris #if BYTE_ORDER != LITTLE_ENDIAN #define BYTE_SWAP #endif could you please check that BYTE_SWAP is defined in rijndael.c -m
2001 Feb 27
1
Bad packet length in 2.5.1 with rijndael (fwd)
I think we are not detecting and setting endianness properly for rijndael.c. Can someone on a big endian machine do a "ssh -2 -oCiphers=rijndael128-cbc littleendianmachine" and vice versa? -d -- | Damien Miller <djm at mindrot.org> \ ``E-mail attachments are the poor man's | http://www.mindrot.org / distributed filesystem'' - Dan Geer ----------
2013 Jun 21
3
[LLVMdev] Compiling llvm and Clang in solaris 10
I run configure in a build folder using CC=gcc CXX=g++ ../configure --prefix=/project/scratch/packages2/clang \ --enable-targets=host --enable-shared The configure runs fine but when I type make I get the error: make[1]: Entering directory `/project/scratch/tmp/llvm-3.3/build/lib/Support' llvm[1]: Compiling APFloat.cpp for Release+Asserts build In file included from
2007 Oct 28
0
9 commits - configure.ac libswfdec/swfdec_as_context.c libswfdec/swfdec_audio_internal.h libswfdec/swfdec_codec_audio.c libswfdec/swfdec_codec_gst.c libswfdec/swfdec_sound.c
...t;decoder.free = swfdec_audio_decoder_gst_free; @@ -402,17 +436,19 @@ swfdec_audio_decoder_gst_new (SwfdecAudioCodec type, SwfdecAudioFormat format) /* create audioconvert */ gst_caps_unref (srccaps); srccaps = sinkcaps; - sinkcaps = gst_caps_from_string ("audio/x-raw-int, endianness=byte_order, signed=(boolean)true, width=16, depth=16, channels=2"); + sinkcaps = gst_caps_from_string ("audio/x-raw-int, endianness=byte_order, signed=(boolean)true, width=16, depth=16, channels={2,1}"); g_assert (sinkcaps); if (!swfdec_gst_decoder_init (&player->convert, "au...
2001 Jul 02
0
rijndael byteswapping
...7 13:14:22 2001 +++ /Users/rbraun/OpenSSH/openssh/rijndael.c Mon Jun 25 18:00:24 2001 @@ -58,7 +58,8 @@ #define byte(x,n) ((u1byte)((x) >> (8 * n))) -#ifdef WORDS_BIGENDIAN +/* We can't trust WORDS_BIGENDIAN when building for multiple architectures at the same time */ +#if (defined(BYTE_ORDER) && defined(BIG_ENDIAN) && (BYTE_ORDER == BIG_ENDIAN)) || defined(WORDS_BIGENDIAN) #define BYTE_SWAP #endif
2002 Dec 30
1
R on the Zaurus link
...1 configure: failed program was: #line 12340 "configure" #include "confdefs.h" #include <sys/types.h> #include <sys/param.h> #ifdef F77_DUMMY_MAIN # ifdef __cplusplus extern "C" # endif int F77_DUMMY_MAIN() { return 1; } #endif int main () { #if BYTE_ORDER != BIG_ENDIAN not big endian #endif ; return 0; } configure:12481: result: no ============================================================= Might be something to do with the /sys/ tacked on the front of the types.h and param.h includes? In any case if you just want it to compile then use so...
2013 Jun 24
0
[LLVMdev] Compiling llvm and Clang in solaris 10
...he bug about the endian stuff, but we'll also have to have > an <endian.h> in Solaris as well. Do you still have issues after r182419? commit 01ef4f6982451e6a7c00a713d9ae677d3a15d042 Author: Jakob Stoklund Olesen <stoklund at 2pi.dk> Date: Tue May 21 13:36:13 2013 Define BYTE_ORDER on Solaris. Solaris doesn't have an endian.h header, but SPARC is the only big-endian architecture that runs Solaris, so just use that to detect endianness at compile time. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk at 182419 91177308-0d34-0410-b5e6-96231...
2012 Dec 12
8
[PATCH 0/5] update build system
This patch series modernizes various aspects of the autotools based build system. There is a lot more that could and should be done, but I tried to stay conservative for now and just resolve some of the most obvious issues. Max Horn (5): configure: replace XIPH_C_FIND_ENDIAN by AC_C_BIGENDIAN autogen.sh: replace this by a simple call to autoreconf configure: always print
2013 Jun 24
4
[LLVMdev] Compiling llvm and Clang in solaris 10
On Mon, Jun 24, 2013 at 6:17 PM, Jorge Rodrigues <skeept at gmail.com> wrote: > Norm, > > thanks for the help. Applying the fix solves the issue I mentioned but now I > have more issues. > > I can install clang, but when running I cannot compile and link files. > If I compile with -c flag it works but compiling the following x.c file > gives an error: >
2007 Oct 26
0
6 commits - configure.ac libswfdec/swfdec_codec_audio.c libswfdec/swfdec_codec_gst.c libswfdec/swfdec_codec_video.c player/swfplay.c
..._gst_free (&player->decoder); - return NULL; - } - gst_bin_add (GST_BIN (player->pipeline), convert); - g_signal_connect (decoder, "pad-added", - G_CALLBACK (swfdec_audio_decoder_gst_link), convert); - - caps = gst_caps_from_string ("audio/x-raw-int, endianness=byte_order, signed=(boolean)true, width=16, depth=16, rate=44100, channels=2"); - g_assert (caps); - if (!gst_element_link_filtered (fakesrc, decoder, player->srccaps) || - !gst_element_link_filtered (convert, fakesink, caps)) { - SWFDEC_ERROR ("linking failed"); - swfdec_audio_...
2004 Oct 22
0
libao-0.8.5 patch
...-82,7 +83,9 @@ { ao_raw_internal *internal = (ao_raw_internal *)device->internal; - if (!strcmp(key, "byteorder")) { + if (!strcmp(value, "file")) + ; + else if (!strcmp(key, "byteorder")) { if (!strcmp(value, "native")) internal->byte_order = AO_FMT_NATIVE; else if (!strcmp(value, "big")) @@ -91,7 +94,8 @@ internal->byte_order = AO_FMT_LITTLE; else return 0; /* Bad option value */ - } + } else + return 0; return 1; } diff -ur libao-0.8.5/src/ao_wav.c libao-0.8.5.new/src/ao_wav.c --- libao-0.8.5/src/ao_...
2010 Jul 13
0
Trying to compile 5.5p1
...| #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | /* end confdefs.h. */ | #include <sys/types.h> | #include <sys/param.h> | | int | main () | { | #if BYTE_ORDER != BIG_ENDIAN | not big endian | #endif | | ; | return 0; | } I know someone in Russia has already ported this version to ECS but I can't contact him and he has not (yet) published anything other than binaries as far as I know. Unfortuneatly he has built in dependence on another package w...
2015 Feb 12
0
Re: [PATCH 1/3] macosx: Includes/defines for byteswap operations
...E_BE32TOH) && !defined(be32toh) > + > +#if defined __APPLE__ && defined __MACH__ > +/* Define/include necessary items on MacOS X */ > +#include <machine/endian.h> > +#define __BIG_ENDIAN BIG_ENDIAN > +#define __LITTLE_ENDIAN LITTLE_ENDIAN > +#define __BYTE_ORDER BYTE_ORDER > +#include <libkern/OSByteOrder.h> > +#define __bswap_32 OSSwapConstInt32 > +#endif /* __APPLE__ */ > + > #if __BYTE_ORDER == __LITTLE_ENDIAN > #define be32toh(x) __bswap_32 (x) > #else > diff --git a/src/inspect-fs-windows.c b/src/inspect-fs-win...
2015 Feb 12
8
[PATCH 1/3] macosx: Includes/defines for byteswap operations
...for RHEL 5. */ #if !defined(HAVE_BE32TOH) && !defined(be32toh) + +#if defined __APPLE__ && defined __MACH__ +/* Define/include necessary items on MacOS X */ +#include <machine/endian.h> +#define __BIG_ENDIAN BIG_ENDIAN +#define __LITTLE_ENDIAN LITTLE_ENDIAN +#define __BYTE_ORDER BYTE_ORDER +#include <libkern/OSByteOrder.h> +#define __bswap_32 OSSwapConstInt32 +#endif /* __APPLE__ */ + #if __BYTE_ORDER == __LITTLE_ENDIAN #define be32toh(x) __bswap_32 (x) #else diff --git a/src/inspect-fs-windows.c b/src/inspect-fs-windows.c index 682157a..421a5b1 100644 ---...
2016 Jan 06
0
[klibc:master] Add pread and pwrite 32bit syscall wrappers for parisc
...rite.c | 29 +++++++++++++++++++++++++++++ 5 files changed, 69 insertions(+), 2 deletions(-) diff --git a/usr/include/endian.h b/usr/include/endian.h index a6cd6d9..61cda3a 100644 --- a/usr/include/endian.h +++ b/usr/include/endian.h @@ -12,4 +12,10 @@ #define PDP_ENDIAN __PDP_ENDIAN #define BYTE_ORDER __BYTE_ORDER +#if __BYTE_ORDER == __LITTLE_ENDIAN +# define __LONG_LONG_PAIR(HI, LO) LO, HI +#elif __BYTE_ORDER == __BIG_ENDIAN +# define __LONG_LONG_PAIR(HI, LO) HI, LO +#endif + #endif /* _ENDIAN_H */ diff --git a/usr/klibc/Kbuild b/usr/klibc/Kbuild index 40d43c7..d3e2b9f 100644 --- a/usr/k...
2007 Jan 08
2
Re: [nut-commits] svn commit r714 - in trunk: . server
...;((struct sockaddr_in *)net_addr)->sin_addr; > > - return ((*(u_int32_t *)(&ip6->s6_addr[0]) == 0) && > - (*(u_int32_t *)(&ip6->s6_addr[4]) == 0) && > - /* (*(u_int32_t *)(&ip6->s6_addr[8]) == ntohl(0x0000ffff)) && */ > -#if BYTE_ORDER == LITTLE_ENDIAN > - (*(u_int32_t *)(&ip6->s6_addr[8]) == (u_int32_t)0xffff0000) && > -#else > - (*(u_int32_t *)(&ip6->s6_addr[8]) == (u_int32_t)0x0000ffff) && > -#endif > - ((*(u_int32_t *)(&ip6->s6_addr[12]) & (u_int32_t)prefix) ==...
2011 Jan 16
2
[LLVMdev] About test suits Cont1
...ed identifier is reported only once conftest.c:26: error: for each function it appears in.) conftest.c:26: error: expected ';' before 'big' configure:4177: $? = 1 configure: failed program was: | #include <sys/types.h> | #include <sys/param.h> | | int | main () | { | #if BYTE_ORDER != BIG_ENDIAN | not big endian | #endif | | ; | return 0; | } error 3: configure:12186: gcc -c -g -O2 conftest.c >&5 conftest.c:104:16: error: dl.h: No such file or directory configure:12192: $? = 1 error 4: configure:12269: result: no configure:12302: checking for dl.h configure:123...
2007 Apr 08
0
libswfdec/swfdec_codec_audio.c libswfdec/swfdec_codec_gst.c
..._gst_free (&player->decoder); + return NULL; + } + gst_bin_add (GST_BIN (player->pipeline), convert); + g_signal_connect (decoder, "pad-added", + G_CALLBACK (swfdec_audio_decoder_gst_link), convert); + + caps = gst_caps_from_string ("audio/x-raw-int, endianness=byte_order, signed=(boolean)true, width=16, depth=16, rate=44100, channels=2"); + g_assert (caps); + if (!gst_element_link_filtered (fakesrc, decoder, player->srccaps) || + !gst_element_link_filtered (convert, fakesink, caps)) { + SWFDEC_ERROR ("linking failed"); + swfdec_audio_...
2016 Jan 06
5
[PATCH klibc 0/5] klibc architecture fixes
Here's an assortment of build and run-time fixes for various architectures that we've applied in Debian. Ben. Aurelien Jarno (1): ppc64: fix struct stat Ben Hutchings (2): MIPS: Update archfcntl.h syscalls: Override detection of direct socket syscalls on i386, m68k, s390 Helge Deller (1): Add pread and pwrite 32bit syscall wrappers for parisc Mauricio Faria de Oliveira
2005 Apr 19
0
R 2.0.1 install problem on Solaris 9
...AVE_ERRNO_H 1 | #define HAVE_STDARG_H 1 | #define HAVE_STRING_H 1 | #define HAVE_POSIX_SETJMP 1 | #define RETSIGTYPE void | #define HAVE_DECL_SIZE_MAX 1 | #define SOCKLEN_T socklen_t | /* end confdefs.h. */ | #include <sys/types.h> | #include <sys/param.h> | | int | main () | { | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN | bogus endian macros | #endif | | ; | return 0; | } configure:26038: gcc -o conftest -g -O2 -I/usr/include -L/opt/net/utils/gcc3.4.1/lib/ conftest.c cfortran_test.o -lreadline -ldl -ltermcap -lm -L/usr/ccs/lib -L/usr/lib -L/opt/net/utils/gcc3.4.1/lib/ -L/o...