Error while running libcurl7.43.0 make in CentOS 5.11 - c++

Before I was using libculr-7.42.1 but due to CVE-2015-3236 and CVE-2015-3237, I plan to upgrade to libculr-7.43.0 which fixes the above mentioned vulnerabilities.
After upgrade It was building fine(make) in my dev-vm which is running in CentOS-6.4. But when I started building in QA mechanic which is running CentOS-5.11 giving following exception. Is there anything to to address for lower version of CentOS.
[exec] vtls/openssl.c: In function 'ssl_msg_type': [exec]
vtls/openssl.c:1430: error: 'SSL3_MT_NEWSESSION_TICKET' undeclared
(first use in this function) [exec] vtls/openssl.c:1430: error: (Each
undeclared identifier is reported only once [exec]
vtls/openssl.c:1430: error: for each function it appears in.) [exec]
make[1]: * [vtls/libcurl_la-openssl.lo] Error 1 [exec] make: *
[install-recursive] Error 1
................................................ [exec] Result: 2
Any suggestion is highly appreciable. Thanks in advance.

Looks like there were few naming conflict with OpenSSL old version(< ~ 0.9.8f). Regarding this I raised an issue and they fixed it.
More here https://github.com/bagder/curl/issues/323#issuecomment-114492795
EDIT:
It got fixed in curl-7.44.0 (released on 12-Aug-15)

Related

SAP Commerce Cloud 2105 Installation on MAC OS Build Error: The command failed with exit code 127

