Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

openrasp-php module fixed complier php ececuter throws error ld returned 1 exit status #12

Open
BrouseLi opened this issue Nov 17, 2022 · 0 comments

Comments

@BrouseLi
Copy link

when try fix openrasp -php module fix up php executer ,i moved agent/php5 dir to php-5.6.40/ext and cd php-5.6.40 then i execute buildconf --force,
and i will configure php ,the configure param is
./configure --prefix=/usr/local/php/php5 --with-config-file-path=/usr/local/php/php5/etc/ --with-config-file-scan-dir=/usr/local/php/php5/etc/php.d --with-mysql=mysqlnd --with-pdo-mysql=mysqlnd --with-mysqli=mysqlnd --with-iconv-dir --with-freetype-dir --with-jpeg-dir --with-png-dir --with-zlib --with-libxml-dir --enable-xml --disable-rpath --enable-bcmath --enable-shmop --enable-sysvsem --enable-inline-optimization --with-curl=/usr/local/curl --enable-mbregex --enable-fpm --enable-mbstring --with-gd --enable-gd-native-ttf --with-mhash --enable-pcntl --enable-sockets --with-xmlrpc --enable-zip --enable-soap --enable-short-tags --enable-static --with-fpm-user --with-fpm-group --enable-ftp --with-freetype-dir=/usr/local/freetype --enable-openrasp --with-openrasp-v8=/home/brouseli/openrasp-master/openrasp-v8/ --with-gettext --enable-openrasp-remote-manager

