Summary: | sys-libc/glibc-2.4-r4 fails to build with -D_FILE_OFFSET_BITS=64 in CFLAGS | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Marco Clocchiatti <ziapannocchia> |
Component: | New packages | Assignee: | Gentoo Toolchain Maintainers <toolchain> |
Status: | RESOLVED INVALID | ||
Severity: | normal | CC: | vladimir |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | emerge info + emerge log |
Description
Marco Clocchiatti
2007-02-24 19:49:34 UTC
Created attachment 111145 [details]
emerge info + emerge log
The new summary is wrong. please change: "both glibc-2.5 and glibc-2.4-r4 fails to build" or something else. same behaviour booting directly in 32-bit environment. chroot seems to be not related with this issue. remove -D_FILE_OFFSET_BITS=64 from your CFLAGS sorry if I reopen the bug, just to precise a particular and to do a question. In my system, glibc-2.4-r4 is correctly compiled with "-D_FILE_OFFSET_BITS=64". s939 ~ # bzcat /var/db/pkg/sys-libs/glibc-2.4-r4/environment.bz2 |grep CFLAGS_BASE=|tail -n2 CFLAGS_BASE='-O2 -march=i686 -fomit-frame-pointer -pipe -D_FILE_OFFSET_BITS=64' CFLAGS_BASE=${CFLAGS_BASE-${CFLAGS}}; May be, the problem arise from the new gcc version, which would be uncompatible with it. anyway, you are rigth. moving the wrong CFLAG, glibc compiles fine. I use -D_FILE_OFFSET_BITS=64 because, some time ago, some programs (such as wget) had problems with long size files. so, that's the question: Today, does make it sense to hold this flag, or you suggest to remove it forever? Never put -D<something> to define a macro in CFLAGS (for one thing, it breaks gcj). If they go anywhere, it should be CPPFLAGS. As for -D_FILE_OFFSET_BITS=64, if a package failed without it, bug about that package, don't set it globally (it's likely a configure failure for the affected package). *** Bug 188164 has been marked as a duplicate of this bug. *** |