Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 250359 - app-misc/pax-utils-0.1.19 fails to build on bsd
Summary: app-misc/pax-utils-0.1.19 fails to build on bsd
Status: RESOLVED DUPLICATE of bug 249731
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: solar (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-12-09 12:00 UTC by Alexis Ballier
Modified: 2008-12-09 13:42 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexis Ballier gentoo-dev 2008-12-09 12:00:20 UTC
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.
Comment 1 SpanKY gentoo-dev 2008-12-09 13:42:45 UTC

*** This bug has been marked as a duplicate of bug 249731 ***