#33948 closed defect (fixed)
glib2: libelf.h: No such file or directory
Reported by: | g5pw (Aljaž Srebrnič) | Owned by: | ryandesign (Ryan Carsten Schmidt) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.0.4 |
Keywords: | Cc: | bwalle (Bernhard Walle), cooljeanius (Eric Gallager) | |
Port: | glib2 |
Description
When I try to upgrade glib2, it fails. The main error looks this:
:info:build gresource-tool.c:34:20: error: libelf.h: No such file or directory :info:build gresource-tool.c:35:18: error: gelf.h: No such file or directory
however, the include path seems ok.
Attachments (1)
Change History (8)
comment:1 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)
Cc: | ryandesign@… removed |
---|---|
Owner: | changed from macports-tickets@… to ryandesign@… |
Summary: | glib2 2.32.0 not building → glib2: libelf.h: No such file or directory |
comment:2 Changed 13 years ago by g5pw (Aljaž Srebrnič)
Dammit, I always mess up something ;) Anyway, full main.log attached now...
comment:3 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)
Status: | new → assigned |
---|
The only previous mention of ELF in your log is this line during the configure phase:
:info:configure checking for elf_begin in -lelf... yes
On my Snow Leopard system it says:
:info:configure checking for elf_begin in -lelf... no
And I would not have expected an ELF library to exist on an OS X system. Do you have a file whose name begins with libelf in a lib directory somewhere?
~ a moment of reflection passes ~
Well, look at that: we have a port called libelf, and it installs /opt/local/lib/libelf.a. If I install libelf, then try to build glib2, it fails as you indicate. I'll bet you have that port installed too. I'll soon fix that...
comment:5 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Note: See
TracTickets for help on using
tickets.
This is not a clean build log (it contains lines saying "Skipping completed"). Could you "sudo port clean glib2" and try again and then attach the new main.log?
I'm not sure why it's complaining about ELF things not being there, since ELF is never used on OS X.