Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 716298 - sys-apps/prctl-1.6 : /.../prctl.h: error: redefinition of struct prctl_mm_map
Summary: sys-apps/prctl-1.6 : /.../prctl.h: error: redefinition of struct prctl_mm_map
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo musl team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-04-05 11:19 UTC by Toralf Förster
Modified: 2020-04-06 21:14 UTC (History)
2 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,16.65 KB, text/plain)
2020-04-05 11:19 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,335.18 KB, text/plain)
2020-04-05 11:19 UTC, Toralf Förster
Details
environment (environment,47.12 KB, text/plain)
2020-04-05 11:19 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,25.75 KB, application/x-bzip)
2020-04-05 11:19 UTC, Toralf Förster
Details
logs.tbz2 (logs.tbz2,961 bytes, application/x-bzip)
2020-04-05 11:19 UTC, Toralf Förster
Details
sys-apps:prctl-1.6:20200405-100700.log (sys-apps:prctl-1.6:20200405-100700.log,3.03 KB, text/plain)
2020-04-05 11:19 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,12.85 KB, application/x-bzip)
2020-04-05 11:19 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2020-04-05 11:19:01 UTC
x86_64-gentoo-linux-musl-gcc -c -DSTDC_HEADERS=1 -DHAVE_UNISTD_H=1 -DHAVE_STRERROR=1  -O2 -pipe -march=native prctl.c
In file included from prctl.c:30:
/usr/include/sys/prctl.h:88:8: error: redefinition of struct prctl_mm_map
   88 | struct prctl_mm_map {
      |        ^~~~~~~~~~~~
In file included from prctl.c:29:

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.0_musl-20200328-141627

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-gentoo-linux-musl-9.3.0 *
clang version 10.0.0 
Target: x86_64-gentoo-linux-musl
Thread model: posix
InstalledDir: /usr/lib/llvm/10/bin
/usr/lib/llvm/10
10.0.0
Available Python interpreters, in order of preference:
  [1]   python3.8
  [2]   python3.7
  [3]   python3.6
  [4]   python2.7 (fallback)
Available Ruby profiles:
  [1]   ruby24 (with Rubygems)
  [2]   ruby25 (with Rubygems) *
Available Rust versions:
  [1]   rust-1.42.0 *
The following VMs are available for generation-2:
Available Java Virtual Machines:
  (none found)


timestamp of HEAD at this tinderbox image:
/var/db/repos/gentoo	Sun Apr  5 08:37:46 UTC 2020
/var/db/repos/musl	Sat Apr  4 03:02:24 UTC 2020

emerge -qpvO sys-apps/prctl
[ebuild  N    ] sys-apps/prctl-1.6
Comment 1 Toralf Förster gentoo-dev 2020-04-05 11:19:04 UTC
Created attachment 630382 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-04-05 11:19:07 UTC
Created attachment 630384 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2020-04-05 11:19:09 UTC
Created attachment 630386 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2020-04-05 11:19:12 UTC
Created attachment 630388 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2020-04-05 11:19:15 UTC
Created attachment 630390 [details]
logs.tbz2
Comment 6 Toralf Förster gentoo-dev 2020-04-05 11:19:17 UTC
Created attachment 630392 [details]
sys-apps:prctl-1.6:20200405-100700.log
Comment 7 Toralf Förster gentoo-dev 2020-04-05 11:19:20 UTC
Created attachment 630394 [details]
temp.tbz2
Comment 8 Sergei Trofimovich (RETIRED) gentoo-dev 2020-04-06 21:08:32 UTC
Struct definition collision. 'prctl_mm_map' comes from two headers:

In file included from prctl.c:30:
/usr/include/sys/prctl.h:88:8: error: redefinition of 'struct prctl_mm_map'
   88 | struct prctl_mm_map {
      |        ^~~~~~~~~~~~
In file included from prctl.c:29:
/usr/include/linux/prctl.h:134:8: note: originally defined here
  134 | struct prctl_mm_map {
      |        ^~~~~~~~~~~~
make: *** [Makefile:70: prctl.o] Error 1

$ qfile /usr/include/linux/prctl.h
sys-kernel/linux-headers: /usr/include/linux/prctl.h
$ qfile /usr/include/sys/prctl.h
sys-libs/musl: /usr/include/sys/prctl.h
Comment 9 Larry the Git Cow gentoo-dev 2020-04-06 21:14:32 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=632211107cecdc1c9f59a610d1a247c94b2d817e

commit 632211107cecdc1c9f59a610d1a247c94b2d817e
Author:     Sergei Trofimovich <slyfox@gentoo.org>
AuthorDate: 2020-04-06 21:14:22 +0000
Commit:     Sergei Trofimovich <slyfox@gentoo.org>
CommitDate: 2020-04-06 21:14:22 +0000

    sys-apps/prctl: use only <sys/prctl.h>, bug #716298
    
    Reported-by: Toralf Förster
    Closes: https://bugs.gentoo.org/716298
    Package-Manager: Portage-2.3.96, Repoman-2.3.22
    Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>

 sys-apps/prctl/files/prctl-1.6-no-implicits.patch | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)