Created attachment 566210 [details] build.log [...] powerpc-unknown-linux-gnu-gcc -o gtk-gnutella main.o if/bridge/ui2c.o if/bridge/c2ui.o if/gnet_property.o if/gui_property.o -Lshell -lshell -Lupnp -lupnp -Ldht -ldht -Lcore -lcore -Lcore/g2 -lg2 -Lui/gtk -lgtk-common -lgtkx -lgtk-common -Lxml -lxml -Llib -lshared -Lsdbm -lsdbm -lshared -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lpango-1.0 -lgobject-2.0 -lglib-2.0 -lgobject-2.0 -pthread -lglib-2.0 -ldbus-1 -lgnutls -pthread -Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu -lbfd -liberty -lz -lm -ldl lib/libshared.a(pattern.o): In function `pattern_strstr_tiny': pattern.c:(.text.hot+0x1cc): undefined reference to `ULONG_SWAP' lib/libshared.a(pattern.o): In function `pattern_strlen': pattern.c:(.text.hot+0x590): undefined reference to `ULONG_SWAP' lib/libshared.a(pattern.o): In function `pattern_memchr': pattern.c:(.text.hot+0x72c): undefined reference to `ULONG_SWAP' lib/libshared.a(pattern.o): In function `pattern_strchr': pattern.c:(.text.hot+0x820): undefined reference to `ULONG_SWAP' pattern.c:(.text.hot+0x874): undefined reference to `ULONG_SWAP' collect2: error: ld returned 1 exit status make[2]: *** [Makefile:257: gtk-gnutella] Error 1
Created attachment 566212 [details] emerge --info
This should be defined in src/lib/endian.rb or error out if the PTRSIZE is unexpected. #if PTRSIZE == 8 #define ULONG_SWAP(w) UINT64_SWAP(w) #elif PTRSIZE == 4 #define ULONG_SWAP(w) UINT32_SWAP(w) #else #error "unexpected pointer size" #endif From your error it looks like it isn't defined at all and treated as a function. I don't know enough about ppc internals to help here, sorry.
net-p2p/gtk-gnutella-1.1.15 builds fine again on ppc. I suppose it's this one: https://github.com/gtk-gnutella/gtk-gnutella/commit/078de36a86b6f7af260f257e7a583f99947e6998