imagemin / pngcrush-bin

pngcrush bin-wrapper that makes it seamlessly available as a local dependency

Home Page:http://pmt.sourceforge.net/pngcrush/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Pngcrush pre-build failed

rabeesh opened this issue · comments

commented

While npm installing pngcrush postinstall fails on postinstall process

> pngcrush-bin@5.0.1 postinstall /home/kitchen/build/node_modules/pngcrush-bin
> node lib/install.js

The details is

 pngcrush pre-build test failed
         ℹ compiling from source
         ✖ Error: Command failed: /bin/sh -c make && 
                mv pngcrush node_modules/pngcrush-bin/vendor/pngcrush

       pngcrush.o: In function `pngcrush_timer_stop':
       /tmp/7ba02894-7cd9-4e6b-9c98-28b264eebc9e/pngcrush.c:1615: undefined reference to `clock_gettime'
       pngcrush.o: In function `pngcrush_timer_start':
       /tmp/7ba02894-7cd9-4e6b-9c98-28b264eebc9e/pngcrush.c:1593: undefined reference to `clock_gettime'
       /tmp/7ba02894-7cd9-4e6b-9c98-28b264eebc9e/pngcrush.c:1593: undefined reference to `clock_gettime'
       /tmp/7ba02894-7cd9-4e6b-9c98-28b264eebc9e/pngcrush.c:1593: undefined reference to `clock_gettime'
       /tmp/7ba02894-7cd9-4e6b-9c98-28b264eebc9e/pngcrush.c:1593: undefined reference to `clock_gettime'
       pngcrush.o:/tmp/7ba02894-7cd9-4e6b-9c98-28b264eebc9e/pngcrush.c:1593: more undefined references to
 `clock_gettime' follow
       collect2: error: ld returned 1 exit status
       make[3]: *** [pngcrush] Error 1

I'm having the is same problem. Has anyone made any progress on it?