undefined reference to `ILBM_read' - jiapei100 - 07-12-2023
Hi, all:
I'm trying to build gimp-2.99.16 under Ubuntu 22.04, but obtained the following ERROR messages:
Code:
[2192/2522] cc -o plug-ins/common/file-iff plug-ins/common/file-iff.p/file-iff.c.o -Wl,--as-needed -Wl,--no-undefined '-Wl,-rpath,$ORIGIN/../../libgimp:$ORIGIN/../../libgimpbase:$ORIGIN/../../libgimpcolor:$ORIGIN/../../libgimpconfig:$ORIGIN/../../libgimpmath:$ORIGIN/../../libgimpmodule:$ORIGIN/../../libgimpwidgets' -Wl,-rpath-link,....../gimp/builddir/libgimp -Wl,-rpath-link,....../gimp/builddir/libgimpbase -Wl,-rpath-link,....../gimp/builddir/libgimpcolor -Wl,-rpath-link,....../gimp/builddir/libgimpconfig -Wl,-rpath-link,....../gimp/builddir/libgimpmath -Wl,-rpath-link,....../gimp/builddir/libgimpmodule -Wl,-rpath-link,....../gimp/builddir/libgimpwidgets -Wl,--start-group libgimp/libgimp-3.0.so.0.9900.17 libgimpbase/libgimpbase-3.0.so.0.9900.17 libgimpcolor/libgimpcolor-3.0.so.0.9900.17 libgimpconfig/libgimpconfig-3.0.so.0.9900.17 libgimpmath/libgimpmath-3.0.so.0.9900.17 libgimp/libgimpui-3.0.so.0.9900.17 libgimpwidgets/libgimpwidgets-3.0.so.0.9900.17 /usr/lib/x86_64-linux-gnu/libgtk-3.so /usr/lib/x86_64-linux-gnu/libgdk-3.so /usr/lib/x86_64-linux-gnu/libpangocairo-1.0.so /usr/lib/x86_64-linux-gnu/libpango-1.0.so /usr/lib/x86_64-linux-gnu/libharfbuzz.so /usr/lib/x86_64-linux-gnu/libatk-1.0.so /usr/lib/x86_64-linux-gnu/libcairo-gobject.so /usr/lib/x86_64-linux-gnu/libcairo.so /usr/lib/x86_64-linux-gnu/libgdk_pixbuf-2.0.so /usr/lib/x86_64-linux-gnu/libgio-2.0.so /usr/lib/x86_64-linux-gnu/libgobject-2.0.so /usr/lib/x86_64-linux-gnu/libglib-2.0.so /usr/lib/x86_64-linux-gnu/libgegl-0.4.so /usr/lib/x86_64-linux-gnu/libgegl-npd-0.4.so -Wl,--export-dynamic /usr/lib/x86_64-linux-gnu/libgmodule-2.0.so -pthread /usr/lib/x86_64-linux-gnu/libjson-glib-1.0.so /usr/lib/x86_64-linux-gnu/libbabl-0.1.so -lm -Wl,--end-group
FAILED: plug-ins/common/file-iff
cc -o plug-ins/common/file-iff plug-ins/common/file-iff.p/file-iff.c.o -Wl,--as-needed -Wl,--no-undefined '-Wl,-rpath,$ORIGIN/../../libgimp:$ORIGIN/../../libgimpbase:$ORIGIN/../../libgimpcolor:$ORIGIN/../../libgimpconfig:$ORIGIN/../../libgimpmath:$ORIGIN/../../libgimpmodule:$ORIGIN/../../libgimpwidgets' -Wl,-rpath-link,....../gimp/builddir/libgimp -Wl,-rpath-link,....../gimp/builddir/libgimpbase -Wl,-rpath-link,....../gimp/builddir/libgimpcolor -Wl,-rpath-link,....../gimp/builddir/libgimpconfig -Wl,-rpath-link,....../gimp/builddir/libgimpmath -Wl,-rpath-link,....../gimp/builddir/libgimpmodule -Wl,-rpath-link,....../gimp/builddir/libgimpwidgets -Wl,--start-group libgimp/libgimp-3.0.so.0.9900.17 libgimpbase/libgimpbase-3.0.so.0.9900.17 libgimpcolor/libgimpcolor-3.0.so.0.9900.17 libgimpconfig/libgimpconfig-3.0.so.0.9900.17 libgimpmath/libgimpmath-3.0.so.0.9900.17 libgimp/libgimpui-3.0.so.0.9900.17 libgimpwidgets/libgimpwidgets-3.0.so.0.9900.17 /usr/lib/x86_64-linux-gnu/libgtk-3.so /usr/lib/x86_64-linux-gnu/libgdk-3.so /usr/lib/x86_64-linux-gnu/libpangocairo-1.0.so /usr/lib/x86_64-linux-gnu/libpango-1.0.so /usr/lib/x86_64-linux-gnu/libharfbuzz.so /usr/lib/x86_64-linux-gnu/libatk-1.0.so /usr/lib/x86_64-linux-gnu/libcairo-gobject.so /usr/lib/x86_64-linux-gnu/libcairo.so /usr/lib/x86_64-linux-gnu/libgdk_pixbuf-2.0.so /usr/lib/x86_64-linux-gnu/libgio-2.0.so /usr/lib/x86_64-linux-gnu/libgobject-2.0.so /usr/lib/x86_64-linux-gnu/libglib-2.0.so /usr/lib/x86_64-linux-gnu/libgegl-0.4.so /usr/lib/x86_64-linux-gnu/libgegl-npd-0.4.so -Wl,--export-dynamic /usr/lib/x86_64-linux-gnu/libgmodule-2.0.so -pthread /usr/lib/x86_64-linux-gnu/libjson-glib-1.0.so /usr/lib/x86_64-linux-gnu/libbabl-0.1.so -lm -Wl,--end-group
/usr/bin/ld: plug-ins/common/file-iff.p/file-iff.c.o: in function `load_image':
file-iff.c:(.text+0x669): undefined reference to `ILBM_read'
/usr/bin/ld: file-iff.c:(.text+0x689): undefined reference to `ILBM_extractImages'
/usr/bin/ld: file-iff.c:(.text+0x7c3): undefined reference to `ILBM_imageIsACBM'
/usr/bin/ld: file-iff.c:(.text+0x7d6): undefined reference to `ILBM_convertACBMToILBM'
/usr/bin/ld: file-iff.c:(.text+0xafb): undefined reference to `ILBM_unpackByteRun'
/usr/bin/ld: file-iff.c:(.text+0xc1d): undefined reference to `ILBM_imageIsPBM'
/usr/bin/ld: file-iff.c:(.text+0xde0): undefined reference to `ILBM_freeImages'
collect2: error: ld returned 1 exit status
Can anybody give me a hand please?
Thanks...
RE: undefined reference to `ILBM_read' - programmer_ceds - 07-13-2023
(07-12-2023, 09:39 PM)jiapei100 Wrote: Hi, all:
I'm trying to build gimp-2.99.16 under Ubuntu 22.04, but obtained the following ERROR messages:
Code:
[2192/2522] cc -o plug-ins/common/file-iff plug-ins/common/file-iff.p/file-iff.c.o -Wl,--as-needed -Wl,--no-undefined '-Wl,-rpath,$ORIGIN/../../libgimp:$ORIGIN/../../libgimpbase:$ORIGIN/../../libgimpcolor:$ORIGIN/../../libgimpconfig:$ORIGIN/../../libgimpmath:$ORIGIN/../../libgimpmodule:$ORIGIN/../../libgimpwidgets' -Wl,-rpath-link,....../gimp/builddir/libgimp -Wl,-rpath-link,....../gimp/builddir/libgimpbase -Wl,-rpath-link,....../gimp/builddir/libgimpcolor -Wl,-rpath-link,....../gimp/builddir/libgimpconfig -Wl,-rpath-link,....../gimp/builddir/libgimpmath -Wl,-rpath-link,....../gimp/builddir/libgimpmodule -Wl,-rpath-link,....../gimp/builddir/libgimpwidgets -Wl,--start-group libgimp/libgimp-3.0.so.0.9900.17 libgimpbase/libgimpbase-3.0.so.0.9900.17 libgimpcolor/libgimpcolor-3.0.so.0.9900.17 libgimpconfig/libgimpconfig-3.0.so.0.9900.17 libgimpmath/libgimpmath-3.0.so.0.9900.17 libgimp/libgimpui-3.0.so.0.9900.17 libgimpwidgets/libgimpwidgets-3.0.so.0.9900.17 /usr/lib/x86_64-linux-gnu/libgtk-3.so /usr/lib/x86_64-linux-gnu/libgdk-3.so /usr/lib/x86_64-linux-gnu/libpangocairo-1.0.so /usr/lib/x86_64-linux-gnu/libpango-1.0.so /usr/lib/x86_64-linux-gnu/libharfbuzz.so /usr/lib/x86_64-linux-gnu/libatk-1.0.so /usr/lib/x86_64-linux-gnu/libcairo-gobject.so /usr/lib/x86_64-linux-gnu/libcairo.so /usr/lib/x86_64-linux-gnu/libgdk_pixbuf-2.0.so /usr/lib/x86_64-linux-gnu/libgio-2.0.so /usr/lib/x86_64-linux-gnu/libgobject-2.0.so /usr/lib/x86_64-linux-gnu/libglib-2.0.so /usr/lib/x86_64-linux-gnu/libgegl-0.4.so /usr/lib/x86_64-linux-gnu/libgegl-npd-0.4.so -Wl,--export-dynamic /usr/lib/x86_64-linux-gnu/libgmodule-2.0.so -pthread /usr/lib/x86_64-linux-gnu/libjson-glib-1.0.so /usr/lib/x86_64-linux-gnu/libbabl-0.1.so -lm -Wl,--end-group
FAILED: plug-ins/common/file-iff
cc -o plug-ins/common/file-iff plug-ins/common/file-iff.p/file-iff.c.o -Wl,--as-needed -Wl,--no-undefined '-Wl,-rpath,$ORIGIN/../../libgimp:$ORIGIN/../../libgimpbase:$ORIGIN/../../libgimpcolor:$ORIGIN/../../libgimpconfig:$ORIGIN/../../libgimpmath:$ORIGIN/../../libgimpmodule:$ORIGIN/../../libgimpwidgets' -Wl,-rpath-link,....../gimp/builddir/libgimp -Wl,-rpath-link,....../gimp/builddir/libgimpbase -Wl,-rpath-link,....../gimp/builddir/libgimpcolor -Wl,-rpath-link,....../gimp/builddir/libgimpconfig -Wl,-rpath-link,....../gimp/builddir/libgimpmath -Wl,-rpath-link,....../gimp/builddir/libgimpmodule -Wl,-rpath-link,....../gimp/builddir/libgimpwidgets -Wl,--start-group libgimp/libgimp-3.0.so.0.9900.17 libgimpbase/libgimpbase-3.0.so.0.9900.17 libgimpcolor/libgimpcolor-3.0.so.0.9900.17 libgimpconfig/libgimpconfig-3.0.so.0.9900.17 libgimpmath/libgimpmath-3.0.so.0.9900.17 libgimp/libgimpui-3.0.so.0.9900.17 libgimpwidgets/libgimpwidgets-3.0.so.0.9900.17 /usr/lib/x86_64-linux-gnu/libgtk-3.so /usr/lib/x86_64-linux-gnu/libgdk-3.so /usr/lib/x86_64-linux-gnu/libpangocairo-1.0.so /usr/lib/x86_64-linux-gnu/libpango-1.0.so /usr/lib/x86_64-linux-gnu/libharfbuzz.so /usr/lib/x86_64-linux-gnu/libatk-1.0.so /usr/lib/x86_64-linux-gnu/libcairo-gobject.so /usr/lib/x86_64-linux-gnu/libcairo.so /usr/lib/x86_64-linux-gnu/libgdk_pixbuf-2.0.so /usr/lib/x86_64-linux-gnu/libgio-2.0.so /usr/lib/x86_64-linux-gnu/libgobject-2.0.so /usr/lib/x86_64-linux-gnu/libglib-2.0.so /usr/lib/x86_64-linux-gnu/libgegl-0.4.so /usr/lib/x86_64-linux-gnu/libgegl-npd-0.4.so -Wl,--export-dynamic /usr/lib/x86_64-linux-gnu/libgmodule-2.0.so -pthread /usr/lib/x86_64-linux-gnu/libjson-glib-1.0.so /usr/lib/x86_64-linux-gnu/libbabl-0.1.so -lm -Wl,--end-group
/usr/bin/ld: plug-ins/common/file-iff.p/file-iff.c.o: in function `load_image':
file-iff.c:(.text+0x669): undefined reference to `ILBM_read'
/usr/bin/ld: file-iff.c:(.text+0x689): undefined reference to `ILBM_extractImages'
/usr/bin/ld: file-iff.c:(.text+0x7c3): undefined reference to `ILBM_imageIsACBM'
/usr/bin/ld: file-iff.c:(.text+0x7d6): undefined reference to `ILBM_convertACBMToILBM'
/usr/bin/ld: file-iff.c:(.text+0xafb): undefined reference to `ILBM_unpackByteRun'
/usr/bin/ld: file-iff.c:(.text+0xc1d): undefined reference to `ILBM_imageIsPBM'
/usr/bin/ld: file-iff.c:(.text+0xde0): undefined reference to `ILBM_freeImages'
collect2: error: ld returned 1 exit status
Can anybody give me a hand please?
Thanks...
Looks like iff are Amiga format files for which, if I remember correctly, support has been recently added. If you don't need these files try deleting the line from meson.build that includes this file format (line 1976 in the version of the file that I have - it reads ''' Amiga IFF/ILBM: @0@'''.format(have_ilbm),)
Edit - having made the above reply I have gone to the GIMP gitlab site. There was a commit yesterday for the iff file type - you may also need to remove the changes that were introduced in that commit - https://gitlab.gnome.org/GNOME/gimp/-/commit/ab93a1484a0784943e7cd7421c05f63a1e91c968.
Also consider opening a new issue for this at https://gitlab.gnome.org/GNOME/gimp/-/issues
RE: undefined reference to `ILBM_read' - Ofnuts - 07-13-2023
(07-13-2023, 09:32 AM)programmer_ceds Wrote: jiapei100Hi, all:
I'm trying to build gimp-2.99.16 under Ubuntu 22.04, but obtained the following ERROR messages:
Code:
[2192/2522] cc -o plug-ins/common/file-iff plug-ins/common/file-iff.p/file-iff.c.o -Wl,--as-needed -Wl,--no-undefined '-Wl,-rpath,$ORIGIN/../../libgimp:$ORIGIN/../../libgimpbase:$ORIGIN/../../libgimpcolor:$ORIGIN/../../libgimpconfig:$ORIGIN/../../libgimpmath:$ORIGIN/../../libgimpmodule:$ORIGIN/../../libgimpwidgets' -Wl,-rpath-link,....../gimp/builddir/libgimp -Wl,-rpath-link,....../gimp/builddir/libgimpbase -Wl,-rpath-link,....../gimp/builddir/libgimpcolor -Wl,-rpath-link,....../gimp/builddir/libgimpconfig -Wl,-rpath-link,....../gimp/builddir/libgimpmath -Wl,-rpath-link,....../gimp/builddir/libgimpmodule -Wl,-rpath-link,....../gimp/builddir/libgimpwidgets -Wl,--start-group libgimp/libgimp-3.0.so.0.9900.17 libgimpbase/libgimpbase-3.0.so.0.9900.17 libgimpcolor/libgimpcolor-3.0.so.0.9900.17 libgimpconfig/libgimpconfig-3.0.so.0.9900.17 libgimpmath/libgimpmath-3.0.so.0.9900.17 libgimp/libgimpui-3.0.so.0.9900.17 libgimpwidgets/libgimpwidgets-3.0.so.0.9900.17 /usr/lib/x86_64-linux-gnu/libgtk-3.so /usr/lib/x86_64-linux-gnu/libgdk-3.so /usr/lib/x86_64-linux-gnu/libpangocairo-1.0.so /usr/lib/x86_64-linux-gnu/libpango-1.0.so /usr/lib/x86_64-linux-gnu/libharfbuzz.so /usr/lib/x86_64-linux-gnu/libatk-1.0.so /usr/lib/x86_64-linux-gnu/libcairo-gobject.so /usr/lib/x86_64-linux-gnu/libcairo.so /usr/lib/x86_64-linux-gnu/libgdk_pixbuf-2.0.so /usr/lib/x86_64-linux-gnu/libgio-2.0.so /usr/lib/x86_64-linux-gnu/libgobject-2.0.so /usr/lib/x86_64-linux-gnu/libglib-2.0.so /usr/lib/x86_64-linux-gnu/libgegl-0.4.so /usr/lib/x86_64-linux-gnu/libgegl-npd-0.4.so -Wl,--export-dynamic /usr/lib/x86_64-linux-gnu/libgmodule-2.0.so -pthread /usr/lib/x86_64-linux-gnu/libjson-glib-1.0.so /usr/lib/x86_64-linux-gnu/libbabl-0.1.so -lm -Wl,--end-group
FAILED: plug-ins/common/file-iff
cc -o plug-ins/common/file-iff plug-ins/common/file-iff.p/file-iff.c.o -Wl,--as-needed -Wl,--no-undefined '-Wl,-rpath,$ORIGIN/../../libgimp:$ORIGIN/../../libgimpbase:$ORIGIN/../../libgimpcolor:$ORIGIN/../../libgimpconfig:$ORIGIN/../../libgimpmath:$ORIGIN/../../libgimpmodule:$ORIGIN/../../libgimpwidgets' -Wl,-rpath-link,....../gimp/builddir/libgimp -Wl,-rpath-link,....../gimp/builddir/libgimpbase -Wl,-rpath-link,....../gimp/builddir/libgimpcolor -Wl,-rpath-link,....../gimp/builddir/libgimpconfig -Wl,-rpath-link,....../gimp/builddir/libgimpmath -Wl,-rpath-link,....../gimp/builddir/libgimpmodule -Wl,-rpath-link,....../gimp/builddir/libgimpwidgets -Wl,--start-group libgimp/libgimp-3.0.so.0.9900.17 libgimpbase/libgimpbase-3.0.so.0.9900.17 libgimpcolor/libgimpcolor-3.0.so.0.9900.17 libgimpconfig/libgimpconfig-3.0.so.0.9900.17 libgimpmath/libgimpmath-3.0.so.0.9900.17 libgimp/libgimpui-3.0.so.0.9900.17 libgimpwidgets/libgimpwidgets-3.0.so.0.9900.17 /usr/lib/x86_64-linux-gnu/libgtk-3.so /usr/lib/x86_64-linux-gnu/libgdk-3.so /usr/lib/x86_64-linux-gnu/libpangocairo-1.0.so /usr/lib/x86_64-linux-gnu/libpango-1.0.so /usr/lib/x86_64-linux-gnu/libharfbuzz.so /usr/lib/x86_64-linux-gnu/libatk-1.0.so /usr/lib/x86_64-linux-gnu/libcairo-gobject.so /usr/lib/x86_64-linux-gnu/libcairo.so /usr/lib/x86_64-linux-gnu/libgdk_pixbuf-2.0.so /usr/lib/x86_64-linux-gnu/libgio-2.0.so /usr/lib/x86_64-linux-gnu/libgobject-2.0.so /usr/lib/x86_64-linux-gnu/libglib-2.0.so /usr/lib/x86_64-linux-gnu/libgegl-0.4.so /usr/lib/x86_64-linux-gnu/libgegl-npd-0.4.so -Wl,--export-dynamic /usr/lib/x86_64-linux-gnu/libgmodule-2.0.so -pthread /usr/lib/x86_64-linux-gnu/libjson-glib-1.0.so /usr/lib/x86_64-linux-gnu/libbabl-0.1.so -lm -Wl,--end-group
/usr/bin/ld: plug-ins/common/file-iff.p/file-iff.c.o: in function `load_image':
file-iff.c:(.text+0x669): undefined reference to `ILBM_read'
/usr/bin/ld: file-iff.c:(.text+0x689): undefined reference to `ILBM_extractImages'
/usr/bin/ld: file-iff.c:(.text+0x7c3): undefined reference to `ILBM_imageIsACBM'
/usr/bin/ld: file-iff.c:(.text+0x7d6): undefined reference to `ILBM_convertACBMToILBM'
/usr/bin/ld: file-iff.c:(.text+0xafb): undefined reference to `ILBM_unpackByteRun'
/usr/bin/ld: file-iff.c:(.text+0xc1d): undefined reference to `ILBM_imageIsPBM'
/usr/bin/ld: file-iff.c:(.text+0xde0): undefined reference to `ILBM_freeImages'
collect2: error: ld returned 1 exit status
Can anybody give me a hand please?
Thanks...
Looks like iff are Amiga format files for which, if I remember correctly, support has been recently added. If you don't need these files try deleting the line from meson.build that includes this file format (line 1976 in the version of the file that I have - it reads ''' Amiga IFF/ILBM: @0@'''.format(have_ilbm),)
Edit - having made the above reply I have gone to the GIMP gitlab site. There was a commit yesterday for the iff file type - you may also need to remove the changes that were introduced in that commit - https://gitlab.gnome.org/GNOME/gimp/-/commit/ab93a1484a0784943e7cd7421c05f63a1e91c968.
Also consider opening a new issue for this at https://gitlab.gnome.org/GNOME/gimp/-/issues
Also depends what you build. If you do a plain git clone or git pull, you get whatever is the latest version in the repo, so it can and will include changes after the "official" version. You have to check out the adequate tag to get the "official" version, which is assumed "stable" (or at least fit for non-dev build & use).
RE: undefined reference to `ILBM_read' - CmykStudent - 07-15-2023
(07-13-2023, 09:32 AM)programmer_ceds Wrote: Looks like iff are Amiga format files for which, if I remember correctly, support has been recently added. If you don't need these files try deleting the line from meson.build that includes this file format (line 1976 in the version of the file that I have - it reads ''' Amiga IFF/ILBM: @0@'''.format(have_ilbm),)
Edit - having made the above reply I have gone to the GIMP gitlab site. There was a commit yesterday for the iff file type - you may also need to remove the changes that were introduced in that commit - https://gitlab.gnome.org/GNOME/gimp/-/commit/ab93a1484a0784943e7cd7421c05f63a1e91c968.
Also consider opening a new issue for this at https://gitlab.gnome.org/GNOME/gimp/-/issues
Actually, that commit *should* allow you to specify in meson you don't want to build the Amiga IFF plug-in. Just add "-Dilbm=disabled" as a flag when you build with meson. Let me know if that helps.
|