The code in eina_debug.c requires the eina_swapX() functions on big endian platforms, so include the required header.
Do build on big endian platform like ppc64 or s390x.
first there is a warning in the build
lib/eina/eina_debug.c: In function ‘eina_debug_session_send’:
lib/eina/eina_debug.c:90:20: warning: implicit declaration of function ‘eina_swap32’ [-Wimplicit-function-declaration]
#define SWAP_32(x) eina_swap32(x)
lib/eina/eina_debug.c:149:15: note: in expansion of macro ‘SWAP_32’
hdr.size = SWAP_32(size + sizeof(Eina_Debug_Packet_Header)); ^~~~~~~
then an error
lib/eina/.libs/libeina.so: undefined reference to `eina_swap32'
Looking at the patch again (for a backport) I saw that it was credited under my name instead of the name of the author. I wanted to say sorry for that. No idea what went wrong here. I used my normal script to pick the patch from phab, review and push it.