Skip to content

compiling from source fails - what are the requirements? #108

@4levels

Description

@4levels

Hi,

I'm using NixOS for my servers and local VM's but I can't get optipng-bin to compile successfully when being installed via an npm dependency.
I've been tweaking and testing for well over a month now but all to no avail. Can you please help and tell us what specific libraries are expected to be where exactly?

This is the (consistent) error message I keep getting:

Error: Command failed: /bin/sh -c make install
pngrtran.c:99:1: warning: ‘png_rtran_ok’ defined but not used [-Wunused-function]
 png_rtran_ok(png_structrp png_ptr, int need_IHDR)
 ^~~~~~~~~~~~
ar: `u' modifier ignored since `D' is the default (see `U')
/nix/store/0y7jmqnj48ikjh37n3dl9kqw9hnn68nq-binutils-2.31.1/bin/ld: pngtest.o: undefined reference to symbol 'stdout@@GLIBC_2.2.5'
/nix/store/0y7jmqnj48ikjh37n3dl9kqw9hnn68nq-binutils-2.31.1/bin/ld: /nix/store/681354n3k44r8z90m35hm8945vsp95h1-glibc-2.27/lib/libc.so.6: error adding symbols: DSO missing from command line

Thanks a lot in advance!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions