GNOME Bugzilla – Bug 736785
orc: Uses system() which is deprecated on iOS 8
Last modified: 2018-11-03 10:47:06 UTC
/bin/sh ../libtool –tag=CC –mode=compile clang -DHAVE_CONFIG_H -I. -I.. -arch armv7 -mcpu=cortex-a8 -pipe -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.0.sdk -Wall -Werror -I.. -D_GNU_SOURCE -DORC_ENABLE_UNSTABLE_API -arch armv7 -mcpu=cortex-a8 -pipe -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.0.sdk -miphoneos-version-min=8.0 -Wall -g -Os -Wno-error=format-nonliteral -MT liborc_test_0.4_la-orctest.lo -MD -MP -MF .deps/liborc_test_0.4_la-orctest.Tpo -c -o liborc_test_0.4_la-orctest.lo `test -f ‘orctest.c’ || echo ‘./’`orctest.c libtool: compile: clang -DHAVE_CONFIG_H -I. -I.. -arch armv7 -mcpu=cortex-a8 -pipe -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.0.sdk -Wall -Werror -I.. -D_GNU_SOURCE -DORC_ENABLE_UNSTABLE_API -arch armv7 -mcpu=cortex-a8 -pipe -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.0.sdk -miphoneos-version-min=8.0 -Wall -g -Os -Wno-error=format-nonliteral -MT liborc_test_0.4_la-orctest.lo -MD -MP -MF .deps/liborc_test_0.4_la-orctest.Tpo -c orctest.c -fno-common -DPIC -o .libs/liborc_test_0.4_la-orctest.o orctest.c:134:9: error: ‘system’ is deprecated: first deprecated in iOS 8.0 – Use posix_spawn APIs instead. [-Werror,-Wdeprecated-declarations] ret = system (cmd); ^ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.0.sdk/usr/include/stdlib.h:177:6: note: ‘system’ has been explicitly marked deprecated here int system(const char *) __DARWIN_ALIAS_C(system) __OSX_AVAILABLE_BUT_DEPRECATED_MSG(__MAC_10_0,__MAC_NA,__IPHONE_2_0,__IPHONE_8_0, “Use posix_spawn APIs instead.”); /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.0.sdk/usr/include/stdlib.h:177:6: note: ‘system’ has been explicitly marked deprecated here int system(const char *) __DARWIN_ALIAS_C(system) __OSX_AVAILABLE_BUT_DEPRECATED_MSG(__MAC_10_0,__MAC_NA,__IPHONE_2_0,__IPHONE_8_0, “Use posix_spawn APIs instead.”);
Probably should use the GLib functions instead (g_spawn() and friends).
orc does not depend on glib and shouldn't
Still applies, but is mitigated by the fact that one can disable the test system (which is where system is being used).
-- GitLab Migration Automatic Message -- This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/gstreamer/orc/issues/3.