Opened 13 years ago

Closed 12 years ago

Last modified 11 years ago

#12816 closed defect (worksforme)

Tiff compilation error

Reported by: eppo@… Owned by: waqar@…
Priority: Normal Milestone:
Component: ports Version: 1.5.0
Keywords: tiff glut Cc: nox@…
Port:

Description

when I try to install tiff port, an error occured due to GLUT framework:

--->  Building tiff with target all
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_tiff/work/tiff-3.8.2" && make all " returned error 2
Command output: /System/Library/Frameworks/GLUT.framework/Headers/glut.h:560: error: parse error before 'size'
/System/Library/Frameworks/GLUT.framework/Headers/glut.h:561: error: parse error before 'size'
/System/Library/Frameworks/GLUT.framework/Headers/glut.h:562: error: parse error before 'innerRadius'
/System/Library/Frameworks/GLUT.framework/Headers/glut.h:563: error: parse error before 'innerRadius'
/System/Library/Frameworks/GLUT.framework/Headers/glut.h:566: error: parse error before 'size'
/System/Library/Frameworks/GLUT.framework/Headers/glut.h:567: error: parse error before 'size'
/System/Library/Frameworks/GLUT.framework/Headers/glut.h:577: error: parse error before 'param'
/System/Library/Frameworks/GLUT.framework/Headers/glut.h:617: error: parse error before 'mode'
tiffgt.c: In function 'raster_draw':
tiffgt.c:285: warning: implicit declaration of function 'glDrawPixels'
tiffgt.c:285: error: 'GL_RGBA' undeclared (first use in this function)
tiffgt.c:285: error: (Each undeclared identifier is reported only once
tiffgt.c:285: error: for each function it appears in.)
tiffgt.c:285: error: 'GL_UNSIGNED_BYTE' undeclared (first use in this function)
tiffgt.c:285: error: parse error before 'GLvoid'
tiffgt.c: In function 'raster_reshape':
tiffgt.c:291: error: 'GLfloat' undeclared (first use in this function)
tiffgt.c:291: error: parse error before 'xratio'
tiffgt.c:293: error: 'xratio' undeclared (first use in this function)
tiffgt.c:293: error: 'yratio' undeclared (first use in this function)
tiffgt.c:295: warning: implicit declaration of function 'glPixelZoom'
tiffgt.c:296: warning: implicit declaration of function 'glViewport'
tiffgt.c: In function 'raster_keys':
tiffgt.c:303: warning: unused parameter 'x'
tiffgt.c:303: warning: unused parameter 'y'
tiffgt.c: In function 'raster_special':
tiffgt.c:348: warning: unused parameter 'x'
tiffgt.c:348: warning: unused parameter 'y'
make[1]: *** [tiffgt-tiffgt.o] Error 1
make: *** [all-recursive] Error 1

Error: Status 1 encountered during processing.

here is my glut.h at line 560:

extern void APIENTRY glutWireCube(GLdouble size);
extern void APIENTRY glutSolidCube(GLdouble size);
extern void APIENTRY glutWireTorus(GLdouble innerRadius, GLdouble outerRadius, GLint sides, GLint rings);
extern void APIENTRY glutSolidTorus(GLdouble innerRadius, GLdouble outerRadius, GLint sides, GLint rings);
extern void APIENTRY glutWireDodecahedron(void);
extern void APIENTRY glutSolidDodecahedron(void);
extern void APIENTRY glutWireTeapot(GLdouble size);
extern void APIENTRY glutSolidTeapot(GLdouble size);
extern void APIENTRY glutWireOctahedron(void);
extern void APIENTRY glutSolidOctahedron(void);
extern void APIENTRY glutWireTetrahedron(void);
extern void APIENTRY glutSolidTetrahedron(void);
extern void APIENTRY glutWireIcosahedron(void);
extern void APIENTRY glutSolidIcosahedron(void);

I don't think my GLUT installation is the problem but I don't know what's wrong..

Change History (8)

comment:1 Changed 13 years ago by william.allen.simpson@…

MacPorts base version 1.520

tiff 3.8.2_1+macosx

Compiled successfully today on MacOS 10.3.9, what version(s) are you running?

comment:2 Changed 13 years ago by eppo@…

I am trying to compile tiff 3.8.2 +macosx on MacOS 10.4.10

comment:3 Changed 13 years ago by nox@…

Cc: waqar@… nox@… added
Milestone: Port Bugs

comment:4 Changed 13 years ago by ryandesign (Ryan Schmidt)

Cc: eppo@… added
Owner: changed from macports-dev@… to waqar@…

comment:5 Changed 13 years ago by waqar@…

Status: newassigned

comment:6 Changed 12 years ago by jmroot (Joshua Root)

Cc: eppo@… waqar@… removed

FYI, I just installed tiff @3.8.2_1 on a ppc Tiger machine without any issues.

comment:7 Changed 12 years ago by nox@…

Resolution: worksforme
Status: assignedclosed

comment:8 Changed 11 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.