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

OSX compile error ld: library not found for -lwallet_merged #14

Closed
BigslimVdub opened this issue Sep 12, 2018 · 12 comments
Closed

OSX compile error ld: library not found for -lwallet_merged #14

BigslimVdub opened this issue Sep 12, 2018 · 12 comments

Comments

@BigslimVdub
Copy link

clang: warning: argument unused during compilation: '-pie' [-Wunused-command-line-argument]
ld: warning: directory not found for option '-L/Users/admin/Downloads/aeon-gui/monero/lib'
ld: library not found for -lwallet_merged
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [release/bin/aeon-wallet-gui.app/Contents/MacOS/aeon-wallet-gui] Error 1

Cloning this issue on aeon GUI master build with qt 5.11 installed via brew with proper paths set up :
monero-project#1139

I have not tried to build Monero GUI yet to see if issue still is there but monero bug was closed with no resolution.

Running QT creator 4.7 I get totally different issue not finding wallet2.api.h file

@stoffu
Copy link

stoffu commented Sep 13, 2018

This error usually means the build process of the Monero CLI library already failed (thus not producing libwallet_merged.a). Which Qt to use should be irrelevant here. You should be able to see some compilation errors when running get_libwallet_api.sh.

@BigslimVdub
Copy link
Author

I can not seem to find the lines added to monero-project/monero#3318 in the aeon directory command_line.h file. Monero gui is building off master clone right now without this issue but ended up failing only building daemon and wallet rpc (I am on high sierra and it is erroring stating 10.11 linked. I see the Aeon file has over 50 lines more code over the monero file. I can't even get the aeon to start building, it just errors out with this.

@stoffu
Copy link

stoffu commented Sep 13, 2018

I don't know what error you're getting. Please post the output of get_libwallet_api.sh.

@BigslimVdub
Copy link
Author

BigslimVdub commented Sep 13, 2018

aeon gui fail

@stoffu
Copy link

stoffu commented Sep 13, 2018

That's just the content of get_libwallet_api.sh. Please post the output from running the script.

@BigslimVdub
Copy link
Author

apologies its late,

