[Buildroot] Readline build error

hartleys hartleys at visionengravers.com
Wed Jul 2 00:13:26 UTC 2008

Hello all,

During the build of readline I get the following error:

/usr/local/arm/4.1.1-920t/bin/arm-linux-gcc -Os
-I/usr/local/arm/4.1.1-920t/arm-linux/include -shared
-Wl,-soname,libreadline.so.5.2 -L./lib/termcap -Wl,-rpath,/usr/lib
-Wl,-soname,`basename libreadline.so.5.2 .2` -o libreadline.so.5.2
readline.so vi_mode.so funmap.so keymaps.so parens.so search.so rltty.so
complete.so bind.so isearch.so display.so signals.so util.so kill.so
undo.so macro.so input.so callback.so terminal.so text.so nls.so misc.so
xmalloc.so history.so histexpand.so histfile.so histsearch.so shell.so
mbutil.so tilde.so compat.so -lncurses
-linux-uclibc/bin/ld: cannot find -lncurses
collect2: ld returned 1 exit status
make[2]: *** [libreadline.so.5.2] Error 1
make[2]: Leaving directory
make[1]: [shared] Error 2 (ignored)
make[1]: Leaving directory

Previous to that the ncurses build completed with no problems and
$(STAGING_DIR)/lib contains the library files.

It appears the final link does not have the LDFLAGS set correctly to
find -lncurses.

I had a similar problem with grep not finding -lintl and got around it
with the following patch to grep.mk:

@@ -29,6 +29,7 @@
        (cd $(GNUGREP_DIR); rm -rf config.cache; \
                $(TARGET_CONFIGURE_OPTS) \
                $(TARGET_CONFIGURE_ARGS) \
+               LDFLAGS="$(TARGET_LDFLAGS) -lintl" \
                ./configure \
                --target=$(GNU_TARGET_NAME) \
                --host=$(GNU_TARGET_NAME) \

But this seems "wrong" to me.

Any idea where I might have something configured wrong?


More information about the buildroot mailing list