Opened 15 years ago

Closed 15 years ago

#7833 closed defect (fixed)

BUG: glib2 2.10.1 configure script incorrectly sets glib_gmodule_suffix to dylib

Reported by: vincent-opdarw@… Owned by: gnome-darwinports@…
Priority: Normal Milestone:
Component: ports Version: 1.0
Keywords: Cc:
Port:

Description

When I want to install Liferea, I get:

[...] GCONF_CONFIG_SOURCE=xml::/opt/local/etc/gconf/gconf.xml.defaults /opt/local/bin/gconftool-2 --makefile-install-rule ./liferea.schemas No such file `/opt/local/lib/GConf/2/libgconfbackend-xml.dylib'

Failed to load source "xml::/opt/local/etc/gconf/gconf.xml.defaults": Failed: Couldn't locate backend module for `xml::/opt/local/etc/gconf/gconf.xml.defaults'

GConf-ERROR : file gconftool.c: line 820 (main): assertion failed: (err == NULL) aborting... [...]

I think that the other errors are due to the first one: /opt/local/lib/GConf/2/libgconfbackend-xml.dylib has not been installed.

"port contents gconf | grep libgconfbackend-xml" gives:

/opt/local/lib/GConf/2/libgconfbackend-xml.a /opt/local/lib/GConf/2/libgconfbackend-xml.la /opt/local/lib/GConf/2/libgconfbackend-xml.so

Attachments (2)

dylib.patch (990 bytes) - added by vincent-opdarw@… 15 years ago.
Patch that adds the symlinks
patch-configure (953 bytes) - added by vincent-opdarw@… 15 years ago.
New patch-configure file for glib2

Download all attachments as: .zip

Change History (10)

comment:1 Changed 15 years ago by vincent-opdarw@…

Summary: BUG: gconf: No such file `/opt/local/lib/GConf/2/libgconfbackend-xml.dylib'BUG: gconf: libgconfbackend-* libraries have .so extension instead of .dylib

It seems that this is GNOME bug 172971:

http://bugzilla.gnome.org/show_bug.cgi?id=172971

The workaround I've found: cd /opt/local/lib/GConf/2 ln -s libgconfbackend-evoldap.so libgconfbackend-evoldap.dylib ln -s libgconfbackend-oldxml.so libgconfbackend-oldxml.dylib ln -s libgconfbackend-xml.so libgconfbackend-xml.dylib

Well, I'm sure sure this is really correct, but this seems to work on my machine.

comment:2 Changed 15 years ago by vincent-opdarw@…

(In reply to comment #1)

Well, I'm sure sure this is really correct, [...]

I meant: I'm *not* sure this is really correct, [...]

Changed 15 years ago by vincent-opdarw@…

Attachment: dylib.patch added

Patch that adds the symlinks

comment:3 Changed 15 years ago by rhwood@…

Owner: changed from darwinports-bugs@… to gnome-darwinports@…

comment:4 Changed 15 years ago by vincent-opdarw@…

Summary: BUG: gconf: libgconfbackend-* libraries have .so extension instead of .dylibBUG: inconsistent module extension (.so vs .dylib)

According to what has been said in the bug-libtool list, glib2 is wrong: the modules should have the .so extension.

In /opt/local/lib/glib-2.0/include/glibconfig.h from glib2 2.10.1_0, I have:

#define G_MODULE_SUFFIX "dylib"

This should be "so".

comment:5 Changed 15 years ago by vincent-opdarw@…

attachments.isobsolete: 01

comment:6 Changed 15 years ago by vincent-opdarw@…

http://bugzilla.gnome.org/show_bug.cgi?id=322476 confirms that the bug is in glib2 2.10.1. The solution is to remove

darwin*)

glib_gmodule_suffix='dylib' ;;

from the configure file.

comment:7 Changed 15 years ago by vincent-opdarw@…

Summary: BUG: inconsistent module extension (.so vs .dylib)BUG: glib2 2.10.1 configure script incorrectly sets glib_gmodule_suffix to dylib

Changed 15 years ago by vincent-opdarw@…

Attachment: patch-configure added

New patch-configure file for glib2

comment:8 Changed 15 years ago by vincent-opdarw@…

Resolution: fixed
Status: newclosed

Closing since the new configure patch was committed at 2006/03/22 16:17:13.

Note: See TracTickets for help on using tickets.