The command `make` fails with the following output: [7m>>> cups-filters 1.21.3 Building[27m PATH="/home/jakob/buildroot-2019.05.1/output/host/bin:/home/jakob/buildroot-2019.05.1/output/host/sbin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/home/jakob/.cargo/bin" /usr/bin/make -j3 -C /home/jakob/buildroot-2019.05.1/output/build/cups-filters-1.21.3/ make[1]: Entering directory '/home/jakob/buildroot-2019.05.1/output/build/cups-filters-1.21.3' /usr/bin/make all-am make[2]: Entering directory '/home/jakob/buildroot-2019.05.1/output/build/cups-filters-1.21.3' sed -e "s/Braille transcription/Additional Braille transcription (2)/" \ -e "s/^ \\*Choice / Choice /" \ -e "s/^ Choice \"HyphLocale\// *Choice \"HyphLocale\//" \ -e s/LibLouis/LibLouis2/ \ < filter/braille/filters/liblouis1.defs > filter/braille/filters/liblouis2.defs sed -e "s/Braille transcription/Additional Braille transcription (3)/" \ -e "s/^ \\*Choice / Choice /" \ -e "s/^ Choice \"None\// *Choice \"None\//" \ -e s/LibLouis/LibLouis3/ \ < filter/braille/filters/liblouis1.defs > filter/braille/filters/liblouis3.defs CCLD texttotext sed -e "s/Braille transcription/Additional Braille transcription (4)/" \ -e "s/^ \\*Choice / Choice /" \ -e "s/^ Choice \"None\// *Choice \"None\//" \ -e s/LibLouis/LibLouis4/ \ < filter/braille/filters/liblouis1.defs > filter/braille/filters/liblouis4.defs /home/jakob/buildroot-2019.05.1/output/host/lib/gcc/i686-buildroot-linux-uclibc/7.4.0/../../../../i686-buildroot-linux-uclibc/bin/ld: texttotext-texttotext.o: in function `main': texttotext.c:(.text.startup+0xdf3): undefined reference to `libiconv_open' /home/jakob/buildroot-2019.05.1/output/host/lib/gcc/i686-buildroot-linux-uclibc/7.4.0/../../../../i686-buildroot-linux-uclibc/bin/ld: texttotext.c:(.text.startup+0xfb0): undefined reference to `libiconv' /home/jakob/buildroot-2019.05.1/output/host/lib/gcc/i686-buildroot-linux-uclibc/7.4.0/../../../../i686-buildroot-linux-uclibc/bin/ld: texttotext.c:(.text.startup+0xfe9): undefined reference to `libiconv' /home/jakob/buildroot-2019.05.1/output/host/lib/gcc/i686-buildroot-linux-uclibc/7.4.0/../../../../i686-buildroot-linux-uclibc/bin/ld: texttotext.c:(.text.startup+0x16eb): undefined reference to `libiconv_close' collect2: error: ld returned 1 exit status Makefile:2541: recipe for target 'texttotext' failed make[2]: *** [texttotext] Error 1 make[2]: Leaving directory '/home/jakob/buildroot-2019.05.1/output/build/cups-filters-1.21.3' Makefile:1968: recipe for target 'all' failed make[1]: *** [all] Error 2 make[1]: Leaving directory '/home/jakob/buildroot-2019.05.1/output/build/cups-filters-1.21.3' package/pkg-generic.mk:238: recipe for target '/home/jakob/buildroot-2019.05.1/output/build/cups-filters-1.21.3/.stamp_built' failed make: *** [/home/jakob/buildroot-2019.05.1/output/build/cups-filters-1.21.3/.stamp_built] Error 2 My Buildroot config is attached. I'm using uClibc in the toolchain, and libiconv is selected as a dependency in the target package list.
I've enabled Iconv in the uClibc config as well and done a clean build. The same error appears.
Please run the following commands $ make savedefconfig BR2_DEFCONFIG=/tmp/bz12031.defconfig $ gzip /tmp/bz12031.defconfig Then attach the resulting /tmp/bz12046.defconfig.gz file to this bug.
Created attachment 8161 [details] incorrect config - do not use
Comment on attachment 8161 [details] incorrect config - do not use I'd changed some config parameters since getting the issue, so this config doesn't cause the error. Stay tuned for the proper config.
Created attachment 8166 [details] Buildroot config Here's the original config which causes the issue.
I've worked around the problem for now by adding `-liconv` to the `CUPS_LIBS` definition in `output/build/cups-filters-1.21.3/Makefile`. But I wonder how one would go about patching this so the dependency is used automatically under a uClibc toolchain.
(In reply to jakobcornell from comment #6) A patch fixing the problem was submitted: https://patchwork.ozlabs.org/patch/1134738/
Great, thanks!
Reopening, since the patch was not committed yet, just submitted for review.
Fixed by https://patchwork.ozlabs.org/patch/1164349/