Temporary binary link error on Debian 8 stable
Submitted by med..@..il.com
Link to original bug (#779204)
Description
Hello again, everyone.
Sorry to bring another issue to your attention so soon after you fixed 779089, but this new error was shown after I pulled the latest changes today. As before, I'm building against exiv2-0.25 and am using a custom prefix. Here's the output of make:
Making all in .
make[1]: Entering directory '/home/ricky/bin/gexiv2'
GISCAN GExiv2-0.10.gir
./.libs/libgexiv2.so: undefined reference to `Exiv2::ImageFactory::open(std::string const&)'
collect2: error: ld returned 1 exit status
linking of temporary binary failed: Command '['/bin/bash', './libtool', '--mode=link', '--tag=CC', '--silent', 'cc', '-o', '/home/ricky/bin/gexiv2/tmp-introspect6rDHoC/GExiv2-0.10', '-export-dynamic', '/home/ricky/bin/gexiv2/tmp-introspect6rDHoC/GExiv2-0.10.o', '-L.', 'libgexiv2.la', '-L/home/ricky/bin/gimp-clean/install/lib', '-lgio-2.0', '-lgobject-2.0', '-Wl,--export-dynamic', '-lgmodule-2.0', '-pthread', '-lglib-2.0']' returned non-zero exit status 1
/usr/share/gobject-introspection-1.0/Makefile.introspection:153: recipe for target 'GExiv2-0.10.gir' failed
make[1]: *** [GExiv2-0.10.gir] Error 1
make[1]: Leaving directory '/home/ricky/bin/gexiv2'
Makefile:969: recipe for target 'all-recursive' failed
make: *** [all-recursive] Error 1
And in case you need the extra info, here's the output of make V=1:
Making all in .
make[1]: Entering directory '/home/ricky/bin/gexiv2'
/usr/bin/g-ir-scanner --symbol-prefix=gexiv2 --add-include-path= --pkg-export=gexiv2 --warn-all --warn-error --namespace=GExiv2 --nsversion=0.10 --libtool="/bin/bash ./libtool" --include=GObject-2.0 --library=libgexiv2.la --cflags-begin -I. -Igexiv2 --cflags-end gexiv2/gexiv2.h gexiv2/gexiv2-metadata.h gexiv2/gexiv2-preview-properties.h gexiv2/gexiv2-preview-image.h gexiv2/gexiv2-log.h gexiv2/gexiv2-startup.h gexiv2/gexiv2-version.h libgexiv2.la --output GExiv2-0.10.gir
g-ir-scanner: compile: cc -Wno-deprecated-declarations -pthread -I/home/ricky/bin/gimp-clean/install/include/glib-2.0 -I/home/ricky/bin/gimp-clean/install/lib/glib-2.0/include -I/home/ricky/bin/gimp-clean/install/include/glib-2.0 -I/home/ricky/bin/gimp-clean/install/lib/glib-2.0/include -c -o /home/ricky/bin/gexiv2/tmp-introspect4NWA1w/GExiv2-0.10.o /home/ricky/bin/gexiv2/tmp-introspect4NWA1w/GExiv2-0.10.c
g-ir-scanner: link: /bin/bash ./libtool --mode=link --tag=CC cc -o /home/ricky/bin/gexiv2/tmp-introspect4NWA1w/GExiv2-0.10 -export-dynamic /home/ricky/bin/gexiv2/tmp-introspect4NWA1w/GExiv2-0.10.o -L. libgexiv2.la -L/home/ricky/bin/gimp-clean/install/lib -lgio-2.0 -lgobject-2.0 -Wl,--export-dynamic -lgmodule-2.0 -pthread -lglib-2.0
libtool: link: cc -o /home/ricky/bin/gexiv2/tmp-introspect4NWA1w/.libs/GExiv2-0.10 /home/ricky/bin/gexiv2/tmp-introspect4NWA1w/GExiv2-0.10.o -Wl,--export-dynamic -pthread -Wl,--export-dynamic -L. ./.libs/libgexiv2.so -L/home/ricky/bin/gimp-clean/install/lib /home/ricky/bin/gimp-clean/install/lib/libgio-2.0.so /home/ricky/bin/gimp-clean/install/lib/libgobject-2.0.so /home/ricky/bin/gimp-clean/install/lib/libgmodule-2.0.so /home/ricky/bin/gimp-clean/install/lib/libglib-2.0.so -pthread -Wl,-rpath -Wl,/home/ricky/bin/gimp-clean/install/lib
./.libs/libgexiv2.so: undefined reference to `Exiv2::ImageFactory::open(std::string const&)'
collect2: error: ld returned 1 exit status
linking of temporary binary failed: Command '['/bin/bash', './libtool', '--mode=link', '--tag=CC', 'cc', '-o', '/home/ricky/bin/gexiv2/tmp-introspect4NWA1w/GExiv2-0.10', '-export-dynamic', '/home/ricky/bin/gexiv2/tmp-introspect4NWA1w/GExiv2-0.10.o', '-L.', 'libgexiv2.la', '-L/home/ricky/bin/gimp-clean/install/lib', '-lgio-2.0', '-lgobject-2.0', '-Wl,--export-dynamic', '-lgmodule-2.0', '-pthread', '-lglib-2.0']' returned non-zero exit status 1
/usr/share/gobject-introspection-1.0/Makefile.introspection:153: recipe for target 'GExiv2-0.10.gir' failed
make[1]: *** [GExiv2-0.10.gir] Error 1
make[1]: Leaving directory '/home/ricky/bin/gexiv2'
Makefile:969: recipe for target 'all-recursive' failed
make: *** [all-recursive] Error 1
Thank you very much for fixing 779089 so quickly, and for any help you can give on this.
Version: 0.10.x
Edited by Jens Georg