Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 718062 - dev-libs/lockdev-1.0.3.1.2-r3 : src/lockdev.c: error: #error put here a define for MAJOR and MINOR
Summary: dev-libs/lockdev-1.0.3.1.2-r3 : src/lockdev.c: error: #error put here a defin...
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-18 15:30 UTC by Toralf Förster
Modified: 2022-04-22 02:48 UTC (History)
1 user (show)

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


Attachments
emerge-info.txt (emerge-info.txt,18.67 KB, text/plain)
2020-04-18 15:30 UTC, Toralf Förster
Details
dev-libs:lockdev-1.0.3.1.2-r3:20200418-152257.log (dev-libs:lockdev-1.0.3.1.2-r3:20200418-152257.log,10.03 KB, text/plain)
2020-04-18 15:30 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,535.75 KB, text/plain)
2020-04-18 15:30 UTC, Toralf Förster
Details
environment (environment,142.97 KB, text/plain)
2020-04-18 15:30 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,39.17 KB, application/x-bzip)
2020-04-18 15:30 UTC, Toralf Förster
Details
logs.tbz2 (logs.tbz2,7.04 KB, application/x-bzip)
2020-04-18 15:31 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,37.63 KB, application/x-bzip)
2020-04-18 15:31 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-18 15:30:45 UTC
libtool: compile:  x86_64-gentoo-linux-musl-gcc -DPACKAGE_NAME=\lockdev\ -DPACKAGE_TARNAME=\lockdev\ -DPACKAGE_VERSION=\1.0.3\ -DPACKAGE_STRING=\lockdev 1.0.3\ -DPACKAGE_BUGREPORT=\BUG-REPORT-ADDRESS\ -DPACKAGE_URL=\\ -DPACKAGE=\lockdev\ -DVERSION=\1.0.3\ -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\.libs/\ -I. -O2 -pipe -march=native -c src/lockdev.c  -fPIC -DPIC -o .libs/lockdev.o
src/lockdev.c:131:4: error: #error put here a define for MAJOR and MINOR
  131 | #  error put here a define for MAJOR and MINOR
      |    ^~~~~
src/lockdev.c:242:4: error: #error lock filename build missing

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

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

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

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-bin-1.42.0
  [2]   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	Sat Apr 18 14:38:24 UTC 2020
/var/db/repos/musl	Fri Apr 17 19:37:05 UTC 2020

emerge -qpvO dev-libs/lockdev
[ebuild  N    ] dev-libs/lockdev-1.0.3.1.2-r3  USE="-perl"
Comment 1 Toralf Förster gentoo-dev 2020-04-18 15:30:48 UTC
Created attachment 633588 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-04-18 15:30:51 UTC
Created attachment 633590 [details]
dev-libs:lockdev-1.0.3.1.2-r3:20200418-152257.log
Comment 3 Toralf Förster gentoo-dev 2020-04-18 15:30:54 UTC
Created attachment 633592 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2020-04-18 15:30:56 UTC
Created attachment 633594 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2020-04-18 15:30:59 UTC
Created attachment 633596 [details]
etc.portage.tbz2
Comment 6 Toralf Förster gentoo-dev 2020-04-18 15:31:02 UTC
Created attachment 633598 [details]
logs.tbz2
Comment 7 Toralf Förster gentoo-dev 2020-04-18 15:31:05 UTC
Created attachment 633600 [details]
temp.tbz2
Comment 8 Larry the Git Cow gentoo-dev 2021-11-24 17:44:19 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6c663abb66064ad670526a0765ea16e081ba0bcc

commit 6c663abb66064ad670526a0765ea16e081ba0bcc
Author:     Marek Szuba <marecki@gentoo.org>
AuthorDate: 2021-11-24 17:42:15 +0000
Commit:     Marek Szuba <marecki@gentoo.org>
CommitDate: 2021-11-24 17:44:12 +0000

    dev-libs/lockdev: do not hardcode glibc-specific major() and minor()
    
    Bug: https://bugs.gentoo.org/718062
    Signed-off-by: Marek Szuba <marecki@gentoo.org>

 .../files/lockdev-1.0.3-add-autotools.patch        |  5 ++++-
 .../lockdev/files/lockdev-1.0.3-major-minor.patch  | 24 ++++++++++++++++++++++
 dev-libs/lockdev/lockdev-1.0.3.1.2-r4.ebuild       |  1 +
 3 files changed, 29 insertions(+), 1 deletion(-)
Comment 9 Marek Szuba archtester gentoo-dev 2021-11-24 17:46:42 UTC
This SHOULD have taken care of the problem but please check and confirm, musl users!