New: Build of cups-filters fails while linking, apparently due to missing libiconv
https://bugs.busybox.net/show_bug.cgi?id=12031
Bug ID: 12031
Host: i386
Build: amd64 Linux
Summary: Build of cups-filters fails while linking, apparently
due to missing libiconv
Product: buildroot
Version: 2019.05.1
Hardware: All
OS: Linux
Status: NEW
Keywords: link-failure
Severity: normal
Priority: P5
Component: Other
Assignee: unassigned at buildroot.uclibc.org
Reporter: jakobcornell at gmail.com
CC: buildroot at uclibc.org
Target Milestone: ---
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.
Signature · 2 lines
You are receiving this mail because: You are on the CC list for the bug.
[Buildroot] [Bug 12031] Build of cups-filters fails while linking, apparently due to missing libiconv
https://bugs.busybox.net/show_bug.cgi?id=12031
--- Comment #1 from jakobcornell at gmail.com ---
I've enabled Iconv in the uClibc config as well and done a clean build. The same error appears.
Signature · 2 lines
You are receiving this mail because: You are on the CC list for the bug.
[Buildroot] [Bug 12031] Build of cups-filters fails while linking, apparently due to missing libiconv
In reply to bugzilla at busybox.nethttps://bugs.busybox.net/show_bug.cgi?id=12031
Carlos Santos <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
Assignee|unassigned at buildroot.uclibc |unixmania at gmail.com
|.org |--- Comment #2 from Carlos Santos <[email protected]> --- Please run the following commands
$ make savedefconfig BR2_DEFCONFIG=/tmp/bz12031.defconfig
$ gzip /tmp/bz12031.defconfigThen attach the resulting /tmp/bz12046.defconfig.gz file to this bug.
Signature · 2 lines
You are receiving this mail because: You are on the CC list for the bug.
[Buildroot] [Bug 12031] Build of cups-filters fails while linking, apparently due to missing libiconv
In reply to bugzilla at busybox.nethttps://bugs.busybox.net/show_bug.cgi?id=12031
--- Comment #3 from jakobcornell at gmail.com --- Created attachment 8161
--> https://bugs.busybox.net/attachment.cgi?id=8161&action=edit
requested config
Signature · 2 lines
You are receiving this mail because: You are on the CC list for the bug.
[Buildroot] [Bug 12031] Build of cups-filters fails while linking, apparently due to missing libiconv
In reply to bugzilla at busybox.nethttps://bugs.busybox.net/show_bug.cgi?id=12031
jakobcornell at gmail.com changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #8161|requested config |incorrect config - do not
description| |use
Attachment #8161|0 |1
is obsolete| |--- Comment #4 from jakobcornell at gmail.com --- Comment on attachment 8161
--> https://bugs.busybox.net/attachment.cgi?id=8161
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.
Signature · 2 lines
You are receiving this mail because: You are on the CC list for the bug.
[Buildroot] [Bug 12031] Build of cups-filters fails while linking, apparently due to missing libiconv
In reply to bugzilla at busybox.nethttps://bugs.busybox.net/show_bug.cgi?id=12031
--- Comment #5 from jakobcornell at gmail.com --- Created attachment 8166
--> https://bugs.busybox.net/attachment.cgi?id=8166&action=edit
Buildroot config
Here's the original config which causes the issue.
Signature · 2 lines
You are receiving this mail because: You are on the CC list for the bug.
[Buildroot] [Bug 12031] Build of cups-filters fails while linking, apparently due to missing libiconv
In reply to bugzilla at busybox.nethttps://bugs.busybox.net/show_bug.cgi?id=12031
jakobcornell at gmail.com changed:
What |Removed |Added
----------------------------------------------------------------------------
Severity|normal |minor
--- Comment #6 from jakobcornell at gmail.com ---
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.
Signature · 2 lines
You are receiving this mail because: You are on the CC list for the bug.
[Buildroot] [Bug 12031] Build of cups-filters fails while linking, apparently due to missing libiconv
In reply to bugzilla at busybox.nethttps://bugs.busybox.net/show_bug.cgi?id=12031
--- Comment #7 from Carlos Santos <[email protected]> --- (In reply to jakobcornell from comment #6)
A patch fixing the problem was submitted:
https://patchwork.ozlabs.org/patch/1134738/
Signature · 2 lines
You are receiving this mail because: You are on the CC list for the bug.
[Buildroot] [Bug 12031] Build of cups-filters fails while linking, apparently due to missing libiconv
In reply to bugzilla at busybox.nethttps://bugs.busybox.net/show_bug.cgi?id=12031
jakobcornell at gmail.com changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |FIXED
Status|ASSIGNED |RESOLVED--- Comment #8 from jakobcornell at gmail.com ---
Great, thanks!
Signature · 2 lines
You are receiving this mail because: You are on the CC list for the bug.
[Buildroot] [Bug 12031] Build of cups-filters fails while linking, apparently due to missing libiconv
In reply to bugzilla at busybox.nethttps://bugs.busybox.net/show_bug.cgi?id=12031
Carlos Santos <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|FIXED |------ Comment #9 from Carlos Santos <[email protected]> --- Reopening, since the patch was not committed yet, just submitted for review.
Signature · 2 lines
You are receiving this mail because: You are on the CC list for the bug.
[Buildroot] [Bug 12031] Build of cups-filters fails while linking, apparently due to missing libiconv
In reply to bugzilla at busybox.nethttps://bugs.busybox.net/show_bug.cgi?id=12031
jakobcornell at gmail.com changed:
What |Removed |Added
----------------------------------------------------------------------------
Alias|build, cups-filters, |
|failure:, libiconv |Signature · 2 lines
You are receiving this mail because: You are on the CC list for the bug.
[Buildroot] [Bug 12031] Build of cups-filters fails while linking, apparently due to missing libiconv
In reply to bugzilla at busybox.nethttps://bugs.busybox.net/show_bug.cgi?id=12031
Carlos Santos <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |FIXED
Status|REOPENED |RESOLVED--- Comment #10 from Carlos Santos <[email protected]> --- Fixed by https://patchwork.ozlabs.org/patch/1164349/
Signature · 2 lines
You are receiving this mail because: You are on the CC list for the bug.