[MacPorts] #43594: xmlpatch @0.3.3: "check" should be a library dependency, not just a build dependency
MacPorts
noreply at macports.org
Mon Jul 26 08:56:02 UTC 2021
#43594: xmlpatch @0.3.3: "check" should be a library dependency, not just a build
dependency
--------------------------+--------------------
Reporter: cooljeanius | Owner: twic@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.2.1
Resolution: | Keywords:
Port: xmlpatch |
--------------------------+--------------------
Comment (by cooljeanius):
I opened the following PR to do this: https://github.com/macports
/macports-ports/pull/11695
Unfortunately, it runs into a build error:
{{{
/bin/sh ../libtool --tag=CC --mode=link /usr/bin/clang -I../src
-I/opt/local/include/libxml2 -pipe -Os
-isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk -arch
x86_64 -L/opt/local/lib -Wl,-headerpad_max_install_names
-Wl,-syslibroot,/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk
-arch x86_64 -o xml_patch xml_patch-xml_patch_main.o ../src/libxmlpatch.la
-L/opt/local/lib -lxml2
check_diff.c:243:21: warning: incompatible pointer types initializing
'void (*)(int)' with an expression of type 'const TTest *' (aka 'const
struct TTest *') [-Wincompatible-pointer-types]
{"test_1_to_2", test_12},
^~~~~~~
check_diff.c:244:21: warning: incompatible pointer types initializing
'void (*)(int)' with an expression of type 'const TTest *' (aka 'const
struct TTest *') [-Wincompatible-pointer-types]
{"test_1_to_3", test_13},
^~~~~~~
check_diff.c:245:21: warning: incompatible pointer types initializing
'void (*)(int)' with an expression of type 'const TTest *' (aka 'const
struct TTest *') [-Wincompatible-pointer-types]
{"test_1_to_4", test_14},
^~~~~~~
check_diff.c:246:21: warning: incompatible pointer types initializing
'void (*)(int)' with an expression of type 'const TTest *' (aka 'const
struct TTest *') [-Wincompatible-pointer-types]
{"test_1_to_5", test_15},
^~~~~~~
check_diff.c:247:21: warning: incompatible pointer types initializing
'void (*)(int)' with an expression of type 'const TTest *' (aka 'const
struct TTest *') [-Wincompatible-pointer-types]
{"test_2_to_1", test_21},
^~~~~~~
check_diff.c:248:21: warning: incompatible pointer types initializing
'void (*)(int)' with an expression of type 'const TTest *' (aka 'const
struct TTest *') [-Wincompatible-pointer-types]
{"test_3_to_1", test_31},
^~~~~~~
check_diff.c:249:21: warning: incompatible pointer types initializing
'void (*)(int)' with an expression of type 'const TTest *' (aka 'const
struct TTest *') [-Wincompatible-pointer-types]
{"test_4_to_1", test_41},
^~~~~~~
check_diff.c:250:21: warning: incompatible pointer types initializing
'void (*)(int)' with an expression of type 'const TTest *' (aka 'const
struct TTest *') [-Wincompatible-pointer-types]
{"test_5_to_1", test_51},
^~~~~~~
check_diff.c:251:22: warning: incompatible pointer types initializing
'void (*)(int)' with an expression of type 'const TTest *' (aka 'const
struct TTest *') [-Wincompatible-pointer-types]
{"test_from_to", test_from_to},
^~~~~~~~~~~~
check_diff.c:252:22: warning: incompatible pointer types initializing
'void (*)(int)' with an expression of type 'const TTest *' (aka 'const
struct TTest *') [-Wincompatible-pointer-types]
{"test_to_from", test_to_from},
^~~~~~~~~~~~
check_diff.c:253:23: warning: incompatible pointer types initializing
'void (*)(int)' with an expression of type 'const TTest *' (aka 'const
struct TTest *') [-Wincompatible-pointer-types]
{"test_n_0_to_1", test_n01},
^~~~~~~~
check_diff.c:254:23: warning: incompatible pointer types initializing
'void (*)(int)' with an expression of type 'const TTest *' (aka 'const
struct TTest *') [-Wincompatible-pointer-types]
{"test_n_0_to_2", test_n02},
^~~~~~~~
check_diff.c:255:23: warning: incompatible pointer types initializing
'void (*)(int)' with an expression of type 'const TTest *' (aka 'const
struct TTest *') [-Wincompatible-pointer-types]
{"test_n_2_to_0", test_n10},
^~~~~~~~
check_diff.c:256:23: warning: incompatible pointer types initializing
'void (*)(int)' with an expression of type 'const TTest *' (aka 'const
struct TTest *') [-Wincompatible-pointer-types]
{"test_n_1_to_0", test_n20},
^~~~~~~~
check_diff.c:243:21: error: initializer element is not a compile-time
constant
{"test_1_to_2", test_12},
^~~~~~~
mv -f .deps/xml_diff-xml_diff_main.Tpo .deps/xml_diff-xml_diff_main.Po
/bin/sh ../libtool --tag=CC --mode=link /usr/bin/clang -I../src
-I../diff -I/opt/local/include/libxml2 -I/opt/local/include/glib-2.0
-I/opt/local/lib/glib-2.0/include -pipe -Os
-isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk -arch
x86_64 -L/opt/local/lib -Wl,-headerpad_max_install_names
-Wl,-syslibroot,/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk
-arch x86_64 -o xml_diff xml_diff-xml_diff_main.o ../src/libxmlpatch.la
../diff/libxmldiff.la -L/opt/local/lib -lxml2 -L/opt/local/lib -lglib-2.0
-lintl -Wl,-framework -Wl,CoreFoundation
check_diff.c:262:71: error: too many arguments to function call, expected
6, have 7
_tcase_add_test (tc, arr_tests[i].fn, arr_tests[i].name, 0, 0, 0, 1);
~~~~~~~~~~~~~~~ ^
/opt/local/include/check.h:347:27: note: '_tcase_add_test' declared here
CK_DLL_EXP void CK_EXPORT _tcase_add_test(TCase * tc, const TTest * ttest,
^
14 warnings and 2 errors generated.
make[2]: *** [test_diff-check_diff.o] Error 1
make[2]: *** Waiting for unfinished jobs....
libtool: link: /usr/bin/clang -I../src -I/opt/local/include/libxml2 -pipe
-Os -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk -arch
x86_64 -Wl,-headerpad_max_install_names -Wl,-syslibroot
-Wl,/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk -arch x86_64 -o
.libs/xml_patch xml_patch-xml_patch_main.o -L/opt/local/lib
../src/.libs/libxmlpatch.dylib -lxml2
libtool: link: /usr/bin/clang -I../src -I../diff
-I/opt/local/include/libxml2 -I/opt/local/include/glib-2.0
-I/opt/local/lib/glib-2.0/include -pipe -Os
-isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk -arch
x86_64 -Wl,-headerpad_max_install_names -Wl,-syslibroot
-Wl,/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk -arch x86_64 -o
.libs/xml_diff xml_diff-xml_diff_main.o -Wl,-framework -Wl,CoreFoundation
-L/opt/local/lib ../src/.libs/libxmlpatch.dylib
../diff/.libs/libxmldiff.dylib /opt/local/var/macports/build
/_Users_ericgallager_Documents_GitHub_macports-
ports_textproc_xmlpatch/xmlpatch/work/libxmlpatch-0.3.3/src/.libs/libxmlpatch.dylib
-lxml2 -lglib-2.0 -lintl
make[2]: Leaving directory `/opt/local/var/macports/build
/_Users_ericgallager_Documents_GitHub_macports-
ports_textproc_xmlpatch/xmlpatch/work/libxmlpatch-0.3.3/tests'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/opt/local/var/macports/build
/_Users_ericgallager_Documents_GitHub_macports-
ports_textproc_xmlpatch/xmlpatch/work/libxmlpatch-0.3.3'
make: *** [all] Error 2
make: Leaving directory `/opt/local/var/macports/build
/_Users_ericgallager_Documents_GitHub_macports-
ports_textproc_xmlpatch/xmlpatch/work/libxmlpatch-0.3.3'
Command failed: cd "/opt/local/var/macports/build
/_Users_ericgallager_Documents_GitHub_macports-
ports_textproc_xmlpatch/xmlpatch/work/libxmlpatch-0.3.3" && /usr/bin/make
-j16 -w all
Exit code: 2
Error: Failed to build xmlpatch: command execution failed
DEBUG: Error code: CHILDSTATUS 18845 2
}}}
Would updating fix this?
--
Ticket URL: <https://trac.macports.org/ticket/43594#comment:4>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list