QNX4 & OpenSSL

I’m having trouble installing OpenSSL(0.9.7a) on QNX4.
Has anyone successfully installed OpenSSL on QNX4?
Supposedly QNX4 is a supported O/S for OpenSSL but when I run make I get
errors.

All I need is Perl 5.0+ correct?
I’m interested in hearing if anyone has had success with this or if it
is a lost cause.
Thanks

What errors?
It worked for me last time I tried for my openssh.

Paul Kimberley <pkimberley@ati.sl.on.ca> wrote:

I’m having trouble installing OpenSSL(0.9.7a) on QNX4.
Has anyone successfully installed OpenSSL on QNX4?
Supposedly QNX4 is a supported O/S for OpenSSL but when I run make I get
errors.

All I need is Perl 5.0+ correct?
I’m interested in hearing if anyone has had success with this or if it
is a lost cause.
Thanks

…/Configure qnx4 works fine, but when I run make i get the following

50+ x Warning W106 Constant out of range - Truncating
(happens when Make includes the bn.h header line #161)
( which is #define BN_MASK (0xffffffffffffffffLL) )
12 x Error E1044 Variable ‘Insert Var name here’ has incomplete type
(happens when including rsa.h, pkcs7.h, x509.h)

I’ve tried rolling back to earlier versions but i get the same errors


Do I need gcc installed im using cc that came with watcom, would that
make a difference?



liug wrote:

What errors?
It worked for me last time I tried for my openssh.

Paul Kimberley <> pkimberley@ati.sl.on.ca> > wrote:

I’m having trouble installing OpenSSL(0.9.7a) on QNX4.
Has anyone successfully installed OpenSSL on QNX4?
Supposedly QNX4 is a supported O/S for OpenSSL but when I run make I get
errors.


All I need is Perl 5.0+ correct?
I’m interested in hearing if anyone has had success with this or if it
is a lost cause.
Thanks

Paul Kimberley <pkimberley@ati.sl.on.ca> wrote in message
news:3E5B7874.2000409@ati.sl.on.ca

./Configure qnx4 works fine, but when I run make i get the following

50+ x Warning W106 Constant out of range - Truncating
(happens when Make includes the bn.h header line #161)
( which is #define BN_MASK (0xffffffffffffffffLL) )
12 x Error E1044 Variable ‘Insert Var name here’ has incomplete type
(happens when including rsa.h, pkcs7.h, x509.h)

I’ve tried rolling back to earlier versions but i get the same errors


Do I need gcc installed im using cc that came with watcom, would that
make a difference?

The issue is that Watcom 10.x doesn’t support 64bit types and a uint64_t is
actually a struct of two 32bit types. So you’ll have to go into the source,
make a uint64_t and initialize it to the value your mask needs to be, and
reference the variable instead.

Or perhaps build OpenSSL w/o 64bit support (I’m not exactly sure what would
be required, but I’m pretty sure you can get 16bit versions of OpenSSL
built).

-Adam

Hi liug,

Would it be possible for you to make available the version of the SSL port
that you used? Or could you post some information on how you installed it?

Thanks,
Eric

“liug” <liug@mama.indstate.edu> wrote in message
news:b3e37e$5qr$1@inn.qnx.com

What errors?
It worked for me last time I tried for my openssh.

Paul Kimberley <> pkimberley@ati.sl.on.ca> > wrote:
I’m having trouble installing OpenSSL(0.9.7a) on QNX4.
Has anyone successfully installed OpenSSL on QNX4?
Supposedly QNX4 is a supported O/S for OpenSSL but when I run make I get
errors.

All I need is Perl 5.0+ correct?
I’m interested in hearing if anyone has had success with this or if it
is a lost cause.
Thanks

This int64 thingy must be added recently since I don’t remember
having this problem. You best bet is to find any old version of openssl.

openssh started to use int64 and I have switched to commercial ssh.
now openssl is doing the same thing, maybe it’s time to upgrade
to qnx6:)

Eric Norton <enortonNOSPAM@nospamfct.ca> wrote:

Hi liug,

Would it be possible for you to make available the version of the SSL port
that you used? Or could you post some information on how you installed it?

Thanks,
Eric

“liug” <> liug@mama.indstate.edu> > wrote in message
news:b3e37e$5qr$> 1@inn.qnx.com> …

What errors?
It worked for me last time I tried for my openssh.

Paul Kimberley <> pkimberley@ati.sl.on.ca> > wrote:
I’m having trouble installing OpenSSL(0.9.7a) on QNX4.
Has anyone successfully installed OpenSSL on QNX4?
Supposedly QNX4 is a supported O/S for OpenSSL but when I run make I get
errors.

All I need is Perl 5.0+ correct?
I’m interested in hearing if anyone has had success with this or if it
is a lost cause.
Thanks

I tried to compile 0.9.7 and then 0.9.7a and got some errors too.
Quick and dirty hack shown in attached diff file.

Do not forget to

ln -s /bin/true /usr/bin/ranlib

and
$ ./config
$ make SHELL=bash

(bash is somewhere in ftp.qnx.com/usr/free/…)


liug wrote:

This int64 thingy must be added recently since I don’t remember
having this problem. You best bet is to find any old version of openssl.

openssh started to use int64 and I have switched to commercial ssh.
now openssl is doing the same thing, maybe it’s time to upgrade
to qnx6:)

Eric Norton <> enortonNOSPAM@nospamfct.ca> > wrote:

Hi liug,


Would it be possible for you to make available the version of the SSL port
that you used? Or could you post some information on how you installed it?


Thanks,
Eric


“liug” <> liug@mama.indstate.edu> > wrote in message
news:b3e37e$5qr$> 1@inn.qnx.com> …

What errors?
It worked for me last time I tried for my openssh.

Paul Kimberley <> pkimberley@ati.sl.on.ca> > wrote:

I’m having trouble installing OpenSSL(0.9.7a) on QNX4.
Has anyone successfully installed OpenSSL on QNX4?
Supposedly QNX4 is a supported O/S for OpenSSL but when I run make I get
errors.

All I need is Perl 5.0+ correct?
I’m interested in hearing if anyone has had success with this or if it
is a lost cause.
Thanks

Thanks for the diff file it worked with no error’s during compile!!

The only problem i have right now is that when i test out openssl, it
give me an error do to the lack of a random number seed.
It usually uses /dev/random or /dev/urandom on Unix/ Linux machines,
openssl recomends a program called egd if you dont have the random
devices, but it requires perl with the SHA library either dynamically or
statically linked. Apparently I havn’t done that.

Thanks again for the diff file it worked like a charm!




Vladimir Timonin wrote:

I tried to compile 0.9.7 and then 0.9.7a and got some errors too.
Quick and dirty hack shown in attached diff file.

Do not forget to

ln -s /bin/true /usr/bin/ranlib

and
$ ./config
$ make SHELL=bash

(bash is somewhere in ftp.qnx.com/usr/free/…)


liug wrote:

This int64 thingy must be added recently since I don’t remember
having this problem. You best bet is to find any old version of openssl.

openssh started to use int64 and I have switched to commercial ssh.
now openssl is doing the same thing, maybe it’s time to upgrade
to qnx6:)

Eric Norton <> enortonNOSPAM@nospamfct.ca> > wrote:

Hi liug,


Would it be possible for you to make available the version of the SSL
port
that you used? Or could you post some information on how you
installed it?


Thanks,
Eric


“liug” <> liug@mama.indstate.edu> > wrote in message
news:b3e37e$5qr$> 1@inn.qnx.com> …

What errors?
It worked for me last time I tried for my openssh.

Paul Kimberley <> pkimberley@ati.sl.on.ca> > wrote:

I’m having trouble installing OpenSSL(0.9.7a) on QNX4.
Has anyone successfully installed OpenSSL on QNX4?
Supposedly QNX4 is a supported O/S for OpenSSL but when I run make
I get
errors.

All I need is Perl 5.0+ correct?
I’m interested in hearing if anyone has had success with this or if it
is a lost cause.
Thanks




\

diff -r openssl-0.9.7a.orig/Configure openssl-0.9.7a/Configure
410c410
“qnx4”, “cc:-DL_ENDIAN -DTERMIO::(unknown):::${x86_gcc_des} ${x86_gcc_opts}:”,

“qnx4”, “cc:-DL_ENDIAN -DTERMIO::(unknown)::-lsocket:EXPORT_VAR_AS_FN ${x86_gcc_des} ${x86_gcc_opts}:”,

diff -r openssl-0.9.7a.orig/config openssl-0.9.7a/config
253c253,260
echo “${MACHINE}-whatever-qnx”

case “$VERSION” in
4*)
echo “${MACHINE}-whatever-qnx4”
;;
*)
echo “${MACHINE}-whatever-qnx”
;;
esac

