Skip to content

fix build with PDFium #1400

@revathi-murali

Description

@revathi-murali

We are upgrading to libvips 8.8.1 and looks like there are some changes made in 8.8.1 with pdfium linking and I get the following error when building vips:

`/usr/lib/gcc/x86_64-alpine-linux-musl/8.3.0/../../../../x86_64-alpine-linux-musl/bin/ld: cannot find -lc++
collect2: error: ld returned 1 exit status
make[4]: *** [Makefile:750: libvips.la] Error 1
make[3]: *** [Makefile:877: install-recursive] Error 1
make[2]: *** [Makefile:632: install-recursive] Error 1
make[1]: *** [Makefile:943: install-strip] Error 2
make: *** [Makefile:9: build] Error 2

Command used to build libvips

aclocal && automake && \
	./configure --prefix=/usr \
		--with-pdfium-includes=/usr/include/pdfium \
		--with-pdfium-libraries=/usr/lib \
		--without-python \
		--without-gsf \
		--enable-debug=no \
		--disable-dependency-tracking \
		--disable-static \
		--enable-silent-rules && \
	make -s install-strip

Since alpine uses musl libc, I am not sure if glibc/libc++ works fine on musl. Any pointers on this?

Note: We are using the following patches already

  1. https://github.com/jcupitt/docker-builds/blob/31cc11fcd160f2f722eb66841891e6d00c79da10/pdfium/data/build-pdfium.sh#L29-L33

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions