Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#8257 closed defect (fixed)

cygwin: gd-2.0.35.p4 fails to build

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

Status badges

Description

The gd-2.0.35.p4 spkg fails to build on cygwin.

Attachments (1)

expr (689 bytes) - added by mhansen 11 years ago.

Download all attachments as: .zip

Change History (8)

comment:1 Changed 11 years ago by was

The errors are:

...
gcc -shared  .libs/gd.o .libs/gdfx.o .libs/gd_security.o .libs/gd_gd.o .libs/gd_gd2.o .libs/gd_io.o .libs/gd_io_dp.o .libs/gd_gif_in.o .libs/gd_gif_out.o .libs/gd_io_file.o .libs/gd_io_ss.o .libs/gd_jpeg.o .libs/gd_png.o .libs/gd_ss.o .libs/gd_topal.o .libs/gd_wbmp.o .libs/gdcache.o .libs/gdfontg.o .libs/gdfontl.o .libs/gdfontmb.o .libs/gdfonts.o .libs/gdfontt.o .libs/gdft.o .libs/gdhelpers.o .libs/gdkanji.o .libs/gdtables.o .libs/gdxpm.o .libs/wbmp.o  -L/home/wstein/build/sage-4.3.3.alpha0/local/lib /usr/lib/libiconv.dll.a /home/wstein/build/sage-4.3.3.alpha0/local/lib/libfreetype.dll.a -lz  -o .libs/cyggd-2.dll -Wl,--enable-auto-image-base -Xlinker --out-implib -Xlinker .libs/libgd.dll.a 
Creating library file: .libs/libgd.dll.a                                                                                   
.libs/gd_png.o: In function `gdPngErrorHandler':                                                                           
/home/wstein/build/sage-4.3.3.alpha0/spkg/build/gd-2.0.35.p4/src/gd_png.c:70: undefined reference to `_png_get_error_ptr'  
.libs/gd_png.o: In function `gdPngReadData':                                                                               
/home/wstein/build/sage-4.3.3.alpha0/spkg/build/gd-2.0.35.p4/src/gd_png.c:85: undefined reference to `_png_get_io_ptr'     
/home/wstein/build/sage-4.3.3.alpha0/spkg/build/gd-2.0.35.p4/src/gd_png.c:87: undefined reference to `_png_error'          
.libs/gd_png.o: In function `gdPngWriteData':   

Putting -lpng12 in the build line makes the line complete without errors. So that's a hint.

comment:2 Changed 11 years ago by was

Upgrading to gd-2.0.36rc1 didn't help.

comment:3 Changed 11 years ago by mhansen

I believe the failure is caused by a bad version of expr. I'm attaching a wrapper script that needs to be put in $SAGE_LOCAL/bin. I'm not sure where the best place to put this script is. In the gd spkg? In something like base?

Changed 11 years ago by mhansen

comment:4 Changed 11 years ago by mhansen

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

comment:5 Changed 11 years ago by was

  • Merged in set to 4.4.3.alpha0
  • Reviewers set to wstein
  • Status changed from needs_review to positive_review

comment:6 Changed 11 years ago by was

  • Resolution set to fixed
  • Status changed from positive_review to closed

comment:7 Changed 11 years ago by mvngu

  • Merged in changed from 4.4.3.alpha0 to sage-4.4.3.alpha0
  • Reviewers changed from wstein to William Stein
Note: See TracTickets for help on using tickets.