Subject: pkg/22067: devel/pth broken on powerpc with --enable-syscall-hard
To: None <gnats-bugs@gnats.netbsd.org>
From: None <jtb@netbsd.org>
List: netbsd-bugs
Date: 07/06/2003 01:22:21
>Number: 22067
>Category: pkg
>Synopsis: pth on powerpc broken with --enable-syscall-hard
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Jul 06 00:27:01 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:
>Release: NetBSD 1.6U
>Organization:
>Environment:
System: NetBSD xxx 1.6U NetBSD 1.6U (Config19) #0: Thu Jun 19 19:29:05 IST 2003 jtb@:/home/jtb/sys/arch/macppc/compile/Config macppc
Architecture: powerpc
Machine: macppc
>Description:
devel/pth doesn't work for me on powerpc -current with --enable-syscall-hard.
I tracked it down to the following lines (224-227) in pth_syscall.c:
#if defined(HAVE_DLSYM) && defined(HAVE_RTLD_NEXT)
pth_syscall_fct_tab[i].addr = (pth_syscall_fct_t)
dlsym(RTLD_NEXT, pth_syscall_fct_tab[i].name);
#endif
So it's a dlsym() problem with RTLD_NEXT. With these lines commented
all of the tests are passed, otherwise all fail with seg faults.
>How-To-Repeat:
Build devel/pth on a recent powerpc installation. Do 'make -ik test' in ${WRKSRC}. Notice
that all tests fail.
>Fix:
For now disable the lines mentioned above for powerpc.
>Release-Note:
>Audit-Trail:
>Unformatted: