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

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

[Octave-bug-tracker] [bug #48822] Dependency on zlib missing from a LIBS


From: anonymous
Subject: [Octave-bug-tracker] [bug #48822] Dependency on zlib missing from a LIBS variable
Date: Thu, 18 Aug 2016 22:19:47 +0000 (UTC)
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36 Vivaldi/1.2.490.43

URL:
  <http://savannah.gnu.org/bugs/?48822>

                 Summary: Dependency on zlib missing from a LIBS variable
                 Project: GNU Octave
            Submitted by: None
            Submitted on: Thu Aug 18 22:19:45 2016
                Category: Configuration and Build System
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Build Failure
                  Status: None
             Assigned to: None
         Originator Name: B Klemens
        Originator Email: address@hidden
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 4.0.3
        Operating System: GNU/Linux

    _______________________________________________________

Details:

When attempting to install Octave in my home directory (I don't have root
access), the usual "configure; make install" failed for me with errors about
linking to many zlib functions (gzputc, et al.)

Adding a -lz to the LIBS variable in src/Makefile, changing it from
LIBS = -lm
to
LIBS = -lm -lz
, led to a successful install.

The makefile includes a substitution step to replace
%OCTAVE_CONF_Z_LIBS%
with the appropriate thing (Z_LIBS = -lz), but I'm unclear where that
substitution happens.

What worked for me in the end:

./configure --prefix=$HOME/tech/root --disable-readline
sed -i '/^LIBS =/s/$/ -lz/' src/Makefile
make install





    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?48822>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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