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

Compile error on centos 5 #48

Closed
samlabs821 opened this issue Oct 27, 2014 · 1 comment
Closed

Compile error on centos 5 #48

samlabs821 opened this issue Oct 27, 2014 · 1 comment

Comments

@samlabs821
Copy link

[email protected] postinstall /usr/local/lib/node_modules/grunt-contrib-imagemin/node_modules/imagemin/node_modules/imagemin-optipng/node_modules/optipng-bin
node lib/install.js

 warn : optipng pre-build test failed
 info : compiling from source
error : Error: Command failed: pngrtran.c:98: warning: ‘png_rtran_ok’ defined but not used

pngxmem.c: In function ‘pngx_malloc_rows_extended’:
pngxmem.c:37: warning: comparison is always false due to limited range of data type
ratio.c:25: error: conflicting types for ‘opng_longest_impl_t’
ratio.c:24: error: previous declaration of ‘opng_longest_impl_t’ was here
ratio.c:76: error: expected declaration specifiers or ‘...’ before ‘opng_ulongest_impl_t’
ratio.c:76: error: expected declaration specifiers or ‘...’ before ‘opng_ulongest_impl_t’
ratio.c: In function ‘opng_sprint_uratio_impl’:
ratio.c:90: error: ‘opng_ulongest_impl_t’ undeclared (first use in this function)
ratio.c:90: error: (Each undeclared identifier is reported only once
ratio.c:90: error: for each function it appears in.)
ratio.c:90: error: expected ‘;’ before ‘integer_part’
ratio.c:95: error: ‘denom’ undeclared (first use in this function)
ratio.c:97: error: ‘num’ undeclared (first use in this function)
ratio.c:117: error: ‘integer_part’ undeclared (first use in this function)
ratio.c:118: error: ‘remainder’ undeclared (first use in this function)
ratio.c: In function ‘opng_ulratio_to_factor_string’:
ratio.c:158: error: ‘opng_ulongest_impl_t’ undeclared (first use in this function)
ratio.c:158: error: expected ‘;’ before ‘num’
ratio.c:159: error: expected ‘;’ before ‘denom’
ratio.c:160: error: ‘num’ undeclared (first use in this function)
ratio.c:160: error: ‘denom’ undeclared (first use in this function)
ratio.c:160: error: too many arguments to function ‘opng_sprint_uratio_impl’
ratio.c:156: warning: unused parameter ‘ratio’
ratio.c: In function ‘opng_ulratio_to_percent_string’:
ratio.c:170: error: ‘opng_ulongest_impl_t’ undeclared (first use in this function)
ratio.c:170: error: expected ‘;’ before ‘num’
ratio.c:171: error: expected ‘;’ before ‘denom’
ratio.c:172: error: ‘num’ undeclared (first use in this function)
ratio.c:172: error: ‘denom’ undeclared (first use in this function)
ratio.c:172: error: too many arguments to function ‘opng_sprint_uratio_impl’
ratio.c:168: warning: unused parameter ‘ratio’
make[1]: *** [ratio.o] Error 1
make: *** [install] Error 2

at ChildProcess.exithandler (child_process.js:648:15)
at ChildProcess.emit (events.js:98:17)
at maybeClose (child_process.js:756:16)
at Socket.<anonymous> (child_process.js:969:11)
at Socket.emit (events.js:95:17)
at Pipe.close (net.js:465:12)
@kevva
Copy link
Contributor

kevva commented Oct 27, 2014

#40.

@kevva kevva closed this as completed Oct 27, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants