[MacPorts] #45413: gtk2 @ 2.24.25 fatal error: 'glib.h' file not found
#45413: gtk2 @ 2.24.25 fatal error: 'glib.h' file not found -------------------------------------------+------------------------------- Reporter: stflightning@… | Owner: macports- Type: defect | tickets@… Priority: Normal | Status: new Component: ports | Milestone: Keywords: gtk2 glib.h glib gtk yosemite | Version: 2.3.1 | Port: gtk2 -------------------------------------------+------------------------------- OS: OS X Yosemite 10.10 - Appleseed Beta 6 [[BR]] Xcode: Xcode 6.1 GM Seed 2 for OS X Yosemite What appears to keep happening, is in the {{{---> Building gtk2}}} phase, I get numerous errors saying {{{fatal error: 'glib.h' file not found}}} and one error saying {{{fatal error: 'gio/gio.h' file not found}}}. I have tried {{{sudo port clean gtk2 && sudo port install gtk2}}} numerous times, but it fails every single time when it gets to: {{{Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gnome_gtk2/gtk2/work/gtk+-2.24.25/gdk/x11'}}}[[BR]] It has some compile commands which appear to be fine then this command {{{ /usr/bin/clang -arch x86_64 -DHAVE_CONFIG_H -I. -I../.. -DG_LOG_DOMAIN=\"Gdk\" -DGDK_COMPILATION -I../.. -I../../gdk -I../../gdk -DG_DISABLE_CAST_CHECKS -D_REENTRANT -I/opt/local/include/pango-1.0 -I/opt/local/include/harfbuzz -I/opt/local/include/pango-1.0 -I/opt/local/include/gio-unix-2.0/ -I/opt/local/include -I/opt/local/include/gdk-pixbuf-2.0 -I/opt/local/include/libpng16 -I/opt/local/include/cairo -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include -I/opt/local/include/pixman-1 -I/opt/local/include -I/opt/local/include/freetype2 -I/opt/local/include -I/opt/local/include/libpng16 -I/opt/local/include -I/opt/local/include/freetype2 -I/opt/local/include -I/opt/local/include/libpng16 -I/opt/local/include -I/opt/local/include -DX_LOCALE -D_IPP_PRIVATE_STRUCTURES=1 -DG_DISABLE_SINGLE_INCLUDES -DATK_DISABLE_SINGLE_INCLUDES -DGDK_PIXBUF_DISABLE_SINGLE_INCLUDES -DGTK_DISABLE_SINGLE_INCLUDES -I/opt/local/include -DGDK_PIXBUF_DISABLE_DEPRECATED -pipe -Os -fstrict-aliasing -arch x86_64 -Wall -MT gdkapplaunchcontext-x11.lo -MD -MP -MF .deps/gdkapplaunchcontext-x11.Tpo -c gdkapplaunchcontext-x11.c -fno- common -DPIC -o .libs/gdkapplaunchcontext-x11.o}}} comes along and breaks the install with the errors mentioned above. In case I have missed any important details I'm attaching the full log as well. Thanks in advance,[[BR]] Sébastien -- Ticket URL: <https://trac.macports.org/ticket/45413> MacPorts <http://www.macports.org/> Ports system for OS X
#45413: gtk2 @ 2.24.25 fatal error: 'glib.h' file not found -----------------------------+-------------------------------- Reporter: stflightning@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.1 Resolution: | Keywords: Port: gtk2 | -----------------------------+-------------------------------- Changes (by ryandesign@…): * keywords: gtk2 glib.h glib gtk yosemite => Comment: The port builds fine for me on Yosemite. Is the port glib2 installed? It should be. Do the files glib.h and gio/gio.h exist? They should be in /opt/local/include/glib-2.0. -- Ticket URL: <https://trac.macports.org/ticket/45413#comment:1> MacPorts <http://www.macports.org/> Ports system for OS X
#45413: gtk2 @ 2.24.25 fatal error: 'glib.h' file not found -----------------------------+-------------------------------- Reporter: stflightning@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.1 Resolution: | Keywords: Port: gtk2 | -----------------------------+-------------------------------- Comment (by stflightning@…): glib1 and glib2 are both installed, but the /opt/local/include/glib-2.0 directory does not exist, uninstalling glib1 and reinstalling glib2 still does not have the directory there. I could try removing and reinstalling, but if there's an easier way I would like to do try first because I have about 15 ports that depend on glib2, and more that depend on those. -- Ticket URL: <https://trac.macports.org/ticket/45413#comment:2> MacPorts <http://www.macports.org/> Ports system for OS X
#45413: gtk2 @ 2.24.25 fatal error: 'glib.h' file not found -----------------------------+-------------------------------- Reporter: stflightning@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.1 Resolution: | Keywords: Port: gtk2 | -----------------------------+-------------------------------- Changes (by ryandesign@…): * cc: ryandesign@… (added) Comment: Could you show us what the glib2 port does contain, using the command "`port contents glib2`"? This is probably long, so please attach it as a file rather than pasting it into a comment. -- Ticket URL: <https://trac.macports.org/ticket/45413#comment:3> MacPorts <http://www.macports.org/> Ports system for OS X
#45413: gtk2 @ 2.24.25 fatal error: 'glib.h' file not found -----------------------------+-------------------------------- Reporter: stflightning@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.1 Resolution: | Keywords: Port: gtk2 | -----------------------------+-------------------------------- Comment (by ryandesign@…): ...the file you attached shows both /opt/local/include/glib-2.0/glib.h and /opt/local/include/glib-2.0/gio/gio.h. Try deactivating and reactivating glib2. Perhaps something outside of MacPorts deleted those files after you installed glib2. {{{ sudo port -f deactiave glib2 sudo port activate glib }}} -- Ticket URL: <https://trac.macports.org/ticket/45413#comment:4> MacPorts <http://www.macports.org/> Ports system for OS X
#45413: gtk2 @ 2.24.25 fatal error: 'glib.h' file not found -----------------------------+-------------------------------- Reporter: stflightning@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.1 Resolution: | Keywords: Port: gtk2 | -----------------------------+-------------------------------- Comment (by stflightning@…): When I do {{{sudo port activate glib2}}} it comes out with the error: [[BR]] {{{Error: org.macports.activate for port glib2 returned: Image error: Can't find image file /opt/local/var/macports/software/glib2/glib2-2.42.0_0.darwin_14.x86_64.tbz2}}} I'll attach the log for glib2 as well. -- Ticket URL: <https://trac.macports.org/ticket/45413#comment:5> MacPorts <http://www.macports.org/> Ports system for OS X
#45413: gtk2 @ 2.24.25 fatal error: 'glib.h' file not found -----------------------------+-------------------------------- Reporter: stflightning@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.1 Resolution: | Keywords: Port: gtk2 | -----------------------------+-------------------------------- Comment (by ryandesign@…): Did some process outside of MacPorts perhaps delete that file as well? What is going on on your system that your files are disappearing like this? Try reinstalling glib2: {{{ sudo port install glib2 }}} -- Ticket URL: <https://trac.macports.org/ticket/45413#comment:6> MacPorts <http://www.macports.org/> Ports system for OS X
#45413: gtk2 @ 2.24.25 fatal error: 'glib.h' file not found -----------------------------+-------------------------------- Reporter: stflightning@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.1 Resolution: | Keywords: Port: gtk2 | -----------------------------+-------------------------------- Comment (by stflightning@…): {{{sudo port install glib2}}} has the same errors as {{{sudo port activate glib2}}} and outputs the same log. Should I try uninstalling glib2 and reinstalling it manually? -- Ticket URL: <https://trac.macports.org/ticket/45413#comment:7> MacPorts <http://www.macports.org/> Ports system for OS X
#45413: gtk2 @ 2.24.25 fatal error: 'glib.h' file not found -----------------------------+-------------------------------- Reporter: stflightning@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.1 Resolution: | Keywords: Port: gtk2 | -----------------------------+-------------------------------- Comment (by ryandesign@…): Oh, ok. You can rebuild with: {{{ sudo port clean glib2 sudo port -n upgrade --force glib2 }}} -- Ticket URL: <https://trac.macports.org/ticket/45413#comment:8> MacPorts <http://www.macports.org/> Ports system for OS X
#45413: gtk2 @ 2.24.25 fatal error: 'glib.h' file not found -----------------------------+-------------------------------- Reporter: stflightning@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.1 Resolution: | Keywords: Port: gtk2 | -----------------------------+-------------------------------- Comment (by stflightning@…): Thank you so much, it works perfectly now! I don't know how the files went missing but your steps fixed it. Thanks again! [[BR]] Sébastien[[BR]] P.S. This ticket can be marked as closed now. -- Ticket URL: <https://trac.macports.org/ticket/45413#comment:9> MacPorts <http://www.macports.org/> Ports system for OS X
#45413: glib2 is missing files -----------------------------+-------------------------------- Reporter: stflightning@… | Owner: macports-tickets@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.3.1 Resolution: invalid | Keywords: Port: glib2 | -----------------------------+-------------------------------- Changes (by ryandesign@…): * status: new => closed * resolution: => invalid * port: gtk2 => glib2 Comment: Ok, glad you got it working. -- Ticket URL: <https://trac.macports.org/ticket/45413#comment:10> MacPorts <http://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts