After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 673132 - Make failed: fatal error: libelf.h: No such file or directory
Make failed: fatal error: libelf.h: No such file or directory
Status: RESOLVED FIXED
Product: glib
Classification: Platform
Component: build
2.32.x
Other Linux
: Normal normal
: ---
Assigned To: gtkdev
gtkdev
Depends on:
Blocks:
 
 
Reported: 2012-03-30 02:52 UTC by johndoe32102002
Modified: 2012-04-16 23:05 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
fix for the commited typo (245 bytes, patch)
2012-04-14 18:40 UTC, Rafał Mużyło
committed Details | Review

Description johndoe32102002 2012-03-30 02:52:41 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.
Comment 1 johndoe32102002 2012-03-30 03:01:48 UTC
This same bug was also seen by another user:
http://www.linuxquestions.org/questions/slackware-14/glib-2-22-not-glib2-937137/
Comment 2 Matthias Clasen 2012-03-30 21:14:42 UTC
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)
Comment 3 André Klapper 2012-04-01 15:49:26 UTC
Also see bug 673253
Comment 4 Matthias Clasen 2012-04-02 13:09:11 UTC
I've committed a more thorough configure check now, maybe you can try that ?
Comment 5 johndoe32102002 2012-04-04 01:00:26 UTC
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
Comment 6 Rafał Mużyło 2012-04-14 18:40:03 UTC
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
Comment 7 Matthias Clasen 2012-04-16 10:57:37 UTC
I saw a fix for the typo go in recently
Comment 8 johndoe32102002 2012-04-16 23:05:44 UTC
Thank you for fixing this bug.