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

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

[Octave-bug-tracker] [bug #64709] Android Termux libtool issue


From: Adam Labus
Subject: [Octave-bug-tracker] [bug #64709] Android Termux libtool issue
Date: Tue, 26 Sep 2023 11:55:00 -0400 (EDT)

Follow-up Comment #12, bug #64709 (project octave):


[comment #11 comment #11:]
> I guess the reason for the missing symbol when linking is that libtool tries
to link with `-nostdlib` but fails to explicitly link with the library that
provides that symbol.
> 
> Did `autoreconf -fi` make a difference?
> 
> Does it help if you add bionic libc in LIBS?
> 
> See, e.g., here for a similar issue:
> https://github.com/android/ndk/issues/1614
> 
> And here for a potential workaround:
>
https://github.com/termux/termux-packages/commit/562462e2296217e20c2a14fd8e8d9279486f14cb

Autoreconf causes the following make problem:

ld.lld: error: undefined reference due to --no-allow-shlib-undefined:
octave::sys::password::getpwuid(unsigned int, std::__ndk1::basic_string<char,
std::__ndk1::char_traits<char>, std::__ndk1::allocator<char>>&)               
                             >>> referenced by libinterp/.libs/liboctinterp.so
                                                                             
ld.lld: error: undefined reference due to --no-allow-shlib-undefined:
octave::sys::password::getpwnam(std::__ndk1::basic_string<char,
std::__ndk1::char_traits<char>, std::__ndk1::allocator<char>> const&,
std::__ndk1::basic_string<char, std::__ndk1::char_traits<char>,
std::__ndk1::allocator<char>>&)                     >>> referenced by
libinterp/.libs/liboctinterp.so                                               
                               ld.lld: error: undefined reference due to
--no-allow-shlib-undefined:
octave::sys::password::getpwnam(std::__ndk1::basic_string<char,
std::__ndk1::char_traits<char>, std::__ndk1::allocator<char>> const&)         
                                           >>> referenced by
/data/data/com.termux/files/home/src/octave/octave-8.3.0/.build/liboctave/.libs/liboctave.so
                                                                              
  ld.lld: error: undefined reference due to --no-allow-shlib-undefined:
octave::sys::password::getpwuid(unsigned int)             >>> referenced by
/data/data/com.termux/files/home/src/octave/octave-8.3.0/.build/liboctave/.libs/liboctave.so




    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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