GNOME Bugzilla – Bug 673132
Make failed: fatal error: libelf.h: No such file or directory
Last modified: 2012-04-16 23:05:44 UTC
./configure ran without errors make failed with this error: gresource-tool.c:34:20: fatal error: libelf.h: No such file or directory Fix: Please add a check for libelf in the ./configure script. libelf: http://freecode.com/projects/libelf I am using Slackware 13 x64.
This same bug was also seen by another user: http://www.linuxquestions.org/questions/slackware-14/glib-2-22-not-glib2-937137/
configure already has a check for libelf: dnl ************************ dnl *** check for libelf *** dnl ************************ AC_CHECK_LIB([elf], [elf_begin], have_libelf=yes, have_libelf=no) if test $have_libelf = yes; then AC_DEFINE(HAVE_LIBELF, 1, [Define if libelf is available]) ELF_LIBS=-lelf fi AC_SUBST(ELF_LIBS)
Also see bug 673253
I've committed a more thorough configure check now, maybe you can try that ?
The git version gives me this error during the make: CC gchecksum.lo gchecksum.c: In function 'md5_sum_close': gchecksum.c:412:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] gchecksum.c:413:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] CC gconvert.lo gconvert.c:66:2: error: #error GNU libiconv not in use but included iconv.h is from libiconv
Created attachment 212054 [details] [review] fix for the commited typo There's a trivial typo in http://git.gnome.org/browse/glib/commit/configure.ac?h=glib-2-32&id=27d95bd81fabd41367cf000566ee2ccf3651652c
I saw a fix for the typo go in recently
Thank you for fixing this bug.