octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #59968] ld: symbol(s) not found for architectu


From: david laxer
Subject: [Octave-bug-tracker] [bug #59968] ld: symbol(s) not found for architecture x86_64
Date: Thu, 4 Mar 2021 17:39:11 -0500 (EST)
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.0.2 Safari/605.1.15

Follow-up Comment #15, bug #59968 (project octave):

I made progress building octave on OS X 10.11.7.
However, I'm still getting 

Undefined symbols for architecture x86_64:
  "_iconv", referenced from:
      _mem_cd_iconveh_internal in libgnu.a(striconveh.o)
      _iconv_carefully_1 in libgnu.a(striconveh.o)
     (maybe you meant: _str_iconveha, _str_cd_iconveh , _mem_cd_iconveh ,
_octave_iconv_close_wrapper , _mem_iconveh , _iconveh_close , _iconveh_open ,
_octave_iconv_open_wrapper , _str_iconveh , _mem_iconveha )
  "_iconv_close", referenced from:
      _octave_iconv_close_wrapper in
libwrappers.a(libwrappers_la-iconv-wrappers.o)
      _iconveh_open in libgnu.a(striconveh.o)
      _iconveh_close in libgnu.a(striconveh.o)
     (maybe you meant: _octave_iconv_close_wrapper)
  "_iconv_open", referenced from:
      _octave_iconv_open_wrapper in
libwrappers.a(libwrappers_la-iconv-wrappers.o)
      _iconveh_open in libgnu.a(striconveh.o)
     (maybe you meant: _octave_iconv_open_wrapper)
ld: symbol(s) not found for architecture x86_64


If I add -Wl,-force_load,/usr/lib/libiconv.2.dylib
to the linker line, it builds.

Here's my configure command:

export CFLAGS="-isysroot
/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk"
export CCFLAGS="-isysroot
/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk"
export CXXFLAGS="-isysroot
/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk"
export CPPFLAGS="-isysroot
/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk"
export CXXFLAGS="-std=c++17 -stdlib=libc++ $CXXFLAGS"
export CPPFLAGS="-std=c++17 -stdlib=libc++ $CPPFLAGS" 
export CC=/usr/bin/clang
export CXX=/usr/bin/clang++
export CCLD=/usr/bin/clang
export CXXLD=/usr/bin/clang++

./configure CXXFLAGS="-std=c++17 -stdlib=libc++ -isysroot
/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk
-I/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include
-I/Users/davidlaxer/SuiteSparse/include -I/opt/local/libexec/qt5/include
-I/Library/Java/JavaVirtualMachines/jdk-13.0.2.jdk/Contents/Home/include" 
CPPFLAGS="-I/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include
-I/Users/davidlaxer/SuiteSparse/include -I/opt/local/include
-I/opt/local/libexec/qt5/include
-I/Library/Java/JavaVirtualMachines/jdk-13.0.2.jdk/Contents/Home/include"
LDFLAGS="-L/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/lib
-L/Users/davidlaxer/SuiteSparse/lib/ -L/opt/local/libexec/qt5/lib
-L/Library/Java/JavaVirtualMachines/jdk-13.0.2.jdk/Contents/Home/lib"
DYLD_LIBRARY_PATH="-L/opt/local/lib -L/opt/local/libexec/qt5/lib
-L/Library/Java/JavaVirtualMachines/jdk-13.0.2.jdk/Contents/Home/lib"
LD_LIBRARY_PATH="-L/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/lib
-L/Users/davidlaxer/SuiteSparse/lib/ -L/opt/local/lib
-L/opt/local/libexec/qt5/lib
-L/Library/Java/JavaVirtualMachines/jdk-13.0.2.jdk/Contents/Home/lib"
--with-suitesparseconfig-includedir=/Users/davidlaxer/SuiteSparse/include
--with-suitesparseconfig-libdir=/Users/davidlaxer/SuiteSparse/lib
--disable-readline  --with-sundials_ida-includedir=/opt/local/include/sundials
--with-sundials_ida-libdir=/opt/local/lib/ --with-qt=5
--with-libiconv-prefix=/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr


Please find attached 'config.log'

    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?59968>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]