diff -r openssl-0.9.7a.orig/apps/apps.c openssl-0.9.7a/apps/apps.c
135c135,136

include <strings.h


/* # include <strings.h> */
#define strcasecmp _stricmp

diff -r openssl-0.9.7a.orig/apps/ca.c openssl-0.9.7a/apps/ca.c
85c85,86

include <strings.h


/# include <strings.h>/
#define strcasecmp _stricmp

diff -r openssl-0.9.7a.orig/crypto/bn/bn.h openssl-0.9.7a/crypto/bn/bn.h
161c161,167
#define BN_MASK (0xffffffffffffffffLL)

#ifdef WATCOMC
#pragma disable_message ( 106 ) ;
#endif
#define BN_MASK :Be patient - it is “not used anywhere”: (0xffffffffffffffffLL)
#ifdef WATCOMC
#pragma enable_message ( 106 ) ;
#endif

I’m currently testing the install by using the openssl s_server &
s_client functions.

Openssl requires egd to provide a random number seed. egd opens a UNIX
socket and provides the seed. But it can’t create a UNIX socket while
Socket or Socklet are running is this normal?

I slay Socket/Socklet and then I can’t use IP socket for the openssl
connection. So I can have UNIX or IP sockets but I need both.


Is this how the Socket / Socklet works?
I’ve had a lot of problems with networking my QNX box as it has two
netowrk cards for two differnet nets , not reduncancy.

