gnuports@2rosenthals.com ?????????????? ????? #1

???: "Dave Yeo" <gnuports@2rosenthals.com> ?? ????
?????????
??: _beginthread not declared
??: Sat, 9 May 2020 20:56:06 -0700
??: GNU Ports for eCS Mailing List <gnuports@2rosenthals.com>

Hi, trying to test build aom, https://aomedia.googlesource.com/aom/ the build dies here, (after fixing the NASM obj format)

[ 68%] Building CXX object CMakeFiles/test_aom_encoder.dir/test/horz_superres_te
st.cc.o
In file included from K:/work/aom/av1/common/av1_common_int.h:19,
                 from K:/work/aom/av1/encoder/encoder.h:23,
                 from K:/work/aom/test/horz_superres_test.cc:18:
K:/work/aom/aom_util/aom_thread.h: In function 'int pthread_create(TID*, const void*, void* (*)(void*), void*)':
K:/work/aom/aom_util/aom_thread.h:186:20: error: '_beginthread' was not declared in this scope
  186 |   tid = (pthread_t)_beginthread(thread_start, NULL, 1024 * 1024, targ);      |                    ^~~~~~~~~~~~
make[2]: *** [CMakeFiles/test_aom_encoder.dir/test/horz_superres_test.cc.o] Error 1
make[1]: *** [CMakeFiles/test_aom_encoder.dir/all] Error 2
make: *** [all] Error 2

Which I don't understand as stdlib.h is included and that should declare _beginthread.
Code is here, https://aomedia.googlesource.com/aom/+/refs/heads/master/aom_util/aom_thread.h with OS/2 section starting at line 141.
There are also lots of related warnings like

In file included from K:/work/aom/av1/common/av1_common_int.h:19,
                 from K:/work/aom/av1/encoder/x86/encodetxb_sse2.c:17:
K:/work/aom/aom_util/aom_thread.h: In function 'pthread_create':
K:/work/aom/aom_util/aom_thread.h:186:20: warning: implicit declaration of function '_beginthread' [-Wimplicit-function-declaration]
  186 |   tid = (pthread_t)_beginthread(thread_start, NULL, 1024 * 1024, targ);      |                    ^~~~~~~~~~~~

Dave

--
This email was Anti Virus checked by Astaro Security Gateway. http://www.sophos.com

???????: ????, ??????, ??????.
?????????
??? ????????