> On 15/03/2018, at 04:34, Sébastien Labbé <sla...@gmail.com> wrote: > > On Ubuntu 16.04, my first attempt at running make finishes with a problem > with giac (undefined reference to `png_set_longjmp_fn') > > The log finishes with: > > ... > [giac-1.4.9.45.p2] libtool: link: g++ -g -O2 -fno-strict-aliasing > -DGIAC_GENERIC_CONSTANTS -Wl,-rpath -Wl,/home/slabbe/GitBox/sage/local/lib -o > .libs/icas icas.o -L/home/slabbe/GitBox/sage/local/lib ./.libs/libxcas.a > /home/slabbe/GitBox/sage/local/var/tmp/sage/build/giac-1.4.9.45.p2/src/src/.libs/libgiac.so > -lntl -lpari -lreadline -ltermcap -lgsl -lgslcblas -lrt -lpthread -lglpk > -ldl -lpng -lm -lmpfi /home/slabbe/GitBox/sage/local/lib/libmpfr.so -lgmp > -Wl,-rpath -Wl,/home/slabbe/GitBox/sage/local/lib > [giac-1.4.9.45.p2] > /home/slabbe/GitBox/sage/local/var/tmp/sage/build/giac-1.4.9.45.p2/src/src/.libs/libgiac.so: > undefined reference to `png_set_longjmp_fn' > [giac-1.4.9.45.p2] collect2: error: ld returned 1 exit status > [giac-1.4.9.45.p2] Makefile:579: recipe for target 'icas' failed > [giac-1.4.9.45.p2] make[5]: *** [icas] Error 1 > [giac-1.4.9.45.p2] make[5]: Leaving directory > '/home/slabbe/GitBox/sage/local/var/tmp/sage/build/giac-1.4.9.45.p2/src/src' > [giac-1.4.9.45.p2] Makefile:404: recipe for target 'all-recursive' failed > [giac-1.4.9.45.p2] make[4]: *** [all-recursive] Error 1 > [giac-1.4.9.45.p2] make[4]: Leaving directory > '/home/slabbe/GitBox/sage/local/var/tmp/sage/build/giac-1.4.9.45.p2/src' > [giac-1.4.9.45.p2] Makefile:333: recipe for target 'all' failed > [giac-1.4.9.45.p2] make[3]: *** [all] Error 2 > [giac-1.4.9.45.p2] make[3]: Leaving directory > '/home/slabbe/GitBox/sage/local/var/tmp/sage/build/giac-1.4.9.45.p2/src' > [giac-1.4.9.45.p2] > ******************************************************************************** > [giac-1.4.9.45.p2] Error building giac-1.4.9.45.p2 > [giac-1.4.9.45.p2] > ******************************************************************************** > ... > > I did > > sage -f libpng && make > > which seems to have fixed the error:
Yes that particular one has been seen in the wild before. For some reason the libpng install got broken and you are missing libpng.so inside sage. Then the linker tries a system version and if it is not libpng-1.4+ you’ll get that error because the symbol doesn’t exist before that version. I would be good to figure out why some install don’t have libpng.so though, that’s a bit of a mystery. François -- You received this message because you are subscribed to the Google Groups "sage-release" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-release+unsubscr...@googlegroups.com. To post to this group, send email to sage-release@googlegroups.com. Visit this group at https://groups.google.com/group/sage-release. For more options, visit https://groups.google.com/d/optout.