Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MR20: Add zlib as a gap dependency #28033

Closed
sagetrac-gitlab-bot mannequin opened this issue Jun 20, 2019 · 8 comments
Closed

MR20: Add zlib as a gap dependency #28033

sagetrac-gitlab-bot mannequin opened this issue Jun 20, 2019 · 8 comments

Comments

@sagetrac-gitlab-bot
Copy link
Mannequin

sagetrac-gitlab-bot mannequin commented Jun 20, 2019

Isuru Fernando (@isuruf) opened a merge request at https://gitlab.com/sagemath/sage/merge_requests/20.

This ticket lists zlib as a dependency of gap,
since libgap.so links to zlib.

CC: @slel

Component: build

Keywords: days101, gap, zlib

Author: Isuru Fernando

Branch/Commit: e0f8543

Reviewer: Dima Pasechnik

Issue created by migration from https://trac.sagemath.org/ticket/28033

@sagetrac-gitlab-bot sagetrac-gitlab-bot mannequin added this to the sage-8.9 milestone Jun 20, 2019
@isuruf

This comment has been minimized.

@slel
Copy link
Member

slel commented Jun 20, 2019

Changed keywords from none to days101, gap, zlib

@slel

This comment has been minimized.

@slel
Copy link
Member

slel commented Jun 20, 2019

comment:3

Checked that libgap indeed links to zlib.

On macOS:

$ sw_vers
ProductName:    Mac OS X
ProductVersion: 10.10.5
BuildVersion:   14F2511

$ ./sage --version
SageMath version 8.8.rc2, Release Date: 2019-06-19

$ otool -L local/lib/libgap.dylib
local/lib/libgap.dylib:
    /opt/s/sage/local/lib/libgap.0.dylib (compatibility version 1.0.0, current version 1.0.0)
    /opt/s/sage/local/lib/libgmp.23.dylib (compatibility version 24.0.0, current version 24.3.0)
    /opt/s/sage/local/lib/libz.1.dylib (compatibility version 1.0.0, current version 1.2.11)
    /opt/s/sage/local/lib/libreadline.6.dylib (compatibility version 6.0.0, current version 6.3.0)
    /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1213.0.0)

On Debian:

$ lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description:    Debian GNU/Linux 9.9 (stretch)
Release:    9.9
Codename:   stretch

$ ./sage --version
SageMath version 8.8.rc2, Release Date: 2019-06-19

$ readelf -d local/lib/libgap.so

Dynamic section at offset 0x1dd360 contains 32 entries:
  Tag        Type                         Name/Value
 0x0000000000000001 (NEEDED)             Shared library: [libgmp.so.23]
 0x0000000000000001 (NEEDED)             Shared library: [libz.so.1]
 0x0000000000000001 (NEEDED)             Shared library: [libreadline.so.6]
 0x0000000000000001 (NEEDED)             Shared library: [libm.so.6]
 0x0000000000000001 (NEEDED)             Shared library: [libdl.so.2]
 0x0000000000000001 (NEEDED)             Shared library: [libutil.so.1]
 0x0000000000000001 (NEEDED)             Shared library: [libc.so.6]
 0x000000000000000e (SONAME)             Library soname: [libgap.so.0]
 0x000000000000001d (RUNPATH)            Library runpath: [/home/lelievre/s/sage/local/lib]
 0x000000000000000c (INIT)               0x536a0
 0x000000000000000d (FINI)               0x18253c
 0x0000000000000019 (INIT_ARRAY)         0x3db008
 0x000000000000001b (INIT_ARRAYSZ)       8 (bytes)
 0x000000000000001a (FINI_ARRAY)         0x3db010
 0x000000000000001c (FINI_ARRAYSZ)       8 (bytes)
 0x000000006ffffef5 (GNU_HASH)           0x1f0
 0x0000000000000005 (STRTAB)             0x1b450
 0x0000000000000006 (SYMTAB)             0x66c0
 0x000000000000000a (STRSZ)              53655 (bytes)
 0x000000000000000b (SYMENT)             24 (bytes)
 0x0000000000000003 (PLTGOT)             0x3e0000
 0x0000000000000002 (PLTRELSZ)           28608 (bytes)
 0x0000000000000014 (PLTREL)             RELA
 0x0000000000000017 (JMPREL)             0x4c6e0
 0x0000000000000007 (RELA)               0x2a258
 0x0000000000000008 (RELASZ)             140424 (bytes)
 0x0000000000000009 (RELAENT)            24 (bytes)
 0x000000006ffffffe (VERNEED)            0x2a1b8
 0x000000006fffffff (VERNEEDNUM)         4
 0x000000006ffffff0 (VERSYM)             0x285e8
 0x000000006ffffff9 (RELACOUNT)          3443
 0x0000000000000000 (NULL)               0x0

@dimpase
Copy link
Member

dimpase commented Jun 21, 2019

comment:4

OK, indeed, zlib usage is a recent change in GAP, a year ago it was merged in their master.
gap-system/gap#2509

as everybody nowdays builds with zlib available from the system (and Sage builds zlib early on otherwise), we didn't notice the need.

@fchapoton
Copy link
Contributor

comment:5

reviewer name is missing

@dimpase
Copy link
Member

dimpase commented Jun 21, 2019

Reviewer: Dima Pasechnik

@vbraun
Copy link
Member

vbraun commented Jun 28, 2019

Changed branch from u/galois/mrs/20/patch-1 to e0f8543

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants