On Sat, Dec 28, 2013 at 12:43:54AM -0800, David Martínez Moreno wrote: > On 12/27/13 5:20 AM, Sebastian Reichel wrote: > > On Fri, Dec 27, 2013 at 04:07:39AM -0800, David Martínez Moreno wrote: > >>>> gcc rabin2.o -L.. -o rabin2 -Wl,-z,relro > >>>> -L/«PKGBUILDDIR»/libr/lib -L/«PKGBUILDDIR»/libr/magic > >>>> -L/«PKGBUILDDIR»/libr/core -L/«PKGBUILDDIR»/libr/db > >>>> -L/«PKGBUILDDIR»/libr/bin -L/«PKGBUILDDIR»/libr/egg > >>>> -L/«PKGBUILDDIR»/libr/cons -L/«PKGBUILDDIR»/libr/config > >>>> -L/«PKGBUILDDIR»/libr/io -L/«PKGBUILDDIR»/libr/cmd > >>>> -L/«PKGBUILDDIR»/libr/flags -L/«PKGBUILDDIR»/libr/asm > >>>> -L/«PKGBUILDDIR»/libr/debug -L/«PKGBUILDDIR»/libr/hash > >>>> -L/«PKGBUILDDIR»/libr/lang -L/«PKGBUILDDIR»/libr/anal > >>>> -L/«PKGBUILDDIR»/libr/parse -L/«PKGBUILDDIR»/libr/bp > >>>> -L/«PKGBUILDDIR»/libr/reg -L/«PKGBUILDDIR»/libr/search > >>>> -L/«PKGBUILDDIR»/libr/syscall -L/«PKGBUILDDIR»/libr/sign > >>>> -L/«PKGBUILDDIR»/libr/diff -L/«PKGBUILDDIR»/libr/socket > >>>> -L/«PKGBUILDDIR»/libr/fs -L/«PKGBUILDDIR»/libr/magic > >>>> -L/«PKGBUILDDIR»/libr/util -lr_lib -lr_magic -lr_core -lr_db > >>>> -lr_bin -lr_egg -lr_cons -lr_config -lr_io -lr_cmd -lr_flags > >>>> -lr_asm -lr_debug -lr_hash -lr_lang -lr_anal -lr_parse -lr_bp > >>>> -lr_reg -lr_s > >> earch -lr_syscall -lr_sign -lr_diff -lr_socket -lr_fs -lr_magic > >> -lr_util -fPIC -ldl > >>>> /«PKGBUILDDIR»/libr/debug/libr_debug.so: undefined reference to `strlcat' > >>>> /«PKGBUILDDIR»/libr/debug/libr_debug.so: undefined reference to `strlcpy' > >>>> collect2: error: ld returned 1 exit status > >> > >> I have no idea yet on how to fix this. > > > > This seems to be a bug in kfreebsd's libc. The irony is, that both methods > > origin from the BSD world. > > > > I tried the following testcase on falla.debian.org: > > > > ---------------------------------------------------------- > > falla% cat test.c > > #include <stdlib.h> > > #include <string.h> > > > > int main(int argc, char **argv) { > > char *foo = "this is a test"; > > char *bar = malloc(100); > > strlcpy(bar, foo, 5); > > return 0; > > } > > falla% gcc test.c > > /tmp/ccp6Q0It.o: In function `main': > > test.c:(.text+0x3e): undefined reference to `strlcpy' > > collect2: error: ld returned 1 exit status > > ---------------------------------------------------------- > > Have you maybe opened a bug for the KFreeBSD porters? Have you tried > if libbsd > can help us here?
No. I just did a little testing if this is broken in the r2 buildsystem or if I can reproduce it without the r2 bits. -- Sebastian
signature.asc
Description: Digital signature