Ticket #9146 (closed defect: fixed)

Opened 3 years ago

Last modified 3 years ago

cygwin: gd doesn't correctly link in libpng with sage-4.4.3.

Reported by: was Owned by: tbd
Priority: blocker Milestone: sage-4.4.4
Component: porting: Cygwin Keywords:
Cc: Work issues:
Report Upstream: N/A Reviewers: William Stein
Authors: Mike Hansen Merged in: sage-4.4.4.alpha0
Dependencies: Stopgaps:

Description

The fix involves copying over $SAGE_LOCAL/bin/cygpng12-0.dll to $SAGE_LOCAL/lib/

Change History

comment:1 Changed 3 years ago by mhansen

  • Status changed from new to needs_review
  • Authors set to Mike Hansen

comment:2 Changed 3 years ago by was

I tried installing on linux and:

make[2]: Leaving directory `/mnt/usb1/scratch/wstein/build/sage-4.4.3.rc0/spkg/build/libpng-1.2.35.p2/src'
make[1]: Leaving directory `/mnt/usb1/scratch/wstein/build/sage-4.4.3.rc0/spkg/build/libpng-1.2.35.p2/src'
./spkg-install: line 55: syntax error near unexpected token `fi'
./spkg-install: line 55: `fi'

comment:4 Changed 3 years ago by was

  • Status changed from needs_review to positive_review

comment:5 Changed 3 years ago by was

  • Status changed from positive_review to needs_work

It doesn't work yet on Cygwin itself (on a clean install):

make[2]: Leaving directory `/home/wstein/sage-4.4.3/spkg/build/libpng-1.2.35.p2/src'
cp: cannot stat `/home/wstein/sage-4.4.3/local/bin/cygpng12-0.dll': No such file or directory
Error installing libpng

real    6m25.233s
user    1m28.601s
sys     4m59.953s

comment:6 Changed 3 years ago by was

The above failure report is on cygwin upgraded to the latest version as of june 4, 2010.

comment:7 Changed 3 years ago by mhansen

  • Status changed from needs_work to needs_review

The build completes successfully once "file" is installed in winxp3. If "file" is not installed, then Cygwin has a difficult time making shared libraries. This is why this wasn't an issue initially with my sage-4.3.5 install in winxp2.

We need to make "file" a preqreq.

comment:8 Changed 3 years ago by was

  • Status changed from needs_review to positive_review

Yes, winxp3 is missing a lot of prerequisites. MPIR also fails to build there.

comment:9 Changed 3 years ago by mhansen

  • Status changed from positive_review to closed
  • Reviewers set to William Stein
  • Resolution set to fixed

comment:10 Changed 3 years ago by mhansen

  • Merged in set to sage-4.4.4.alpha0
Note: See TracTickets for help on using tickets.