[Desktop-packages] [Bug 1802674] Re: libgphoto2 builds lacks a link to the math library in all Ubuntu releases since at least Xenial 16.04
Well, my Launchpad PPA is currently back to fully working. After rebuilding libgphoto2 2.5.16 (the Bionic 18.04 version) I found another missing library link: dh_shlibdeps -ldebian/libgphoto2-6/usr/lib/:debian/libgphoto2-port12/usr/lib/ dpkg-shlibdeps: warning: debian/libgphoto2-6/usr/lib/x86_64-linux-gnu/libgphoto2/2.5.16/konica_qm150.so contains an unresolvable reference to symbol exif_data_new_from_data: it's probably a plugin dpkg-shlibdeps: warning: 1 similar warning has been skipped (use -v to see it) That's the libexif library here missing in the build. I did update anew my debian/rules files in my PPA, since I did a backport of this version for Xenial 16.04. A side note here is that the debian/rules file looks poorly maintained by Debian. They apparently add libraries link by editing the CFLAGS and CXXFLAGS ... Though there is dedicated commands to do so. They missed as well a: include /usr/share/dpkg/buildflags.mk and the fully functional --parallel build with the right parameters. tested with -j12 (processor cores) and working. -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to libgphoto2 in Ubuntu. https://bugs.launchpad.net/bugs/1802674 Title: libgphoto2 builds lacks a link to the math library in all Ubuntu releases since at least Xenial 16.04 Status in libgphoto2 package in Ubuntu: New Bug description: Background: With all recent versions of GCC on GNU/Linux systems like Ubuntu, when you use the math library, you have to explicitly link to it. I am currently using Xenial 16.04 and did a recompile of source package libgphoto2. Then I got warnings fromdpkg-shlibdeps. make[1]: Entering directory '/home/ubuntu-xenial/user/Downloads/Launchpad/libgphoto2/libgphoto2-2.5.9' dh_shlibdeps -ldebian/libgphoto2-6/usr/lib/:debian/libgphoto2-port12/usr/lib/ dpkg-shlibdeps: warning: debian/libgphoto2-6/usr/lib/x86_64-linux-gnu/libgphoto2/2.5.9/ptp2.so contains an unresolvable reference to symbol sqrt: it's probably a plugin dpkg-shlibdeps: warning: 2 other similar warnings have been skipped (use -v to see them all) dpkg-shlibdeps: warning: debian/libgphoto2-6/usr/lib/x86_64-linux-gnu/libgphoto2/2.5.9/stv0680.so contains an unresolvable reference to symbol pow: it's probably a plugin dpkg-shlibdeps: warning: debian/libgphoto2-6/usr/lib/x86_64-linux-gnu/libgphoto2/2.5.9/sonix.so contains an unresolvable reference to symbol sqrt: it's probably a plugin dpkg-shlibdeps: warning: debian/libgphoto2-6/usr/lib/x86_64-linux-gnu/libgphoto2/2.5.9/jl2005c.so contains an unresolvable reference to symbol sqrt: it's probably a plugin dpkg-shlibdeps: warning: debian/libgphoto2-6/usr/lib/x86_64-linux-gnu/libgphoto2/2.5.9/digigr8.so contains an unresolvable reference to symbol sqrt: it's probably a plugin dpkg-shlibdeps: warning: debian/libgphoto2-6/usr/lib/x86_64-linux-gnu/libgphoto2/2.5.9/mars.so contains an unresolvable reference to symbol sqrt: it's probably a plugin dpkg-shlibdeps: warning: debian/libgphoto2-6/usr/lib/x86_64-linux-gnu/libgphoto2/2.5.9/sierra.so contains an unresolvable reference to symbol roundf: it's probably a plugin make[1]: Leaving directory '/home/ubuntu-xenial/user/Downloads/Launchpad/libgphoto2/libgphoto2-2.5.9' I am quite sure that sqrt is the square root function from the math library. Usually, at least with GCC version newer than ~ 2013 you have to append a -lm to link against the math library. Obviously this isn't the case: libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I.. -I.. -I../libgphoto2_port -I../libgphoto2_port -D_GPHOTO2_INTERNAL_CODE -DLOCALEDIR=\"/usr/share/locale\" -DCAMLIBS=\"/usr/lib/x86_64-linux-gnu/libgphoto2/2.5.9\" -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/libexif -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wall -Wmissing-declarations -Wmissing-prototypes -c gphoto2-filesys.c -fPIC -DPIC -o .libs/libgphoto2_la-gphoto2-filesys.o libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I.. -I.. -I../libgphoto2_port -I../libgphoto2_port -D_GPHOTO2_INTERNAL_CODE -DLOCALEDIR=\"/usr/share/locale\" -DCAMLIBS=\"/usr/lib/x86_64-linux-gnu/libgphoto2/2.5.9\" -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/libexif -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wall -Wmissing-declarations -Wmissing-prototypes -c gphoto2-filesys.c -fPIE -o libgphoto2_la-gphoto2-filesys.o >/dev/null 2>&1 at the end we should see -c gphoto2-filesys.c -fPIE -lm -o libgphoto2_la-gphoto2-filesys.o >/dev/null 2>&1 I did check in the official Ubuntu repository and you did get the same warnings: dh_shlibdeps -ldebian/libgphoto2-6/usr/lib/:debian/libgphoto2-port12/usr/lib/ dpkg-shlibdeps: warning: debian/libgphoto2-6/usr/lib/x86_64-linux-gnu/libgphoto2/2.5.9/jl2005c.so contains an unresolvable reference to symbol sqrt: it's probably a
[Desktop-packages] [Bug 1802674] Re: libgphoto2 builds lacks a link to the math library in all Ubuntu releases since at least Xenial 16.04
** Package changed: mtpaint (Ubuntu) => libgphoto2 (Ubuntu) -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to libgphoto2 in Ubuntu. https://bugs.launchpad.net/bugs/1802674 Title: libgphoto2 builds lacks a link to the math library in all Ubuntu releases since at least Xenial 16.04 Status in libgphoto2 package in Ubuntu: New Bug description: Background: With all recent versions of GCC on GNU/Linux systems like Ubuntu, when you use the math library, you have to explicitly link to it. I am currently using Xenial 16.04 and did a recompile of source package libgphoto2. Then I got warnings fromdpkg-shlibdeps. make[1]: Entering directory '/home/ubuntu-xenial/user/Downloads/Launchpad/libgphoto2/libgphoto2-2.5.9' dh_shlibdeps -ldebian/libgphoto2-6/usr/lib/:debian/libgphoto2-port12/usr/lib/ dpkg-shlibdeps: warning: debian/libgphoto2-6/usr/lib/x86_64-linux-gnu/libgphoto2/2.5.9/ptp2.so contains an unresolvable reference to symbol sqrt: it's probably a plugin dpkg-shlibdeps: warning: 2 other similar warnings have been skipped (use -v to see them all) dpkg-shlibdeps: warning: debian/libgphoto2-6/usr/lib/x86_64-linux-gnu/libgphoto2/2.5.9/stv0680.so contains an unresolvable reference to symbol pow: it's probably a plugin dpkg-shlibdeps: warning: debian/libgphoto2-6/usr/lib/x86_64-linux-gnu/libgphoto2/2.5.9/sonix.so contains an unresolvable reference to symbol sqrt: it's probably a plugin dpkg-shlibdeps: warning: debian/libgphoto2-6/usr/lib/x86_64-linux-gnu/libgphoto2/2.5.9/jl2005c.so contains an unresolvable reference to symbol sqrt: it's probably a plugin dpkg-shlibdeps: warning: debian/libgphoto2-6/usr/lib/x86_64-linux-gnu/libgphoto2/2.5.9/digigr8.so contains an unresolvable reference to symbol sqrt: it's probably a plugin dpkg-shlibdeps: warning: debian/libgphoto2-6/usr/lib/x86_64-linux-gnu/libgphoto2/2.5.9/mars.so contains an unresolvable reference to symbol sqrt: it's probably a plugin dpkg-shlibdeps: warning: debian/libgphoto2-6/usr/lib/x86_64-linux-gnu/libgphoto2/2.5.9/sierra.so contains an unresolvable reference to symbol roundf: it's probably a plugin make[1]: Leaving directory '/home/ubuntu-xenial/user/Downloads/Launchpad/libgphoto2/libgphoto2-2.5.9' I am quite sure that sqrt is the square root function from the math library. Usually, at least with GCC version newer than ~ 2013 you have to append a -lm to link against the math library. Obviously this isn't the case: libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I.. -I.. -I../libgphoto2_port -I../libgphoto2_port -D_GPHOTO2_INTERNAL_CODE -DLOCALEDIR=\"/usr/share/locale\" -DCAMLIBS=\"/usr/lib/x86_64-linux-gnu/libgphoto2/2.5.9\" -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/libexif -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wall -Wmissing-declarations -Wmissing-prototypes -c gphoto2-filesys.c -fPIC -DPIC -o .libs/libgphoto2_la-gphoto2-filesys.o libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I.. -I.. -I../libgphoto2_port -I../libgphoto2_port -D_GPHOTO2_INTERNAL_CODE -DLOCALEDIR=\"/usr/share/locale\" -DCAMLIBS=\"/usr/lib/x86_64-linux-gnu/libgphoto2/2.5.9\" -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/libexif -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wall -Wmissing-declarations -Wmissing-prototypes -c gphoto2-filesys.c -fPIE -o libgphoto2_la-gphoto2-filesys.o >/dev/null 2>&1 at the end we should see -c gphoto2-filesys.c -fPIE -lm -o libgphoto2_la-gphoto2-filesys.o >/dev/null 2>&1 I did check in the official Ubuntu repository and you did get the same warnings: dh_shlibdeps -ldebian/libgphoto2-6/usr/lib/:debian/libgphoto2-port12/usr/lib/ dpkg-shlibdeps: warning: debian/libgphoto2-6/usr/lib/x86_64-linux-gnu/libgphoto2/2.5.9/jl2005c.so contains an unresolvable reference to symbol sqrt: it's probably a plugin dpkg-shlibdeps: warning: debian/libgphoto2-6/usr/lib/x86_64-linux-gnu/libgphoto2/2.5.9/sierra.so contains an unresolvable reference to symbol roundf: it's probably a plugin dpkg-shlibdeps: warning: debian/libgphoto2-6/usr/lib/x86_64-linux-gnu/libgphoto2/2.5.9/ptp2.so contains an unresolvable reference to symbol log2: it's probably a plugin dpkg-shlibdeps: warning: 2 other similar warnings have been skipped (use -v to see them all) dpkg-shlibdeps: warning: debian/libgphoto2-6/usr/lib/x86_64-linux-gnu/libgphoto2/2.5.9/digigr8.so contains an unresolvable reference to symbol sqrt: it's probably a plugin dpkg-shlibdeps: warning: debian/libgphoto2-6/usr/lib/x86_64-linux-gnu/libgphoto2/2.5.9/mars.so contains an unresolvable reference to symbol sqrt: it's probably a plugin dpkg-shlibdeps: warning: debian/libgphoto2-6/usr/lib/x86_64-linux-gnu/libgphoto2/2.5.9/sonix.so contains an unresolvable reference to symbol sqrt: it's probably a plugin dpkg-shlibdeps: warning: