[openssl.org #371] undeclared MAXHOSTNAMELEN in ssltest.c (097snap)

2002-12-02 Thread Richard Levitte via RT

Defining USE_SOCKETS before e_os.h is included probably helps :-).

This ticket is now resolved.

[jaenicke - Sun Dec  1 19:02:13 2002]:

> [[EMAIL PROTECTED] - Sat Nov 30 23:00:17 2002]:
> 
> > Building OpenSSL 0.9.7 beta4 and snap 20021129 on RedHat 8.0 (gcc
> 3.2
> &
> > glibc 2.3) configured with 'no-asm shared 
--with-krb5-flavor="MIT"'
> make
> > fail with undeclared MAXHOSTNAMELEN in ssltest.c (line 693).
> > After adding #include  build ok and pass all tests
> 
> Hmm.  seems to be Linux'ish to me. I just checked my
> HP-UX 10.20 box and it seems, that  would be the way
> to go. On Linux this will include  via 
.
> 
> Could you please try?
> 
> Hmm. Having this said, e_os.h already seems to include 
,
> doesn't it???
> 
> Best regards,
> Lutz
> 
> 


-- 
Richard Levitte
__
OpenSSL Project http://www.openssl.org
Development Mailing List   [EMAIL PROTECTED]
Automated List Manager   [EMAIL PROTECTED]



Re: [openssl.org #371] undeclared MAXHOSTNAMELEN in ssltest.c(097snap)

2002-12-01 Thread Richard Levitte - VMS Whacker
In message <[EMAIL PROTECTED]> on 02 Dec 2002 00:20:06 
-0300, Ricardo Ariel Gorosito <[EMAIL PROTECTED]> said:

rgorosito> I don't know why, but USE_SOCKETS is undefined (tested with
rgorosito> #error in e_os.h) and it appears to be becouse e_os.h don't
rgorosito> #include sys/param.h. 

It seems that the easiest solution is to add the following line before
the inclusion of e_os.h in ssltest.c:

#define USE_SOCKETS

-- 
Richard Levitte   \ Spannvägen 38, II \ [EMAIL PROTECTED]
Redakteur@Stacken  \ S-168 35  BROMMA  \ T: +46-8-26 52 47
\  SWEDEN   \ or +46-708-26 53 44
Procurator Odiosus Ex Infernis-- [EMAIL PROTECTED]
Member of the OpenSSL development team: http://www.openssl.org/

Unsolicited commercial email is subject to an archival fee of $400.
See  for more info.
__
OpenSSL Project http://www.openssl.org
Development Mailing List   [EMAIL PROTECTED]
Automated List Manager   [EMAIL PROTECTED]



Re: [openssl.org #371] undeclared MAXHOSTNAMELEN in ssltest.c(097snap)

2002-12-01 Thread Ricardo Ariel Gorosito
El dom, 01-12-2002 a las 15:02, Lutz Jaenicke via RT escribió:
> ... 
> Hmm.  seems to be Linux'ish to me. I just checked my 
> HP-UX 10.20 box and it seems, that  would be the way 
> to go. On Linux this will include  via . 
>  
> Could you please try? 
>  
> Hmm. Having this said, e_os.h already seems to include , 
> doesn't it??? 

you are right e_os.h -> sys/param.h -> linux/param.h -> asm/param.h ->
MAXHOSTNAMELEN

but compiling ssltest.c fail:

# gcc -I.. -I../include -I/usr/kerberos/include -fPIC -DOPENSSL_THREADS
-D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -DKRB5_MIT -DL_ENDIAN -DTERMIO
-O3 -fomit-frame-pointer -mcpu=athlon -Wall -DSHA1_ASM -DMD5_ASM
-DRMD160_ASM   -c -o ssltest.o ssltest.c -Wall
ssltest.c: In function `main':
ssltest.c:693: `MAXHOSTNAMELEN' undeclared (first use in this function)
ssltest.c:693: (Each undeclared identifier is reported only once
ssltest.c:693: for each function it appears in.)
ssltest.c:693: warning: unused variable `localhost'

I don't know why, but USE_SOCKETS is undefined (tested with #error in
e_os.h) and it appears to be becouse e_os.h don't include sys/param.h.

to get this error, you need to build with krb5

Thanks, Ricardo.


__
OpenSSL Project http://www.openssl.org
Development Mailing List   [EMAIL PROTECTED]
Automated List Manager   [EMAIL PROTECTED]



[openssl.org #371] undeclared MAXHOSTNAMELEN in ssltest.c (097snap)

2002-12-01 Thread Lutz Jaenicke via RT

[[EMAIL PROTECTED] - Sat Nov 30 23:00:17 2002]: 
 
> Building OpenSSL 0.9.7 beta4 and snap 20021129 on RedHat 8.0 (gcc 3.2 
& 
> glibc 2.3) configured with 'no-asm shared --with-krb5-flavor="MIT"' 
make 
> fail with undeclared MAXHOSTNAMELEN in ssltest.c (line 693). 
> After adding #include  build ok and pass all tests 
 
Hmm.  seems to be Linux'ish to me. I just checked my 
HP-UX 10.20 box and it seems, that  would be the way 
to go. On Linux this will include  via . 
 
Could you please try? 
 
Hmm. Having this said, e_os.h already seems to include , 
doesn't it??? 
 
Best regards, 
Lutz 
 
 
__
OpenSSL Project http://www.openssl.org
Development Mailing List   [EMAIL PROTECTED]
Automated List Manager   [EMAIL PROTECTED]



[openssl.org #371] undeclared MAXHOSTNAMELEN in ssltest.c (097snap)

2002-11-30 Thread Ricardo Ariel Gorosito via RT

Building OpenSSL 0.9.7 beta4 and snap 20021129 on RedHat 8.0 (gcc 3.2 &
glibc 2.3) configured with 'no-asm shared --with-krb5-flavor="MIT"' make
fail with undeclared MAXHOSTNAMELEN in ssltest.c (line 693).
After adding #include  build ok and pass all tests

-- 
Ricardo Ariel Gorosito <[EMAIL PROTECTED]>

__
OpenSSL Project http://www.openssl.org
Development Mailing List   [EMAIL PROTECTED]
Automated List Manager   [EMAIL PROTECTED]