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

 
 

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

Submitted by:  None
Submitted on:  Thu 18 Aug 2016 10:19:45 PM UTC  
 
Category: Configuration and Build SystemSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Build Failure
Status: DuplicateAssigned to: None
Originator Name: B KlemensOriginator Email: -unavailable-
Open/Closed: ClosedRelease: 4.0.3
Operating System: GNU/Linux

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

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>
Project 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 File(s):
   
   
Comment:
   

No files currently attached

 

Digest:
   bug dependencies.

Items that depend on this one: None found

 

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

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 19 Aug 2016 03:41:18 PM UTCrik5StatusNone=>Duplicate
      Open/ClosedOpen=>Closed
    Fri 19 Aug 2016 03:39:21 PM UTCrik5Dependencies-=>Depends on bugs #48407

    Back to the top


    Powered by Savane 3.1-cleanup1