Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#9146 closed defect (fixed)

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: Merged in: sage-4.4.4.alpha0
Authors: Mike Hansen Reviewers: William Stein
Report Upstream: N/A Work issues:
Branch: Commit:
Dependencies: Stopgaps:

Description

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

Change History (10)

comment:1 Changed 10 years ago by mhansen

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

comment:2 Changed 10 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 10 years ago by was

  • Status changed from needs_review to positive_review

comment:5 Changed 10 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 10 years ago by was

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

comment:7 Changed 10 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 10 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 10 years ago by mhansen

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

comment:10 Changed 10 years ago by mhansen

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