2010-11-15 10:10:41     comile error with hush support (readline)

Document created by Aaronwu Employee on Sep 25, 2013
Version 1Show Document
  • View in full screen mode

2010-11-15 10:10:41     comile error with hush support (readline)

Matthias Laur (GERMANY)

Message: 95855   

 

Hi,

 

I try to get hush support with the following config settings:

 

#define CONFIG_SYS_HUSH_PARSER

#define CONFIG_SYS_PROMPT_HUSH_PS2

 

I get the following Error:

 

hush.c: In Funktion »get_user_input«:

hush.c:1037: Fehler: Zu wenige Argumente für Funktion »readline«

make[2]: *** [hush.o] Fehler 1

make[2]: Leaving directory `/home/matthias/uclinux/git/u-boot.git/common'

make[1]: *** [common/libcommon.a] Fehler 2

make[1]: Leaving directory `/home/matthias/uclinux/git/u-boot.git'

make: *** [cm-bf537e] Fehler 2

 

 

The second line means "to few arguments for function readline"

 

 

 

Thanks for any help!

 

 

 

Regards,

 

Matthias

TranslateQuoteReplyEditDelete

 

 

2010-11-15 14:48:09     Re: comile error with hush support (readline)

Mike Frysinger (UNITED STATES)

Message: 95863   

 

defining CONFIG_SYS_PROMPT_HUSH_PS2 to nothing doesnt make any sense and is the source of your problem.

 

please look at the source:

                n = readline(CONFIG_SYS_PROMPT_HUSH_PS2);

 

and review the documentation:

        CONFIG_SYS_PROMPT_HUSH_PS2

 

        This defines the secondary prompt string, which is

        printed when the command interpreter needs more input

        to complete a command. Usually "> ".

Attachments

    Outcomes