Is Socket suppose to support both IP and UNIX sockets?



Paul Kimberley wrote:

Thanks for the diff file it worked with no error’s during compile!!

The only problem i have right now is that when i test out openssl, it
give me an error do to the lack of a random number seed.
It usually uses /dev/random or /dev/urandom on Unix/ Linux machines,
openssl recomends a program called egd if you dont have the random
devices, but it requires perl with the SHA library either dynamically or
statically linked. Apparently I havn’t done that.

Thanks again for the diff file it worked like a charm!




Vladimir Timonin wrote:

I tried to compile 0.9.7 and then 0.9.7a and got some errors too.
Quick and dirty hack shown in attached diff file.

Do not forget to

ln -s /bin/true /usr/bin/ranlib

and
$ ./config
$ make SHELL=bash

(bash is somewhere in ftp.qnx.com/usr/free/…)


liug wrote:

This int64 thingy must be added recently since I don’t remember
having this problem. You best bet is to find any old version of openssl.

openssh started to use int64 and I have switched to commercial ssh.
now openssl is doing the same thing, maybe it’s time to upgrade
to qnx6:)

Eric Norton <> enortonNOSPAM@nospamfct.ca> > wrote:

Hi liug,


Would it be possible for you to make available the version of the
SSL port
that you used? Or could you post some information on how you
installed it?


Thanks,
Eric


“liug” <> liug@mama.indstate.edu> > wrote in message
news:b3e37e$5qr$> 1@inn.qnx.com> …

What errors?
It worked for me last time I tried for my openssh.

Paul Kimberley <> pkimberley@ati.sl.on.ca> > wrote:

I’m having trouble installing OpenSSL(0.9.7a) on QNX4.
Has anyone successfully installed OpenSSL on QNX4?
Supposedly QNX4 is a supported O/S for OpenSSL but when I run make
I get
errors.

All I need is Perl 5.0+ correct?
I’m interested in hearing if anyone has had success with this or
if it
is a lost cause.
Thanks




\

diff -r openssl-0.9.7a.orig/Configure openssl-0.9.7a/Configure
410c410
“qnx4”, “cc:-DL_ENDIAN -DTERMIO::(unknown):::${x86_gcc_des}
${x86_gcc_opts}:”,

“qnx4”, “cc:-DL_ENDIAN
-DTERMIO::(unknown)::-lsocket:EXPORT_VAR_AS_FN ${x86_gcc_des}
${x86_gcc_opts}:”,

diff -r openssl-0.9.7a.orig/config openssl-0.9.7a/config
253c253,260
echo “${MACHINE}-whatever-qnx”

case “$VERSION” in
4*)
echo “${MACHINE}-whatever-qnx4”
;;
*)
echo “${MACHINE}-whatever-qnx”
;;
esac

diff -r openssl-0.9.7a.orig/apps/apps.c openssl-0.9.7a/apps/apps.c
135c135,136

include <strings.h


/* # include <strings.h> */
#define strcasecmp _stricmp

diff -r openssl-0.9.7a.orig/apps/ca.c openssl-0.9.7a/apps/ca.c
85c85,86

include <strings.h


/# include <strings.h>/
#define strcasecmp _stricmp

diff -r openssl-0.9.7a.orig/crypto/bn/bn.h openssl-0.9.7a/crypto/bn/bn.h
161c161,167
#define BN_MASK (0xffffffffffffffffLL)

#ifdef WATCOMC
#pragma disable_message ( 106 ) ;
#endif
#define BN_MASK :Be patient - it is “not used anywhere”:
(0xffffffffffffffffLL)
#ifdef WATCOMC
#pragma enable_message ( 106 ) ;
#endif

Socket/Socklet doesn’t support Unix socket.
only “Tcpip” does. you need to upgrade to tcpip5.
http://www.qnx.com/developer/download/updates/qnx4/tcpip5/eula.html

Paul Kimberley <pkimberley@ati.sl.on.ca> wrote:

I’m currently testing the install by using the openssl s_server &
s_client functions.

