Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 597880

Summary: app-emulation/dosemu-1.4.1_pre20091009 fails to emerge: You need glibc-2.1.3 or newer
Product: Gentoo Linux Reporter: gentoo
Component: Current packagesAssignee: Hanno Böck <hanno>
Status: RESOLVED OBSOLETE    
Severity: normal CC: gentoo, jstein, slyfox
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge --info output
work/dosemu/config.log

Description gentoo 2016-10-23 14:58:24 UTC
Created attachment 451154 [details]
emerge --info output

Trying to emerge dosemu (stable on amd64), it fails with this error message:

configure: error: Sorry, you need glibc-2.1.3 or newer.

But the version of glibc installed on this system is newer:

glibc: Installed versions:  2.22-r4

Attaching emerge --info and also the file work/dosemu/config.log as prompted by the bug message.
Comment 1 gentoo 2016-10-23 14:59:39 UTC
Created attachment 451156 [details]
work/dosemu/config.log
Comment 2 Rafał Mużyło 2016-10-24 20:00:43 UTC
config.log unfortunately doesn't cache values for its glibc version test.

What does 'printf '%b\n' '#include <features.h>\nXXAaZZ __GLIBC__ XXBbZZ __GLIBC_MINOR__'|gcc -E -|awk '/XXAaZZ/ {print $2 " " $4}'' return ?
Comment 3 gentoo 2016-10-26 04:41:33 UTC
Thanks.  The command returns nothing, an empty line.
Comment 4 Sergei Trofimovich (RETIRED) gentoo-dev 2016-10-29 09:56:19 UTC
Same here. Is your /bin/sh non-bash by chance?

Seems default-configure needs /bin/bash, not just /bin/sh. I'll tweak it.
Comment 5 Sergei Trofimovich (RETIRED) gentoo-dev 2016-10-29 10:11:56 UTC
Oh, the real bug here is how preprocessor returns a value nowadays:

$ printf '%b\n' '#include <features.h>\nXXAaZZ __GLIBC__ XXBbZZ __GLIBC_MINOR__'|cc -E -


    # 2 "<stdin>" 2
    XXAaZZ 
    # 2 "<stdin>" 3 4
          2 
    # 2 "<stdin>"
                    XXBbZZ 
    # 2 "<stdin>" 3 4
                           23

The
    awk '/XXAaZZ/ {print $2 " " $4}'
won't be able to catch it because it assumes result will take single line.
Comment 6 Sergei Trofimovich (RETIRED) gentoo-dev 2016-10-29 10:36:17 UTC
There was another issue with extern inline function on modern gcc
on old dosemu version. Ive stabilized new version and removed old
completely:

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