Opened 10 years ago

Closed 10 years ago

#45413 closed defect (invalid)

glib2 is missing files

Reported by: stflightning@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.3.1
Keywords: Cc: ryandesign (Ryan Carsten Schmidt)
Port: glib2

Description

OS: OS X Yosemite 10.10 - Appleseed Beta 6
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'

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,
Sébastien

Attachments (3)

main.log (164.3 KB) - added by stflightning@… 10 years ago.
main.log for my failing gtk2 install
port contents glib2 output (46.4 KB) - added by stflightning@… 10 years ago.
Output of "port contents glib2"
glib2.log (1.7 KB) - added by stflightning@… 10 years ago.
main.log for my failing glib2 activation

Download all attachments as: .zip

Change History (13)

Changed 10 years ago by stflightning@…

Attachment: main.log added

main.log for my failing gtk2 install

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

Keywords: gtk2 glib.h glib gtk yosemite removed

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.

comment:2 Changed 10 years ago 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.

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

Cc: ryandesign@… added

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.

Changed 10 years ago by stflightning@…

Attachment: port contents glib2 output added

Output of "port contents glib2"

comment:4 Changed 10 years ago by ryandesign (Ryan Carsten Schmidt)

...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 glib2
Last edited 10 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

comment:5 Changed 10 years ago by stflightning@…

When I do sudo port activate glib2 it comes out with the error:

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.

comment:6 Changed 10 years ago by ryandesign (Ryan Carsten Schmidt)

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

Changed 10 years ago by stflightning@…

Attachment: glib2.log added

main.log for my failing glib2 activation

comment:7 Changed 10 years ago 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?

comment:8 Changed 10 years ago by ryandesign (Ryan Carsten Schmidt)

Oh, ok. You can rebuild with:

sudo port clean glib2
sudo port -n upgrade --force glib2

comment:9 Changed 10 years ago 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!
Sébastien
P.S. This ticket can be marked as closed now.

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

Port: glib2 added; gtk2 removed
Resolution: invalid
Status: newclosed
Summary: gtk2 @ 2.24.25 fatal error: 'glib.h' file not foundglib2 is missing files

Ok, glad you got it working.

Note: See TracTickets for help on using tickets.