Openssl requires egd to provide a random number seed. egd opens a UNIX
socket and provides the seed. But it can’t create a UNIX socket while
Socket or Socklet are running is this normal?

I slay Socket/Socklet and then I can’t use IP socket for the openssl
connection. So I can have UNIX or IP sockets but I need both.



Is this how the Socket / Socklet works?
I’ve had a lot of problems with networking my QNX box as it has two
netowrk cards for two differnet nets , not reduncancy.

Is Socket suppose to support both IP and UNIX sockets?



Paul Kimberley wrote:

Thanks for the diff file it worked with no error’s during compile!!

The only problem i have right now is that when i test out openssl, it
give me an error do to the lack of a random number seed.
It usually uses /dev/random or /dev/urandom on Unix/ Linux machines,
openssl recomends a program called egd if you dont have the random
devices, but it requires perl with the SHA library either dynamically or
statically linked. Apparently I havn’t done that.

Thanks again for the diff file it worked like a charm!




Vladimir Timonin wrote:

I tried to compile 0.9.7 and then 0.9.7a and got some errors too.
Quick and dirty hack shown in attached diff file.

Do not forget to

ln -s /bin/true /usr/bin/ranlib

and
$ ./config
$ make SHELL=bash

(bash is somewhere in ftp.qnx.com/usr/free/…)


liug wrote:

This int64 thingy must be added recently since I don’t remember
having this problem. You best bet is to find any old version of openssl.

openssh started to use int64 and I have switched to commercial ssh.
now openssl is doing the same thing, maybe it’s time to upgrade
to qnx6:)

Eric Norton <> enortonNOSPAM@nospamfct.ca> > wrote:

Hi liug,


Would it be possible for you to make available the version of the
SSL port
that you used? Or could you post some information on how you
installed it?


Thanks,
Eric


“liug” <> liug@mama.indstate.edu> > wrote in message
news:b3e37e$5qr$> 1@inn.qnx.com> …

What errors?
It worked for me last time I tried for my openssh.

Paul Kimberley <> pkimberley@ati.sl.on.ca> > wrote:

I’m having trouble installing OpenSSL(0.9.7a) on QNX4.
Has anyone successfully installed OpenSSL on QNX4?
Supposedly QNX4 is a supported O/S for OpenSSL but when I run make
I get
errors.

All I need is Perl 5.0+ correct?
I’m interested in hearing if anyone has had success with this or
if it
is a lost cause.
Thanks




\

diff -r openssl-0.9.7a.orig/Configure openssl-0.9.7a/Configure
410c410
“qnx4”, “cc:-DL_ENDIAN -DTERMIO::(unknown):::${x86_gcc_des}
${x86_gcc_opts}:”,

“qnx4”, “cc:-DL_ENDIAN
-DTERMIO::(unknown)::-lsocket:EXPORT_VAR_AS_FN ${x86_gcc_des}
${x86_gcc_opts}:”,

diff -r openssl-0.9.7a.orig/config openssl-0.9.7a/config
253c253,260
echo “${MACHINE}-whatever-qnx”

case “$VERSION” in
4*)
echo “${MACHINE}-whatever-qnx4”
;;
*)
echo “${MACHINE}-whatever-qnx”
;;
esac

diff -r openssl-0.9.7a.orig/apps/apps.c openssl-0.9.7a/apps/apps.c
135c135,136

include <strings.h


/* # include <strings.h> */
#define strcasecmp _stricmp

diff -r openssl-0.9.7a.orig/apps/ca.c openssl-0.9.7a/apps/ca.c
85c85,86

include <strings.h


/# include <strings.h>/
#define strcasecmp _stricmp

diff -r openssl-0.9.7a.orig/crypto/bn/bn.h openssl-0.9.7a/crypto/bn/bn.h
161c161,167
#define BN_MASK (0xffffffffffffffffLL)

#ifdef WATCOMC
#pragma disable_message ( 106 ) ;
#endif
#define BN_MASK :Be patient - it is “not used anywhere”:
(0xffffffffffffffffLL)
#ifdef WATCOMC
#pragma enable_message ( 106 ) ;
#endif

On Mon, 03 Mar 2003 08:38:39 -0500, Paul Kimberley
<pkimberley@ati.sl.on.ca> wrote:

Thanks for the diff file it worked with no error’s during compile!!

The only problem i have right now is that when i test out openssl, it
give me an error do to the lack of a random number seed.
It usually uses /dev/random or /dev/urandom on Unix/ Linux machines,
openssl recomends a program called egd if you dont have the random
devices, but it requires perl with the SHA library either dynamically or
statically linked. Apparently I havn’t done that.

You can download Sam Roberts’ /dev/random at:
ftp::/developers.cogentrts.com/pub/qnx4/stowable/stowable-devrand.tar.gz

Cheers,
Andrew