gnupg-1.9.90 build problem

Robby Workman rw at rlworkman.net
Wed Oct 4 06:49:00 CEST 2006


Ladislav Hagara wrote:

> trying to compile gnupg-1.9.90 and seems I have some problem with 
> readline (from gnupg's NEWS: Made readline work for gpg).
> I have installed last 5.1 readline with last patches.
> Please, is it a problem of my box (readline) or gnupg?

Similar/same error here on Slackware 11.0 (readline 5.1).
Adding --with-readline=no to configure results in different error 
message.  The first message pasted is from configure 
--prefix=/usr, and the second (at the bottom) is from adding the 
extra readline=no flag.

Any suggestions?  I don't really know C well enough to even read 
it, much less figure out what's wrong.
Thanks in advance,  Robby


if i486-slackware-linux-gcc -DHAVE_CONFIG_H -I. -I. -I..  -I../gl 
     -I/usr/include -O2 -march=i486 -mtune=i686 -Wall -MT 
gpgrlhelp.o -MD -MP -MF ".deps/gpgrlhelp.Tpo" -c -o gpgrlhelp.o 
gpgrlhelp.c; \
         then mv -f ".deps/gpgrlhelp.Tpo" ".deps/gpgrlhelp.Po"; 
else rm -f ".deps/gpgrlhelp.Tpo"; exit 1; fi
In file included from /usr/include/readline/readline.h:37,
                  from gpgrlhelp.c:34:
/usr/include/readline/rltypedefs.h:65: error: syntax error before 
'*' token
In file included from gpgrlhelp.c:34:
/usr/include/readline/readline.h:416: error: syntax error before 
'*' token
/usr/include/readline/readline.h:532: error: syntax error before 
'*' token
/usr/include/readline/readline.h:533: error: syntax error before 
'*' token
/usr/include/readline/readline.h:823: error: syntax error before 
"FILE"
/usr/include/readline/readline.h:840: error: syntax error before 
'}' token
gpgrlhelp.c: In function `init_stream':
gpgrlhelp.c:66: warning: assignment from incompatible pointer type
make[2]: *** [gpgrlhelp.o] Error 1
make[2]: Leaving directory `/tmp/gnupg-1.9.90/common'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/gnupg-1.9.90'
make: *** [all] Error 2



However, adding --with-readline=no to configure results in this:

if i486-slackware-linux-gcc -DHAVE_CONFIG_H -I. -I. -I..  -I../gl 
     -I/usr/include -O2 -march=i486 -mtune=i686 -Wall -MT 
gpgrlhelp.o -MD -MP -MF ".deps/gpgrlhelp.Tpo" -c -o gpgrlhelp.o 
gpgrlhelp.c; \
         then mv -f ".deps/gpgrlhelp.Tpo" ".deps/gpgrlhelp.Po"; 
else rm -f ".deps/gpgrlhelp.Tpo"; exit 1; fi
gpgrlhelp.c: In function `set_completer':
gpgrlhelp.c:45: error: `rl_attempted_completion_function' 
undeclared (first use in this function)
gpgrlhelp.c:45: error: (Each undeclared identifier is reported 
only once
gpgrlhelp.c:45: error: for each function it appears in.)
gpgrlhelp.c:46: error: `rl_inhibit_completion' undeclared (first 
use in this function)
gpgrlhelp.c: In function `inhibit_completion':
gpgrlhelp.c:52: error: `rl_inhibit_completion' undeclared (first 
use in this function)
gpgrlhelp.c: In function `cleanup_after_signal':
gpgrlhelp.c:58: warning: implicit declaration of function 
`rl_free_line_state'
gpgrlhelp.c:59: warning: implicit declaration of function 
`rl_cleanup_after_signal'
gpgrlhelp.c: In function `init_stream':
gpgrlhelp.c:65: error: `rl_catch_signals' undeclared (first use 
in this function)
gpgrlhelp.c:66: error: `rl_instream' undeclared (first use in 
this function)
gpgrlhelp.c:66: error: `rl_outstream' undeclared (first use in 
this function)
gpgrlhelp.c:67: error: `rl_inhibit_completion' undeclared (first 
use in this function)
gpgrlhelp.c: In function `gnupg_rl_initialize':
gpgrlhelp.c:80: error: `readline' undeclared (first use in this 
function)
gpgrlhelp.c:81: error: `add_history' undeclared (first use in 
this function)
gpgrlhelp.c:82: error: `rl_readline_name' undeclared (first use 
in this function)
make[2]: *** [gpgrlhelp.o] Error 1
make[2]: Leaving directory `/tmp/gnupg-1.9.90/common'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/gnupg-1.9.90'
make: *** [all] Error 2

-- 

http://rlworkman.net



More information about the Gnupg-devel mailing list