OpenQNX :: The QNX Community Portal

Oct 06, 2008 - 07:10 PM
Google
  Web openqnx.com   
     Create an account Home · Submit News · QNX Forums · QNX Download · Search   
_
Main Menu
Who's Online
There are 48 unlogged users and 0 registered users online.

You can log-in or register for a user account here.

Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
Vladimir Timonin
Post subject: OpenSSL 0.9.7d  PostPosted: Mar 25, 2004 - 09:33 AM
Guest





patch for QNX6 and QNX4 available at
http://timonin.home.mindspring.com
 
   
Reply with quote Back to top
booBot
Post subject: Re: OpenSSL 0.9.7d  PostPosted: Apr 01, 2004 - 04:07 PM
Senior Member


Joined: Feb 24, 2004
Posts: 633

I'm using patch v2.5.4 on QNX v4.25G, for some reason it rejects patching
the /openssl-0.9.7d/Makefile.ssl

Can you mail the patched version to me directly, please?

PS I've got perl v5.8.1, is it a must to have bash too? What is the latest
port of bash to qnx4?
 
 View user's profile Send private message Visit poster's website ICQ Number 
Reply with quote Back to top
Vladimir Timonin
Post subject: Re: OpenSSL 0.9.7d  PostPosted: Apr 02, 2004 - 06:34 AM
Guest





Tony wrote:
Quote:
I'm using patch v2.5.4 on QNX v4.25G, for some reason it rejects
patching the /openssl-0.9.7d/Makefile.ssl

Can you mail the patched version to me directly, please?

PS I've got perl v5.8.1, is it a must to have bash too? What is the
latest port of bash to qnx4?

Replied my mail.
 
   
Reply with quote Back to top
booBot
Post subject: Using OpenSSL 0.9.7d QNX patch to port OpenSSL 0.9.7e  PostPosted: Dec 04, 2004 - 07:50 PM
Senior Member


Joined: Feb 24, 2004
Posts: 633

OpenSSL v0.9.7e was released on 25th of October.
It is announced as an important bug-fix.

I did try to use Mr.'s Timonin's patch from 0.9.7d - judging by the fact
it is partially rejected - the developers team has incorporated some
QNX-specific hacks into the distribution.

But still - I could not build the package (0.9.7e). More hacks needed.

Tony.
 
 View user's profile Send private message Visit poster's website ICQ Number 
Reply with quote Back to top
hmartinez
Post subject: RE: Using OpenSSL 0.9.7d QNX patch to port OpenSSL 0.9.7e  PostPosted: Jun 16, 2005 - 08:55 PM
New Member


Joined: Jun 16, 2005
Posts: 3

Hi,
I am trying to generate the binaries for OpenSSL (QNX4, 0.9.7f) but I don“t know how to start. I have downloaded the source files from OpenSSL.org and Mr. Timonin patches but when I try to make the binaries I get a lot of error messages. My first question is: Can I use the Watcom C compiler or do I need to use gcc?

Is there any place I can find binaries for QNX4 for SSL?

Do you know if stunnel works under QNX4?

Thank you
 
 View user's profile Send private message  
Reply with quote Back to top
booBot
Post subject: Re: Using OpenSSL 0.9.7d QNX patch to port OpenSSL 0.9.7e  PostPosted: Jun 16, 2005 - 10:28 PM
Senior Member


Joined: Feb 24, 2004
Posts: 633

On Fri, 17 Jun 2005 01:50:43 +0400, hmartinez
<dsnasa1@yahoo-dot-com.no-spam.invalid> wrote:
Quote:
Can I use the Watcom C compiler or do I need to use gcc?
I compile all v0.9.7x with Watcom C v10.6B+Security_patch using the Mr.

Timonin's excellent patches.

Quote:
Is there any place I can find binaries for QNX4 for SSL?
I can mail you mine.


Tony.
 
 View user's profile Send private message Visit poster's website ICQ Number 
