#8257: cygwin: gd-2.0.35.p4 fails to build
----------------------+-----------------------------------------------------
   Reporter:  was     |       Owner:  tbd       
       Type:  defect  |      Status:  new       
   Priority:  major   |   Milestone:  sage-4.3.3
  Component:  cygwin  |    Keywords:            
     Author:          |    Upstream:  N/A       
   Reviewer:          |      Merged:            
Work_issues:          |  
----------------------+-----------------------------------------------------

Comment(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.

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