Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cygwin: gd-2.0.35.p4 fails to build #8257

Closed
williamstein opened this issue Feb 13, 2010 · 10 comments
Closed

cygwin: gd-2.0.35.p4 fails to build #8257

williamstein opened this issue Feb 13, 2010 · 10 comments

Comments

@williamstein
Copy link
Contributor

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

Component: porting: Cygwin

Author: Mike Hansen

Reviewer: William Stein

Merged: sage-4.4.3.alpha0

Issue created by migration from https://trac.sagemath.org/ticket/8257

@williamstein
Copy link
Contributor Author

comment:1

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.

@williamstein
Copy link
Contributor Author

comment:2

Upgrading to gd-2.0.36rc1 didn't help.

@mwhansen
Copy link
Contributor

mwhansen commented Apr 6, 2010

comment:3

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?

@mwhansen
Copy link
Contributor

mwhansen commented Apr 6, 2010

Attachment: expr.gz

@mwhansen
Copy link
Contributor

Author: Mike Hansen

@mwhansen
Copy link
Contributor

@williamstein
Copy link
Contributor Author

Merged: 4.4.3.alpha0

@williamstein
Copy link
Contributor Author

Reviewer: wstein

@sagetrac-mvngu
Copy link
Mannequin

sagetrac-mvngu mannequin commented May 27, 2010

Changed merged from 4.4.3.alpha0 to sage-4.4.3.alpha0

@sagetrac-mvngu
Copy link
Mannequin

sagetrac-mvngu mannequin commented May 27, 2010

Changed reviewer from wstein to William Stein

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants