From: Julien DELACOU <julien.delacou@st.com>
To: buildroot@busybox.net
Subject: [Buildroot] [buildroot] wavpack/iconv link issue
Date: Wed, 26 Feb 2014 12:16:50 +0100 [thread overview]
Message-ID: <530DCD22.2080609@st.com> (raw)
Hi,
I'm trying to enable wavpack within an already compiled buildroot.
After having enabled BR2_PACKAGE_WAVPACK using make menuconfig, I ran
'make clean all' (since it is recommended after adding some libraries to
the package selection).
When I do so, I face the following error at link:
/local/frq08628/views/a2_evb_1.1/toolchains/elf-fdpic-v7/bin/../lib/gcc/arm-v7-linux-uclibceabi/4.7.4/../../../../arm-v7-linux-uclibceabi/bin/ld:
wavpack-wavpack.o: undefined reference to symbol 'libiconv_open'
...
/local/frq08628/views/a2_evb_1.1/buildroot/output/host/usr/arm-buildroot-linux-uclibcgnueabi/sysroot/usr/lib/libiconv.so.2:
could not read symbols: Invalid operation
Even after a make distclean/make, problem still persists.
I checked my defconfig, BR2_PACKAGE_LIBICONV is set, libiconv.so is
correctly generated. Moreover, the ./configure found it (I suppose using
--with-iconv):
checking iconv.h usability... yes
checking iconv.h presence... yes
checking for iconv.h... yes
checking for iconv... no
checking for iconv in -liconv... yes
The only problem seems to be that the -liconv directive is not added to
linker command.
Problem seems to be solved by patching as follow:
-wavpack_LDADD = $(AM_LDADD) $(top_builddir)/src/.libs/libwavpack.la
$(LIBM)
+wavpack_LDADD = $(AM_LDADD) $(top_builddir)/src/.libs/libwavpack.la
$(LIBM) $(ICONV)
wvunpack_SOURCES = wvunpack.c utils.c md5.c
wvunpack_CFLAGS = $(AM_CFLAGS) -I$(top_srcdir)/include
-wvunpack_LDADD = $(AM_LDADD) $(top_builddir)/src/.libs/libwavpack.la
$(LIBM)
+wvunpack_LDADD = $(AM_LDADD) $(top_builddir)/src/.libs/libwavpack.la
$(LIBM) $(ICONV)
Nevertheless, I'm wondering if it is a proper way to do (and do not
patch the Makefile) ?
Thanks,
--
BR
Julien
next reply other threads:[~2014-02-26 11:16 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-02-26 11:16 Julien DELACOU [this message]
2014-02-26 12:23 ` [Buildroot] wavpack/iconv link issue Peter Korsgaard
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=530DCD22.2080609@st.com \
--to=julien.delacou@st.com \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox