#6456: Upgrade cvxopt in sage from 0.9 to 1.1.2
--------------------------------+-------------------------------------------
   Reporter:  was               |       Owner:  mabshoff  
       Type:  defect            |      Status:  needs_info
   Priority:  major             |   Milestone:  sage-4.5.2
  Component:  packages          |    Keywords:            
     Author:  schilly, dimpase  |    Upstream:  N/A       
   Reviewer:                    |      Merged:            
Work_issues:                    |  
--------------------------------+-------------------------------------------

Comment(by pjeremy):

 6456-freebsd-spkg-install.patch adds support for FreeBSD (this is a port
 of the patch in #9601).  I have compile-tested this but not yet tried to
 use the resultant module.

 Note that further changes are necessary for cvxopt-1.1.2.p1.spkg to work
 on most 64-bit OSs.
 Compiling in FreeBSD/amd64 (with or without the above patch) gives:
 {{{
 gcc -fno-strict-aliasing -g -O2 -DNDEBUG -g -O3 -Wall -Wstrict-prototypes
 -I/mnt/sage-4.5/local/include -fPIC -DDLONG=
 -I/mnt/sage-4.5/local/include/python2.6 -c C/misc_solvers.c -o
 build/temp.freebsd-8.1-PRERELEASE-amd64-2.6/C/misc_solvers.o
 C/misc_solvers.c: In function 'scale':
 C/misc_solvers.c:152:13: warning: passing argument 1 of 'dscal_' from
 incompatible pointer type
 C/misc_solvers.c:32:13: note: expected 'int *' but argument is of type
 'Py_ssize_t *'
 C/misc_solvers.c:152:13: warning: passing argument 4 of 'dscal_' from
 incompatible pointer type
 C/misc_solvers.c:32:13: note: expected 'int *' but argument is of type
 'Py_ssize_t *'
 C/misc_solvers.c:155:13: warning: passing argument 3 of 'dgemv_' from
 incompatible pointer type
 C/misc_solvers.c:39:13: note: expected 'int *' but argument is of type
 'Py_ssize_t *'
 C/misc_solvers.c:156:9: warning: passing argument 1 of 'dscal_' from
 incompatible pointer type
 C/misc_solvers.c:32:13: note: expected 'int *' but argument is of type
 'Py_ssize_t *'
 C/misc_solvers.c:156:9: warning: passing argument 4 of 'dscal_' from
 incompatible pointer type
 C/misc_solvers.c:32:13: note: expected 'int *' but argument is of type
 'Py_ssize_t *'
 C/misc_solvers.c:158:13: warning: passing argument 2 of 'dger_' from
 incompatible pointer type
 C/misc_solvers.c:41:13: note: expected 'int *' but argument is of type
 'Py_ssize_t *'
 C/misc_solvers.c:160:13: warning: passing argument 1 of 'dscal_' from
 incompatible pointer type
 C/misc_solvers.c:32:13: note: expected 'int *' but argument is of type
 'Py_ssize_t *'
 C/misc_solvers.c:160:13: warning: passing argument 4 of 'dscal_' from
 incompatible pointer type
 C/misc_solvers.c:32:13: note: expected 'int *' but argument is of type
 'Py_ssize_t *'
 C/misc_solvers.c: In function 'pack2':
 C/misc_solvers.c:459:17: warning: passing argument 3 of 'dlacpy_' from
 incompatible pointer type
 C/misc_solvers.c:49:13: note: expected 'int *' but argument is of type
 'Py_ssize_t *'
 C/misc_solvers.c:459:17: warning: passing argument 5 of 'dlacpy_' from
 incompatible pointer type
 C/misc_solvers.c:49:13: note: expected 'int *' but argument is of type
 'Py_ssize_t *'
 C/misc_solvers.c:461:17: warning: passing argument 1 of 'dscal_' from
 incompatible pointer type
 C/misc_solvers.c:32:13: note: expected 'int *' but argument is of type
 'Py_ssize_t *'
 C/misc_solvers.c:463:17: warning: passing argument 3 of 'dlacpy_' from
 incompatible pointer type
 C/misc_solvers.c:49:13: note: expected 'int *' but argument is of type
 'Py_ssize_t *'
 C/misc_solvers.c:463:17: warning: passing argument 7 of 'dlacpy_' from
 incompatible pointer type
 C/misc_solvers.c:49:13: note: expected 'int *' but argument is of type
 'Py_ssize_t *'
 }}}

 `Py_ssize_t` is typedef'd from `ssize_t`, which is `long` on at least
 FreeBSD, Linux and Solaris.  I believe this is a blocking issue.

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/6456#comment:50>
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.

Reply via email to