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

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

[Octave-bug-tracker] [bug #55381] mkoctfile --link-stand-alone no longer


From: Mike Miller
Subject: [Octave-bug-tracker] [bug #55381] mkoctfile --link-stand-alone no longer links with liboctinterp
Date: Fri, 4 Jan 2019 04:30:27 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36

URL:
  <https://savannah.gnu.org/bugs/?55381>

                 Summary: mkoctfile --link-stand-alone no longer links with
liboctinterp
                 Project: GNU Octave
            Submitted by: mtmiller
            Submitted on: Fri 04 Jan 2019 01:30:24 AM PST
                Category: Configuration and Build System
                Severity: 4 - Important
                Priority: 5 - Normal
              Item Group: Regression
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 5.0.1
        Operating System: GNU/Linux

    _______________________________________________________

Details:

When building oct files, we don't link with -loctinterp and -loctave by
default now, which is good. But we lost the link with these libraries for
standalone programs at the same time, this needs to be restored.

Example:


$ cp examples/code/standalone.cc foo.cc
$ mkoctfile --link-stand-alone foo.cc
/usr/bin/ld: /tmp/oct-3DGEBG.o: in function `main':
/opt/gnu/octave/include/octave-5.0.1/octave/../octave/Array.h:264: undefined
reference to `dim_vector::safe_numel() const'
/usr/bin/ld: /tmp/oct-3DGEBG.o: in function `main':
/home/mike/src/octave/stable/+build-stable/foo.cc:16: undefined reference to
`operator<<(std::ostream&, Matrix const&)'
/usr/bin/ld:
/tmp/oct-3DGEBG.o:(.data.rel.ro._ZTV5ArrayIdE[_ZTV5ArrayIdE]+0x20): undefined
reference to `Array<double>::resize_fill_value() const'
/usr/bin/ld:
/tmp/oct-3DGEBG.o:(.data.rel.ro._ZTV6MArrayIdE[_ZTV6MArrayIdE]+0x20):
undefined reference to `Array<double>::resize_fill_value() const'
/usr/bin/ld: /tmp/oct-3DGEBG.o:(.data.rel.ro._ZTV7NDArray[_ZTV7NDArray]+0x20):
undefined reference to `Array<double>::resize_fill_value() const'
/usr/bin/ld: /tmp/oct-3DGEBG.o:(.data.rel.ro._ZTV6Matrix[_ZTV6Matrix]+0x20):
undefined reference to `Array<double>::resize_fill_value() const'
collect2: error: ld returned 1 exit status





    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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