Opened 11 years ago

Closed 11 years ago

#38006 closed defect (worksforme)

webkit-gtk @1.10.2: configure fails to find glib2: glib.h: No such file or directory

Reported by: bentley@… Owned by: jeremyhu (Jeremy Huddleston Sequoia)
Priority: Normal Milestone:
Component: ports Version: 2.1.3
Keywords: Cc: dbevans (David B. Evans), sasoph@…, ryandesign (Ryan Carsten Schmidt)
Port: webkit-gtk

Description (last modified by larryv (Lawrence Velázquez))

Apparently it is searching for a newer version. glib appears to be popular. This is under Lion on an older 17" MBP. I had just performed a sudo port selfupdate without yet updating all the installed ports, and decided to look at gnuradio.

--->  Configuring webkit-gtk
Error: org.macports.configure for port webkit-gtk returned: configure failure: command execution failed
Please see the log file for port webkit-gtk for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_www_webkit-gtk/webkit-gtk/main.log
Error: Unable to upgrade port: 1
Error rebuilding webkit-gtk
    while executing

from main.log:

:info:configure checking for GLIB - version >= 2.32.0... no
:info:configure *** Could not run GLIB test program, checking why...
:info:configure *** The test program failed to compile or link. See the file config.log for the
:info:configure *** exact error that occured. This usually means GLIB is incorrectly installed.
:info:configure configure: error: You need the GLib dev tools in your path
:info:configure Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_www_webkit-gtk/webkit-gtk/work/webkitgtk-1.10.2" && ./configure --prefix=/opt/local --with-gtk=2.0 --disable-webkit2 --disable-introspection --enable-link-prefetch --enable-image-resizer --enable-media-statistics --enable-media-stream --enable-svg --enable-geolocation --enable-webgl --enable-page-visibility-api --enable-datagrid --enable-mathml --enable-web-timing --enable-mhtml --enable-microdata --enable-mutation-observers --disable-jit --enable-video-track 
:info:configure Exit code: 1
:error:configure org.macports.configure for port webkit-gtk returned: configure failure: command execution failed
:debug:configure Error code: NONE
:debug:configure Backtrace: configure failure: command execution failed
    while executing
"$procedure $targetname"
:info:configure Warning: targets not executed for webkit-gtk: org.macports.install org.macports.configure org.macports.build org.macports.destroot
:notice:configure Please see the log file for port webkit-gtk for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_www_webkit-gtk/webkit-gtk/main.log

Attachments (3)

config.log (52.3 KB) - added by bentley@… 11 years ago.
webkit-gtk-1.10.2 config.log
main.log (154.0 KB) - added by sasoph@… 11 years ago.
config.2.log (57.2 KB) - added by sasoph@… 11 years ago.

Download all attachments as: .zip

Change History (14)

comment:1 Changed 11 years ago by larryv (Lawrence Velázquez)

Cc: devans@… added
Description: modified (diff)
Keywords: webkit glib removed
Owner: changed from macports-tickets@… to jeremyhu@…
Port: webkit-gtk added
Type: updatedefect

Thanks for the ticket. In the future, please Cc relevant port maintainers.

comment:2 Changed 11 years ago by jeremyhu (Jeremy Huddleston Sequoia)

Macports glib2 port is at version 2.34.3.

webkit-gtk depends on gtk2 which depends on glib2.

Please attach config.log from your webkit-gtk's worksrcpath.

comment:3 Changed 11 years ago by jeremyhu (Jeremy Huddleston Sequoia)

Also, what is the output of:

pkg-config --cflags glib-2.0
pkg-config --modversion glib-2.0

Changed 11 years ago by bentley@…

Attachment: config.log added

webkit-gtk-1.10.2 config.log

comment:4 Changed 11 years ago by bentley@…

bentley-MBP-OSX:~ bentley$ pkg-config --cflags glib-2.0
-I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include  
bentley-MBP-OSX:~ bentley$ pkg-config --modversion glib-2.0
2.28.8
Last edited 11 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

comment:5 Changed 11 years ago by jeremyhu (Jeremy Huddleston Sequoia)

Resolution: worksforme
Status: newclosed

Ok, well... glib2 is a dependency of webkit-gtk2. It looks like your port tree is out of date... do a 'port -v sync'

Changed 11 years ago by sasoph@…

Attachment: main.log added

comment:6 Changed 11 years ago by sasoph@…

Resolution: worksforme
Status: closedreopened

Leopard PPC, Xcode 3.1.4, glib2 @2.36.1_0; trying to install webkit-gtk @2.0.1
"port -v sync" done

:info:configure checking for GLIB - version >= 2.36.0... no

> pkg-config --modversion glib-2.0
2.36.1

> pkg-config --cflags glib-2.0
-I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include

comment:7 Changed 11 years ago by sasoph@…

Cc: sasoph@… added

Cc Me!

comment:8 Changed 11 years ago by jeremyhu (Jeremy Huddleston Sequoia)

Attach your config.log ...

Changed 11 years ago by sasoph@…

Attachment: config.2.log added

comment:9 Changed 11 years ago by sasoph@…

Incidentally, this is for the quartz variant which I need to install gimp on PPC.

comment:10 in reply to:  6 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: ryandesign@… added
Summary: webkit-gtk not finding glibwebkit-gtk @1.10.2: configure fails to find glib2: glib.h: No such file or directory

This ticket is about the following error in config.log:

configure:18064: checking for GLIB - version >= 2.32.0
configure:18196: result: no
configure:18224: /usr/bin/llvm-gcc-4.2 -o conftest -O2 -arch x86_64  -I/opt/local/include/pango-1.0 -L/opt/local/lib -arch x86_64 conftest.c   >&5
conftest.c:29:18: error: glib.h: No such file or directory
conftest.c: In function 'main':
conftest.c:35: error: 'glib_major_version' undeclared (first use in this function)
conftest.c:35: error: (Each undeclared identifier is reported only once
conftest.c:35: error: for each function it appears in.)
conftest.c:35: error: 'glib_minor_version' undeclared (first use in this function)
conftest.c:35: error: 'glib_micro_version' undeclared (first use in this function)

Assuming the correct version of glib2 is already installed, this would be because -I/opt/local/include is missing from the compilation line. Please check whether this is still a problem with webkit-gtk @2.0.1. If so, please indicate what version of Xcode you're using, and whether updating Xcode to 4.6.2 (and updating its command line tools, by opening Xcode and going to the Downloads section of the Preferences window) helps. My suspicion is that you have an old llvm-gcc-4.2 that does not honor the CPATH variable.

Replying to sasoph@…:

Leopard PPC, Xcode 3.1.4, glib2 @2.36.1_0; trying to install webkit-gtk @2.0.1

This is a different error which needs to be a different ticket. I'm experiencing this problem too so I filed #38891.

comment:11 Changed 11 years ago by jeremyhu (Jeremy Huddleston Sequoia)

Resolution: worksforme
Status: reopenedclosed

No response, closing.

Note: See TracTickets for help on using tickets.