finally when i make -j4 the result is
handlers.lo Zend/zend_objects_API.lo Zend/zend_default_classes.lo Zend/zend_execute.lo main/internal_functions_cli.lo sapi/cgi/cgi_main.lo sapi/cgi/fastcgi.lo -lcrypt -Wl,--start-group -Wl,/home/brouseli/openrasp-master/openrasp-v8/prebuilts/linux/lib64/libc++.a -Wl,/home/brouseli/openrasp-master/openrasp-v8/prebuilts/linux/lib64/libc++abi.a -Wl,/home/brouseli/openrasp-master/openrasp-v8/prebuilts/linux/lib64/libcrypto.a -Wl,/home/brouseli/openrasp-master/openrasp-v8/prebuilts/linux/lib64/libcurl.a -Wl,/home/brouseli/openrasp-master/openrasp-v8/prebuilts/linux/lib64/libssl.a -Wl,/home/brouseli/openrasp-master/openrasp-v8/prebuilts/linux/lib64/libv8_monolith.a -Wl,/home/brouseli/openrasp-master/openrasp-v8/prebuilts/linux/lib64/libz.a -Wl,--end-group -nodefaultlibs -lm -lc -lrt -lgcc_s -ldl -lpthread /home/brouseli/openrasp-master/openrasp-v8/build/php/libopenrasp_v8_php.a -lz -lcrypt -lrt -lstdc++ -lpng -lz -ljpeg -lcurl -lz -lrt -lm -lnsl -lxml2 -lcurl -lxml2 -lfreetype -lz -lxml2 -lxml2 -lcrypt -lxml2 -lxml2 -lxml2 -lxml2 -lcrypt -o sapi/cgi/php-cgi
/usr/bin/ld: /home/brouseli/openrasp-master/openrasp-v8/build/php/libopenrasp_v8_php.a(platform.cc.o): in function openrasp_v8::Platform::Startup()': /home/brouseli/openrasp-master/openrasp-v8/base/[platform.cc:36](http://platform.cc:36/): undefined reference to v8::platform::NewDefaultPlatform(int, v8::platform::IdleTaskSupport, v8::platform::InProcessStackDumping, std::__1::unique_ptr<v8::TracingController, std::__1::default_deletev8::TracingController >)'
/usr/bin/ld: /home/brouseli/openrasp-master/openrasp-v8/build/php/libopenrasp_v8_php.a(platform.cc.o): in function openrasp_v8::Platform::Platform(int)': /home/brouseli/openrasp-master/openrasp-v8/base/[platform.cc:47](http://platform.cc:47/): undefined reference to v8::platform::tracing::TracingController::TracingController()'
/usr/bin/ld: /home/brouseli/openrasp-master/openrasp-v8/base/platform.cc:48: undefined reference to v8::platform::tracing::TracingController::Initialize(v8::platform::tracing::TraceBuffer*)' /usr/bin/ld: /home/brouseli/openrasp-master/openrasp-v8/build/php/libopenrasp_v8_php.a(platform.cc.o): in function openrasp_v8::Platform::PumpMessageLoop(v8::Isolate*, v8::platform::MessageLoopBehavior)':
/home/brouseli/openrasp-master/openrasp-v8/base/platform.cc:57: undefined reference to v8::platform::PumpMessageLoop(v8::Platform*, v8::Isolate*, v8::platform::MessageLoopBehavior)' /usr/bin/ld: /usr/bin/ld: /home/brouseli/openrasp-master/openrasp-v8/build/php/libopenrasp_v8_php.a(platform.cc.o): in function openrasp_v8::Platform::Startup()':
/home/brouseli/openrasp-master/openrasp-v8/base/platform.cc:36: undefined reference to v8::platform::NewDefaultPlatform(int, v8::platform::IdleTaskSupport, v8::platform::InProcessStackDumping, std::__1::unique_ptr<v8::TracingController, std::__1::default_delete<v8::TracingController> >)' /usr/bin/ld: /home/brouseli/openrasp-master/openrasp-v8/build/php/libopenrasp_v8_php.a(platform.cc.o): in function openrasp_v8::Platform::Platform(int)':
/home/brouseli/openrasp-master/openrasp-v8/base/platform.cc:47: undefined reference to v8::platform::tracing::TracingController::TracingController()' /usr/bin/ld: /home/brouseli/openrasp-master/openrasp-v8/base/[platform.cc:48](http://platform.cc:48/): undefined reference to v8::platform::tracing::TracingController::Initialize(v8::platform::tracing::TraceBuffer*)'
/usr/bin/ld: /home/brouseli/openrasp-master/openrasp-v8/build/php/libopenrasp_v8_php.a(platform.cc.o): in function openrasp_v8::Platform::PumpMessageLoop(v8::Isolate*, v8::platform::MessageLoopBehavior)': /home/brouseli/openrasp-master/openrasp-v8/base/[platform.cc:57](http://platform.cc:57/): undefined reference to v8::platform::PumpMessageLoop(v8::Platform*, v8::Isolate*, v8::platform::MessageLoopBehavior)'
/home/brouseli/openrasp-master/openrasp-v8/build/php/libopenrasp_v8_php.a(platform.cc.o): in function openrasp_v8::Platform::Startup()': /home/brouseli/openrasp-master/openrasp-v8/base/[platform.cc:36](http://platform.cc:36/): undefined reference to v8::platform::NewDefaultPlatform(int, v8::platform::IdleTaskSupport, v8::platform::InProcessStackDumping, std::__1::unique_ptr<v8::TracingController, std::__1::default_deletev8::TracingController >)'
/usr/bin/ld: /home/brouseli/openrasp-master/openrasp-v8/build/php/libopenrasp_v8_php.a(platform.cc.o): in function openrasp_v8::Platform::Platform(int)': /home/brouseli/openrasp-master/openrasp-v8/base/[platform.cc:47](http://platform.cc:47/): undefined reference to v8::platform::tracing::TracingController::TracingController()'
/usr/bin/ld: /home/brouseli/openrasp-master/openrasp-v8/base/platform.cc:48: undefined reference to v8::platform::tracing::TracingController::Initialize(v8::platform::tracing::TraceBuffer*)' /usr/bin/ld: /home/brouseli/openrasp-master/openrasp-v8/build/php/libopenrasp_v8_php.a(platform.cc.o): in function openrasp_v8::Platform::PumpMessageLoop(v8::Isolate*, v8::platform::MessageLoopBehavior)':
/home/brouseli/openrasp-master/openrasp-v8/base/platform.cc:57: undefined reference to `v8::platform::PumpMessageLoop(v8::Platform*, v8::Isolate*, v8::platform::MessageLoopBehavior)'
collect2: error: ld returned 1 exit status
collect2: error: ld returned 1 exit status
make: *** [Makefile:270: sapi/cli/php] Error 1
make: *** Waiting for unfinished jobs....
make: *** [Makefile:306: sapi/cgi/php-cgi] Error 1
collect2: error: ld returned 1 exit status
make: *** [Makefile:283: sapi/fpm/php-fpm] Error 1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant