erthink/ReOpenLDAP

Make it build on armhf/arm64

sokoow opened this issue · 1 comments

Currently doesn't build on arm/arm64:

make
make --no-print-directory all-recursive
Making all in build/libltdl
make --no-print-directory all-am
make[3]: Nothing to be done for 'all-am'.
Making all in include
make --no-print-directory all-am
Making all in libraries
Making all in liblunicode
make --no-print-directory all-am
make[4]: Nothing to be done for 'all-am'.
Making all in liblutil
make --no-print-directory all-am
make[4]: Nothing to be done for 'all-am'.
Making all in libreldap
make --no-print-directory all-am
  CC       hipagut.lo
hipagut.c: In function ‘unaligned_load_noasan’:
hipagut.c:48:28: warning: passing argument 2 of ‘__builtin_memcpy’ discards ‘volatile’ qualifier from pointer target type [-Wdiscarded-qualifiers]
   __builtin_memcpy(&local, ptr, 8);
                            ^
hipagut.c:48:28: note: expected ‘const void *’ but argument is of type ‘const volatile void *’
hipagut.c: In function ‘unaligned_load’:
hipagut.c:63:28: warning: passing argument 2 of ‘__builtin_memcpy’ discards ‘volatile’ qualifier from pointer target type [-Wdiscarded-qualifiers]
   __builtin_memcpy(&local, ptr, 8);
                            ^
hipagut.c:63:28: note: expected ‘const void *’ but argument is of type ‘const volatile void *’
hipagut.c: In function ‘unaligned_store’:
hipagut.c:76:20: warning: passing argument 1 of ‘__builtin_memcpy’ discards ‘volatile’ qualifier from pointer target type [-Wdiscarded-qualifiers]
   __builtin_memcpy(ptr, &value, ptr, 8);
                    ^
hipagut.c:76:20: note: expected ‘void *’ but argument is of type ‘volatile void *’
hipagut.c:76:33: warning: passing argument 3 of ‘__builtin_memcpy’ makes integer from pointer without a cast [-Wint-conversion]
   __builtin_memcpy(ptr, &value, ptr, 8);
                                 ^
hipagut.c:76:33: note: expected ‘long unsigned int’ but argument is of type ‘volatile void *’
hipagut.c:76:3: error: too many arguments to function ‘__builtin_memcpy’
   __builtin_memcpy(ptr, &value, ptr, 8);
   ^
Makefile:824: recipe for target 'hipagut.lo' failed
make[4]: *** [hipagut.lo] Error 1
Makefile:563: recipe for target 'all' failed
make[3]: *** [all] Error 2
Makefile:475: recipe for target 'all-recursive' failed
make[2]: *** [all-recursive] Error 1
Makefile:532: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
Makefile:464: recipe for target 'all' failed
make: *** [all] Error 2

?