swoole / yasd

Yet Another Swoole Debugger
https://huanghantao.github.io/yasd-wiki/
Apache License 2.0
357 stars 35 forks source link

mark error ( errors generated. make: *** [src/remote_debugger.lo] Error 1 ) #184

Open bingxinti opened 1 year ago

bingxinti commented 1 year ago

gcc -v Apple clang version 14.0.3 (clang-1403.0.22.14.1) Target: x86_64-apple-darwin22.4.0 Thread model: posix InstalledDir: /Library/Developer/CommandLineTools/usr/bin

mac os

执行make 时间,提示错误

END_COMPILE_DL_EXT=1 -c /usr/local/Cellar/php@8.1/8.1.18_1/lib/php/yasd/src/remote_debugger.cc -MMD -MF src/remote_debugger.dep -MT src/remote_debugger.lo -fno-common -DPIC -o src/.libs/remote_debugger.o In file included from /usr/local/Cellar/php@8.1/8.1.18_1/lib/php/yasd/src/remote_debugger.cc:33: In file included from /usr/local/include/boost/algorithm/string.hpp:23: In file included from /usr/local/include/boost/algorithm/string/split.hpp:16: In file included from /usr/local/include/boost/algorithm/string/iter_find.hpp:27: In file included from /usr/local/include/boost/algorithm/string/find_iterator.hpp:24: In file included from /usr/local/include/boost/algorithm/string/detail/find_iterator.hpp:18: In file included from /usr/local/include/boost/function.hpp:30: In file included from /usr/local/include/boost/function/detail/prologue.hpp:15: In file included from /usr/local/include/boost/throw_exception.hpp:21: In file included from /usr/local/include/boost/exception/exception.hpp:9: /usr/local/include/boost/assert/source_location.hpp:97:9: error: no member named 'ap_php_snprintf' in namespace 'std'; did you mean simply 'ap_php_snprintf'? BOOST_ASSERT_SNPRINTF( buffer, ":%lu", ln ); ^~~~~~~~~~~ /usr/local/include/boost/assert/source_location.hpp:81:53: note: expanded from macro 'BOOST_ASSERT_SNPRINTF'

define BOOST_ASSERT_SNPRINTF(buffer, format, arg) std::snprintf(buffer, sizeof(buffer)/sizeof(buffer[0]), format, arg)

                                                ^~~~~

/usr/local/Cellar/php@8.1/8.1.18_1/include/php/main/snprintf.h:74:12: note: 'ap_php_snprintf' declared here PHPAPI int ap_php_snprintf(char , size_t, const char , ...) ZEND_ATTRIBUTE_FORMAT(printf, 3, 4); ^ In file included from /usr/local/Cellar/php@8.1/8.1.18_1/lib/php/yasd/src/remote_debugger.cc:33: In file included from /usr/local/include/boost/algorithm/string.hpp:23: In file included from /usr/local/include/boost/algorithm/string/split.hpp:16: In file included from /usr/local/include/boost/algorithm/string/iter_find.hpp:27: In file included from /usr/local/include/boost/algorithm/string/find_iterator.hpp:24: In file included from /usr/local/include/boost/algorithm/string/detail/find_iterator.hpp:18: In file included from /usr/local/include/boost/function.hpp:30: In file included from /usr/local/include/boost/function/detail/prologue.hpp:15: In file included from /usr/local/include/boost/throw_exception.hpp:21: In file included from /usr/local/include/boost/exception/exception.hpp:9: /usr/local/include/boost/assert/source_location.hpp:104:13: error: no member named 'ap_php_snprintf' in namespace 'std'; did you mean simply 'ap_php_snprintf'? BOOST_ASSERT_SNPRINTF( buffer, ":%lu", co ); ^~~~~~~~~~~ /usr/local/include/boost/assert/source_location.hpp:81:53: note: expanded from macro 'BOOST_ASSERT_SNPRINTF'

define BOOST_ASSERT_SNPRINTF(buffer, format, arg) std::snprintf(buffer, sizeof(buffer)/sizeof(buffer[0]), format, arg)

                                                ^~~~~

