Build failure with external poly2tri-c dependency
I was building with all features and dependencies enabled, with external poly2tri-c.
Message:
Building GEGL with prefix=/gnu/store/wwphkif3waly4l8g1y8yh5bchwkzd6iy-gegl-0.4.24
Optional features:
GEGL docs: true
Build workshop: true
Vala support: true
Optional dependencies:
asciidoc: true
enscript: true
mrg: true
Ruby: true
Luajit: true
Cairo: true
Pango: true
pangocairo: true
poppler: true
GDKPixbuf: true
JPEG: true
PNG: true
OpenEXR: true
rsvg: true
SDL: true
libraw: true
Jasper: true
av libs: true
V4L: true
V4L2: true
spiro: true
EXIV: true
gexiv2: true
umfpack: true
TIFF true
webp: true
poly2tri-c: true (pkgconfig)
Build targets in project: 266
Then, I got the following error.
FAILED: seamless-clone/libgegl-sc-0.4.so
gcc -o seamless-clone/libgegl-sc-0.4.so 'seamless-clone/64fa1df@@gegl-sc-0.4@sha/sc-context.c.o' 'seamless-clone/64fa1df@@gegl-sc-0.4@sha/sc-outline.c.o' 'seamless-clone/64fa1df@@gegl-sc-0.4@sha/sc-sample.c.o' -Wl,--as-needed -Wl,--no-undefined -shared -fPIC -Wl,--start-group -Wl,-soname,libgegl-sc-0.4.so -Wl,-rpath=/gnu/store/wwphkif3waly4l8g1y8yh5bchwkzd6iy-gegl-0.4.24/lib gegl/libgegl-0.4.so.0.423.1 /gnu/store/h2gllazsk0zfa1nppw7h1h1dc8mv2lgq-babl-0.1.78/lib/libbabl-0.1.so /gnu/store/5xgf5kslc0kvgvp24vp96yynlnhp38xz-glib-2.64.3/lib/libglib-2.0.so /gnu/store/5xgf5kslc0kvgvp24vp96yynlnhp38xz-glib-2.64.3/lib/libgobject-2.0.so /gnu/store/wlsza6jc9m4q429f0gypxh7rdrq4wx6i-poly2tri-c-0.1.0/lib/libpoly2tri-c-0.1.so -Wl,--end-group '-Wl,-rpath,$ORIGIN/../gegl' -Wl,-rpath-link,/tmp/guix-build-gegl-0.4.24.drv-0/build/gegl
ld: seamless-clone/64fa1df@@gegl-sc-0.4@sha/sc-sample.c.o: in function `gegl_sc_compute_sample_list_part':
/tmp/guix-build-gegl-0.4.24.drv-0/build/../gegl-0.4.24/seamless-clone/sc-sample.c:59: undefined reference to `acos'
ld: /tmp/guix-build-gegl-0.4.24.drv-0/build/../gegl-0.4.24/seamless-clone/sc-sample.c:63: undefined reference to `pow'
ld: /tmp/guix-build-gegl-0.4.24.drv-0/build/../gegl-0.4.24/seamless-clone/sc-sample.c:64: undefined reference to `pow'
ld: seamless-clone/64fa1df@@gegl-sc-0.4@sha/sc-sample.c.o: in function `gegl_sc_compute_sample_list_weights':
/tmp/guix-build-gegl-0.4.24.drv-0/build/../gegl-0.4.24/seamless-clone/sc-sample.c:135: undefined reference to `acos'
ld: /tmp/guix-build-gegl-0.4.24.drv-0/build/../gegl-0.4.24/seamless-clone/sc-sample.c:135: undefined reference to `tan'
collect2: error: ld returned 1 exit status
Edited by Raghav Gururajan