sparcv9-sun-solaris2.10-gcc -O3 -pipe -I/scratch/tmp/gentoo/sparcv9/usr/lib/gnulib/include -D_GNU_SOURCE -DVERSION="0.1.19" -o paxelf.o -c paxelf.c paxmacho.c: In function 'readmacho_buffer': paxmacho.c:275: warning: cast increases required alignment of target type paxmacho.c:305: warning: cast increases required alignment of target type paxmacho.c: In function 'firstloadcmd': paxmacho.c:357: warning: cast increases required alignment of target type paxmacho.c: In function 'nextloadcmd': paxmacho.c:395: warning: cast increases required alignment of target type sparcv9-sun-solaris2.10-gcc -O3 -pipe -I/scratch/tmp/gentoo/sparcv9/usr/lib/gnulib/include -D_GNU_SOURCE -DVERSION="0.1.19" -o scanmacho.o -c scanmacho.c scanmacho.c: In function 'macho_file_needed_lib': scanmacho.c:98: warning: cast increases required alignment of target type scanmacho.c: In function 'macho_file_interp': scanmacho.c:146: warning: cast increases required alignment of target type scanmacho.c: In function 'macho_file_soname': scanmacho.c:179: warning: cast increases required alignment of target type note to self: scanelf has zillions of warnings like this on this platform too
a lot of the pax-utils code has these warnings on different systems (not just scanmacho). ive seen it on ia64/hppa/sparc linux systems. i dont really think it's a problem.
in the meanwhile I've found out what the compiler is exactly trying to tell, and I think it's harmless too
looking into a different issue, i narrowed down this problem and fixed it. just needed to use void* in important locations where the type really didnt matter.