Opened 8 months ago

Closed 7 months ago

#69579 closed defect (worksforme)

vala configure failure

Reported by: nassi (Ike Nassi) Owned by: mascguy (Christopher Nielsen)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc:
Port: vala

Description

I had to use brew install vala.

Attachments (2)

vala install log.txt (62.4 KB) - added by nassi (Ike Nassi) 8 months ago.
vala.log.zip (4.2 KB) - added by nassi (Ike Nassi) 8 months ago.
main log installing vala

Download all attachments as: .zip

Change History (8)

Changed 8 months ago by nassi (Ike Nassi)

Attachment: vala install log.txt added

comment:1 Changed 8 months ago by jmroot (Joshua Root)

Owner: set to mascguy
Port: vala added
Status: newassigned
Summary: neither port install vala nor port reinstall vala worksvala configure failure

Please attach the main.log as well.

comment:2 Changed 8 months ago by ryandesign (Ryan Carsten Schmidt)

Having both Homebrew and MacPorts installed on the same system will cause problems with some ports, so we don't support that. Please choose one package manager and uninstall the others.

It looks like the error in the config.log is:

configure:13596: checking for glib-2.0 >= 2.48.0 gobject-2.0 >= 2.48.0
configure:13603: $PKG_CONFIG --exists --print-errors "glib-2.0 >= $GLIB_REQUIRED gobject-2.0 >= $GLIB_REQUIRED"
Requested 'glib-2.0 >= 2.48.0' but version of GLib is 2.16.2
Requested 'gobject-2.0 >= 2.48.0' but version of GObject is 2.16.2
configure:13606: $? = 1
configure:13620: $PKG_CONFIG --exists --print-errors "glib-2.0 >= $GLIB_REQUIRED gobject-2.0 >= $GLIB_REQUIRED"
Requested 'glib-2.0 >= 2.48.0' but version of GLib is 2.16.2
Requested 'gobject-2.0 >= 2.48.0' but version of GObject is 2.16.2
configure:13623: $? = 1
configure:13637: result: no
Requested 'glib-2.0 >= 2.48.0' but version of GLib is 2.16.2
Requested 'gobject-2.0 >= 2.48.0' but version of GObject is 2.16.2
configure:13653: error: Package requirements (glib-2.0 >= 2.48.0 gobject-2.0 >= 2.48.0) were not met:

Requested 'glib-2.0 >= 2.48.0' but version of GLib is 2.16.2
Requested 'gobject-2.0 >= 2.48.0' but version of GObject is 2.16.2

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables GLIB_CFLAGS
and GLIB_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

MacPorts currently provides glib2 2.78.4 so this should not be happening. You'll have to figure out where this glib2 2.16.2 is installed on your system.

comment:3 Changed 8 months ago by nassi (Ike Nassi)

I uninstalled home-brew. But installation still fails. I don't understand how to find GLib 2.16.2. I tried reinstalling go, but it in turn tries to install vala, which fails. So, I cannot install wget, which requires libproxy, which requires vala. So, I'm stuck.

Changed 8 months ago by nassi (Ike Nassi)

Attachment: vala.log.zip added

main log installing vala

comment:4 Changed 8 months ago by ryandesign (Ryan Carsten Schmidt)

The log says:

dyld[95206]: Library not loaded: /opt/local/lib/libgmodule-2.0.0.dylib
  Referenced from: <D1A6782D-311A-3C2C-AE20-4A98DEF6A07F> /opt/local/bin/valac-0.56
  Reason: tried: '/opt/local/lib/libgmodule-2.0.0.dylib' (mach-o file, but is an incompatible architecture (have 'i386', need 'x86_64h' or 'x86_64')), '/System/Volumes/Preboot/Cryptexes/OS/opt/local/lib/libgmodule-2.0.0.dylib' (no such file), '/opt/local/lib/libgmodule-2.0.0.dylib' (mach-o file, but is an incompatible architecture (have 'i386', need 'x86_64h' or 'x86_64')), '/opt/local/lib/libgmodule-2.0.0.1600.2.dylib' (mach-o file, but is an incompatible architecture (have 'i386', need 'x86_64h' or 'x86_64')), '/System/Volumes/Preboot/Cryptexes/OS/opt/local/lib/libgmodule-2.0.0.1600.2.dylib' (no such file), '/opt/local/lib/libgmodule-2.0.0.1600.2.dylib' (mach-o file, but is an incompatible architecture (have 'i386', need 'x86_64h' or 'x86_64'))

So you have an old 32-bit version of glib2 2.16.2 at /opt/local/lib/libgmodule-2.0.0.dylib.

MacPorts only had glib2 2.16.2 for ten days between the time we updated to 2.16.2 on April 3, 2008 and the time we updated to 2.16.3 on April 12, 2008. So this file dates back to that time. You would have been running Mac OS X 10.4 or 10.5 at the time.

Perhaps you migrated an old MacPorts installation to your new Mac. Please check out the migration instructions for the necessary steps to resolve this. Since your existing MacPorts installation is so old, you might not care anymore what was installed back then, and may not want to reinstall those ports now. In that case, it might be simpler to uninstall MacPorts fully (including the final step to remove /opt/local, with the obvious warning that this will permanently delete any data you have stored there), and then reinstall MacPorts.

comment:5 Changed 8 months ago by nassi (Ike Nassi)

Thank you. This worked.

comment:6 in reply to:  5 Changed 7 months ago by mascguy (Christopher Nielsen)

Resolution: worksforme
Status: assignedclosed

Replying to nassi:

Thank you. This worked.

Great, glad the issue is resolved!

Note: See TracTickets for help on using tickets.