Hi everyone I don't understand BSD . MySQL client setup error .Do not try to explain the cause of the error because I won't understand just code thank's.(my English is bad)
/usr/ports/databases/mysql80-client/work/mysql-
8.0.14/mysys/stacktrace.cc:258:11: error: use of undeclared identifier
'backtrace'
int n = backtrace(addrs, array_elements(addrs));
^
/usr/ports/databases/mysql80-client/work/mysql-
8.0.14/mysys/stacktrace.cc:262:18: error: use of undeclared identifier
'backtrace_symbols'
if ((strings = backtrace_symbols(addrs, n))) {
^
/usr/ports/databases/mysql80-client/work/mysql-
8.0.14/mysys/stacktrace.cc:268:5: error: use of undeclared identifier 'backtrace_symbols_fd'
backtrace_symbols_fd(addrs, n, fileno(stderr));
^
3 errors generated.
*** [mysys/CMakeFiles/mysys.dir/stacktrace.cc.o] Error code 1
make[3]: stopped in /usr/ports/databases/mysql80-client/work/.build
1 error
make[3]: stopped in /usr/ports/databases/mysql80-client/work/.build
*** [mysys/CMakeFiles/mysys.dir/all] Error code 2
make[2]: stopped in /usr/ports/databases/mysql80-client/work/.build
1 error
make[2]: stopped in /usr/ports/databases/mysql80-client/work/.build
*** [all] Error code 2
make[1]: stopped in /usr/ports/databases/mysql80-client/work/.build
1 error
make[1]: stopped in /usr/ports/databases/mysql80-client/work/.build
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
*** Error code 1
Stop.
make: stopped in /usr/ports/databases/mysql80-client
root#black:/usr/ports/databases/mysql80-client #
Install the binary package(as root)
# pkg install mysql80-client
See 4.4.3. Installing and Removing Packages.
Related
In /etc/nftables.conf,I have define ntp_server={ 0.pool.ntp.org, 1.pool.ntp.org, 2.pool.ntp.org, 3.pool.ntp.org },
0.pool.ntp.org start with number,then I meet error when nft -f.
$ sudo nft -v
$ nftables v0.9.0 (Fearless Fosdick)
$ sudo nft -f /etc/nftables.conf
/etc/nftables.conf:8:7-19: Error: syntax error, unexpected string, expecting comma or '}'
0.pool.ntp.org,
^^^^^^^^^^^^^
/etc/nftables.conf:9:6-6: Error: syntax error, unexpected number
1.pool.ntp.org,
^
/etc/nftables.conf:10:6-6: Error: syntax error, unexpected number
2.pool.ntp.org,
^
/etc/nftables.conf:11:6-6: Error: syntax error, unexpected number
3.pool.ntp.org
^
/etc/nftables.conf:12:1-1: Error: syntax error, unexpected '}'
}
How to solve this problem?
The ntp.org pools contain many hosts, so 0.pool.ntp.org, 1.pool.ntp.org, 2.pool.ntp.org, 3.pool.ntp.org will resolve to different IP address as you query them over time.
I suggest using a named set and updating it with a script periodically.
I'm installing mysql on OS Mojave with brew. I got this error:
Stack:
0 __exceptionPreprocess (in CoreFoundation)
1 objc_exception_throw (in libobjc.A.dylib)
2 -[DVTExtension valueForKey:error:] (in DVTFoundation)
3 _IDEInitializeOnePlugInAndPrerequisites (in IDEFoundation)
4 _IDEInitializePlugIns (in IDEFoundation)
5 IDEInitialize (in IDEFoundation)
6 -[Xcode3CommandLineBuildTool run] (in Xcode3Core)
7 0x0000000103785202 (in xcodebuild)
8 start (in libdyld.dylib)
sh: line 1: 10700 Abort trap: 6
/Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -sdk macosx -find git 2> /dev/null
git: error: unable to find utility "git", not a developer tool or in PATH
Error: Failure while executing; `git config --local --replace-all homebrew.private true` exited with 72.
Does anyone know why this is happening?
I want to compile mysql with CFI enabled by LLVM. The version of the softwares are as following:
clang-6.0
mysql-5.6.26
binutils-2.28.1
I can compile mysql successfully with the following configration:
CC="clang" CXX="clang++" CFLAGS="-g" cmake -DCMAKE_INSTALL_PREFIX=../mysql -DWITH_BOOST=./boost .
However, I can not compile mysql with the below configuration:
CC="clang" CXX="clang++" CFLAGS="-g -flto" CXXFLAGS="-g -flto" cmake -DCMAKE_INSTALL_PREFIX=../mysql -DWITH_BOOST=./boost .
The reported error is as following:
../mysys/libmysys.a: error adding symbols: Archive has no index; run ranlib to add one
clang-6.0: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [extra/comp_err] Error 1
The ../mysys/libmysys.a is constructed by the following command:
cd /home/zhangjun/work/mysql/mysql-5.6.26/mysys_ssl
&& /home/zhangjun/tools/cmake/cmake-3.9.1-Linux-x86_64/bin/cmake -P
CMakeFiles/mysys_ssl.dir/cmake_clean_target.cmake
cd /home/zhangjun/work/mysql/mysql-5.6.26/mysys_ssl && /home/zhangjun/tools/cmake/cmake-3.9.1-Linux-x86_64/bin/cmake -E cmake_link_script CMakeFiles/mysys_ssl.dir/link.txt --verbose=1
/usr/bin/ar qc libmysys_ssl.a CMakeFiles/mysys_ssl.dir/crypt_genhash_impl.cc.o CMakeFiles/mysys_ssl.dir/my_default.cc.o CMakeFiles/mysys_ssl.dir/my_getopt.cc.o CMakeFiles/mysys_ssl.dir/my_aes.cc.o CMakeFiles/mysys_ssl.dir/my_sha1.cc.o CMakeFiles/mysys_ssl.dir/my_sha2.cc.o CMakeFiles/mysys_ssl.dir/my_md5.cc.o CMakeFiles/mysys_ssl.dir/my_rnd.cc.o CMakeFiles/mysys_ssl.dir/my_murmur3.cc.o CMakeFiles/mysys_ssl.dir/my_aes_yassl.cc.o
/usr/bin/ranlib libmysys_ssl.a
How can I fix this error?
To fix this error, I sent a email to Caroline Tice, the author of "Enforcing Forward-Edge Control-Flow Integrity in GCC & LLVM"
He said I should use the ar and runlib of llvm. The above error is fixed by using the following configuration:
CC="clang" CXX="clang++" CFLAGS="-g -flto -fvisibility=hidden -fsanitize=cfi" CXXFLAGS="-g -flto -fvisibility=hidden -fsanitize=cfi" cmake -DCMAKE_{EXE,SHARED,MODULE}_LINKER_FLAGS="-flto -fsanitize=cfi" -DCMAKE_AR=/home/zhangjun/work/llvm/llvm-3.7.1/bin/llvm-ar -DCMAKE_RANLIB=/home/zhangjun/work/llvm/llvm-3.7.1/bin/llvm-ranlib -DCMAKE_NM=/home/zhangjun/work/llvm/llvm-3.7.1/bin/llvm-nm -DCMAKE_INSTALL_PREFIX=../mysql -DWITH_BOOST=./boost .
Unfortunately, there is anotehr error:
ld: /home/zhangjun/work/llvm/llvm/tools/gold/gold-plugin.cpp:879: ld_plugin_status allSymbolsReadHook(): Assertion `ObjFilename.second' failed.
clang-6.0: error: unable to execute command: Aborted (core dumped)
clang-6.0: error: linker command failed due to signal (use -v to see invocation)
make[2]: *** [extra/comp_err] Error 254
make[2]: Leaving directory `/home/zhangjun/work/mysql/mysql-5.6.26'
make[1]: *** [extra/CMakeFiles/comp_err.dir/all] Error 2
make[1]: Leaving directory `/home/zhangjun/work/mysql/mysql-5.6.26'
make: *** [all] Error 2
Can any body help me fix this error?
Try removing -flto from the flags. For some reason, with clang, I've had the link-time optimisation cause that problem.
I want to insert into MYSQL UDF function "http_get".
Currently I have a "mysql-udf-http.so" file that I import the function in the program, but to run it I get the error message:
ERROR 2013 (HY000): Lost connection to MySQL server During query
In this link: "http://code.google.com/p/mysql-udf-http/issues/detail?id=3" appears just a post with a fix for this problem.
Now I'm trying to create from this new file "mysql-udf-http.c" a new file "mysql-udf-http.so"
My header data are:
# include <string.h>
# include <stdlib.h>
# include <stdio.h>
# include </usr/include/mysql/mysql.h>
# include </home/admin/mysql-udf-http-1.0/curl-7.21.1/include/curl/curl.h>
# include "mysql-udf-http.h"
I make a compilation with the command "g++ -fPIC -I /usr/include/mysql/ -o mysql-udf-http.so -shared mysql-udf-http.c"
Showing no error message when compiling, but when I import the function in MYSQL, returns error message:
ERROR 1126 (HY000): Can not open shared library 'mysql-udf-http.so' (errno: 22 / usr / lib64 / mysql / plugin / mysql-udf-http.so: undefined symbol: curl_easy_setopt)
In this other link: "How do I link libcurl to my c++ program in linux?" appears a review of how to do the compilation properly. I have no "libcurl.a" file, only one directory with libcurl other content file.
I enter the command to compile: g++ -fPIC -I /usr/include/mysql/ -o mysql-udf-http.so -shared mysql-udf-http.c -L/home/admin/mysql-udf-http-1.0/curl-7.21.1/docs/libcurl/ -lcurl
No compilation error messages.
But finally when importing into MYSQL error message:
ERROR 1127 (HY000): Can not find symbol 'http_get' in library'
Someone can correct mistakes or help me to do the "mysql-udf-http.so" valid for centOS 64bit?
Hi I m very new to Linux & mysql...while I m installing ndoutils for nagios ,I have to execute this command from Db folder---
./installdb -u root -p root -h localhost -d nagios
while executing this command m getting this error-
install_driver(mysql) failed: Can't load
'/usr/lib/perl5/auto/DBD/mysql/mysql.so' for module DBD::mysql:
libmysqlclient.so.16: cannot open shared object file: No such file or
directory at /usr/lib/perl5/DynaLoader.pm line 200. at (eval 7) line
3 Compilation failed in require at (eval 7) line 3. Perhaps a required
shared library or dll isn't installed where expected at ./installdb
line 41
What should I do to remove this error? Help me
Looks like you need to install DRD::mysql for perl.
http://metacpan.org/pod/DBD::mysql