scanelf.c: In function ‘scanelf_file_sym’: scanelf.c:1074: warning: implicit declaration of function ‘strndup’ scanelf.c:1074: warning: incompatible implicit declaration of built-in function ‘strndup’ scanelf.c:1075: warning: incompatible implicit declaration of built-in function ‘strndup’ i686-gentoo-freebsd7.0-gcc -march=athlon-xp -O2 -pipe -g -ggdb -Wl,--as-needed paxelf.o paxinc.o xfuncs.o scanelf.o -o scanelf scanelf.o: In function `scanelf_file_sym': /var/tmp/portage/app-misc/pax-utils-0.1.19/work/pax-utils-0.1.19/scanelf.c:1075: undefined reference to `strndup' /var/tmp/portage/app-misc/pax-utils-0.1.19/work/pax-utils-0.1.19/scanelf.c:1074: undefined reference to `strndup' collect2: ld returned 1 exit status this line is at fault: this_sym = strndup(this_sym, next_sym-this_sym); maybe doing something like *(next_sym-1)=0 would do the trick instead.
*** This bug has been marked as a duplicate of bug 249731 ***