mariadb install failure: make (Mac OSX 10.6.8) - mariadb

I'm not really sure how to proceed. The make step failed:
error: ‘strnlen’ was not declared in this scope
make[2]: *** [storage/connect/CMakeFiles/connect.dir/xobject.cpp.o] Error 1
make[1]: *** [storage/connect/CMakeFiles/connect.dir/all] Error 2
make: *** [all] Error 2
Here is some more of the output:
~/Downloads$ tar xvfz mariadb-10.0.15.tar.gz
…
…
=====BUILD======
~/Downloads/mariadb-10.0.15$ cmake . -DBUILD_CONFIG=mysql_release
-- Running cmake version 3.1.0
-- The C compiler identification is GNU 4.2.1
-- The CXX compiler identification is GNU 4.2.1
-- Checking whether C compiler has -isysroot
-- Checking whether C compiler has -isysroot - yes
-- Checking whether C compiler supports OSX deployment target flag
-- Checking whether C compiler supports OSX deployment target flag - yes
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Checking whether CXX compiler has -isysroot
-- Checking whether CXX compiler has -isysroot - yes
-- Checking whether CXX compiler supports OSX deployment target flag
-- Checking whether CXX compiler supports OSX deployment target flag - yes
...
...
-- Looking for strlcpy
-- Looking for strlcpy - found
-- Looking for strnlen
-- Looking for strnlen - not found
-- Looking for strlcat
-- Looking for strlcat - found
-- Looking for strsignal
-- Looking for strsignal - found
-- Looking for fgetln
-- Looking for fgetln - found
-- Looking for strpbrk
-- Looking for strpbrk - found
-- Looking for strstr
-- Looking for strstr - found
-- Looking for strtok_r
-- Looking for strtok_r - found
-- Looking for strtol
-- Looking for strtol - found
-- Looking for strtoll
-- Looking for strtoll - found
-- Looking for strtoul
-- Looking for strtoul - found
-- Looking for strtoull
-- Looking for strtoull - found
-- Looking for strcasecmp
-- Looking for strcasecmp - found
-- Looking for strncasecmp
-- Looking for strncasecmp - found
-- Looking for strdup
-- Looking for strdup - found
-- Looking for shmat
-- Looking for shmat - found
-- Looking for shmctl
-- Looking for shmctl - found
-- Looking for shmdt
-- Looking for shmdt - found
-- Looking for shmget
-- Looking for shmget - found
-- Looking for tell
-- Looking for tell - not found
-- Looking for tempnam
-- Looking for tempnam - found
-- Looking for thr_setconcurrency
-- Looking for thr_setconcurrency - not found
-- Looking for thr_yield
-- Looking for thr_yield - not found
...
...
-- Looking for vasprintf
-- Performing Test HAVE_XUCRED - Success
-- Looking for event.h
-- Looking for event.h - found
-- Configuring done
CMake Warning (dev):
Policy CMP0042 is not set: MACOSX_RPATH is enabled by default. Run "cmake
--help-policy CMP0042" for policy details. Use the cmake_policy command to
set the policy and suppress this warning.
MACOSX_RPATH is not specified for the following targets:
libmysql
libmysqld
This warning is for project developers. Use -Wno-dev to suppress it.
-- Generating done
-- Build files have been written to: /Users/7stud/Downloads/mariadb-10.0.15
========MAKE==========
~/Downloads/mariadb-10.0.15$ make
….
…
...
[ 50%] Building CXX object storage/connect/CMakeFiles/connect.dir/value.cpp.o
cc1plus: warning: command line option "-Wmissing-declarations" is valid for C/ObjC but not for C++
[ 50%] Building CXX object storage/connect/CMakeFiles/connect.dir/xindex.cpp.o
cc1plus: warning: command line option "-Wmissing-declarations" is valid for C/ObjC but not for C++
[ 50%] Building CXX object storage/connect/CMakeFiles/connect.dir/xobject.cpp.o
cc1plus: warning: command line option "-Wmissing-declarations" is valid for C/ObjC but not for C++
/Users/7stud/Downloads/mariadb-10.0.15/storage/connect/xobject.cpp: In member function ‘bool STRING::Set(char*, uint)’:
/Users/7stud/Downloads/mariadb-10.0.15/storage/connect/xobject.cpp:275: error: ‘strnlen’ was not declared in this scope
make[2]: *** [storage/connect/CMakeFiles/connect.dir/xobject.cpp.o] Error 1
make[1]: *** [storage/connect/CMakeFiles/connect.dir/all] Error 2
make: *** [all] Error 2
~/Downloads/mariadb-10.0.15$ gcc --version
i686-apple-darwin10-gcc-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5666) (dot 3)
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Next, with homebrew:
Last login: Fri Jan 16 03:28:09 on ttys001 ~$ brew install mariadb
==> Installing mariadb dependency: pidof
==> Downloading http://www.nightproductions.net/downloads/pidof_source.tar.gz
################################################################## 100.0%
==> Patching
==> make all CC=gcc-4.2 CFLAGS= /Users/7stud/.homebrew/Cellar/pidof/0.1.4: 3 files, 24K, built in 3
seconds
==> Installing mariadb
==> Downloading http://ftp.osuosl.org/pub/mariadb/mariadb-10.0.15/source/mariadb-10.0.15.tar.gz
################################################################## 100.0%
==> Patching
==> cmake . -DCMAKE_INSTALL_PREFIX=/Users/7stud/.homebrew/Cellar/mariadb/10.0.15 -DCMAKE_FIND_FRAMEWORK=LAST -DCMAKE
==> make cd /tmp/mariadb-0ocIfC/mariadb-10.0.15/storage/innobase && /Users/7stud/.homebrew/Cellar/cmake/3.1.0/bin/cmake -E
cmake_link_script CMakeFiles/innobase.dir/link.txt --verbose=1
/Users/7stud/.homebrew/Library/ENV/3.2.6/g++-4.2 -Wall -Wall
-Wno-unused-parameter -fno-exceptions -fno-rtti -O2 -g -DNDEBUG -DDBUG_OFF -bundle -Wl,-headerpad_max_install_names -o ha_innodb.so CMakeFiles/innobase.dir/api/api0api.cc.o
CMakeFiles/innobase.dir/api/api0misc.cc.o
CMakeFiles/innobase.dir/btr/btr0btr.cc.o
CMakeFiles/innobase.dir/btr/btr0cur.cc.o
CMakeFiles/innobase.dir/btr/btr0pcur.cc.o
CMakeFiles/innobase.dir/btr/btr0sea.cc.o
CMakeFiles/innobase.dir/buf/buf0buddy.cc.o
CMakeFiles/innobase.dir/buf/buf0buf.cc.o
CMakeFiles/innobase.dir/buf/buf0dblwr.cc.o
CMakeFiles/innobase.dir/buf/buf0checksum.cc.o
CMakeFiles/innobase.dir/buf/buf0dump.cc.o
CMakeFiles/innobase.dir/buf/buf0flu.cc.o
CMakeFiles/innobase.dir/buf/buf0lru.cc.o
CMakeFiles/innobase.dir/buf/buf0rea.cc.o
CMakeFiles/innobase.dir/data/data0data.cc.o
CMakeFiles/innobase.dir/data/data0type.cc.o
CMakeFiles/innobase.dir/dict/dict0boot.cc.o
CMakeFiles/innobase.dir/dict/dict0crea.cc.o
CMakeFiles/innobase.dir/dict/dict0dict.cc.o
CMakeFiles/innobase.dir/dict/dict0load.cc.o
CMakeFiles/innobase.dir/dict/dict0mem.cc.o
CMakeFiles/innobase.dir/dict/dict0stats.cc.o
CMakeFiles/innobase.dir/dict/dict0stats_bg.cc.o
CMakeFiles/innobase.dir/dyn/dyn0dyn.cc.o
CMakeFiles/innobase.dir/eval/eval0eval.cc.o
CMakeFiles/innobase.dir/eval/eval0proc.cc.o
CMakeFiles/innobase.dir/fil/fil0fil.cc.o
CMakeFiles/innobase.dir/fsp/fsp0fsp.cc.o
CMakeFiles/innobase.dir/fut/fut0fut.cc.o
CMakeFiles/innobase.dir/fut/fut0lst.cc.o
CMakeFiles/innobase.dir/ha/ha0ha.cc.o
CMakeFiles/innobase.dir/ha/ha0storage.cc.o
CMakeFiles/innobase.dir/ha/hash0hash.cc.o
CMakeFiles/innobase.dir/fts/fts0fts.cc.o
CMakeFiles/innobase.dir/fts/fts0ast.cc.o
CMakeFiles/innobase.dir/fts/fts0blex.cc.o
CMakeFiles/innobase.dir/fts/fts0config.cc.o
CMakeFiles/innobase.dir/fts/fts0opt.cc.o
CMakeFiles/innobase.dir/fts/fts0pars.cc.o
CMakeFiles/innobase.dir/fts/fts0que.cc.o
CMakeFiles/innobase.dir/fts/fts0sql.cc.o
CMakeFiles/innobase.dir/fts/fts0tlex.cc.o
CMakeFiles/innobase.dir/handler/ha_innodb.cc.o
CMakeFiles/innobase.dir/handler/handler0alter.cc.o
CMakeFiles/innobase.dir/handler/i_s.cc.o
CMakeFiles/innobase.dir/ibuf/ibuf0ibuf.cc.o
CMakeFiles/innobase.dir/lock/lock0iter.cc.o
CMakeFiles/innobase.dir/lock/lock0lock.cc.o
CMakeFiles/innobase.dir/lock/lock0wait.cc.o
CMakeFiles/innobase.dir/log/log0log.cc.o
CMakeFiles/innobase.dir/log/log0recv.cc.o
CMakeFiles/innobase.dir/mach/mach0data.cc.o
CMakeFiles/innobase.dir/mem/mem0mem.cc.o
CMakeFiles/innobase.dir/mem/mem0pool.cc.o
CMakeFiles/innobase.dir/mtr/mtr0log.cc.o
CMakeFiles/innobase.dir/mtr/mtr0mtr.cc.o
CMakeFiles/innobase.dir/os/os0file.cc.o
CMakeFiles/innobase.dir/os/os0proc.cc.o
CMakeFiles/innobase.dir/os/os0sync.cc.o
CMakeFiles/innobase.dir/os/os0thread.cc.o
CMakeFiles/innobase.dir/page/page0cur.cc.o
CMakeFiles/innobase.dir/page/page0page.cc.o
CMakeFiles/innobase.dir/page/page0zip.cc.o
CMakeFiles/innobase.dir/pars/lexyy.cc.o
CMakeFiles/innobase.dir/pars/pars0grm.cc.o
CMakeFiles/innobase.dir/pars/pars0opt.cc.o
CMakeFiles/innobase.dir/pars/pars0pars.cc.o
CMakeFiles/innobase.dir/pars/pars0sym.cc.o
CMakeFiles/innobase.dir/que/que0que.cc.o
CMakeFiles/innobase.dir/read/read0read.cc.o
CMakeFiles/innobase.dir/rem/rem0cmp.cc.o
CMakeFiles/innobase.dir/rem/rem0rec.cc.o
CMakeFiles/innobase.dir/row/row0ext.cc.o
CMakeFiles/innobase.dir/row/row0ftsort.cc.o
CMakeFiles/innobase.dir/row/row0import.cc.o
CMakeFiles/innobase.dir/row/row0ins.cc.o
CMakeFiles/innobase.dir/row/row0merge.cc.o
CMakeFiles/innobase.dir/row/row0mysql.cc.o
CMakeFiles/innobase.dir/row/row0log.cc.o
CMakeFiles/innobase.dir/row/row0purge.cc.o
CMakeFiles/innobase.dir/row/row0row.cc.o
CMakeFiles/innobase.dir/row/row0sel.cc.o
CMakeFiles/innobase.dir/row/row0uins.cc.o
CMakeFiles/innobase.dir/row/row0umod.cc.o
CMakeFiles/innobase.dir/row/row0undo.cc.o
CMakeFiles/innobase.dir/row/row0upd.cc.o
CMakeFiles/innobase.dir/row/row0quiesce.cc.o
CMakeFiles/innobase.dir/row/row0vers.cc.o
CMakeFiles/innobase.dir/srv/srv0conc.cc.o
CMakeFiles/innobase.dir/srv/srv0mon.cc.o
CMakeFiles/innobase.dir/srv/srv0srv.cc.o
CMakeFiles/innobase.dir/srv/srv0start.cc.o
CMakeFiles/innobase.dir/sync/sync0arr.cc.o
CMakeFiles/innobase.dir/sync/sync0rw.cc.o
CMakeFiles/innobase.dir/sync/sync0sync.cc.o
CMakeFiles/innobase.dir/trx/trx0i_s.cc.o
CMakeFiles/innobase.dir/trx/trx0purge.cc.o
CMakeFiles/innobase.dir/trx/trx0rec.cc.o
CMakeFiles/innobase.dir/trx/trx0roll.cc.o
CMakeFiles/innobase.dir/trx/trx0rseg.cc.o
CMakeFiles/innobase.dir/trx/trx0sys.cc.o
CMakeFiles/innobase.dir/trx/trx0trx.cc.o
CMakeFiles/innobase.dir/trx/trx0undo.cc.o
CMakeFiles/innobase.dir/usr/usr0sess.cc.o
CMakeFiles/innobase.dir/ut/ut0bh.cc.o
CMakeFiles/innobase.dir/ut/ut0byte.cc.o
CMakeFiles/innobase.dir/ut/ut0crc32.cc.o
CMakeFiles/innobase.dir/ut/ut0dbg.cc.o
CMakeFiles/innobase.dir/ut/ut0list.cc.o
CMakeFiles/innobase.dir/ut/ut0mem.cc.o
CMakeFiles/innobase.dir/ut/ut0rbt.cc.o
CMakeFiles/innobase.dir/ut/ut0rnd.cc.o
CMakeFiles/innobase.dir/ut/ut0ut.cc.o
CMakeFiles/innobase.dir/ut/ut0vec.cc.o
CMakeFiles/innobase.dir/ut/ut0wqueue.cc.o
../../libservices/libmysqlservices.a
-Wl,-bundle_loader,/tmp/mariadb-0ocIfC/mariadb-10.0.15/sql/mysqld /usr/local/lib/libz.dylib /usr/local/lib/libz.dylib
/Users/7stud/.homebrew/Cellar/cmake/3.1.0/bin/cmake -E
cmake_progress_report /tmp/mariadb-0ocIfC/mariadb-10.0.15/CMakeFiles
19 20 21 22 23 24 25 26 27 28 [ 95%] Built target innobase make: ***
[all] Error 2
READ THIS: http://git.io/brew-troubleshooting
These open issues may also help: mysql-connector-c++ cannot build with
mariadb (https://github.com/Homebrew/homebrew/issues/34578) Packages
with --with-mysql option not satisfied by mariadb
(https://github.com/Homebrew/homebrew/issues/32973) mariadb: missing
/usr/local/etc/my.cnf.d, removed by brew prune
(https://github.com/Homebrew/homebrew/issues/31760) ~$

Can you please try this:
brew update
brew doctor
brew install mariadb
Reference https://mariadb.com/kb/en/mariadb/building-mariadb-on-mac-os-x-using-homebrew/

Related

AzerothCore does not support MySQL version installed (MariaDB 10.6.8 installed and running)

i've compiled the azerothcore from source on my aarch64 machine. I am running HestiaCP on it with MariaDB 10.6.8. When starting the authserver i get the message
MySQL client library: 8.0.29
MySQL server ver: 5.5.5-10.6.8-MariaDB-1:10.6.8+maria~focal
Connected to MySQL database at 127.0.0.1
AzerothCore does not support MySQL versions below 5.7 or MariaDB versions below 10.5
DatabasePool Login NOT opened. There were errors opening the MySQL connections. Check your log file for specific errors
I think there is a problem with checking the right DB version. I dont know why it starts with 5.5.5. Is it a linking problem? But i dont see any installed packages older than what is required by the server. Any guess?
CMake Output:
-- CMake version: 3.16.3
-- The CXX compiler identification is Clang 10.0.0
-- The C compiler identification is Clang 10.0.0
-- Check for working CXX compiler: /usr/bin/clang++
-- Check for working CXX compiler: /usr/bin/clang++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Check for working C compiler: /usr/bin/clang
-- Check for working C compiler: /usr/bin/clang -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Running cmake hook: AFTER_LOAD_CONF
-- No hooks registered for AFTER_LOAD_CONF
-- Enabled С++20 standard
-- Detected 64-bit platform
-- UNIX: Using jemalloc
-- UNIX: Using default configuration directory
-- UNIX: Using default library directory
-- UNIX: Configuring uninstall target
-- UNIX: Created uninstall target
-- UNIX: Detected compiler: /usr/bin/clang
-- Clang: Minimum version required is 10.0.0, found 10.0.0 - ok!
-- Performing Test CLANG_HAVE_PROPER_CHARCONV
-- Performing Test CLANG_HAVE_PROPER_CHARCONV - Success
-- Clang: All warnings enabled
-- Running cmake hook: AFTER_LOAD_CMAKE_MODULES
-- No hooks registered for AFTER_LOAD_CMAKE_MODULES
-- Using mysql-config: /usr/bin/mysql_config
-- Found MySQL library: /usr/lib/aarch64-linux-gnu/libmariadb.so
-- Found MySQL headers: /usr/include/mariadb
-- Found MySQL executable: /usr/bin/mysql
-- Found git binary : /usr/bin/git
* AzerothCore revision : 9673da19470d 2022-07-03 19:50:39 +0000 (master branch)
* AzerothCore buildtype : RelWithDebInfo
* Install core to : /home/ubuntu/azeroth-server
* Install libraries to : /home/ubuntu/azeroth-server/lib
* Install configs to : /home/ubuntu/azeroth-server/etc
* Build applications : Yes (all)
* Build tools : No
* Build with scripts : Yes (static)
* Build with modules : Yes (static)
* Build unit tests : No (default)
* Build core w/PCH : Yes (default)
* Build scripts w/PCH : Yes (default)
* Show all warnings : Yes
* Use coreside debug : No (default)
* Use unix gperftools : No (default)
* Use GIT revision hash : Yes (default)
* Enable vmap DisableMgr checks : Yes (default)
* Show source tree : No (For UNIX default)
-- Performing Test HAVE_NEON
-- Performing Test HAVE_NEON - Success
-- Found Boost: /usr/lib/aarch64-linux-gnu/cmake/Boost-1.71.0/BoostConfig.cmake (found suitable version "1.71.0", minimum required is "1.67") found components: system filesystem program_options iostreams regex
-- Performing Test boost_filesystem_copy_links_without_NO_SCOPED_ENUM
-- Performing Test boost_filesystem_copy_links_without_NO_SCOPED_ENUM - Success
-- Looking for strtod_l
-- Looking for strtod_l - not found
-- Looking for MADV_FREE
-- Looking for MADV_FREE - found
-- Found OpenSSL: /usr/lib/aarch64-linux-gnu/libssl.so;/usr/lib/aarch64-linux-gnu/libcrypto.so
-- Looking for C++ include filesystem
-- Looking for C++ include filesystem - found
-- Performing Test CXX_FILESYSTEM_NO_LINK_NEEDED
-- Performing Test CXX_FILESYSTEM_NO_LINK_NEEDED - Success
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Found ZLIB: /usr/lib/aarch64-linux-gnu/libz.so (found version "1.2.11")
-- Found Readline library: /usr/lib/aarch64-linux-gnu/libreadline.so
-- Include dir is: /usr/include
-- Running cmake hook: BEFORE_SRC_LOAD
-- No hooks registered for BEFORE_SRC_LOAD
* Apps build list (all):
|
+- apps
| +- authserver
| +- worldserver
|
-- Running cmake hook: BEFORE_GAME_LIBRARY
-- No hooks registered for BEFORE_GAME_LIBRARY
-- Running cmake hook: AFTER_GAME_LIBRARY
-- No hooks registered for AFTER_GAME_LIBRARY
-- Running cmake hook: BEFORE_SCRIPTS_LIBRARY
-- No hooks registered for BEFORE_SCRIPTS_LIBRARY
* Script configuration (static):
|
+- worldserver
| +- Commands
| +- Custom
| +- EasternKingdoms
| +- Events
| +- Kalimdor
| +- Northrend
| +- OutdoorPvP
| +- Outland
| +- Pet
| +- Spells
| +- World
|
* Modules configuration (static):
|
-- * Modules config list:
|
-- Running cmake hook: AFTER_SRC_LOAD
-- No hooks registered for AFTER_SRC_LOAD
-- Configuring done
-- Generating done
CMake Warning:
Manually-specified variables were not used by the project:
TOOLS
-- Build files have been written to: /home/ubuntu/src/azerothcore/build
mysql -V / mariadb -V output:
mysql Ver 15.1 Distrib 10.6.8-MariaDB, for debian-linux-gnu (aarch64) using readline 5.2
installed packages with mysql tag:
libmysqlclient21/focal-updates,focal-security,now 8.0.29-0ubuntu0.20.04.3 arm64 [installed,automatic]
mysql-common/unknown,now 1:10.6.8+maria~focal all [installed,automatic]
php8.0-mysql/focal,now 1:8.0.20-2+ubuntu20.04.1+deb.sury.org+1 arm64 [installed]
installed packages with mariadb tag:
libdbd-mariadb-perl/focal,now 1.11-3ubuntu2 arm64 [installed,automatic]
libmariadb-dev-compat/unknown,now 1:10.6.8+maria~focal arm64 [installed]
libmariadb-dev/unknown,now 1:10.6.8+maria~focal arm64 [installed]
libmariadb3/unknown,now 1:10.6.8+maria~focal arm64 [installed,automatic]
mariadb-client-10.6/unknown,now 1:10.6.8+maria~focal arm64 [installed,automatic]
mariadb-client-core-10.6/unknown,now 1:10.6.8+maria~focal arm64 [installed,automatic]
mariadb-client/unknown,now 1:10.6.8+maria~focal all [installed]
mariadb-common/unknown,now 1:10.6.8+maria~focal all [installed]
mariadb-server-10.6/unknown,now 1:10.6.8+maria~focal arm64 [installed,automatic]
mariadb-server-core-10.6/unknown,now 1:10.6.8+maria~focal arm64 [installed,automatic]
mariadb-server/unknown,now 1:10.6.8+maria~focal all [installed]

Qt TLS initialization failed

ide is Clion, Qt6.2.2, MSVS 2019, 64 bit, windows 10 21H1
i want to replace Clion with Visual studio (the program can work in vs)
the code is
QNetworkAccessManager manager;
manager.get(request);
qDebug() << QSslSocket::supportsSsl() << QSslSocket::sslLibraryBuildVersionString() << QSslSocket::sslLibraryVersionString() << QSslSocket::sslLibraryVersionNumber();
show: false, "", "", -1
my cmake:
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)
set(CMAKE_AUTOUIC ON)
set(CMAKE_PREFIX_PATH "C:\\Qt\\6.2.2\\msvc2019_64")
set(INC_DIR C:\\Qt\\Tools\\OpenSSL\\Win_x64\\include)
set(LINK_DIR C:\\Qt\\Tools\\OpenSSL\\Win_x64\\lib)
include_directories(${INC_DIR})
link_directories(${LINK_DIR})
link_libraries(libcrypto libssl)
find_package(OpenSSL REQUIRED)
find_package(Qt6 COMPONENTS
Core
Gui
Widgets
Network
REQUIRED)
add_executable(untitled
main.cpp
)
target_link_libraries(untitled PRIVATE
Qt6::Core
Qt6::Gui
Qt6::Widgets
Qt6::Network
OpenSSL::SSL
OpenSSL::Crypto
)
program run show:
qt.network.ssl: No TLS backend is available
qt.network.ssl: No functional TLS backend was found
qt.network.ssl: QSslSocket::connectToHostEncrypted: TLS initialization failed
false "" "" -1
cmake show:
C:\Users\mainj\AppData\Local\JetBrains\Toolbox\apps\CLion\ch-0\213.6461.46\bin\cmake\win\bin\cmake.exe -DCMAKE_BUILD_TYPE=Debug -G "CodeBlocks - NMake Makefiles" C:\Users\mainj\CLionProjects\untitled
-- The C compiler identification is MSVC 19.28.29914.0
-- The CXX compiler identification is MSVC 19.28.29914.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Professional/VC/Tools/MSVC/14.28.29910/bin/Hostx64/x64/cl.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Professional/VC/Tools/MSVC/14.28.29910/bin/Hostx64/x64/cl.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found OpenSSL: C:/Qt/Tools/OpenSSL/Win_x64/lib/libcrypto.lib (found version "1.1.1j")
-- Looking for pthread.h
-- Looking for pthread.h - not found
-- Found Threads: TRUE
-- Performing Test HAVE_STDATOMIC
-- Performing Test HAVE_STDATOMIC - Success
-- Found WrapAtomic: TRUE
-- Could NOT find WrapVulkanHeaders (missing: Vulkan_INCLUDE_DIR)
-- Found WrapOpenSSLHeaders: C:/Qt/Tools/OpenSSL/Win_x64/include (found version "1.1.1j")
-- Configuring done
-- Generating done
-- Build files have been written to: C:/Users/mainj/CLionProjects/untitled/cmake-build-debug
[Finished]
I was solved by self.
it's just use windeployqt.exe to import all library.
every is all right.

How to install pyinstaller on aix7.1

I want to install pyinstaller on aix7.1, but failed.
I have already installed zlib-devel.
This is the error message when installing pyinstaller:
-bash-4.2# python ./waf distclean all
'distclean' finished successfully (0.203s)
'all' finished successfully (0.000s)
'distclean' finished successfully (0.000s)
Setting top to : /u02/py/pyinstaller-develop/bootloader
Setting out to : /u02/py/pyinstaller-develop/bootloader/build
Python Version : 2.7.10 (default, Jun 21 2016, 10:30:16) [C]
Checking for 'xlc' (C compiler) : not found
Checking for 'gcc' (C compiler) : /usr/bin/gcc
Checking size of pointer : 4
Platform : AIX-32bit detected based on compiler
Checking for flags -maix32 : yes
Checking for program '/usr/bin/strip' : /usr/bin/strip
Checking for program 'strip' : /usr/bin/strip
Checking for library dl : yes
Checking for library m : yes
Checking for library z : yes
Checking for function unsetenv : yes
Checking for function mkdtemp : yes
'configure' finished successfully (2.248s)
'make_all' finished successfully (0.018s)
Waf: Entering directory `/u02/py/pyinstaller-develop/bootloader/build/debug'
[ 1/13] Compiling src/main.c
[ 2/13] Compiling src/pyi_archive.c
[ 3/13] Compiling src/pyi_global.c
[ 4/13] Compiling src/pyi_launch.c
[ 5/13] Compiling src/pyi_main.c
[ 6/13] Compiling src/pyi_path.c
[ 7/13] Compiling src/pyi_python.c
[ 8/13] Compiling src/pyi_python27_compat.c
[ 9/13] Compiling src/pyi_pythonlib.c
[10/13] Compiling src/pyi_utils.c
[11/13] Compiling src/pyi_win32_utils.c
[12/13] Linking build/debug/run_d
collect2: library libZ not found
Waf: Leaving directory `/u02/py/pyinstaller-develop/bootloader/build/debug'
Build failed
-> task in 'run_d' failed with exit status 1 (run with -v to display more information)
-bash-4.2#
-bash-4.2#
-bash-4.2#
-bash-4.2# find / -name libz.so
/opt/freeware/lib/libz.so
/opt/freeware/lib64/libz.so
/usr/lib/libz.so
/usr/lib64/libz.so
-bash-4.2#
First, edit bootloader/wscript file
--- wscript.bak 2018-09-09 20:12:10.000000000 +0200
+++ wscript 2019-07-02 10:57:30.000000000 +0200
## -770,8 +770,9 ##
staticlibs = []
if ctx.env.DEST_OS == 'aix':
# link statically with zlib
- libs.remove('Z')
- staticlibs.append('Z')
+ # libs.remove('Z')
+ # staticlibs.append('Z')
+ pass
if ctx.options.boehmgc:
libs.append('GC')
Then create a script named /opt/freeware/bin/strip with the following content:
#!/bin/sh
/usr/bin/strip "$#"
exit 0
Don't forget chmod +x /opt/freeware/bin/strip
Also there is a problem with function mkdtemp, to solve it do this:
export CPPFLAGS='-D_XOPEN_SOURCE=700'
python ./waf -v all
Note: you should know that AIX is very problematic in itself, but combining it with helping software (like this waf) makes it worse. Additional reading: http://lzsiga.users.sourceforge.net/aix-linking.html#Q0026

Error installing HHVM at the very end CentOS 6.6

Carefully followed the inscructions at: https://github.com/facebook/hhvm/wiki/Building-and-installing-HHVM-on-CentOS-6.6
Get to the very end and it fails. Rather frustrating. Any idea what the problem might be?
-- Found LIBGLOG: /usr/local/lib/libglog.so
-- Could NOT find LIBINOTIFY (missing: LIBINOTIFY_LIBRARY)
-- Could NOT find LIBICONV (missing: LIBICONV_LIBRARY)
-- Performing Test LIBICONV_CONST
-- Performing Test LIBICONV_CONST - Failed
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.23")
-- Found LIBMEMCACHED: /usr/local/lib/libmemcached.so
-- Found PCRE: /usr/lib64/libpcre.so
-- Performing Test SYSTEM_PCRE_HAS_JIT
-- Performing Test SYSTEM_PCRE_HAS_JIT - Failed
-- System PCRE does not have JIT enabled - will use hhvm-third-party/pcre
-- Found libevent: /usr/lib64/libevent.so
-- Looking for evhttp_bind_socket_with_fd
-- Looking for evhttp_bind_socket_with_fd - not found
-- Could NOT find LibUODBC (missing: LIBODBC_LIBRARIES LIBODBC_INCLUDE_DIRS)
-- Found CURL: /usr/lib64/libcurl.so (found version "7.19.7")
-- Looking for curl_multi_select
-- Looking for curl_multi_select - not found
-- Looking for curl_multi_wait
-- Looking for curl_multi_wait - not found
-- Found LibXml2: /usr/lib64/libxml2.so (found version "2.7.6")
-- Found LibXslt: /usr/lib64/libxslt.so (found version "1.1.26")
-- Found EXPAT: /usr/lib64/libexpat.so (found version "2.0.1")
-- Using third-party bundled libsqlite3
-- Could NOT find DOUBLE_CONVERSION (missing: DOUBLE_CONVERSION_LIBRARY DOUBLE_CONVERSION_INCLUDE_DIR)
-- Using third-party bundled double-conversion
-- Could NOT find LZ4 (missing: LZ4_LIBRARY LZ4_INCLUDE_DIR)
-- Using third-party bundled LZ4
-- Could NOT find FastLZ (missing: FASTLZ_LIBRARY FASTLZ_INCLUDE_DIR)
-- Using third-party bundled fastlz
-- Could NOT find LIBZIP (missing: LIBZIP_LIBRARY LIBZIP_INCLUDE_DIR_ZIP LIBZIP_INCLUDE_DIR_ZIPCONF)
-- Using third-party bundled libzip
-- Found ICU header files in /usr/include
-- Found ICU libraries: /usr/lib64/libicuuc.so
-- Performing Test JEMALLOC_VERSION_MINIMUM
-- Performing Test JEMALLOC_VERSION_MINIMUM - Success
-- Found jemalloc: /usr/local/lib/libjemalloc.so
-- Found Intel TBB
CMake Error at CMake/FindMcrypt.cmake:31 (message):
Could NOT find mcrypt library.
Call Stack (most recent call first):
CMake/HPHPFindLibs.cmake:306 (find_package)
CMake/HPHPSetup.cmake:125 (include)
third-party/CMakeLists.txt:18 (include)
-- Configuring incomplete, errors occurred!
See also "/usr/local/hhvm/CMakeFiles/CMakeOutput.log".
See also "/usr/local/hhvm/CMakeFiles/CMakeError.log".
gahoachma#remote [/usr/local/hhvm]# sudo sed -i -e 's/$/..\/..\/..\/lib\/libmemcached.so/g' hphp/hhvm/CMakeFiles/hhvm.dir/link.txt
sed: can't read hphp/hhvm/CMakeFiles/hhvm.dir/link.txt: No such file or directory
gahoachma#remote [/usr/local/hhvm]# sudo sed -i -e 's/$/..\/..\/..\/lib\/libmemcached.so/g' hphp/hhvm/CMakeFiles/hhvm.dir/link.txt
sed: can't read hphp/hhvm/CMakeFiles/hhvm.dir/link.txt: No such file or directory
gahoachma#remote [/usr/local/hhvm]# sudo make
make: *** No targets specified and no makefile found. Stop.
gahoachma#remote [/usr/local/hhvm]# make
make: *** No targets specified and no makefile found. Stop.
gahoachma#remote [/usr/local/hhvm]# hhvm --version
-bash: hhvm: command not found
gahoachma#remote [/usr/local/hhvm]#

Does TypeRex support OCaml 4.00.1?

Hi I would like to use TypeRex, but it says
$ ./configure
checking for ocamlc... ocamlc
OCaml version is 4.00.1
OCaml library path is /usr/local/lib/ocaml
checking for ocamlopt... ocamlopt
checking for ocamlc.opt... ocamlc.opt
checking for ocamlopt.opt... ocamlopt.opt
checking for ocaml... ocaml
checking for ocamldep.opt... ocamldep.opt
checking for ocamlmktop... ocamlmktop
checking for ocamlmklib... ocamlmklib
checking for ocamldoc... ocamldoc
checking for ocamlbuild... ocamlbuild
checking for camlp4... camlp4
checking for camlp4boot... camlp4boot
checking for camlp4o... camlp4o
checking for camlp4of... camlp4of
checking for camlp4oof... camlp4oof
checking for camlp4orf... camlp4orf
checking for camlp4prof... camlp4prof
checking for camlp4r... camlp4r
checking for camlp4rf... camlp4rf
configure: error: Your version of OCaml: 4.00.1 is not supported
Does TypeRex support OCaml 4.00.1?
I further followed this page http://www.typerex.org/manual-setup.html
I used this command
$./configure --disable-version-check EMACS=aquamacs
It doesn't complain, but after I use
$ make
it says
mkdir -p ./_obuild
ocamlc -o ./_obuild/unixrun -make-runtime unix.cma
ld: library not found for -lcrt1.10.6.o
collect2: ld returned 1 exit status
File "_none_", line 1:
Error: Error while building custom runtime system
make: *** [_obuild/unixrun] Error 2
Anyone can help me with this?
Typerex doesn't work out of the box with OCaml 4.00.X (follow the discussion). You'll have to wait, "it is not dead, it is just sleeping for a while".

Resources