This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/762] error: redefinition of 'struct ia64_fpreg'


http://sourceware.org/bugzilla/show_bug.cgi?id=762

Robin Johnson <robbat2 at gentoo dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
                 CC|                            |davidm at hpl dot hp.com,
                   |                            |robbat2 at gentoo dot org
           See Also|                            |https://bugs.gentoo.org/sho
                   |                            |w_bug.cgi?id=439188
         Resolution|INVALID                     |

--- Comment #3 from Robin Johnson <robbat2 at gentoo dot org> 2012-12-22 01:53:20 UTC ---
Sorry to reopen this, but I think this is the most relevant place to discuss
this problem, lest a new bug be marked as a duplicate.

The audit package:
http://people.redhat.com/sgrubb/audit/

This was discovered during the packaging of audit for Gentoo, as noted in the
linked bug (gentoo bug 439188).

Audit requires both the kernel audit headers, as well as signal.h, this leads
it to bring in both definitions of ia64_fpreg, and fail to compile.

audit-2.2.2/src/auditd.c:#include <signal.h>
audit-2.2.2/src/auditd.c:#include "libaudit.h"
audit-2.2.2/lib/libaudit.h:#include <linux/audit.h>

/usr/include/linux/audit.h: #include <linux/ptrace.h>
/usr/include/linux/ptrace.h:#include <asm/ptrace.h>
/usr/include/asm/ptrace.h:#include <asm/fpu.h>
/usr/include/asm/fpu.h:struct ia64_fpreg {

/usr/include/signal.h:# include <bits/sigcontext.h>
/usr/include/bits/sigcontext.h:struct ia64_fpreg

Can we please get this refactored to only have a single ia64_fpreg definition,
or have it protected by a common #ifdef, so that only one definition exists.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]