bugGNU Octave - Bugs: bug #48822, Dependency on zlib missing from a...

 
 

bug #48822: Dependency on zlib missing from a LIBS variable

Submitter:  None
Submitted:  Thu 18 Aug 2016 10:19:45 PM UTC
   
 
Category:  Configuration and Build System Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Build Failure
Status:  Duplicate Assigned to:  None
Originator Name:  B Klemens Originator Email:  -email is unavailable-
Open/Closed:  * Closed Release:  * 4.0.3
Operating System:  * GNU/Linux Fixed Release:  None
Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Fri 27 Mar 2020 01:15:45 PM UTC, comment #2: 

Closable (duplicate)?

Michael Orlitzky <mjo>
Fri 19 Aug 2016 03:41:18 PM UTC, comment #1: 

This is a duplicate of bug #48407.  It has been fixed on the stable branch of Octave, but unless there is a 4.0.4 release you won't see it.

Octave is preparing for the 4.2.0 release in September where this has definitely been fixed.  You might want to use your own temporary fix until then.

Rik <rik5>
Group administrator
Thu 18 Aug 2016 10:19:45 PM UTC, original submission:  

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

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Digest:
   bug dependencies.

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by mjo (Posted a comment)
  • -email is unavailable- added by mjo
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by None (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2020-03-27 mjo Carbon-Copy- Added mjo
    2016-08-19 rik5 StatusNone Duplicate
        Open/ClosedOpen Closed
    2016-08-19 rik5 Dependencies- Depends on bugs #48407

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code