I'm trying to setup SAP Commerce Cloud v2105 project in my MAC OS machine for Spartacus development.
I'm using this guide: https://sap.github.io/spartacus-docs/installing-sap-commerce-cloud-2105/
So far I have installed the pre-requisites:
JDK 11 => soon changed it to SAP Machine JDK 11 based on this: SAP Commerce Cloud with Spartacus installation error
NodeJS version 12
Angular CLI version 10
Setup JAVA_HOME
Everything is going well until i got this error while running the command:
./install.sh -r cx-for-spa initialize
Error
> Task :recipes:cx-for-spa:buildSystem FAILED
FAILURE: Build failed with an exception.
* Where:
Build file '/Users/programmer/Documents/projects/commercloud/installer/recipes/cx-for-spa/build.gradle' line: 604
* What went wrong:
Execution failed for task ':recipes:cx-for-spa:buildSystem'.
> external process returned non-zero exit code, command: [sh, -c, export PLATFORM_HOME="/Users/programmer/Documents/projects/commercloud/hybris/bin/platform" && export ANT_OPTS="-Xmx1024m -Dfile.encoding=UTF-8" && export ANT_HOME="/Users/programmer/Documents/projects/commercloud/hybris/bin/platform/apache-ant" && chmod +x "/Users/programmer/Documents/projects/commercloud/hybris/bin/platform/apache-ant/bin/ant" && export PATH="$ANT_HOME/bin:$PATH" && ant clean all]
Stacktrace
[exec]
[exec]
[exec] Running "pnpm install" in /Users/programmer/Documents/projects/commercloud/hybris/bin/modules/smartedit/smartedittools/common/temp
[exec]
[exec]
[exec] The command failed:
[exec] /Users/programmer/Documents/projects/commercloud/hybris/bin/modules/smartedit/smartedittools/common/temp/pnpm-local/node_modules/.bin/pnpm install --no-prefer-frozen-lockfile --strict-peer-dependencies
[exec] ERROR: Error: The command failed with exit code 127
[exec]
[exec] Trying again (attempt #2)...
[exec]
[exec] Deleting the "node_modules" folder
[exec]
[exec] The command failed:
[exec] /Users/programmer/Documents/projects/commercloud/hybris/bin/modules/smartedit/smartedittools/common/temp/pnpm-local/node_modules/.bin/pnpm install --no-prefer-frozen-lockfile --strict-peer-dependencies
[exec] ERROR: Error: The command failed with exit code 127
[exec]
[exec] Trying again (attempt #3)...
[exec]
[exec] Deleting the "node_modules" folder
[exec]
[exec] The command failed:
[exec] /Users/programmer/Documents/projects/commercloud/hybris/bin/modules/smartedit/smartedittools/common/temp/pnpm-local/node_modules/.bin/pnpm install --no-prefer-frozen-lockfile --strict-peer-dependencies
[exec] ERROR: Error: The command failed with exit code 127
[exec]
[exec] /bin/sh: /Users/programmer/Documents/projects/commercloud/hybris/bin/modules/smartedit/smartedittools/common/temp/pnpm-local/node_modules/.bin/pnpm: No such file or directory
[exec] /bin/sh: /Users/programmer/Documents/projects/commercloud/hybris/bin/modules/smartedit/smartedittools/common/temp/pnpm-local/node_modules/.bin/pnpm: No such file or directory
[exec] /bin/sh: /Users/programmer/Documents/projects/commercloud/hybris/bin/modules/smartedit/smartedittools/common/temp/pnpm-local/node_modules/.bin/pnpm: No such file or directory
[exec] Giving up after 3 attempts
[exec]
[exec]
[exec] ERROR: The command failed with exit code 127
[exec]
What I tried to far
Solution #1 - removed NodeJS and NPM and redid everything
Reference: https://answers.sap.com/questions/12762725/hybris-63-sapaomsomb2bb2c-ant-clean-all-error.html?childToView=12794099 - DIDN'T WORK
Solution #2 - manually removed node_modules on the pnpm directory, but only shortcut found and no node_modules folder found
Solution #3 - reinstalled Angular CLI - DIDN'T WORK
Solution #4 - This solution => SAP Commerce Cloud with Spartacus installation error - DIDN'T WORK
Solution #5 - commented out all extensions related to smartedit on the build.gradle file - DIDN'T WORK
Solution #6 - Uninstalled Visual Studio code as it might cause conflict - DIDN'T WORK
Solution #7 - Commented the build parallel flag
Reference: Build failed.Step 2: Build and initialize the new recipe. Initialize the system - DIDN'T WORK
Just asking here, there might be people out there who experienced the same issues.
Try this:
Change the pnpm version to 5.18.10 on "bin\modules\smartedit\smartedittools\common\config\rush.tpl.json";
Delete .pnpm-store under your Windows $HOME;
Trigger commerce build
The problem in your setup is that you are missing some pre-reqs for SmartEdit extensions.
Try running ant npminstall to enable full build
(https://help.sap.com/docs/SAP_COMMERCE/9d346683b0084da2938be8a285c0c27a/6d55d5fba206425b9acecda9f2311483.html?version=1905&locale=en-US)
But, I suggest you to not include smartedit extensions in local env.
I am using, also, a SAP Commerce 2105 with Spartacus, and I am injecting Smartedit extensions only at cloud envs.
I think SmartEdit is really heavy to include at local envs.

Cannot install OpenOnload on AWS Server

I am trying to install OpenOnload on an AWS server running Ubuntu server 18.04.3. I downloaded the DEB release package from version 7.1.0.265 (the latest) from here: https://support.solarflare.com/index.php/component/cognidox/?view=categories&id=361
and then extract out of it just the folder \onload_7.1.0.265-debiansource.tgz\onload_7.1.0.265.orig.tar.gz and untar that. Then I can run
$ ./scripts/onload_install
as per the instructions in the README file. On Ubuntu 20 on my local machine this all worked and installed OpenOnload fine but on an AWS server instance this error is thrown:
onload_install: Building Onload.
Build tree made for linux as x86_64_linux-4.15.0-1057-aws
make: Entering directory '/home/ubuntu/onload-7.1.0.265/build/x86_64_linux-4.15.0-1057-aws'
# Build both autocompat.h files: linux_net and linux_affinity.
make -C driver/linux_net
make[1]: Entering directory '/home/ubuntu/onload-7.1.0.265/build/x86_64_linux-4.15.0-1057-aws/driver/linux_net'
make -C /usr/src/linux-headers-4.15.0-1057-aws CC="cc" M=$(pwd)
make[2]: Entering directory '/usr/src/linux-headers-4.15.0-1057-aws'
/home/ubuntu/onload-7.1.0.265/src/driver/linux_net/Makefile:61: SFE4001/Falcon is no longer supported
CHK /home/ubuntu/onload-7.1.0.265/build/x86_64_linux-4.15.0-1057-aws/driver/linux_net/autocompat.h
UPD /home/ubuntu/onload-7.1.0.265/build/x86_64_linux-4.15.0-1057-aws/driver/linux_net/autocompat.h
CHK /home/ubuntu/onload-7.1.0.265/build/x86_64_linux-4.15.0-1057-aws/driver/linux_net/config.h
UPD /home/ubuntu/onload-7.1.0.265/build/x86_64_linux-4.15.0-1057-aws/driver/linux_net/config.h
CC [M] /home/ubuntu/onload-7.1.0.265/build/x86_64_linux-4.15.0-1057-aws/driver/linux_net/efx.o
/home/ubuntu/onload-7.1.0.265/build/x86_64_linux-4.15.0-1057-aws/driver/linux_net/efx.c: In function ‘efx_init_struct’:
/home/ubuntu/onload-7.1.0.265/build/x86_64_linux-4.15.0-1057-aws/driver/linux_net/efx.c:5225:2: error: implicit declaration of function ‘efx_mtd_free’; did you mean ‘efx_mtd_probe’? [-Werror=implicit-function-declaration]
efx_mtd_free(efx);
^~~~~~~~~~~~
efx_mtd_probe
/home/ubuntu/onload-7.1.0.265/build/x86_64_linux-4.15.0-1057-aws/driver/linux_net/efx.c:5224:1: warning: label ‘fail’ defined but not used [-Wunused-label]
fail:
^~~~
/home/ubuntu/onload-7.1.0.265/build/x86_64_linux-4.15.0-1057-aws/driver/linux_net/efx.c: In function ‘efx_fini_struct’:
/home/ubuntu/onload-7.1.0.265/build/x86_64_linux-4.15.0-1057-aws/driver/linux_net/efx.c:5247:9: error: ‘struct efx_nic’ has no member named ‘mtd_struct’
if (efx->mtd_struct) {
^~
/home/ubuntu/onload-7.1.0.265/build/x86_64_linux-4.15.0-1057-aws/driver/linux_net/efx.c:5248:6: error: ‘struct efx_nic’ has no member named ‘mtd_struct’
efx->mtd_struct->efx = NULL;
^~
/home/ubuntu/onload-7.1.0.265/build/x86_64_linux-4.15.0-1057-aws/driver/linux_net/efx.c:5249:6: error: ‘struct efx_nic’ has no member named ‘mtd_struct’
efx->mtd_struct = NULL;
^~
cc1: some warnings being treated as errors
scripts/Makefile.build:330: recipe for target '/home/ubuntu/onload-7.1.0.265/build/x86_64_linux-4.15.0-1057-aws/driver/linux_net/efx.o' failed
make[3]: *** [/home/ubuntu/onload-7.1.0.265/build/x86_64_linux-4.15.0-1057-aws/driver/linux_net/efx.o] Error 1
Makefile:1580: recipe for target '_module_/home/ubuntu/onload-7.1.0.265/build/x86_64_linux-4.15.0-1057-aws/driver/linux_net' failed
make[2]: *** [_module_/home/ubuntu/onload-7.1.0.265/build/x86_64_linux-4.15.0-1057-aws/driver/linux_net] Error 2
make[2]: Leaving directory '/usr/src/linux-headers-4.15.0-1057-aws'
/home/ubuntu/onload-7.1.0.265/src/driver/linux_net/Makefile:300: recipe for target 'modules' failed
make[1]: *** [modules] Error 2
make[1]: Leaving directory '/home/ubuntu/onload-7.1.0.265/build/x86_64_linux-4.15.0-1057-aws/driver/linux_net'
../../src/mmake.mk:57: recipe for target 'all' failed
make: *** [all] Error 2
make: Leaving directory '/home/ubuntu/onload-7.1.0.265/build/x86_64_linux-4.15.0-1057-aws'
onload_build: ERROR: Failed to build driver components.
onload_install: ERROR: Build failed. Not installing.
Could this be due to incompatibility with some specific features on AWS? I checked the version compatibility for the downloaded source and it says compatible with Ubuntu server 18.04. Any ideas on how to fix it would be greatly appreciated!
Based on the comments.
The solution was to use Onload-7.0.0.176 instead of Onload-7.1.0.265.
Seems version Onload-7.1.0.265 has some compilation bugs on Ubuntu 18.04.

AMDGPU driver DKMS module build fails in Kubuntu 18.04

I recently bought an AMD RX590 card (XFX 8GB Fatboy),
and tried to install on my linux box. I downloaded the AMDGPU drivers from amd website,
and launched the installer ./amdgpu-install on my machine.
I got the following error during instalation:
Building for 5.6.0-16.2-liquorix-amd64
Building for architecture x86_64
Building initial module for 5.6.0-16.2-liquorix-amd64
ERROR (dkms apport): kernel package linux-headers-5.6.0-16.2-liquorix-amd64 is not supported
Error! Bad return status for module build on kernel: 5.6.0-16.2-liquorix-amd64 (x86_64)
Consult /var/lib/dkms/amdgpu/5.4.7.53-1048554/build/make.log for more information.
Here is the output from make.log:
/var/lib/dkms/amdgpu/5.4.7.53-1048554/build/amd/amdgpu/smu_v11_0_i2c.c: In function 'smu_v11_0_i2c_transmit':
/var/lib/dkms/amdgpu/5.4.7.53-1048554/build/amd/amdgpu/smu_v11_0_i2c.c:237:6: error: 'drm_debug' undeclared (first use in this function); did you mean '__drm_debug'?
if (drm_debug & DRM_UT_DRIVER) {
^~~~~~~~~
__drm_debug
/var/lib/dkms/amdgpu/5.4.7.53-1048554/build/amd/amdgpu/smu_v11_0_i2c.c:237:6: note: each undeclared identifier is reported only once for each function it appears in
/var/lib/dkms/amdgpu/5.4.7.53-1048554/build/amd/amdgpu/smu_v11_0_i2c.c: In function 'smu_v11_0_i2c_receive':
/var/lib/dkms/amdgpu/5.4.7.53-1048554/build/amd/amdgpu/smu_v11_0_i2c.c:391:6: error: 'drm_debug' undeclared (first use in this function); did you mean '__drm_debug'?
if (drm_debug & DRM_UT_DRIVER) {
^~~~~~~~~
__drm_debug
scripts/Makefile.build:267: recipe for target '/var/lib/dkms/amdgpu/5.4.7.53-1048554/build/amd/amdgpu/smu_v11_0_i2c.o' failed
make[2]: *** [/var/lib/dkms/amdgpu/5.4.7.53-1048554/build/amd/amdgpu/smu_v11_0_i2c.o] Error 1
make[2]: *** Waiting for unfinished jobs....
scripts/Makefile.build:505: recipe for target '/var/lib/dkms/amdgpu/5.4.7.53-1048554/build/amd/amdgpu' failed
make[1]: *** [/var/lib/dkms/amdgpu/5.4.7.53-1048554/build/amd/amdgpu] Error 2
Makefile:1708: recipe for target '/var/lib/dkms/amdgpu/5.4.7.53-1048554/build' failed
make: *** [/var/lib/dkms/amdgpu/5.4.7.53-1048554/build] Error 2
make: Leaving directory '/usr/src/linux-headers-5.6.0-16.2-liquorix-amd64'
Does anyone know how to make this work on Linux?
I tried to install amdgpu with the --no-dkms swith successfully, but the graphics card doesn't initialize with the amd drivers, and shows up as llvmpipe 9.0. Any ideas how to make this works?

upgrade gcc + compiling ROOT

I am working on ROOT v6.06.06 on ubuntu 14.04. Everything went OK.
Lately i did apt-get upgrade, and this affected the c++ compiler.
Since then, when i try to run my macros on ROOT, I have this error:
fatal error: file '/usr/include/c++/4.9/cmath' modified since it was first processed
I tried then to re-compile ROOT, but it's not working, I have this error:
[ 36%] Building CXX object interpreter/llvm/src/tools/clang/lib/Driver/CMakeFiles/clangDriver.dir/ToolChains.cpp.o
.../root/interpreter/llvm/src/tools/clang/lib/Driver/ToolChains.cpp: In static member function ‘static std::string clang::driver::toolchains::Hexagon_TC::GetGnuDir(const string&, const llvm::opt::ArgList&)’:
.../root/root6/root/interpreter/llvm/src/tools/clang/lib/Driver/ToolChains.cpp:2110:42: error: ‘LLVM_PREFIX’ was not declared in this scope
std::string PrefixRelDir = std::string(LLVM_PREFIX) + "/../gnu";
^
make[2]: *** [interpreter/llvm/src/tools/clang/lib/Driver/CMakeFiles/clangDriver.dir/ToolChains.cpp.o] Error 1
make[1]: *** [interpreter/llvm/src/tools/clang/lib/Driver/CMakeFiles/clangDriver.dir/all] Error 2
make: *** [all] Error 2
So I need either solving the c++ compiler so i can use the last compiled version of ROOT that I have,
Or succeed to solve the problem while compiling ROOT.
Can you help me please? I am blocked. Thanks a lot.

Having difficulties installing Caffe in ubuntu 16.04

OS: ubuntu 16.04
CUDA: 7.5
Cudnn: 5
I am following this tutorial for installing caffe with gpu.
In here, I wanted an installation of opencv 3.1. But the compilation of opencv is giving error when CUDA is already installed in the system.
The error I get on trying to make opencv 3.1 is :
/usr/include/string.h: In function ‘void* __mempcpy_inline(void*, const void*, size_t)’:
/usr/include/string.h:652:42: error: ‘memcpy’ was not declared in this scope
return (char *) memcpy (__dest, __src, __n) + __n;
^
CMake Error at cuda_compile_generated_gpu_mat.cu.o.cmake:266 (message):
Error generating file
/home/cortana/Downloads/opencv-3.1.0/build/modules/core/CMakeFiles/cuda_compile.dir/src/cuda/./cuda_compile_generated_gpu_mat.cu.o
modules/core/CMakeFiles/opencv_core.dir/build.make:63: recipe for target 'modules/core/CMakeFiles/cuda_compile.dir/src/cuda/cuda_compile_generated_gpu_mat.cu.o' failed
make[2]: *** [modules/core/CMakeFiles/cuda_compile.dir/src/cuda/cuda_compile_generated_gpu_mat.cu.o] Error 1
CMakeFiles/Makefile2:1505: recipe for target 'modules/core/CMakeFiles/opencv_core.dir/all' failed
make[1]: *** [modules/core/CMakeFiles/opencv_core.dir/all] Error 2
Makefile:160: recipe for target 'all' failed
make: *** [all] Error 2
I have tried changing CMakeLists.txt of opencv 3.1 by adding the line set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -D_FORCE_INLINES") to it. Also, I checked the suggestion for changing the /usr/include/string.h provided here. But I already have the updated version of the file.
I am unable to build opencv 3.1 and hence, Caffe.
Try with CUDA 8. It worked for me with GeForce GTX 960M on Ubuntu 16.04