1834665 Members
2413 Online
110069 Solutions
New Discussion

ssh compile error

 
SOLVED
Go to solution
Asad Malik
Frequent Advisor

ssh compile error

HI
I am compiling ssh-1.2.31 on hpux 11.00 64 bit with gcc 2.95.2 and getting the following errors. Any suggestins please. configure runs without errors and these errors occur while running make

output of make.log

cd gmp-2.0.2-ssh-2; make
Making all in mpn
Making all in tests
rm -f libmpn.a
ar cru libmpn.a mp_bases.o udiv_qrnnd.o add_n.o lshift.o rshift.o sub_n.o inlines.o addmul_1.o cmp.o divmod_1.o divrem.o divrem_1.o dump.o mod_1.o mul.o mul_1.o mul_n.o random2.o sqrtrem.o submul_1.o get_str.o set_str.o scan0.o scan1.o popcount.o hamdist.o gcd_1.o pre_mod_1.o perfsqr.o bdivmod.o gcd.o gcdext.o
ranlib libmpn.a
Making all in mpz
Making all in tests
/opt/gcc/bin/gcc -DPACKAGE=\"gmp\" -DVERSION=\"2.0.2-ssh-2\" -DSTDC_HEADERS=1 -DHAVE_RANDOM=1 -DSIZEOF_INT=4 -DHAVE_ALLOCA_H=1 -DHAVE_ALLOCA=1 -I. -I. -I.. -I../mpn -I./.. -g -O2 -c set_str.c
In file included from set_str.c:27:
../gmp.h:176: parse error before `size_t'
../gmp.h:177: parse error before `size_t'
../gmp.h:178: parse error before `size_t'
../gmp.h:269: parse error before `mpz_size'
../gmp.h:269: warning: data definition has no type or storage class
../gmp.h:270: parse error before `mpz_sizeinbase'
../gmp.h:270: warning: data definition has no type or storage class
../gmp.h:325: parse error before `size_t'
../gmp.h:355: parse error before `mpf_size'
../gmp.h:355: warning: data definition has no type or storage class
../gmp.h:419: parse error before `__mpn_get_str'
../gmp.h:419: warning: data definition has no type or storage class
../gmp.h:433: parse error before `size_t'
In file included from set_str.c:28:
../gmp-impl.h:66: warning: parameter names (without types) in function declaration
../gmp-impl.h:67: parse error before `size_t'
../gmp-impl.h:71: warning: parameter names (without types) in function declaration
../gmp-impl.h:72: parse error before `size_t'
../gmp-impl.h:73: parse error before `size_t'
../gmp-impl.h:75: warning: parameter names (without types) in function declaration
../gmp-impl.h:76: parse error before `size_t'
../gmp-impl.h:77: parse error before `size_t'
set_str.c: In function `mpz_set_str':
set_str.c:62: `size_t' undeclared (first use in this function)
set_str.c:62: (Each undeclared identifier is reported only once
set_str.c:62: for each function it appears in.)
set_str.c:62: parse error before `str_size'
set_str.c:64: parse error before `i'
set_str.c:103: `str_size' undeclared (first use in this function)
set_str.c:106: `i' undeclared (first use in this function)
*** Error exit code 1

Stop.
*** Error exit code 1

Stop.
*** Error exit code 1

Stop.
*** Error exit code 1

Stop.



5 REPLIES 5
Vincent Stedema
Esteemed Contributor

Re: ssh compile error

Asad,

I'm no C guru, but it seems like the code in the gmp.h header file is bad (hence the parse error)...

BTW, is your gcc native 64-bit (hp-pa2.0)? And which "configure" options did you use?

Vincent
Pedro Sousa
Honored Contributor
Asad Malik
Frequent Advisor

Re: ssh compile error

HI
I have not used any option with configure. gcc is for 64 bit. I have used it to compile on a similar machine.
Ralph Grothe
Honored Contributor
Solution

Re: ssh compile error

Hi Asad,

this may not be much of help for your particular compiler error, but I had no trouble installing OpenSSH.

We switched to OpenSSH because it is completely under the GPL and there are no licensing issues involved with certain cryptographic algorithms (e.g. IDEA)

OpenSSH is cooperating with SSH1 and SSH2 deamons.

It only requires the following to be installed in advance:

perl 5.X
zlib
openSSL
Madness, thy name is system administration
Rui_3
Occasional Advisor

Re: ssh compile error

Hi,

Just install gcc, and binutils, put then on the begining of the PATH and recompile with
./configure --enable-gcc.

regards