From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/10834 Path: news.gmane.org!.POSTED!not-for-mail From: Rich Felker Newsgroups: gmane.linux.lib.musl.general Subject: Re: PowerPC bits/user.h defining struct pt_regs Date: Fri, 30 Dec 2016 17:26:57 -0500 Message-ID: <20161230222657.GS1555@brightrain.aerifal.cx> References: <5866070D.8080604@adelielinux.org> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: blaine.gmane.org 1483136838 10249 195.159.176.226 (30 Dec 2016 22:27:18 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 30 Dec 2016 22:27:18 +0000 (UTC) User-Agent: Mutt/1.5.21 (2010-09-15) To: musl@lists.openwall.com Original-X-From: musl-return-10847-gllmg-musl=m.gmane.org@lists.openwall.com Fri Dec 30 23:27:14 2016 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by blaine.gmane.org with smtp (Exim 4.84_2) (envelope-from ) id 1cN5dj-0001Tr-Cm for gllmg-musl@m.gmane.org; Fri, 30 Dec 2016 23:27:07 +0100 Original-Received: (qmail 11642 invoked by uid 550); 30 Dec 2016 22:27:10 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Original-Received: (qmail 11611 invoked from network); 30 Dec 2016 22:27:09 -0000 Content-Disposition: inline In-Reply-To: <5866070D.8080604@adelielinux.org> Original-Sender: Rich Felker Xref: news.gmane.org gmane.linux.lib.musl.general:10834 Archived-At: On Fri, Dec 30, 2016 at 01:04:45AM -0600, A. Wilcox wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA256 > > While trying to compile packages on PowerPC that use the ptrace kernel > interface - including gdb, psmisc, strace, systemtap, and other > packages - we are always receiving this error: > > make[1]: Leaving directory > '/usr/src/sys-process/psmisc-22.21-r3/work/psmisc-22.21' > cd .. && make am--refresh > cd .. && make am--refresh > gcc -DHAVE_CONFIG_H -I. -I.. -Wall > - -DLOCALEDIR=\"/usr/share/locale\" -DPPC -O2 -mlong-double-64 > - -ggdb -mcpu=G3 -fno-omit-frame-pointer -c -o peekfd.o peekfd.c > In file included from /usr/include/sys/user.h:11:0, > from peekfd.c:33: > /usr/include/bits/user.h:1:8: error: redefinition of 'struct pt_regs' > struct pt_regs { > ^ > In file included from peekfd.c:30:0: > /usr/include/asm/ptrace.h:31:8: note: originally defined here > struct pt_regs { > ^ > > Removing the struct definition from bits/user.h fixes this error, but > I'm not entirely sure when pt_regs should be visible. This was discussed before but I don't remember the outcome. user.h needs to provide struct pt_regs on powerpc, because struct user includes members with that type. It's possible that the right solution will end up being removal of user.h from musl and providing it in a separate package that depends on kernel headers, at least for some archs. > Any help solving this issue, especially before 1.1.16 is cut, would be > greatly helpful in getting a viable PowerPC environment for user > enjoyment. :) I don't think it's a problem that has a short-term solution. :( Rich