#33760 closed defect (invalid)
gobject-introspection 1.30.0 Build Error
Reported by: | gabe@… | Owned by: | singingwolfboy@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.0.4 |
Keywords: | Cc: | ryandesign (Ryan Carsten Schmidt), cooljeanius (Eric Gallager) | |
Port: | gobject-introspection |
Description
Console Output:
:info:build GICOMP gir/cairo-1.0.gir :info:build Traceback (most recent call last): :info:build File "./g-ir-scanner", line 44, in <module> :info:build from giscanner.scannermain import scanner_main :info:build File "./giscanner/scannermain.py", line 34, in <module> :info:build from giscanner.dumper import compile_introspection_binary :info:build File "./giscanner/dumper.py", line 28, in <module> :info:build from .gdumpparser import IntrospectionBinary :info:build File "./giscanner/gdumpparser.py", line 31, in <module> :info:build from .transformer import TransformerException :info:build File "./giscanner/transformer.py", line 27, in <module> :info:build from .girparser import GIRParser :info:build File "./giscanner/girparser.py", line 26, in <module> :info:build from .girwriter import COMPATIBLE_GIR_VERSION :info:build File "./giscanner/girwriter.py", line 25, in <module> :info:build from .xmlwriter import XMLWriter :info:build File "./giscanner/xmlwriter.py", line 74, in <module> :info:build from _giscanner import collect_attributes :info:build File "./giscanner/libtoolimporter.py", line 66, in load_module :info:build mod = imp.load_module(name, open(realpath), realpath, (extension, 'rb', 3)) :info:build ImportError: dlopen(./.libs/_giscanner.so, 2): Symbol not found: _mempcpy :info:build Referenced from: /opt/local/lib/libglib-2.0.0.dylib :info:build Expected in: flat namespace :info:build in /opt/local/lib/libglib-2.0.0.dylib :info:build make[2]: *** [GLib-2.0.gir] Error 1
Change History (8)
comment:1 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)
Milestone: | MacPorts 2.0.5 |
---|---|
Owner: | changed from macports-tickets@… to singingwolfboy@… |
comment:2 follow-up: 3 Changed 13 years ago by mf2k (Frank Schima)
What is the output of the following?
port installed glib2
You might try rebuilding that.
comment:3 Changed 13 years ago by gabe@…
Replying to macsforever2000@…:
What is the output of the following?
port installed glib2You might try rebuilding that.
I have glib2-devel installed, I tried uninstalling and reinstalling it but there was no change.
comment:4 Changed 13 years ago by gabe@…
I got this working by installing glib2 instead of glib2-devel, then building glib2 of the matching version myself with the prefix as /opt/local, and installing it on top in order to have the headers.
comment:5 Changed 12 years ago by mf2k (Frank Schima)
Unlike in Linux, a devel port in Macports has nothing to do with header files.
comment:6 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)
Cc: | ryandesign@… added |
---|---|
Resolution: | → invalid |
Status: | new → closed |
So now you've overwritten some MacPorts-provided files with manually-compiled files. That's not a good idea.
As Frank said above, the "-devel" suffix in MacPorts does not mean it installs headers; rather, all ports install headers, as much as possible. In MacPorts, "-devel" means "this is a development version", as opposed to a stable version. So unless you have a specific need for testing the latest development version of glib2, I suggest you use the glib2 port not the glib2-devel port.
To ensure you have the right versions of the files, and that they were compiled by MacPorts, my recommendation is to uninstall glib2 or glib2-devel, whichever you have installed at the moment:
sudo port -fp uninstall glib2 glib2-devel
-p
will proceed even if one of the ports is not installed.
-f
will force the uninstallation even if other ports depend on these ports.
Then install glib2:
sudo port clean glib2 sudo port install glib2
comment:7 Changed 12 years ago by cooljeanius (Eric Gallager)
I'm pretty sure this is the same error I was getting in #37137
The Milestone field is not used for port tickets.
Remember to Cc port maintainers.