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

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

[Octave-bug-tracker] [bug #55033] mkoctfile link failure on macos


From: Rik
Subject: [Octave-bug-tracker] [bug #55033] mkoctfile link failure on macos
Date: Mon, 31 Dec 2018 18:15:00 -0500 (EST)
User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko

Follow-up Comment #16, bug #55033 (project octave):

It sounds as though the following is true:

1) --enable-link-all-dependencies is required on Mac platforms.

This adds "libinterp/liboctinterp.la liboctave/liboctave.la" to the link
command when creating a .oct file in the build system when compiling an Octave
distribution.

2) Run 'make install'

I wasn't sure if this was actually getting run on Ben's machine.

3) mkoctfile helloworld.cc

The installed version of mkoctfile should use MKOCTFILE_OCT_LINK_DEPS.  This
is the code in mkoctfile.in.cc which looks correct.


  vars["OCT_LINK_DEPS"] = get_variable ("OCT_LINK_DEPS",
                                       
%OCTAVE_CONF_MKOCTFILE_OCT_LINK_DEPS%);


4) The variable %OCTAVE_CONF_MKOCTFILE_OCT_LINK_DEPS% is substituted by
build-aux/subst-config-vals.in.sh


  -e "s|%OCTAVE_CONF_MKOCTFILE_OCT_LINK_DEPS%|\"${MKOCTFILE_OCT_LINK_DEPS}\"|"
\


5) MKOCTFILE_OCT_LINK_DEPS is defined in configure.ac by the following.


if test $link_all_deps = yes; then
  OCT_LINK_DEPS="libinterp/liboctinterp.la liboctave/liboctave.la"
  OCT_GUI_LINK_DEPS="libgui/liboctgui.la libinterp/liboctinterp.la
liboctave/liboctave.la"

  MKOCTFILE_OCTAVE_LINK_DEPS="$LIBOCTINTERP_LINK_DEPS
$MKOCTFILE_LIBOCTAVE_LINK_DEPS"
  MKOCTFILE_OCT_LINK_DEPS="$OCT_LINK_DEPS $MKOCTFILE_LIBOCTINTERP_LINK_DEPS"

  LIBOCTINTERP_LINK_DEPS="$LIBOCTINTERP_LINK_DEPS $LIBOCTAVE_LINK_DEPS"
  LIBOCTINTERP_LINK_OPTS="$LIBOCTINTERP_LINK_OPTS $LIBOCTAVE_LINK_OPTS"

  OCTAVE_LINK_DEPS="$LIBOCTINTERP_LINK_DEPS"
  OCTAVE_LINK_OPTS="$LIBOCTINTERP_LINK_OPTS"


I think the line that defines MKOCTFILE_OCT_LINK_DEPS is where I would start. 
I don't think it should include $OCT_LINK_DEPS because that is what is getting
you liboctinterp.la and liboctave.la.  Secondarily,
MKOCTFILE_LIBOCTINTERP_LINK_DEPS doesn't exist anywhere in the source tree so
it is useless.  As a start, maybe try


MKOCTFILE_OCT_LINK_DEPS="-loctinterp -loctave"





    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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