Issue 175 in libnfc: m4 macro is not able to auto-detect readline in cross-compiling environnement

5 views
Skip to first unread message

lib...@googlecode.com

unread,
Oct 18, 2011, 8:46:25 AM10/18/11
to nfc-...@googlegroups.com
Status: Accepted
Owner: rco...@il4p.fr
Labels: Type-Defect Priority-Low

New issue 175 by rco...@il4p.fr: m4 macro is not able to auto-detect
readline in cross-compiling environnement
http://code.google.com/p/libnfc/issues/detail?id=175

What steps will reproduce the problem?
1. Use a cross-compiling development
2. Attempt to build libnfc with pn53x-tamashell (which use readline)

What is the expected output? What do you see instead?
readline should be correctly detected but it use the host's files instead
of the target ones.

This issue have been reported during Issue 174 solving:
http://code.google.com/p/libnfc/issues/detail?id=174#c13

/media/kdata/imx257/ltib/rootfs/usr/lib//libreadline.so: undefined
reference to `tgetnum'
/media/kdata/imx257/ltib/rootfs/usr/lib//libreadline.so: undefined
reference to `tgoto'
/media/kdata/imx257/ltib/rootfs/usr/lib//libreadline.so: undefined
reference to `tgetflag'
/media/kdata/imx257/ltib/rootfs/usr/lib//libreadline.so: undefined
reference to `BC'
/media/kdata/imx257/ltib/rootfs/usr/lib//libreadline.so: undefined
reference to `tputs'
/media/kdata/imx257/ltib/rootfs/usr/lib//libreadline.so: undefined
reference to `PC'
/media/kdata/imx257/ltib/rootfs/usr/lib//libreadline.so: undefined
reference to `tgetent'
/media/kdata/imx257/ltib/rootfs/usr/lib//libreadline.so: undefined
reference to `UP'
/media/kdata/imx257/ltib/rootfs/usr/lib//libreadline.so: undefined
reference to `tgetstr'
collect2: ld returned 1 exit status
make[3]: *** [pn53x-tamashell] Error 1
make[3]: Leaving directory
`/media/kdata/imx257/ltib/rpm/BUILD/libnfc-1.5.1/examples'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory
`/media/kdata/imx257/ltib/rpm/BUILD/libnfc-1.5.1/examples'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/media/kdata/imx257/ltib/rpm/BUILD/libnfc-1.5.1'
make: *** [all] Error 2
error: Bad exit status from /media/kdata/imx257/ltib/tmp/rpm-tmp.2457
(%build)


RPM build errors:
Bad exit status from /media/kdata/imx257/ltib/tmp/rpm-tmp.2457 (%build)
Build time for libnfc: 11 seconds

lib...@googlecode.com

unread,
Oct 18, 2011, 8:50:26 AM10/18/11
to nfc-...@googlegroups.com

Comment #1 on issue 175 by rco...@il4p.fr: m4 macro is not able to
auto-detect readline in cross-compiling environnement
http://code.google.com/p/libnfc/issues/detail?id=175

As first workaround, you could disable readline support (will affect only
pn53x-tamashell) using the configure option:

./configure --with-readline=no


You could also pass directly the path where the target's readline is
located: e.g.
./configure --with-readline=/path/to/the/toolchain/usr

(In this case, please be sure that readline is located in lib/ and include/
subdirs)

lib...@googlecode.com

unread,
Oct 18, 2011, 9:30:45 AM10/18/11
to nfc-...@googlegroups.com
Updates:
Cc: vishnu...@gmail.com yob...@gmail.com

Comment #2 on issue 175 by rco...@il4p.fr: m4 macro is not able to

auto-detect readline in cross-compiling environnement
http://code.google.com/p/libnfc/issues/detail?id=175

(No comment was entered for this change.)

lib...@googlecode.com

unread,
Oct 18, 2011, 9:34:47 AM10/18/11
to nfc-...@googlegroups.com
Updates:
Status: Fixed

Comment #3 on issue 175 by yob...@gmail.com: m4 macro is not able to

auto-detect readline in cross-compiling environnement
http://code.google.com/p/libnfc/issues/detail?id=175

See r1177
This should ease the job...
readline support is now disabled when cross-compiling unless you specify
full path to host libraries (--with-readline=/path/to/the/toolchain/usr)


Reply all
Reply to author
Forward
0 new messages