Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 303777 - dev-libs/glib-2.22.4 can't build
Summary: dev-libs/glib-2.22.4 can't build
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo Linux bug wranglers
URL: N/A
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-02-06 17:29 UTC by Robert Bradbury
Modified: 2010-02-07 01:38 UTC (History)
0 users

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


Attachments
emerge --info (EmrgInfo.lst,4.24 KB, text/plain)
2010-02-06 17:31 UTC, Robert Bradbury
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Robert Bradbury 2010-02-06 17:29:06 UTC
Seem to be missing a declaration or dependency in the glib-2.22.4 ebuild.

Compile error is:
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../.. -DG_DISABLE_SINGLE_INCLUDES -pthread -DG_LOG_DOMAIN=\"GLib-GIO\" -I../.. -I../../glib -I../../gmodule -I../../gio -I../../gio -DG_ENABLE_DEBUG -DGIO_MODULE_DIR=\"/usr/lib/gio/modules\" -DGIO_COMPILATION -DG_DISABLE_DEPRECATED -O2 -march=prescott -pipe -Wall -MT libinotify_la-inotify-kernel.lo -MD -MP -MF .deps/libinotify_la-inotify-kernel.Tpo -c inotify-kernel.c  -fPIC -DPIC -o .libs/libinotify_la-inotify-kernel.o
inotify-kernel.c: In function '_ik_startup':
inotify-kernel.c:194: warning: implicit declaration of function 'inotify_init1'
inotify-kernel.c:194: error: 'IN_CLOEXEC' undeclared (first use in this function)
inotify-kernel.c:194: error: (Each undeclared identifier is reported only once
inotify-kernel.c:194: error: for each function it appears in.)

Reproducible: Always

Steps to Reproduce:
1. emerge glib

Actual Results:  
Emerge fails.

Expected Results:  
It should emerge.

USE="debug doc fam -hardened (-selinux) -xattr"
Comment 1 Robert Bradbury 2010-02-06 17:31:14 UTC
Created attachment 218689 [details]
emerge --info

I try to use the cutting edge release of all of the system libraries.
Comment 2 Rafał Mużyło 2010-02-06 18:56:12 UTC
Seems you've got a stale header somewhere,
/usr/include/linux/inotify.h defines IN_CLOEXEC
and your version of linux-headers seems recent enough.
Comment 3 Robert Bradbury 2010-02-07 01:38:09 UTC
I'll accept this explanation for now.  The are older files under /usr/local/bin, /usr/local/include, etc. that sometimes get picked up in my compiles particularly when libtool, cmake and a handful of other "intelligent" build commands get involved.

I don't know how to make libtool stop using /usr/local and so have implemented workarounds (like renaming /usr/local temporarily).  The packaging for that exercise sometimes works and sometimes has problems.

Attempting to emerge glib again worked ok and there were minor differences between the packaging scripts today and during previous attempts.

So I'll mark it as fixed for now.