GNOME Bugzilla – Bug 314513
undefined reference to `gimp_matrix2_get_type'
Last modified: 2008-01-15 14:04:17 UTC
Distribution/Version: Debian testing compiling gimp with garnome-2.11-20050819.1645 (includes gimp-2.3.3) cc -g -g -I/developer/garnome/include -O2 -pipe -Wall -Wl,--export-dynamic -o .libs/faxg3 faxg3.o g3.o run_tbl.o -L/developer/garnome/lib ../../libgimp/.libs/libgimp-2.0.so ../../libgimpcolor/.libs/libgimpcolor-2.0.so ../../libgimpbase/.libs/libgimpbase-2.0.so /developer/garnome/lib/libgobject-2.0.so /developer/garnome/lib/libglib-2.0.so -Wl,--rpath -Wl,/developer/garnome/lib /developer/garnome-2.11-20050819.1645/fifth-toe/gimp/work/main.d/gimp-2.3.3/libgimpconfig/.libs/libgimpconfig-2.0.so.0: undefined reference to `gimp_matrix2_get_type' collect2: ld returned 1 exit status make[4]: *** [faxg3] Error 1
There's probably just a newly added dependency missing in the Makefiles. If you want to come up with a patch, that would increase the likelihood that this gets fixed soon.
Actually, this is libtool brokenness on linux. rm /developer/garnome/lib/*.la will fix the problem. libtool is stupid enough to pull in the installed libs, even tho it has been told to use the ones from the source tree.
Well, we should find out if we need the explicit dependencies for any supported platform. Otherwise, we better get rid of them all over the place.
I tried to make gimp 2.3.5 from gimp-2.3.5.tar.bz2 on SuSE Linux 10.0 and ran into the same error: gcc -g -O2 -Wall -o .libs/faxg3 faxg3.o g3.o run_tbl.o ../../libgimp/.libs/libgimp-2.0.so ../../libgimpcolor/.libs/libgimpcolor-2.0.so ../../libgim pbase/.libs/libgimpbase-2.0.so -L/opt/gnome/lib /opt/gnome/lib/libgobject-2.0.so /opt/gnome/lib/libglib-2.0.so /home/XXX/gimp-2.3.5/libgimpconfig/.libs/libgimpconfig-2.0.so.0: undefined reference to `gimp_matrix2_get_type' Any other information needed? Let me know! This advice 'rm /developer/garnome/lib/*.la' doesn't help because I do not have such a directory. Help please!
In your case it would be 'rm /opt/gnome/lib/*.la'.
Thanks! Three of them I had to copy back again: libglib-2.0.la libgobject-2.0.la libgtk-x11-2.0.la Otherwise make failed.
In any case, this isn't really a GIMP problem -- resolving accordingly.