Opened 7 weeks ago

Last modified 6 weeks ago

#70496 assigned defect

libvirt broken by meson on < 10.7

Reported by: barracuda156 Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 2.9.3
Keywords: tiger, leopard, snowleopard Cc:
Port: libvirt, meson

Description

Now this is broken:

FAILED: tests/genericxml2xmltest 
/opt/local/bin/gcc-mp-14  -o tests/genericxml2xmltest tests/genericxml2xmltest.p/genericxml2xmltest.c.o -L/opt/local/lib -I/opt/local/include/LegacySupport -I/opt/local/include -Wl,-dead_strip_dylibs -Wl,-headerpad_max_install_names -Wl,-export_dynamic -Wl,-force_load tests/libtest_utils.a -Wl,-headerpad_max_install_names -lMacportsLegacySupport -arch ppc -pipe -Os -arch ppc -Wl,-rpath,@loader_path/../src src/libvirt.0.dylib -Wl,-flat_namespace -ldl /opt/local/lib/libglib-2.0.dylib /opt/local/lib/libintl.dylib /opt/local/lib/libgobject-2.0.dylib /opt/local/lib/libgio-2.0.dylib /opt/local/lib/libgnutls.dylib /opt/local/lib/libxml2.dylib -lc /opt/local/lib/libyajl.dylib -Wl,-flat_namespace
ld: unknown option: -export_dynamic
collect2: error: ld returned 1 exit status
[810/1207] /opt/local/bin/gcc-mp-14  -o tests/interfacexml2xmltest tests/interfacexml2xmltest.p/interfacexml2xmltest.c.o -L/opt/local/lib -I/opt/local/include/LegacySupport -I/opt/local/include -Wl,-dead_strip_dylibs -Wl,-headerpad_max_install_names -Wl,-export_dynamic -Wl,-force_load tests/libtest_utils.a -Wl,-headerpad_max_install_names -lMacportsLegacySupport -arch ppc -pipe -Os -arch ppc -Wl,-rpath,@loader_path/../src src/libvirt.0.dylib -Wl,-flat_namespace -ldl /opt/local/lib/libglib-2.0.dylib /opt/local/lib/libintl.dylib /opt/local/lib/libgobject-2.0.dylib /opt/local/lib/libgio-2.0.dylib /opt/local/lib/libgnutls.dylib /opt/local/lib/libxml2.dylib -lc /opt/local/lib/libyajl.dylib -Wl,-flat_namespace
FAILED: tests/interfacexml2xmltest 
/opt/local/bin/gcc-mp-14  -o tests/interfacexml2xmltest tests/interfacexml2xmltest.p/interfacexml2xmltest.c.o -L/opt/local/lib -I/opt/local/include/LegacySupport -I/opt/local/include -Wl,-dead_strip_dylibs -Wl,-headerpad_max_install_names -Wl,-export_dynamic -Wl,-force_load tests/libtest_utils.a -Wl,-headerpad_max_install_names -lMacportsLegacySupport -arch ppc -pipe -Os -arch ppc -Wl,-rpath,@loader_path/../src src/libvirt.0.dylib -Wl,-flat_namespace -ldl /opt/local/lib/libglib-2.0.dylib /opt/local/lib/libintl.dylib /opt/local/lib/libgobject-2.0.dylib /opt/local/lib/libgio-2.0.dylib /opt/local/lib/libgnutls.dylib /opt/local/lib/libxml2.dylib -lc /opt/local/lib/libyajl.dylib -Wl,-flat_namespace
ld: unknown option: -export_dynamic
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.

Change History (4)

comment:1 Changed 7 weeks ago by ryandesign (Ryan Carsten Schmidt)

This seems like a meson bug. It already doesn't install on < 10.7 because of glib2 failing to build due to the same error; #70386.

comment:2 in reply to:  1 Changed 7 weeks ago by barracuda156

Replying to ryandesign:

This seems like a meson bug. It already doesn't install on < 10.7 because of glib2 failing to build due to the same error; #70386.

It certainly is a meson bug. Broken by https://github.com/mesonbuild/meson/pull/13291 They may accept the fix, if someone knows how to do it.

comment:3 Changed 6 weeks ago by barracuda156

Port: meson added

comment:4 Changed 6 weeks ago by Sergey Fedorov <barracuda@…>

In 9efbf0afa0f4348c50473d378872fb066e07760f/macports-ports (master):

py-meson: unbreak linking on < 10.7

See:
#70386
#70496

Note: See TracTickets for help on using tickets.