akinmetin edited a comment on issue #1672:
URL:
https://github.com/apache/incubator-pagespeed-ngx/issues/1672#issuecomment-636364852
@Lofesa thanks it solved, but now I get this error:
```
/usr/lib/gcc/x86_64-alpine-linux-musl/9.2.0/../../../../x86_64-alpine-linux-musl/bin/ld:
opngreduc.c:(.text.opng_reduce_image+0x6bf): undefined reference to
png_set_IHDR
/usr/lib/gcc/x86_64-alpine-linux-musl/9.2.0/../../../../x86_64-alpine-linux-musl/bin/ld:
opngreduc.c:(.text.opng_reduce_image+0x8f1): undefined reference to
png_free_data
/usr/lib/gcc/x86_64-alpine-linux-musl/9.2.0/../../../../x86_64-alpine-linux-musl/bin/ld:
opngreduc.c:(.text.opng_reduce_image+0x901): undefined reference to
png_set_invalid
/usr/lib/gcc/x86_64-alpine-linux-musl/9.2.0/../../../../x86_64-alpine-linux-musl/bin/ld:
opngreduc.c:(.text.opng_reduce_image+0x921): undefined reference to
png_get_rows
collect2: error: ld returned 1 exit status
make[1]: *** [objs/Makefile:369: objs/nginx] Error 1
make: *** [Makefile:11: install] Error 2
The command '/bin/sh -c tar zxf ../nginx-${NGINX_VERSION}.tar.gz
--strip-components=1 -C . && ./configure ${NGINX_BUILD_CONFIG}
--add-module=/usr/src/ngxpagespeed
--with-ld-opt="-Wl,-z,relro,--start-group -lapr-1 -laprutil-1 -licudata -licuuc
-lpng -lturbojpeg -ljpeg" && make install -j nproc' returned a non-zero
code: 2
```
Should I modify this line too?
I tried to remove `-lpng` but still failing.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]