[MacPorts] #35526: glib2: error: libelf.h: No such file or directory (was: Install of gerbv fails at glib2)

MacPorts noreply at macports.org
Sat Aug 4 13:58:23 PDT 2012


#35526: glib2: error: libelf.h: No such file or directory
---------------------------------+------------------------------------------
 Reporter:  wcontello@…          |       Owner:  ryandesign@…           
     Type:  defect               |      Status:  new                    
 Priority:  Normal               |   Milestone:                         
Component:  ports                |     Version:  2.1.2                  
 Keywords:                       |        Port:  glib2                  
---------------------------------+------------------------------------------
Changes (by ryandesign@…):

  * keywords:  gerbv glib2 =>
  * owner:  macports-tickets@… => ryandesign@…
  * port:  gerbv => glib2


Old description:

> This is an attempt to install "gerbv" under Mac OS X Mountain Lion.  I
> have uninstalled all ports (sudo port -fp uninstall installed), removed
> directories:
> sudo rm -rf \
>     /opt/local \
>     /Applications/DarwinPorts \
>     /Applications/MacPorts \
>     /Library/LaunchDaemons/org.macports.* \
>     /Library/Receipts/DarwinPorts*.pkg \
>     /Library/Receipts/MacPorts*.pkg \
>     /Library/StartupItems/DarwinPortsStartup \
>     /Library/Tcl/darwinports1.0 \
>     /Library/Tcl/macports1.0 \
>     ~/.macports
>
> reinstall MacPorts from the 2.1.2 installer.
> Installed the XCode CLI tools, X11
>
> Here is the transcript:
>
> proton:~ wayne$ sudo port install gerbv
> Password:
> --->  Computing dependencies for gerbv
> --->  Dependencies to be installed: gtk2 atk glib2 gobject-introspection
> cairo fontconfig freetype bzip2 pkgconfig libpixman libpng xorg-xcb-util
> xorg-libxcb python27 db46 libedit python_select sqlite3 xorg-libXau xorg-
> xproto xorg-libXdmcp xorg-libpthread-stubs xorg-xcb-proto libxml2 xrender
> xorg-libX11 xorg-bigreqsproto xorg-inputproto xorg-kbproto xorg-
> xcmiscproto xorg-xextproto xorg-xf86bigfontproto xorg-xtrans xorg-
> renderproto gdk-pixbuf2 jasper jpeg tiff hicolor-icon-theme pango Xft2
> shared-mime-info intltool gnome-common p5.12-getopt-long p5.12-pathtools
> p5.12-scalar-list-utils p5.12-xml-parser xorg-libXcomposite xorg-
> compositeproto xorg-libXext autoconf help2man p5.12-locale-gettext m4
> automake libtool xorg-util-macros xorg-libXfixes xorg-fixesproto xorg-
> libXcursor xorg-libXdamage xorg-damageproto xorg-libXi xorg-libXinerama
> xorg-xineramaproto xorg-libXrandr xorg-randrproto
> --->  Building glib2
> Error: org.macports.build for port glib2 returned: command execution
> failed
> Error: Failed to install glib2
> Please see the log file for port glib2 for details:
> /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_glib2/glib2/main.log
> Error: The following dependencies were not installed: gtk2 atk glib2
> gobject-introspection cairo fontconfig freetype bzip2 pkgconfig libpixman
> libpng xorg-xcb-util xorg-libxcb python27 db46 libedit python_select
> sqlite3 xorg-libXau xorg-xproto xorg-libXdmcp xorg-libpthread-stubs xorg-
> xcb-proto libxml2 xrender xorg-libX11 xorg-bigreqsproto xorg-inputproto
> xorg-kbproto xorg-xcmiscproto xorg-xextproto xorg-xf86bigfontproto xorg-
> xtrans xorg-renderproto gdk-pixbuf2 jasper jpeg tiff hicolor-icon-theme
> pango Xft2 shared-mime-info intltool gnome-common p5.12-getopt-long
> p5.12-pathtools p5.12-scalar-list-utils p5.12-xml-parser xorg-
> libXcomposite xorg-compositeproto xorg-libXext autoconf help2man p5.12
> -locale-gettext m4 automake libtool xorg-util-macros xorg-libXfixes xorg-
> fixesproto xorg-libXcursor xorg-libXdamage xorg-damageproto xorg-libXi
> xorg-libXinerama xorg-xineramaproto xorg-libXrandr xorg-randrproto
> To report a bug, follow the instructions in the guide:
>     http://guide.macports.org/#project.tickets
> Error: Processing of port gerbv failed
> proton:~ wayne$

