Opened 12 years ago

Closed 12 years ago

Last modified 11 years ago

#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)

main.log (658.2 KB) - added by g5pw (Aljaž Srebrnič) 12 years ago.
Main log

Download all attachments as: .zip

Change History (8)

comment:1 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: ryandesign@… removed
Owner: changed from macports-tickets@… to ryandesign@…
Summary: glib2 2.32.0 not buildingglib2: libelf.h: No such file or directory

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.

Changed 12 years ago by g5pw (Aljaž Srebrnič)

Attachment: main.log added

Main log

comment:2 Changed 12 years ago by g5pw (Aljaž Srebrnič)

Dammit, I always mess up something ;) Anyway, full main.log attached now...

comment:3 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Status: newassigned

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:4 Changed 12 years ago by bwalle (Bernhard Walle)

Cc: bernhard@… added

Cc Me!

comment:5 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: assignedclosed

comment:6 Changed 12 years ago by g5pw (Aljaž Srebrnič)

Thanks for the workaround, ryan!

comment:7 Changed 11 years ago by cooljeanius (Eric Gallager)

Cc: egall@… added

Cc Me!

Note: See TracTickets for help on using tickets.