cortex / ripasso

A simple password manager written in Rust
GNU General Public License v3.0
705 stars 61 forks source link

ld: symbol(s) not found for architecture x86_64 #3

Closed voroninman closed 7 years ago

voroninman commented 7 years ago
$ rustc --version
rustc 1.16.0
$ system_profiler SPSoftwareDataType

Software:

    System Software Overview:

      System Version: macOS 10.12.4 (16E195)
      Kernel Version: Darwin 16.5.0
      Boot Volume: Macintosh HD
      Boot Mode: Normal
      Computer Name: lap
      User Name: Viktor (viktor)
      Secure Virtual Memory: Enabled
      System Integrity Protection: Enabled
      Time since boot: 1 day 3:09
       Fresh cfg-if v0.1.0
       Fresh winapi v0.2.8
       Fresh pkg-config v0.3.9
       Fresh glob v0.2.11
       Fresh gcc v0.3.45
       Fresh bitflags v0.7.0
       Fresh custom_derive v0.1.7
       Fresh block v0.1.6
       Fresh cmake v0.1.22
       Fresh conv v0.3.3
       Fresh winapi-build v0.1.1
       Fresh lazy_static v0.2.8
       Fresh libc v0.2.21
       Fresh libgpg-error-sys v0.2.2
       Fresh malloc_buf v0.0.6
       Fresh gpg-error v0.2.1
       Fresh filetime v0.1.10
       Fresh objc v0.2.2
       Fresh kernel32-sys v0.2.2
       Fresh fsevent-sys v0.1.6
       Fresh objc_id v0.1.0
       Fresh walkdir v0.1.8
       Fresh gpgme-sys v0.5.0 (https://github.com/johnschug/rust-gpgme#8b0d1b58)
       Fresh fsevent v0.2.16
       Fresh objc-foundation v0.1.1
       Fresh qml v0.0.9 (https://github.com/vandenoever/qml-rust/?branch=notify#07efdfac)
       Fresh gpgme v0.5.0 (https://github.com/johnschug/rust-gpgme#8b0d1b58)
       Fresh notify v4.0.1
       Fresh clipboard v0.2.0 (https://github.com/aweinstock314/rust-clipboard#618b714a)
   Compiling rustpass v0.0.1 (file:///Users/viktorv/Repositories/ripasso)
     Running `rustc --crate-name rustpass src/main.rs --crate-type bin --emit=dep-info,link -C debuginfo=2 -C metadata=a0af8f13a671f9a8 -C extra-filename=-a0af8f13a671f9a8 --out-dir /Users/viktorv/Repositories/ripasso/target/debug/deps -L dependency=/Users/viktorv/Repositories/ripasso/target/debug/deps --extern clipboard=/Users/viktorv/Repositories/ripasso/target/debug/deps/libclipboard-5693548e4452a143.rlib --extern glob=/Users/viktorv/Repositories/ripasso/target/debug/deps/libglob-448fa4fbc5ac9e4c.rlib --extern gpgme=/Users/viktorv/Repositories/ripasso/target/debug/deps/libgpgme-a10ebfa4e8fccea3.rlib --extern qml=/Users/viktorv/Repositories/ripasso/target/debug/deps/libqml-5eaca5e787064180.rlib --extern notify=/Users/viktorv/Repositories/ripasso/target/debug/deps/libnotify-065703ba1af6da53.rlib -L native=/Users/viktorv/Repositories/ripasso/target/debug/build/gpgme-sys-03079fc0e809a527/out/lib -L native=/Users/viktorv/Repositories/ripasso/target/debug/build/libgpg-error-sys-9fcf39f7d33b4c01/out/lib -L framework=/usr/local/Cellar/qt/5.8.0_2/lib -L framework=/usr/local/Cellar/qt/5.8.0_2/lib -L framework=/usr/local/Cellar/qt/5.8.0_2/lib -L framework=/usr/local/Cellar/qt/5.8.0_2/lib -L framework=/usr/local/Cellar/qt/5.8.0_2/lib -L framework=/usr/local/Cellar/qt/5.8.0_2/lib -L framework=/usr/local/Cellar/qt/5.8.0_2/lib -L framework=/usr/local/Cellar/qt/5.8.0_2/lib -L framework=/usr/local/Cellar/qt/5.8.0_2/lib -L framework=/usr/local/Cellar/qt/5.8.0_2/lib -L framework=/usr/local/Cellar/qt/5.8.0_2/lib -L framework=/usr/local/Cellar/qt/5.8.0_2/lib -L framework=/usr/local/Cellar/qt/5.8.0_2/lib -L framework=/usr/local/Cellar/qt/5.8.0_2/lib -L native=/Users/viktorv/Repositories/ripasso/target/debug/build/qml-68ef071e1b8d8001/out/lib -L native=/Users/viktorv/Repositories/ripasso/target/debug/build/qml-68ef071e1b8d8001/out/build/lib`
warning: method `copyToClipboard` should have a snake case name such as `copy_to_clipboard`, #[warn(non_snake_case)] on by default
  --> src/main.rs:57:5
   |
57 |     pub fn copyToClipboard(&mut self, i: i32) -> Option<&QVariant> {
   |     ^

warning: unused variable: `e`, #[warn(unused_variables)] on by default
  --> src/main.rs:66:17
   |
66 |             Err(e) => {
   |                 ^

error: linking with `cc` failed: exit code: 1
  |
  = note: "cc" "-m64" "-L" "/usr/local/Cellar/rust/1.16.0/lib/rustlib/x86_64-apple-darwin/lib" "/Users/viktorv/Repositories/ripasso/target/debug/deps/rustpass-a0af8f13a671f9a8.0.o" "-o" "/Users/viktorv/Repositories/ripasso/target/debug/deps/rustpass-a0af8f13a671f9a8" "-Wl,-dead_strip" "-nodefaultlibs" "-L" "/Users/viktorv/Repositories/ripasso/target/debug/deps" "-L" "/Users/viktorv/Repositories/ripasso/target/debug/build/gpgme-sys-03079fc0e809a527/out/lib" "-L" "/Users/viktorv/Repositories/ripasso/target/debug/build/libgpg-error-sys-9fcf39f7d33b4c01/out/lib" "-F" "/usr/local/Cellar/qt/5.8.0_2/lib" "-F" "/usr/local/Cellar/qt/5.8.0_2/lib" "-F" "/usr/local/Cellar/qt/5.8.0_2/lib" "-F" "/usr/local/Cellar/qt/5.8.0_2/lib" "-F" "/usr/local/Cellar/qt/5.8.0_2/lib" "-F" "/usr/local/Cellar/qt/5.8.0_2/lib" "-F" "/usr/local/Cellar/qt/5.8.0_2/lib" "-F" "/usr/local/Cellar/qt/5.8.0_2/lib" "-F" "/usr/local/Cellar/qt/5.8.0_2/lib" "-F" "/usr/local/Cellar/qt/5.8.0_2/lib" "-F" "/usr/local/Cellar/qt/5.8.0_2/lib" "-F" "/usr/local/Cellar/qt/5.8.0_2/lib" "-F" "/usr/local/Cellar/qt/5.8.0_2/lib" "-F" "/usr/local/Cellar/qt/5.8.0_2/lib" "-L" "/Users/viktorv/Repositories/ripasso/target/debug/build/qml-68ef071e1b8d8001/out/lib" "-L" "/Users/viktorv/Repositories/ripasso/target/debug/build/qml-68ef071e1b8d8001/out/build/lib" "-L" "/usr/local/Cellar/rust/1.16.0/lib/rustlib/x86_64-apple-darwin/lib" "/Users/viktorv/Repositories/ripasso/target/debug/deps/libqml-5eaca5e787064180.rlib" "/Users/viktorv/Repositories/ripasso/target/debug/deps/libgpgme-a10ebfa4e8fccea3.rlib" "/Users/viktorv/Repositories/ripasso/target/debug/deps/libconv-f4d495a537070341.rlib" "/Users/viktorv/Repositories/ripasso/target/debug/deps/libnotify-065703ba1af6da53.rlib" "/Users/viktorv/Repositories/ripasso/target/debug/deps/libfsevent-ae3b64942b63ffce.rlib" "/Users/viktorv/Repositories/ripasso/target/debug/deps/liblazy_static-ad1e8eccb670bee7.rlib" "/Users/viktorv/Repositories/ripasso/target/debug/deps/libbitflags-65ddff5d2b91509e.rlib" "/Users/viktorv/Repositories/ripasso/target/debug/deps/libgpgme_sys-aba9eaa5719afb14.rlib" "/Users/viktorv/Repositories/ripasso/target/debug/deps/libglob-448fa4fbc5ac9e4c.rlib" "/Users/viktorv/Repositories/ripasso/target/debug/deps/libfiletime-f10baa873e2ea264.rlib" "/Users/viktorv/Repositories/ripasso/target/debug/deps/libclipboard-5693548e4452a143.rlib" "/Users/viktorv/Repositories/ripasso/target/debug/deps/libobjc_foundation-6c433935652d7994.rlib" "/Users/viktorv/Repositories/ripasso/target/debug/deps/libobjc_id-c467ca9539e6846d.rlib" "/Users/viktorv/Repositories/ripasso/target/debug/deps/libobjc-df9887aeaf8fc0d9.rlib" "/Users/viktorv/Repositories/ripasso/target/debug/deps/libcfg_if-5cf5b4dd25466da1.rlib" "/Users/viktorv/Repositories/ripasso/target/debug/deps/libcustom_derive-c0152e66c33f1682.rlib" "/Users/viktorv/Repositories/ripasso/target/debug/deps/libgpg_error-7c4b967f067d8497.rlib" "/Users/viktorv/Repositories/ripasso/target/debug/deps/liblibgpg_error_sys-5f04a4710c71c919.rlib" "/Users/viktorv/Repositories/ripasso/target/debug/deps/libfsevent_sys-eb1e836fef99ac6c.rlib" "/Users/viktorv/Repositories/ripasso/target/debug/deps/libwalkdir-97309c6e51e51a47.rlib" "/Users/viktorv/Repositories/ripasso/target/debug/deps/libmalloc_buf-7677285567d6e14c.rlib" "/Users/viktorv/Repositories/ripasso/target/debug/deps/liblibc-5dc7b85e748840b4.rlib" "/Users/viktorv/Repositories/ripasso/target/debug/deps/libblock-d0efe540c64f4d99.rlib" "/usr/local/Cellar/rust/1.16.0/lib/rustlib/x86_64-apple-darwin/lib/libstd-a71699d9a2708b89.rlib" "/usr/local/Cellar/rust/1.16.0/lib/rustlib/x86_64-apple-darwin/lib/libpanic_unwind-938ad17540379fcc.rlib" "/usr/local/Cellar/rust/1.16.0/lib/rustlib/x86_64-apple-darwin/lib/libunwind-cb9ccdab2eb2dc79.rlib" "/usr/local/Cellar/rust/1.16.0/lib/rustlib/x86_64-apple-darwin/lib/librand-670a947df89a2ccc.rlib" "/usr/local/Cellar/rust/1.16.0/lib/rustlib/x86_64-apple-darwin/lib/libcollections-5b3898f8c5f0e814.rlib" "/usr/local/Cellar/rust/1.16.0/lib/rustlib/x86_64-apple-darwin/lib/liballoc-a6daae03bd7bd954.rlib" "/usr/local/Cellar/rust/1.16.0/lib/rustlib/x86_64-apple-darwin/lib/liballoc_jemalloc-4f1792314cacd044.rlib" "/usr/local/Cellar/rust/1.16.0/lib/rustlib/x86_64-apple-darwin/lib/liblibc-4e8e9be8cd6f1b87.rlib" "/usr/local/Cellar/rust/1.16.0/lib/rustlib/x86_64-apple-darwin/lib/libstd_unicode-a3427337083eea0c.rlib" "/usr/local/Cellar/rust/1.16.0/lib/rustlib/x86_64-apple-darwin/lib/libcore-f29b4bdb6959fcf5.rlib" "/usr/local/Cellar/rust/1.16.0/lib/rustlib/x86_64-apple-darwin/lib/libcompiler_builtins-87bae4784d673068.rlib" "-l" "c++" "-framework" "QtQuick" "-framework" "QtQml" "-framework" "QtNetwork" "-framework" "QtSvg" "-framework" "QtWidgets" "-framework" "QtGui" "-framework" "QtCore" "-framework" "AppKit" "-framework" "Foundation" "-l" "objc" "-l" "objc" "-l" "objc" "-framework" "CoreServices" "-framework" "CoreServices" "-l" "System" "-l" "System" "-l" "pthread" "-l" "c" "-l" "m"
  = note: Undefined symbols for architecture x86_64:
            "_libintl_dgettext", referenced from:
                __gpg_strerror in liblibgpg_error_sys-5f04a4710c71c919.rlib(libgpg_error_la-strerror.o)
                __gpg_strerror_r in liblibgpg_error_sys-5f04a4710c71c919.rlib(libgpg_error_la-strerror.o)
                __gpg_strsource in liblibgpg_error_sys-5f04a4710c71c919.rlib(libgpg_error_la-strsource.o)
            "_libintl_bindtextdomain", referenced from:
                _real_init in liblibgpg_error_sys-5f04a4710c71c919.rlib(libgpg_error_la-init.o)
          ld: symbol(s) not found for architecture x86_64
          clang: error: linker command failed with exit code 1 (use -v to see invocation)

error: aborting due to previous error

error: Could not compile `rustpass`.

Caused by:
  process didn't exit successfully: `rustc --crate-name rustpass src/main.rs --crate-type bin --emit=dep-info,link -C debuginfo=2 -C metadata=a0af8f13a671f9a8 -C extra-filename=-a0af8f13a671f9a8 --out-dir /Users/viktorv/Repositories/ripasso/target/debug/deps -L dependency=/Users/viktorv/Repositories/ripasso/target/debug/deps --extern clipboard=/Users/viktorv/Repositories/ripasso/target/debug/deps/libclipboard-5693548e4452a143.rlib --extern glob=/Users/viktorv/Repositories/ripasso/target/debug/deps/libglob-448fa4fbc5ac9e4c.rlib --extern gpgme=/Users/viktorv/Repositories/ripasso/target/debug/deps/libgpgme-a10ebfa4e8fccea3.rlib --extern qml=/Users/viktorv/Repositories/ripasso/target/debug/deps/libqml-5eaca5e787064180.rlib --extern notify=/Users/viktorv/Repositories/ripasso/target/debug/deps/libnotify-065703ba1af6da53.rlib -L native=/Users/viktorv/Repositories/ripasso/target/debug/build/gpgme-sys-03079fc0e809a527/out/lib -L native=/Users/viktorv/Repositories/ripasso/target/debug/build/libgpg-error-sys-9fcf39f7d33b4c01/out/lib -L framework=/usr/local/Cellar/qt/5.8.0_2/lib -L framework=/usr/local/Cellar/qt/5.8.0_2/lib -L framework=/usr/local/Cellar/qt/5.8.0_2/lib -L framework=/usr/local/Cellar/qt/5.8.0_2/lib -L framework=/usr/local/Cellar/qt/5.8.0_2/lib -L framework=/usr/local/Cellar/qt/5.8.0_2/lib -L framework=/usr/local/Cellar/qt/5.8.0_2/lib -L framework=/usr/local/Cellar/qt/5.8.0_2/lib -L framework=/usr/local/Cellar/qt/5.8.0_2/lib -L framework=/usr/local/Cellar/qt/5.8.0_2/lib -L framework=/usr/local/Cellar/qt/5.8.0_2/lib -L framework=/usr/local/Cellar/qt/5.8.0_2/lib -L framework=/usr/local/Cellar/qt/5.8.0_2/lib -L framework=/usr/local/Cellar/qt/5.8.0_2/lib -L native=/Users/viktorv/Repositories/ripasso/target/debug/build/qml-68ef071e1b8d8001/out/lib -L native=/Users/viktorv/Repositories/ripasso/target/debug/build/qml-68ef071e1b8d8001/out/build/lib` (exit code: 101)
cortex commented 7 years ago

This builds correctly on OSX in Travis, do you know what might be the difference? https://travis-ci.org/cortex/ripasso/jobs/225808380

voroninman commented 7 years ago

It builds on my private machine after:

brew install rust qt5

but now #4.