Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 715580 - sys-boot/lilo-24.2 : lilo.c: error: _GLIBC_ undeclared (first use in this function)
Summary: sys-boot/lilo-24.2 : lilo.c: error: _GLIBC_ undeclared (first use in this fun...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Joshua Kinard
URL:
Whiteboard:
Keywords: InOverlay
Depends on:
Blocks: missing-musl-includes
  Show dependency tree
 
Reported: 2020-03-31 07:11 UTC by Toralf Förster
Modified: 2021-06-06 20:01 UTC (History)
3 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,15.63 KB, text/plain)
2020-03-31 07:11 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,140.46 KB, text/plain)
2020-03-31 07:11 UTC, Toralf Förster
Details
environment (environment,88.72 KB, text/plain)
2020-03-31 07:11 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,12.99 KB, application/x-bzip)
2020-03-31 07:11 UTC, Toralf Förster
Details
sys-boot:lilo-24.2:20200331-063712.log (sys-boot:lilo-24.2:20200331-063712.log,5.55 KB, text/plain)
2020-03-31 07:11 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,22.51 KB, application/x-bzip)
2020-03-31 07:11 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-03-31 07:11:38 UTC
      |   ^~~~~~~
lilo.c: In function configuration:
lilo.c:185:37: error: __GLIBC__ undeclared (first use in this function); did you mean __LINE__?
  185 |   printf(\nglibc version %d.%d\n, __GLIBC__, __GLIBC_MINOR__);
      |                                     ^~~~~~~~~
      |                                     __LINE__

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

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

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

  Please see the tracker bug for details.

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 *

timestamp of HEAD at this tinderbox image:
/var/db/repos/gentoo	Tue Mar 31 03:14:53 UTC 2020
/var/db/repos/musl	Fri Mar 27 00:25:27 UTC 2020

emerge -qpvO sys-boot/lilo
--- Invalid atom in /var/db/repos/gentoo/profiles/package.mask: games-fps/ut2003-bonuspack-cm-1
Comment 1 Toralf Förster gentoo-dev 2020-03-31 07:11:41 UTC
Created attachment 627850 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-03-31 07:11:44 UTC
Created attachment 627852 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2020-03-31 07:11:47 UTC
Created attachment 627854 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2020-03-31 07:11:51 UTC
Created attachment 627856 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2020-03-31 07:11:55 UTC
Created attachment 627858 [details]
sys-boot:lilo-24.2:20200331-063712.log
Comment 6 Toralf Förster gentoo-dev 2020-03-31 07:11:58 UTC
Created attachment 627860 [details]
temp.tbz2
Comment 7 Michael 'veremitz' Everitt 2020-03-31 07:25:59 UTC
See lilo-24.1 in ::musl
Comment 8 Larry the Git Cow gentoo-dev 2021-06-06 20:01:55 UTC
The bug has been closed via the following commit(s):

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

commit bf9a976299a0277b616aee32caf98f9ab4585428
Author:     Joshua Kinard <kumba@gentoo.org>
AuthorDate: 2021-06-06 20:01:25 +0000
Commit:     Joshua Kinard <kumba@gentoo.org>
CommitDate: 2021-06-06 20:01:45 +0000

    sys-boot/lilo: Fix bugs #753608 and #715580
    
    Add QA_FLAGS_IGNORED for '/sbin/lilo' to address Bug #753608 and
    Add a small patch to check for '__GLIBC__' before a printf() call
    that references it to avoid compilation errors on non-glibc systems
    to fix Bug #715580.  Also remove the unneeded 'eutils' inherit.
    
    Closes: https://bugs.gentoo.org/753608
    Closes: https://bugs.gentoo.org/715580
    Signed-off-by: Joshua Kinard <kumba@gentoo.org>
    Package-Manager: Portage-3.0.19, Repoman-3.0.3

 .../lilo/files/lilo-24.x-check-for-__GLIBC__.patch     | 18 ++++++++++++++++++
 sys-boot/lilo/lilo-24.2.ebuild                         |  7 ++++++-
 2 files changed, 24 insertions(+), 1 deletion(-)