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

Pngcrush pre-build failed #24

Open
rabeesh opened this issue Aug 20, 2020 · 1 comment
Open

Pngcrush pre-build failed #24

rabeesh opened this issue Aug 20, 2020 · 1 comment

Comments

@rabeesh
Copy link

rabeesh commented Aug 20, 2020

While npm installing pngcrush postinstall fails on postinstall process

> [email protected] 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
@robertdunaway
Copy link

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

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