New description:

 This is an attempt to install "gerbv" under Mac OS X Mountain Lion.  I
 have uninstalled all ports ({{{sudo port -fp uninstall installed}}}),
 removed directories:
 {{{
 sudo rm -rf \
     /opt/local \
     /Applications/DarwinPorts \
     /Applications/MacPorts \
     /Library/LaunchDaemons/org.macports.* \
     /Library/Receipts/DarwinPorts*.pkg \
     /Library/Receipts/MacPorts*.pkg \
     /Library/StartupItems/DarwinPortsStartup \
     /Library/Tcl/darwinports1.0 \
     /Library/Tcl/macports1.0 \
     ~/.macports
 }}}

 reinstall MacPorts from the 2.1.2 installer. [[br]]
 Installed the XCode CLI tools, X11

 Here is the transcript:

 {{{
 proton:~ wayne$ sudo port install gerbv
 Password:
 --->  Computing dependencies for gerbv
 --->  Dependencies to be installed: gtk2 atk glib2 gobject-introspection
 cairo fontconfig freetype bzip2 pkgconfig libpixman libpng xorg-xcb-util
 xorg-libxcb python27 db46 libedit python_select sqlite3 xorg-libXau xorg-
 xproto xorg-libXdmcp xorg-libpthread-stubs xorg-xcb-proto libxml2 xrender
 xorg-libX11 xorg-bigreqsproto xorg-inputproto xorg-kbproto xorg-
 xcmiscproto xorg-xextproto xorg-xf86bigfontproto xorg-xtrans xorg-
 renderproto gdk-pixbuf2 jasper jpeg tiff hicolor-icon-theme pango Xft2
 shared-mime-info intltool gnome-common p5.12-getopt-long p5.12-pathtools
 p5.12-scalar-list-utils p5.12-xml-parser xorg-libXcomposite xorg-
 compositeproto xorg-libXext autoconf help2man p5.12-locale-gettext m4
 automake libtool xorg-util-macros xorg-libXfixes xorg-fixesproto xorg-
 libXcursor xorg-libXdamage xorg-damageproto xorg-libXi xorg-libXinerama
 xorg-xineramaproto xorg-libXrandr xorg-randrproto
 --->  Building glib2
 Error: org.macports.build for port glib2 returned: command execution
 failed
 Error: Failed to install glib2
 Please see the log file for port glib2 for details:
 /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_glib2/glib2/main.log
 Error: The following dependencies were not installed: gtk2 atk glib2
 gobject-introspection cairo fontconfig freetype bzip2 pkgconfig libpixman
 libpng xorg-xcb-util xorg-libxcb python27 db46 libedit python_select
 sqlite3 xorg-libXau xorg-xproto xorg-libXdmcp xorg-libpthread-stubs xorg-
 xcb-proto libxml2 xrender xorg-libX11 xorg-bigreqsproto xorg-inputproto
 xorg-kbproto xorg-xcmiscproto xorg-xextproto xorg-xf86bigfontproto xorg-
 xtrans xorg-renderproto gdk-pixbuf2 jasper jpeg tiff hicolor-icon-theme
 pango Xft2 shared-mime-info intltool gnome-common p5.12-getopt-long
 p5.12-pathtools p5.12-scalar-list-utils p5.12-xml-parser xorg-
 libXcomposite xorg-compositeproto xorg-libXext autoconf help2man p5.12
 -locale-gettext m4 automake libtool xorg-util-macros xorg-libXfixes xorg-
 fixesproto xorg-libXcursor xorg-libXdamage xorg-damageproto xorg-libXi
 xorg-libXinerama xorg-xineramaproto xorg-libXrandr xorg-randrproto
 To report a bug, follow the instructions in the guide:
     http://guide.macports.org/#project.tickets
 Error: Processing of port gerbv failed
 proton:~ wayne$
 }}}

--

Comment:

 The log says:
 {{{
 :info:build gresource-tool.c:34:20: error: libelf.h: No such file or
 directory
 }}}
 This sounds like #33948 which I thought I had worked around. However
 before we get carried away analyzing this, the log also says:
 {{{
 :debug:main Skipping completed org.macports.archivefetch (glib2)
 :debug:main Skipping completed org.macports.fetch (glib2)
 :debug:main Skipping completed org.macports.checksum (glib2)
 :debug:main Skipping completed org.macports.extract (glib2)
 :debug:main Skipping completed org.macports.patch (glib2)
 :debug:main Skipping completed org.macports.configure (glib2)
 }}}
 This means this was not a clean build attempt so we should not trust it.
 Please run:
 {{{
 sudo port clean glib2
 }}}
 Then try again. If it fails again, then attach the new main.log.

-- 
Ticket URL: <https://trac.macports.org/ticket/35526#comment:1>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list