Join GitHub today
Aug 03, 2018 We get this in most travis builds on mac now built to use darwinssl. @nickzman explained the reason here and I'm pasting it here since that was in an unrelated issue. Travis CI: Undefined symbols for architecture x8664: 'SSLCopyALPNProtocols' on mac #2835. Closed bagder opened this issue Aug 3, 2018 3 comments Closed. Undefined symbols for architecture x8664. Undefined symbols for architecture x8664. Sex, - 14:01. If it helps, the system is Mac OS X Lion 10.7.5. WRF is written in fortran90 and C, while the land surface model is written in fortran77. I am using ifort compiler (12.1.0.038) and gcc to compile the model. ' Undefined symbols for architecture x8664: 'main', referenced from: implicit entry/start for main executable. Ld: symbol(s) not found for architecture x8664. Clang: error: linker command failed with exit code 1 (use -v to see invocation)' Most of the posts I read are for far more complex projects.
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upHave 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
Comments
commented Nov 14, 2013
Undefined symbols for architecture x86_64: '_libiconv', referenced from: __cgo_3f1a54b9fe24_C2func_iconv in converter.cgo2.o __cgo_3f1a54b9fe24_Cfunc_iconv in converter.cgo2.o '_libiconv_open', referenced from: __cgo_3f1a54b9fe24_Cfunc_iconv_open in converter.cgo2.o __cgo_3f1a54b9fe24_C2func_iconv_open in converter.cgo2.o '_libiconv_close', referenced from: __cgo_3f1a54b9fe24_Cfunc_iconv_close in converter.cgo2.o __cgo_3f1a54b9fe24_C2func_iconv_close in converter.cgo2.o ld: symbol(s) not found for architecture x86_64 collect2: ld returned 1 exit status |
commented Jan 6, 2015
Same issue on my end. Mac Air Yosemite |
commented Jan 6, 2015
I solved this by using brew uninstall libiconv. Notice this may make anything you use libiconv (like Nokogiri for Ruby) break. |
commented May 21, 2016 •
OpenBSD is suffering from this exact same issue. EDIT: Should be more specific. OpenBSD 5.9 tracking -stable is also having this issue. I thought for a minute that it may be caused by the fact that I performed a 'downgrade' by changing from tracking snapshots to tracking -stable on 5.9's release, but forcing a reinstall of libiconv from upstream hasn't fixed the issue. What's more - I can't get the libiconv package for OpenBSD to uninstall without having a bunch of other packages go with it. (python, zsh and emacs being some big ones :P) This means that @rushingfitness's solution won't work here - even temporarily - unless I want to reinstall those dependent packages too. |
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment
What is going on here? I can't seem to build with gcc. How can I fix this.
mbp-mbp 09:24:18 ~/bin $ gcc connect.c -o connect
Undefined symbols for architecture x86_64:
'_res_9_init', referenced from:
_switch_ns in ccTLCqYq.o
ld: symbol(s) not found for architecture x86_64
collect2: error: ld returned 1 exit status
mbp-mbp 09:26:14 ~/bin $ gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/local/Cellar/gcc/4.8.3/libexec/gcc/x86_64-apple-darwin1 3.2.0/4.8.3/lto-wrapper
Undefined Symbols For Architecture X86_64 Mac Qt
Target: x86_64-apple-darwin13.2.0
Configured with: ../configure --build=x86_64-apple-darwin13.2.0 --prefix=/usr/local/Cellar/gcc/4.8.3 --enable-languages=c,c++,objc,obj-c++,fortran --with-gmp=/usr/local/opt/gmp --with-mpfr=/usr/local/opt/mpfr --with-mpc=/usr/local/opt/libmpc --with-cloog=/usr/local/opt/cloog --with-isl=/usr/local/opt/isl --with-system-zlib --enable-version-specific-runtime-libs --enable-libstdcxx-time=yes --enable-stage1-checking --enable-checking=release --enable-lto --disable-werror --enable-plugin --disable-nls --enable-multilib
Undefined Symbols For Architecture X86_64 Mac Gfortran
Thread model: posix
gcc version 4.8.3 (GCC)
5.1.1 xcode nad command line tools
OSX 10.9.3
![Undefined Symbols For Architecture X86_64 Mac Undefined Symbols For Architecture X86_64 Mac](/uploads/1/3/3/9/133902188/648087813.png)
Cheers
Undefined Symbols For Architecture X86_64 Mac Ffmpeg
Posted on