Valgrind configure build script "Syntax Error" OSX Monterey - how to fix? - valgrind

I'm trying to build Valgrind 3.19.0 on OSX monterey and when i run the configure script i get a syntax error at line 6594:
checking for diff -u... yes
./configure: line 6594: syntax error near unexpected token `newline'
./configure: line 6594: ` '''
This is the code sippet of the configure script where the error is occuring.
for as_dir in $PATH
do
IFS=$as_save_IFS
case $as_dir in #(((
''
as_dir=./ ;;
*/) ;;
*) as_dir=$as_dir/ ;;
Let me know if you need any more info.

Related

Xcode 13 build error - Command PhaseScriptExecution failed with a nonzero exit code

Cannot build with xcode 13, I keep getting this error.
I have tried everything from this thread but nothing works, https://github.com/react-native-community/upgrade-support/issues/161
I've nuked the repo pulled down again and still get the same error. I'm out of ideas, can anyone please help?
/bin/sh -c /Users/xxx/Library/Developer/Xcode/DerivedData/xxx-glxuojrfejxbhqgircpjgklctbto/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/FBReactNativeSpec.build/Script-85ABEEFECFDEC6A1611D2CF5A77EABBC.sh
/Users/xxx/apps/xxx/node_modules/react-native/scripts/generate-specs.sh: line 27: readlink: command not found
/Users/xxx/apps/xxx/node_modules/react-native/scripts/generate-specs.sh: line 27: dirname: command not found
/Users/xxx/apps/xxx/node_modules/react-native/scripts/generate-specs.sh: line 27: cd: : No such file or directory
Command PhaseScriptExecution failed with a nonzero exit code
Using xcode 13, RN 64.2, macOS Big Sur 11.6
Fixed by modifying generate-specs.sh
https://github.com/facebook/react-native/issues/32157#issuecomment-915165442
Try to add arm64 in debug & Release if excluded archivecture

Building Chromium on windows throws an error message

After fetching Chromium's source code, I executed the following command
$ gn gen out/Default
This results in an execution error:
/c/src/depot_tools/gn: line 8: exec: python3: not found
What's the problem and how to solve this error?

How can I fix this bug with ScyllaDB?

I'm trying to work through the ScyllaDB tutorial series here: https://www.scylladb.com/2017/11/30/mutant-monitoring-system-day-1/
I've got a Docker container running (on Windows, using Powershell) and have cloned their repo, and run it with Docker Compose:
PS C:\repos\scylla-code-samples\mms> docker-compose up -d
mms_scylla-node3_1 is up-to-date
mms_scylla-node2_1 is up-to-date
Creating mms_scylla-node1_1 ... done
Trying to check its status with the nodetool returns a container restarting error:
PS C:\repos\scylla-code-samples\mms> docker exec -it mms_scylla-node1_1 nodetool status
>>
Error response from daemon: Container c2940e14078fcdbbcf70f60392b05eb3d5c90273a15970c8575aad46cd797a02 is restarting, wait until the container is running
The logs show these unexpected end of file errors:
2019-03-05T09:39:36.882128500Z /start.sh: line 36: syntax error: unexpected end of file
2019-03-05T09:40:38.038237500Z /start.sh: line 4: $'\r': command not found
2019-03-05T09:40:38.038383700Z /start.sh: line 36: syntax error: unexpected end of file
2019-03-05T09:41:38.922861400Z /start.sh: line 4: $'\r': command not found
2019-03-05T09:41:38.923067400Z /start.sh: line 36: syntax error: unexpected end of file
2019-03-05T09:42:39.801821900Z /start.sh: line 4: $'\r': command not found
2019-03-05T09:42:39.802078500Z /start.sh: line 36: syntax error: unexpected end of file
2019-03-05T09:43:40.696641100Z /start.sh: line 4: $'\r': command not found
2019-03-05T09:43:40.696928800Z /start.sh: line 36: syntax error: unexpected end of file
How can I fix this, preferably without writing code?
The \r is indicative of windows-style carriage returns, so maybe it is related to your Windows environment somehow. Advise is to try this on a Linux box, and in parallel open a bug with the scylla-code-samples.git project so that it can be fixed.
On windows, you can try using the Docker Toolbox which uses a Virtual Box based docker host rather than the one that's part of the new "Docker for Windows". This ensure that you are running on Linux without having a Linux box.
Even though it says "Legacy Desktop Solution" It still works well.
https://docs.docker.com/toolbox/toolbox_install_windows/

CMake build failed with error 'SecTrustEvaluateAsync' undeclared when using gcc 5.3 on OS X

I am trying to build CMake 3.5.2 from source on Mac El Captain using GNU GCC 5.3 from HPC.
The ./bootstrap process is completed successfully but when i am using make is failing with the following error.
/Users/dev/Downloads/CMake-master/Utilities/cmcurl/lib/vtls/darwinssl.c: In function ‘darwinssl_connect_step3’:
/Users/dev/Downloads/CMake-master/Utilities/cmcurl/lib/vtls/darwinssl.c:1999:6: error: ‘SecTrustEvaluateAsync’ undeclared (first use in this function)
if(SecTrustEvaluateAsync != NULL) {
^
/Users/dev/Downloads/CMake-master/Utilities/cmcurl/lib/vtls/darwinssl.c:1999:6: note: each undeclared identifier is reported only once for each function it appears in
make[2]: *** [Utilities/cmcurl/lib/CMakeFiles/cmcurl.dir/vtls/darwinssl.c.o] Error 1
make[1]: *** [Utilities/cmcurl/lib/CMakeFiles/cmcurl.dir/all] Error 2
make: *** [all] Error 2
The same process worked fine when I was using the default clang compiler provided with Mac OS.
When I tried finding about SecTrustEvaluateAsync I found the following information in the apple site.
Any help on this is highly appreciated.
You might try the latest CMake 3.6-rc1. If the problem persists, file a bug to notice the CMake developers. We probably won't fix CMake's code.

Apache does not install on FreeBSD 8.4

today i tried to install a Webserver on FreeBSD 8.4... I updated the ports, but apache gives me this message:
pkg_create: make_dist: tar command failed with code 256
*** Error code 1
Stop in /usr/ports/devel/p5-Locale-gettext.
*** Error code 1
Stop in /usr/ports/misc/help2man.
*** Error code 1
Stop in /usr/ports/misc/help2man.
*** Error code 1
Stop in /usr/ports/devel/autoconf.
*** Error code 1
Stop in /usr/ports/www/apache24.
*** Error code 1
Stop in /usr/ports/www/apache24.
How can I resolve?
Thank you and sorry for bad english
The error is probably in the line before the error cascade you posted.
The error is not in apache but in p5-Locale-gettext. Most likely it is missing some files.
Workaround:
cd /usr/ports/misc/help2man
make config
disable the NLS option
...and try again.
After this, i tried to install PHP 5.3, but i got this message
configure: error: xml2-config not found. Please check your libxml2 installation.
And it says to give you the config.log
Here you are:
http://notepad.cc/share/c8K36t3G3x