/usr/local/Cellar/php@8.1/8.1.18_1/include/php/main/snprintf.h:74:12: note: 'ap_php_snprintf' declared here PHPAPI int ap_php_snprintf(char , size_t, const char , ...) ZEND_ATTRIBUTE_FORMAT(printf, 3, 4); ^ 2 errors generated. make: *** [src/remote_debugger.lo] Error 1

huanghantao commented 1 year ago

升级到最新的swoole版本吧,已经支持了xdebug

GHJayce commented 1 year ago

+1 This problem.

php 7.4.33 mac os big sur 11.0.1 boost version 1.81.0,try to brew reinstall boost, but problem still.

In file included from /Volumes/MacSoftware/software/office/env/php/extension/yasd-0.3.9/src/remote_debugger.cc:33:
In file included from /usr/local/include/boost/algorithm/string.hpp:23:
In file included from /usr/local/include/boost/algorithm/string/split.hpp:16:
In file included from /usr/local/include/boost/algorithm/string/iter_find.hpp:27:
In file included from /usr/local/include/boost/algorithm/string/find_iterator.hpp:24:
In file included from /usr/local/include/boost/algorithm/string/detail/find_iterator.hpp:18:
In file included from /usr/local/include/boost/function.hpp:30:
In file included from /usr/local/include/boost/function/detail/prologue.hpp:15:
In file included from /usr/local/include/boost/throw_exception.hpp:21:
In file included from /usr/local/include/boost/exception/exception.hpp:9:
/usr/local/include/boost/assert/source_location.hpp:97:9: error: no member named 'ap_php_snprintf' in namespace 'std'; did you mean simply 'ap_php_snprintf'?
        BOOST_ASSERT_SNPRINTF( buffer, ":%lu", ln );
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/boost/assert/source_location.hpp:81:53: note: expanded from macro 'BOOST_ASSERT_SNPRINTF'
# define BOOST_ASSERT_SNPRINTF(buffer, format, arg) std::snprintf(buffer, sizeof(buffer)/sizeof(buffer[0]), format, arg)
                                                    ^~~~~
/usr/local/Cellar/php@7.4/7.4.33_2/include/php/main/snprintf.h:81:12: note: 'ap_php_snprintf' declared here
PHPAPI int ap_php_snprintf(char *, size_t, const char *, ...) ZEND_ATTRIBUTE_FORMAT(printf, 3, 4);
           ^
In file included from /Volumes/MacSoftware/software/office/env/php/extension/yasd-0.3.9/src/remote_debugger.cc:33:
In file included from /usr/local/include/boost/algorithm/string.hpp:23:
In file included from /usr/local/include/boost/algorithm/string/split.hpp:16:
In file included from /usr/local/include/boost/algorithm/string/iter_find.hpp:27:
In file included from /usr/local/include/boost/algorithm/string/find_iterator.hpp:24:
In file included from /usr/local/include/boost/algorithm/string/detail/find_iterator.hpp:18:
In file included from /usr/local/include/boost/function.hpp:30:
In file included from /usr/local/include/boost/function/detail/prologue.hpp:15:
In file included from /usr/local/include/boost/throw_exception.hpp:21:
In file included from /usr/local/include/boost/exception/exception.hpp:9:
/usr/local/include/boost/assert/source_location.hpp:104:13: error: no member named 'ap_php_snprintf' in namespace 'std'; did you mean simply 'ap_php_snprintf'?
            BOOST_ASSERT_SNPRINTF( buffer, ":%lu", co );
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/boost/assert/source_location.hpp:81:53: note: expanded from macro 'BOOST_ASSERT_SNPRINTF'
# define BOOST_ASSERT_SNPRINTF(buffer, format, arg) std::snprintf(buffer, sizeof(buffer)/sizeof(buffer[0]), format, arg)
                                                    ^~~~~
/usr/local/Cellar/php@7.4/7.4.33_2/include/php/main/snprintf.h:81:12: note: 'ap_php_snprintf' declared here
PHPAPI int ap_php_snprintf(char *, size_t, const char *, ...) ZEND_ATTRIBUTE_FORMAT(printf, 3, 4);
           ^
2 errors generated.
make: *** [src/remote_debugger.lo] Error 1