#7851: libz igoresSAGE64 other than on OS X
----------------------------+-----------------------------------------------
Reporter: drkirkby | Owner: drkirkby
Type: defect | Status: needs_info
Priority: major | Milestone: sage-4.3.2
Component: porting | Keywords:
Author: David Kirkby | Upstream: Reported upstream. Little or no
feedback.
Reviewer: | Merged:
Work_issues: |
----------------------------+-----------------------------------------------
Changes (by drkirkby):
* status: needs_work => needs_info
* upstream: N/A => Reported upstream. Little or no feedback.
Comment:
This problem is not as simple as I first thought. Using the zlib source
code, without any CFLAGS, but with the --shared option, we get the message
the shared library is built.
{{{
drkir...@swan:[~/sage-4.3.1.alpha1/spkg/standard/zlib-1.2.3.p5/src] $
./configure --shared
Checking for shared library support...
Building shared library libz.so.1.2.3 with /usr/local/gcc-4.4.1-sun-
linker/bin/gcc.
Checking for unistd.h... Yes.
Checking whether to use vs[n]printf() or s[n]printf()... using
vs[n]printf()
Checking for vsnprintf() in stdio.h... Yes.
Checking for return value of vsnprintf()... Yes.
Checking for errno.h... Yes.
Checking for mmap support... Yes.
}}}
Trying to build in 64-bit mode, the shared library is not built.
{{{
drkir...@swan:[~/sage-4.3.1.alpha1/spkg/standard/zlib-1.2.3.p5/src] $
CFLAGS=-m64 ./configure --shared
Checking for shared library support...
No shared library support; try without defining CC and CFLAGS
Building static library libz.a version 1.2.3 with /usr/local/gcc-4.4.1
-sun-linker/bin/gcc.
Checking for unistd.h... Yes.
Checking whether to use vs[n]printf() or s[n]printf()... using
vs[n]printf()
Checking for vsnprintf() in stdio.h... Yes.
Checking for return value of vsnprintf()... Yes.
Checking for errno.h... Yes.
Checking for mmap support... Yes.
}}}
I've reported this issue to the email address zlib at gzip.org and are
awaiting feedback. I don't think it will be easy to progress on this
until that point.
Dave
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/7851#comment:3>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en.