/Users/admin/Downloads/aeon-gui/get_libwallet_api.sh
~/Downloads/aeon-gui ~/Downloads/aeon-gui
You are currently on commit fed7ef4
The most recent tag was at 06cdc6c
You are ahead of or behind a tagged release
D	include/INode.h
D	include/IWallet.h
Reset branch 'fed7ef4'
libwallet_merged.a not found - Building libwallet
Building libwallet release
cleaning up existing monero build dir, libs and includes
~/Downloads/aeon-gui/monero/build/release ~/Downloads/aeon-gui ~/Downloads/aeon-gui
Configuring build for MacOS..
-- The C compiler identification is AppleClang 9.1.0.9020039
-- The CXX compiler identification is AppleClang 9.1.0.9020039
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Building without build tag
-- Could not find DEVELOPER_LOCAL_TOOLS in env (not required)
-- BOOST_IGNORE_SYSTEM_PATHS defaults to OFF
-- Could not find DEVELOPER_LIBUNBOUND_OLD in env (not required)
-- Building for a 64-bit system
-- Building internal libraries as static
-- Could not find DATABASE in env (not required unless you want to change database type from default: lmdb)
-- Using LMDB as default DB type
-- Stack trace on exception disabled
-- Using OpenSSL found at /usr/local/opt/openssl
-- Found OpenSSL: /usr/local/opt/openssl/lib/libcrypto.dylib (found version "1.0.2p")  
-- Using OpenSSL include dir at /usr/local/opt/openssl/include
-- Found PkgConfig: /usr/local/bin/pkg-config (found version "0.29.2") 
-- Checking for module 'libpcsclite'
--   No package 'libpcsclite' found
-- Found PCSC: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/PCSC.framework  
-- Looking for memset_s in c
-- Looking for memset_s in c - found
-- Looking for explicit_bzero in c
-- Looking for explicit_bzero in c - not found
-- Looking for strptime
-- Looking for strptime - found
-- Found MiniUPnPc: /usr/local/include/miniupnpc  
-- Found miniupnpc API version 17
-- Using in-tree miniupnpc
-- Looking for libunbound
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - found
-- Found Threads: TRUE  
-- Looking for arpa/inet.h
-- Looking for arpa/inet.h - found
-- Looking for endian.h
-- Looking for endian.h - not found
-- Looking for dlfcn.h
-- Looking for dlfcn.h - found
-- Looking for event.h
-- Looking for event.h - not found
-- Looking for getopt.h
-- Looking for getopt.h - found
-- Looking for glob.h
-- Looking for glob.h - found
-- Looking for grp.h
-- Looking for grp.h - found
-- Looking for inttypes.h
-- Looking for inttypes.h - found
-- Looking for iphlpapi.h
-- Looking for iphlpapi.h - not found
-- Looking for login_cap.h
-- Looking for login_cap.h - not found
-- Looking for memory.h
-- Looking for memory.h - found
-- Looking for netdb.h
-- Looking for netdb.h - found
-- Looking for netinet/in.h
-- Looking for netinet/in.h - found
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pwd.h
-- Looking for pwd.h - found
-- Looking for stdarg.h
-- Looking for stdarg.h - found
-- Looking for stdbool.h
-- Looking for stdbool.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stdlib.h
-- Looking for stdlib.h - found
-- Looking for strings.h
-- Looking for strings.h - found
-- Looking for string.h
-- Looking for string.h - found
-- Looking for sys/param.h
-- Looking for sys/param.h - found
-- Looking for sys/resource.h
-- Looking for sys/resource.h - found
-- Looking for sys/sha2.h
-- Looking for sys/sha2.h - not found
-- Looking for sys/socket.h
-- Looking for sys/socket.h - found
-- Looking for sys/stat.h
-- Looking for sys/stat.h - found
-- Looking for sys/sysctl.h
-- Looking for sys/sysctl.h - found
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for sys/uio.h
-- Looking for sys/uio.h - found
-- Looking for sys/un.h
-- Looking for sys/un.h - found
-- Looking for sys/wait.h
-- Looking for sys/wait.h - found
-- Looking for syslog.h
-- Looking for syslog.h - found
-- Looking for time.h
-- Looking for time.h - found
-- Looking for unistd.h
-- Looking for unistd.h - found
-- Looking for vfork.h
-- Looking for vfork.h - not found
-- Looking for windows.h
-- Looking for windows.h - not found
-- Looking for winsock2.h
-- Looking for winsock2.h - not found
-- Looking for ws2tcpip.h
-- Looking for ws2tcpip.h - not found
-- Looking for _beginthreadex
-- Looking for _beginthreadex - not found
-- Looking for arc4random
-- Looking for arc4random - found
-- Looking for arc4random_uniform
-- Looking for arc4random_uniform - found
-- Looking for chown
-- Looking for chown - found
-- Looking for chroot
-- Looking for chroot - found
-- Looking for ctime_r
-- Looking for ctime_r - found
-- Looking for daemon
-- Looking for daemon - found
-- Looking for endprotoent
-- Looking for endprotoent - found
-- Looking for endservent
-- Looking for endservent - found
-- Looking for fork
-- Looking for fork - found
-- Looking for fseeko
-- Looking for fseeko - found
-- Looking for fsync
-- Looking for fsync - found
-- Looking for getauxval
-- Looking for getauxval - not found
-- Looking for getentropy
-- Looking for getentropy - found
-- Looking for getpwnam
-- Looking for getpwnam - found
-- Looking for getrlimit
-- Looking for getrlimit - found
-- Looking for glob
-- Looking for glob - found
-- Looking for gmtime_r
-- Looking for gmtime_r - found
-- Looking for fcntl
-- Looking for fcntl - found
-- Looking for inet_aton
-- Looking for inet_aton - found
-- Looking for inet_ntop
-- Looking for inet_ntop - found
-- Looking for inet_pton
-- Looking for inet_pton - found
-- Looking for initgroups
-- Looking for initgroups - found
-- Looking for ioctlsocket
-- Looking for ioctlsocket - not found
-- Looking for isblank
-- Looking for isblank - found
-- Looking for kill
-- Looking for kill - found
-- Looking for localtime_r
-- Looking for localtime_r - found
-- Looking for malloc
-- Looking for malloc - found
-- Looking for memmove
-- Looking for memmove - found
-- Looking for random
-- Looking for random - found
-- Looking for reallocarray
-- Looking for reallocarray - not found
-- Looking for recvmsg
-- Looking for recvmsg - found
-- Looking for sbrk
-- Looking for sbrk - found
-- Looking for sendmsg
-- Looking for sendmsg - found
-- Looking for setregid
-- Looking for setregid - found
-- Looking for setresgid
-- Looking for setresgid - not found
-- Looking for setresuid
-- Looking for setresuid - not found
-- Looking for setreuid
-- Looking for setreuid - found
-- Looking for setrlimit
-- Looking for setrlimit - found
-- Looking for setsid
-- Looking for setsid - found
-- Looking for setusercontent
-- Looking for setusercontent - not found
-- Looking for sigprocmask
-- Looking for sigprocmask - found
-- Looking for sleep
-- Looking for sleep - found
-- Looking for snprintf
-- Looking for snprintf - found
-- Looking for socketpair
-- Looking for socketpair - found
-- Looking for srandom
-- Looking for srandom - found
-- Looking for strsep
-- Looking for strsep - found
-- Looking for strftime
-- Looking for strftime - found
-- Looking for strlcat
-- Looking for strlcat - found
-- Looking for strlcpy
-- Looking for strlcpy - found
-- Looking for strptime
-- Looking for strptime - found
-- Looking for tzset
-- Looking for tzset - found
-- Looking for usleep
-- Looking for usleep - found
-- Looking for writev
-- Looking for writev - found
-- Looking for getaddrinfo
-- Looking for getaddrinfo - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of time_t
-- Check size of time_t - done
-- Check size of gid_t
-- Check size of gid_t - done
-- Check size of in_addr_t
-- Check size of in_addr_t - done
-- Check size of in_port_t
-- Check size of in_port_t - done
-- Check size of int16_t
-- Check size of int16_t - done
-- Check size of int32_t
-- Check size of int32_t - done
-- Check size of int64_t
-- Check size of int64_t - done
-- Check size of int8_t
-- Check size of int8_t - done
-- Check size of pid_t
-- Check size of pid_t - done
-- Check size of rlim_t
-- Check size of rlim_t - done
-- Check size of ssize_t
-- Check size of ssize_t - done
-- Check size of uid_t
-- Check size of uid_t - done
-- Check size of uint16_t
-- Check size of uint16_t - done
-- Check size of uint32_t
-- Check size of uint32_t - done
-- Check size of uint64_t
-- Check size of uint64_t - done
-- Check size of uint8_t
-- Check size of uint8_t - done
-- Looking for PTHREAD_PRIO_INHERIT
-- Looking for PTHREAD_PRIO_INHERIT - found
-- Looking for pthread_rwlock_t
-- Looking for pthread_rwlock_t - not found
-- Looking for pthread_spinlock_t
-- Looking for pthread_spinlock_t - not found
-- Looking for openssl/conf.h
-- Looking for openssl/conf.h - found
-- Looking for openssl/engine.h
-- Looking for openssl/engine.h - found
-- Looking for openssl/err.h
-- Looking for openssl/err.h - found
-- Looking for openssl/rand.h
-- Looking for openssl/rand.h - found
-- Looking for openssl/ssl.h
-- Looking for openssl/ssl.h - found
-- Looking for NID_secp384r1
-- Looking for NID_secp384r1 - not found
-- Looking for NID_X9_62_prime256v1
-- Looking for NID_X9_62_prime256v1 - not found
-- Looking for sk_SSL_COMP_pop_free
-- Looking for sk_SSL_COMP_pop_free - not found
-- Looking for SSL_COMP_get_compression_methods
-- Looking for SSL_COMP_get_compression_methods - not found
-- Looking for EVP_MD_CTX_new
-- Looking for EVP_MD_CTX_new - not found
-- Looking for EVP_sha1
-- Looking for EVP_sha1 - found
-- Looking for EVP_sha256
-- Looking for EVP_sha256 - found
-- Looking for EVP_sha512
-- Looking for EVP_sha512 - found
-- Looking for FIPS_mode
-- Looking for FIPS_mode - found
-- Looking for HMAC_Update
-- Looking for HMAC_Update - found
-- Looking for OPENSSL_config
-- Looking for OPENSSL_config - found
-- Looking for SHA512_Update
-- Looking for SHA512_Update - found
-- Looking for LIBRESSL_VERSION_TEXT
-- Looking for LIBRESSL_VERSION_TEXT - not found
-- Using 64-bit LMDB from source tree
-- Using PCSC include dir at /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/PCSC.framework/Headers
-- Building on x86_64 for native
-- Performing Test _Wformat_c
-- Performing Test _Wformat_c - Success
-- Performing Test _Wformat_cxx
-- Performing Test _Wformat_cxx - Success
-- Performing Test _Wformat_security_c
-- Performing Test _Wformat_security_c - Success
-- Performing Test _Wformat_security_cxx
-- Performing Test _Wformat_security_cxx - Success
-- Performing Test _fstack_protector_c
-- Performing Test _fstack_protector_c - Success
-- Performing Test _fstack_protector_cxx
-- Performing Test _fstack_protector_cxx - Success
-- Performing Test _fstack_protector_strong_c
-- Performing Test _fstack_protector_strong_c - Success
-- Performing Test _fstack_protector_strong_cxx
-- Performing Test _fstack_protector_strong_cxx - Success
-- Looking for -pie linker flag
-- Looking for -pie linker flag - found
-- Looking for -Wl,-z,relro linker flag
-- Looking for -Wl,-z,relro linker flag - not found
-- Looking for -Wl,-z,now linker flag
-- Looking for -Wl,-z,now linker flag - not found
-- Looking for -Wl,-z,noexecstack linker flag
-- Looking for -Wl,-z,noexecstack linker flag - not found
-- Looking for -Wl,-z,noexecheap linker flag
-- Looking for -Wl,-z,noexecheap linker flag - not found
-- Using C security hardening flags:  -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 -Wformat -Wformat-security -fstack-protector -fstack-protector-strong
-- Using C++ security hardening flags:  -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 -Wformat -Wformat-security -fstack-protector -fstack-protector-strong
-- Using linker security hardening flags:  -pie
-- AES support enabled
-- Found Boost Version: 106700
-- Looking for rl_copy_text
-- Looking for rl_copy_text - found
-- Looking for rl_filename_completion_function
-- Looking for rl_filename_completion_function - found
-- Found readline library at: /usr/local/opt/readline
-- Found Git: /usr/local/bin/git
Doxygen: graphviz not found - graphs disabled
-- Found Doxygen: /usr/local/bin/doxygen (found version "1.8.14") found components:  doxygen missing components:  dot
-- Performing Test HAVE_C11
-- Performing Test HAVE_C11 - Success
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
SODIUM_LIBRARY
    linked by target "cncrypto" in directory /Users/admin/Downloads/aeon-gui/monero/src/crypto

-- Configuring incomplete, errors occurred!
See also "/Users/admin/Downloads/aeon-gui/monero/build/release/CMakeFiles/CMakeOutput.log".
See also "/Users/admin/Downloads/aeon-gui/monero/build/release/CMakeFiles/CMakeError.log".
~/Downloads/aeon-gui/monero/build/release/src/wallet ~/Downloads/aeon-gui/monero/build/release ~/Downloads/aeon-gui ~/Downloads/aeon-gui
make: *** No rule to make target `version'.  Stop.
make: *** No targets specified and no makefile found.  Stop.
make: *** No rule to make target `install'.  Stop.
~/Downloads/aeon-gui/monero/build/release ~/Downloads/aeon-gui ~/Downloads/aeon-gui
~/Downloads/aeon-gui/monero/build/release/src/daemon ~/Downloads/aeon-gui/monero/build/release ~/Downloads/aeon-gui ~/Downloads/aeon-gui
make: *** No targets specified and no makefile found.  Stop.
make: *** No rule to make target `install'.  Stop.
~/Downloads/aeon-gui/monero/build/release ~/Downloads/aeon-gui ~/Downloads/aeon-gui
make: *** No rule to make target `all'.  Stop.
make: *** No rule to make target `all'.  Stop.
make: *** No rule to make target `all'.  Stop.
Installing libunbound...
~/Downloads/aeon-gui/monero/build/release/external/unbound ~/Downloads/aeon-gui/monero/build/release ~/Downloads/aeon-gui ~/Downloads/aeon-gui
make: *** No rule to make target `install'.  Stop.
~/Downloads/aeon-gui/monero/build/release ~/Downloads/aeon-gui ~/Downloads/aeon-gui
~/Downloads/aeon-gui ~/Downloads/aeon-gui

do you need cmakelist error logs?

@stoffu
Copy link

stoffu commented Sep 13, 2018

Generally, you should be looking for words like error and fail:

CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
SODIUM_LIBRARY
    linked by target "cncrypto" in directory /Users/admin/Downloads/aeon-gui/monero/src/crypto

-- Configuring incomplete, errors occurred!

This means you need to install libsodium.

@BigslimVdub
Copy link
Author

BigslimVdub commented Sep 14, 2018

Now after installing libsodium I am getting no errors running get_libwallet_api.sh but it only builds the daemon and rpc like monero gui does.

I am now getting this error running the build.sh

ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [release/bin/aeon-wallet-gui.app/Contents/MacOS/aeon-wallet-gui] Error 1

i additionally installed libusb via brew and verified unbound installation and reattempted with same issue.

EDIT:
I am getting same errors on Windows using msys and only building daemon and rpc with get_libwallet_api.sh. Something is not right with what is being cloned.

@stoffu
Copy link

stoffu commented Sep 14, 2018

Please always post logs in full. Providing the last line of "build failed" conveys no information.

@BigslimVdub
Copy link
Author

now getting the X86_64 error
https://paste.fedoraproject.org/paste/NxuS1E2Qap9s83tso7oXsw

@stoffu
Copy link

stoffu commented Sep 17, 2018

The link error

Undefined symbols for architecture x86_64:
  "_crypto_verify_32", referenced from:

is due to libsodium not being linked. Addressed by #11

@BigslimVdub
Copy link
Author

Checked and brew already linked libsodium. Unlink and relink and retry and still fail. Made additions to aeon-wallet-gui.pro noted here and was successful to compile on osx 10.13.6. App file is 26.9mb but everything seems to work on it compared to 154.8mb app file from release v.0.12.5.

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

2 participants