Reply with quote Back to top
hmartinez
Post subject: RE: Re: Using OpenSSL 0.9.7d QNX patch to port OpenSSL 0.9.7  PostPosted: Jun 20, 2005 - 03:45 PM
New Member


Joined: Jun 16, 2005
Posts: 3

I used these steps in trying to build OpenSSL for QNX4:

1. Downloaded sources from openssl.org
2. Used: patch -p1 < openssl-0.9.7f.diff (from Timonin's page)
3. Typed: ./config no-threads no-shared no-hw [no-krb5] [no-idea] [no-cast]
4. Typed: make SHELL=bash depend
(Got some warnings)
5. Typed make SHELL=bash

Got this compilation errors:

making all in crypto/x509...
make[2]: Entering directory `/openssl-0.9.7f/crypto/x509'
cc -I.. -I../.. -I../../include -DOPENSSL_NO_KRB5 -O -c x_all.c -o x_all.o
../../include/openssl/rsa.h(229): Error! E1044: Variable 'RSAPrivateKey_it' has incomplete type
../../include/openssl/rsa.h(228): Error! E1044: Variable 'RSAPublicKey_it' has incomplete type
../../include/openssl/pkcs7.h(279): Error! E1044: Variable 'PKCS7_ISSUER_AND_SERIAL_it' has incomplete type
../../include/openssl/pkcs7.h(301): Error! E1044: Variable 'PKCS7_it' has incomplete type
../../include/openssl/x509.h(858): Error! E1044: Variable 'X509_REQ_it' has incomplete type
../../include/openssl/x509.h(857): Error! E1044: Variable 'X509_REQ_INFO_it' has incomplete type
../../include/openssl/x509.h(871): Error! E1044: Variable 'X509_CINF_it' has incomplete type
../../include/openssl/x509.h(867): Error! E1044: Variable 'X509_NAME_it' has incomplete type
../../include/openssl/x509.h(873): Error! E1044: Variable 'X509_it' has incomplete type
../../include/openssl/x509.h(895): Error! E1044: Variable 'X509_CRL_it' has incomplete type
../../include/openssl/x509.h(894): Error! E1044: Variable 'X509_CRL_INFO_it' has incomplete type
../../include/openssl/x509.h(905): Error! E1044: Variable 'NETSCAPE_SPKAC_it' has incomplete type
make[2]: *** [x_all.o] Error 12
make[2]: Leaving directory `/openssl-0.9.7f/crypto/x509'
make[1]: *** [subdirs] Error 1
make[1]: Leaving directory `/openssl-0.9.7f/crypto'
make: *** [sub_all] Error 1


Watcom compiler version is 10.6 (no release letter, are there any upgrades?) (also no security patch)


Any ideas??


Thank you
 
 View user's profile Send private message  
Reply with quote Back to top
hmartinez
Post subject: Re: RE: Re: Using OpenSSL 0.9.7d QNX patch to port OpenSSL 0  PostPosted: Jun 21, 2005 - 03:35 PM
New Member


Joined: Jun 16, 2005
Posts: 3

hmartinez wrote:
I used these steps in trying to build OpenSSL for QNX4:

1. Downloaded sources from openssl.org
2. Used: patch -p1 < openssl-0.9.7f.diff (from Timonin's page)
3. Typed: ./config no-threads no-shared no-hw [no-krb5] [no-idea] [no-cast]
4. Typed: make SHELL=bash depend
(Got some warnings)
5. Typed make SHELL=bash

Got these compilation errors:

making all in crypto/x509...
make[2]: Entering directory `/openssl-0.9.7f/crypto/x509'
cc -I.. -I../.. -I../../include -DOPENSSL_NO_KRB5 -O -c x_all.c -o x_all.o
../../include/openssl/rsa.h(229): Error! E1044: Variable 'RSAPrivateKey_it' has incomplete type
../../include/openssl/rsa.h(228): Error! E1044: Variable 'RSAPublicKey_it' has incomplete type
../../include/openssl/pkcs7.h(279): Error! E1044: Variable 'PKCS7_ISSUER_AND_SERIAL_it' has incomplete type
../../include/openssl/pkcs7.h(301): Error! E1044: Variable 'PKCS7_it' has incomplete type
../../include/openssl/x509.h(858): Error! E1044: Variable 'X509_REQ_it' has incomplete type
../../include/openssl/x509.h(857): Error! E1044: Variable 'X509_REQ_INFO_it' has incomplete type
../../include/openssl/x509.h(871): Error! E1044: Variable 'X509_CINF_it' has incomplete type
../../include/openssl/x509.h(867): Error! E1044: Variable 'X509_NAME_it' has incomplete type
../../include/openssl/x509.h(873): Error! E1044: Variable 'X509_it' has incomplete type
../../include/openssl/x509.h(895): Error! E1044: Variable 'X509_CRL_it' has incomplete type
../../include/openssl/x509.h(894): Error! E1044: Variable 'X509_CRL_INFO_it' has incomplete type
../../include/openssl/x509.h(905): Error! E1044: Variable 'NETSCAPE_SPKAC_it' has incomplete type
make[2]: *** [x_all.o] Error 12
make[2]: Leaving directory `/openssl-0.9.7f/crypto/x509'
make[1]: *** [subdirs] Error 1
make[1]: Leaving directory `/openssl-0.9.7f/crypto'
make: *** [sub_all] Error 1


Watcom compiler version is 10.6 (no release letter, are there any upgrades?) (also no security patch)


Any ideas??


Thank you


OK, the problem was on step 3, what I really meant to type was:
./config no-threads no-shared no-hw no-krb5 no-idea no-cast


I finally have the binaries. Now, does anybody know if stunnel works under QNX4? Any other software that has the same functionality as stunnel and has a port to QNX4?

Thanks
 
 View user's profile Send private message  
Reply with quote Back to top
Vladimir Timonin
Post subject: Re: Using OpenSSL 0.9.7d QNX patch to port OpenSSL 0  PostPosted: Jul 09, 2005 - 03:31 AM
Guest





hmartinez wrote:
Quote:
hmartinezwrote:

I used these steps in trying to build OpenSSL for QNX4:

1. Downloaded sources from openssl.org
2. Used: patch -p1

openssl-0.9.7f.diff (from Timonin's page)

3. Typed: [b:c82fca68fe]./config no-threads no-shared no-hw

[no-krb5] [no-idea] [no-cast][/b:c82fca68fe]

4. Typed: [b:c82fca68fe]make SHELL=bash depend[/b:c82fca68fe]
(Got some warnings)
5. Typed [b:c82fca68fe]make SHELL=bash[/b:c82fca68fe]

Got these compilation errors:

making all in crypto/x509...
make[2]: Entering directory `/openssl-0.9.7f/crypto/x509'
cc -I.. -I../.. -I../../include -DOPENSSL_NO_KRB5 -O -c x_all.c -o

x_all.o

../../include/openssl/rsa.h(229): Error! E1044: Variable

'RSAPrivateKey_it' has incomplete type

../../include/openssl/rsa.h(228): Error! E1044: Variable

'RSAPublicKey_it' has incomplete type

../../include/openssl/pkcs7.h(279): Error! E1044: Variable

'PKCS7_ISSUER_AND_SERIAL_it' has incomplete type

../../include/openssl/pkcs7.h(301): Error! E1044: Variable

'PKCS7_it' has incomplete type

../../include/openssl/x509.h(858): Error! E1044: Variable

'X509_REQ_it' has incomplete type

../../include/openssl/x509.h(857): Error! E1044: Variable

'X509_REQ_INFO_it' has incomplete type

../../include/openssl/x509.h(871): Error! E1044: Variable

'X509_CINF_it' has incomplete type

../../include/openssl/x509.h(867): Error! E1044: Variable

'X509_NAME_it' has incomplete type

../../include/openssl/x509.h(873): Error! E1044: Variable 'X509_it'

has incomplete type

../../include/openssl/x509.h(895): Error! E1044: Variable

'X509_CRL_it' has incomplete type

../../include/openssl/x509.h(894): Error! E1044: Variable

'X509_CRL_INFO_it' has incomplete type

../../include/openssl/x509.h(905): Error! E1044: Variable

'NETSCAPE_SPKAC_it' has incomplete type

make[2]: *** [x_all.o] Error 12
make[2]: Leaving directory `/openssl-0.9.7f/crypto/x509'
make[1]: *** [subdirs] Error 1
make[1]: Leaving directory `/openssl-0.9.7f/crypto'
make: *** [sub_all] Error 1


Watcom compiler version is 10.6 (no release letter, are there any

upgrades?) (also no security patch)


Any ideas??


Thank you


OK, the problem was on step 3, what I really meant to type was:
[b:c82fca68fe]./config no-threads no-shared no-hw no-krb5 no-idea
no-cast[/b:c82fca68fe]


I finally have the binaries. Now, does anybody know if
[b:c82fca68fe]stunnel[/b:c82fca68fe] works under QNX4? Any other
software that has the same functionality as
[b:c82fca68fe]stunnel[/b:c82fca68fe] and has a port to QNX4?

Thanks


With stunnel version 4.10 the following works for me under QNX4:

export CXXCPP="cc -E"
export LD=cc
../configure --without-gnu --without-gnu-ld --with-ssl=/usr/local/ssl

##### edit config.status and change (it's one line)
s,@LIBS@,-lsocket -L/usr/local/ssl/lib -lssl -lcrypto -lRSAglue
-LNONE/lib -lrsaref ,;t t
##### to (it's one line)
s,@LIBS@,-L/usr/tcptk/current/usr/lib -lsocket -L/usr/local/ssl/lib
-lssl -lcrypto ,;t t

##### you may check that socket.lib in /usr/lib is a link to TCP toolkit
##### library and do not insert -L... before -lsocket

make
 
   
Reply with quote Back to top
blp
Post subject: OpenSSL 0.9.8  PostPosted: Aug 02, 2005 - 07:39 PM
New Member


Joined: Aug 02, 2005
Posts: 3

Hello Vladimir Timonin,

I tried to compile OpenSSL 0.9.8 under QNX 6.3.0 SP1.
I first applied your patch.
then I performed:
#./config threads shared no-hw

Then I had a problem with "#make".
Indeed, the "config" command broke nearly all include links (it misses a letter - for instance - include/openssl/bio.h => crypto/bi/bio.h)

I searched a while and I found that links where done by "utils/mklink.pl".
I had to remove line 55 (unlink ...).

With this modification I could perform successfully:
#tar zxf openssl-0.9.8.tar.gz
#cd openssl-0.9.8
#patch -p1 < ../openssl-0.9.8.diff
#./config threads shared no-hw
#make

But now, when I launch "make test", I have the following error:
could not preload library ../util/../libcrypto.so.0.9.8 ../util/../libssl.so.0.9.8

Did you have the same problem?
(make install works and it seems that openssl is ok but I would rather perform successfully the make test).

Thanks in advance and thank you for your openssl patch.

Regards,

Bertrand
 
 View user's profile Send private message  
Reply with quote Back to top
blp
Post subject: Re: OpenSSL 0.9.8  PostPosted: Aug 03, 2005 - 07:25 AM
New Member


Joined: Aug 02, 2005
Posts: 3

Hello,

I found that the "could not preload library ../util/../libcrypto.so.0.9.8
../util/../libssl.so.0.9.8" was due to a misconfiguration in "util/shlib_wrap.sh".

Indeed, the LD_PRELOAD values must be separated by a colon for QNX.
So, I added the following line after line 63:
*QNX) LD_PRELOAD="$LIBCRYPTOSO:$LIBSSLSO" ;; # *QNX

With this modification, the "make test" goes further.
Now, it seems that there is a cryptographic error:
test for ECDH fails:
./p ./p.clear differ: char 1, line 1
make[1]: *** [test_enc] Error 1
...

Did you encounter this problem?

Thanks,

Bertrand
 
 View user's profile Send private message  
Reply with quote Back to top
blp
Post subject: Re: OpenSSL 0.9.8  PostPosted: Aug 03, 2005 - 08:33 AM
New Member


Joined: Aug 02, 2005
Posts: 3

Hello,

It was a problem with files test/p and test/p.clear due to the debug I did.
Now, it works.

So the steps to compile OpenSSL 0.9.8 for QNX 6.3.0 SP1 are:

On a Linux Box (the QNX patch command did nothing so I did this step with a Linux Box)
#tar zxf openssl-0.9.8.tar.gz
#gunzip openssl-0.9.8.diff.gz
#cd openssl-0.9.8
#patch -p1 <../openssl-0.9.8.diff
#cd ..
#tar czvf openssl-0.9.8-qnx.tar.gz openssl-0.9.8

On the QNX host:
#mkdir /install
#cd /install
#tar zxf openssl-0.9.8-qnx.tar.gz
#cd openssl-0.9.8

#vi util/mklink.pl
=> Remove line 55 (unlink "$from/$file"Wink

#vi util/shlib_wrap.sh
=> Add the following line after line 63
*QNX) LD_PRELOAD="$LIBCRYPTOSO:$LIBSSLSO" ;; # *QNX

#./config threads shared no-hw
#make
#make tests
#make install

Vladimir,

Could you add these 2 modifications to your openssl-0.9.8 patch?

Regards,

Bertrand
 
 View user's profile Send private message  
Reply with quote Back to top
booBot
Post subject: Re: OpenSSL 0.9.8  PostPosted: Aug 03, 2005 - 10:54 AM
Senior Member


Joined: Feb 24, 2004
Posts: 633

On Wed, 03 Aug 2005 13:47:03 +0400, blp
<bertrand_lepiolot@yahoo-dot-fr.no-spam.invalid> wrote:
Quote:
Could you add these 2 modifications to your openssl-0.9.8 patch?
I also suggest getting the very latest zlib (v1.2.3) as well and "./config

zlib (all you other options)".

Tony.
 
 View user's profile Send private message Visit poster's website ICQ Number 
Reply with quote Back to top
KBOB
Post subject: RE: Re: OpenSSL 0.9.8  PostPosted: Feb 13, 2006 - 06:13 AM
Active Member


Joined: Jul 04, 2005
Posts: 37

under QNX4 in Configure I use
"qnx4", "cc:-DL_ENDIAN -DTERMIO -DNO_STRINGS_H::(unknown)::-lsocket:EXPORT_VAR_AS_FN ${x86_gcc_des} ${x86_gcc_opts}:"

just one other patch needed in config for QNX4 to recognize.
 
 View user's profile Send private message  
Reply with quote Back to top
nayak
Post subject: RE: Re: OpenSSL 0.9.8  PostPosted: Nov 21, 2007 - 06:26 AM
Active Member


Joined: Nov 19, 2007
Posts: 16

Hi All,
Can we directly use the Make file available in the openssl source to build on QNX 6.3 ? Will I be able to specify the taregt platform like "mpc "in my case while building?


Nayak
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2007 The PNphpBB Group
Credits
All logos and trademarks in this site are property of their respective owners. The comments are property of their posters.
Powered by OpenQNX: The QNX Community Portal Site
QNX and the QNX logo are registered trademarks of QNX Software Systems.