Login
Username:

Password:

Remember me



Lost Password?

Register now!
Main Menu
Who's Online
1 user(s) are online (1 user(s) are browsing Forum)

Members: 0
Guests: 1

more...

Browsing this Thread:   1 Anonymous Users



« 1 (2) 3 »


Re: AmiSSL

Joined:
2010/8/30 7:20
Group:
Member
Posts: 1194
Offline
i certainly will, assuming nikolas provides me with a diff or preliminarly tests and commits his changes, best case ater review by kalamatee o neil.

Posted on: 6/6 0:30
Transfer the post to other applications Transfer


Re: AmiSSL

Joined:
2006/4/7 1:34
Group:
Member
Posts: 658
Offline
@nikolas

Fantastic news! Good times for ABI v1!

Keep up the good work!

Posted on: 6/6 12:35
Transfer the post to other applications Transfer


Re: AmiSSL

Joined:
2017/9/11 14:28
From Basel
Group:
Member
Posts: 12
Offline
Hi all,

Finally I was able to compile all the tests and to make a proper mmakefile and patch.

You can find the two files on this link.
My notes during developments are here

I have successfully run some of the test on AROS, but I still have to compile make on my AROS ABI_V1 to be able to automatically run all of them.

Please give a look on it, since I do not have specific experience programming on Amiga or AROS, but I did my best reading some documentation and what was done for 1.0.1 version.

Posted on: 6/7 12:43

Edited by nikolas on 2018/6/7 13:46:19
Transfer the post to other applications Transfer


No Account
Re: AmiSSL
Guest_No Account
Quote:

nikolas wrote:
Hi all,

Finally I was able to compile all the tests and to make a proper mmakefile and patch.

You can find the two files on this link.
My notes during developments are here

I have successfully run some of the test on AROS, but I still have to compile make on my AROS ABI_V1 to be able to automatically run all of them.

Please give a look on it, since I do not have specific experience programming on Amiga or AROS, but I did my best reading some documentation and what was done for 1.0.1 version.


I took a quick look, and it seems fine (though I haven't tried to build or use it yet). My only question would be if the final file in the patch (util/shlib_wrap.sh) is necessary?

Posted on: 6/7 14:05
Transfer the post to other applications Transfer


Re: AmiSSL

Joined:
2017/9/11 14:28
From Basel
Group:
Member
Posts: 12
Offline
Hi Kalamatee,
thanks for the quick answer.

Quote:

by Kalamatee wrote:

would be if the final file in the patch (util/shlib_wrap.sh) is necessary?



No, it was just missing from my exclude list. I'll remove it

I see that "make test" from openssl was invoking a perl script to run the automated tests, and I cannot do the same in AROS. I guess the only way here is to reimplement it using AROS shell scripting or something similar. Any better idea?

I tried with sh but I see the posix implementation is still not completed.This the error I got while trying to execute the script:

The function posixc/sigprocmask() is not implemented.
[KRN] Trap signal 11, SysBase b8b991e0, KernelBase b8b99f44
SP=b9717370 FP=b9717388 PC=b96e347a
R0=0000000a R1=b9717f60 R2=0000000a R3=b971d948
R4=b97197d2 R5=ce7aaaa2

Posted on: 6/7 15:50
Transfer the post to other applications Transfer


Re: AmiSSL

Joined:
2010/8/30 7:20
Group:
Member
Posts: 1194
Offline
within aros surce tree

enabling
-D__AROS__=1 -D__aros__=1
shouldnt be neccessary

--cross-compile-prefix=i386-aros
sould be probably left to the system to determine (what about the other targets)

no-shared
-probably correct, as it refers to generating so libs.

no-threads
-not sure. ptreads migt be used dunno, but it may need c++ static lib as a prerequisite.

-debug
-should probably be left out to be specified in configure flag.

but take my comments with a grain of salt, they might be confirmed or not, im not that experenced ;)

Posted on: 6/7 17:52
Transfer the post to other applications Transfer


Re: AmiSSL

Joined:
2017/9/11 14:28
From Basel
Group:
Member
Posts: 12
Offline
> enabling -D__AROS__=1 -D__aros__=1
>shouldnt be neccessary

It looks that it is necessary, but I could use only one flag.

> no-threads
> -not sure. ptreads migt be used dunno, but it may need c++ static lib as a prerequisite.

I removed this one and I was able to compile as well. Now it should be thread-safe :)

> --cross-compile-prefix=i386-aros
> sould be probably left to the system to determine (what > about the other targets)
> ...
> -debug
> -should probably be left out to be specified in configure flag.


Do you how I can find them? Can someone suggest some mmakefile or documentation?

Posted on: 6/8 13:17
Transfer the post to other applications Transfer


No Account
Re: AmiSSL
Guest_No Account
Quote:

nikolas wrote:
> enabling -D__AROS__=1 -D__aros__=1
>shouldnt be neccessary

It looks that it is necessary, but I could use only one flag.


The cross compiler defines those (they are hard coded in it). If they weren't there, most things in the source tree would not compile correctly. if the code doesn't detect them, you are likely using the wrong compiler.

Quote:

> no-threads
> -not sure. ptreads migt be used dunno, but it may need c++ static lib as a prerequisite.

I removed this one and I was able to compile as well. Now it should be thread-safe :)

> --cross-compile-prefix=i386-aros
> sould be probably left to the system to determine (what > about the other targets)



I believe that should be determined/set by openssl's configure scripts.

Quote:

> ...
> -debug
> -should probably be left out to be specified in configure flag.

Do you how I can find them? Can someone suggest some mmakefile or documentation?


Configure injects some of those into the TARGET_CFLAGS, via the generated files from "config/". if you are building in the build system they will be automatically provided, unless you use something incorrectly.


Posted on: 6/8 13:47
Transfer the post to other applications Transfer


Re: AmiSSL

Joined:
2017/9/11 14:28
From Basel
Group:
Member
Posts: 12
Offline
Quote:

Kalamatee wrote:
Quote:

nikolas wrote:
> enabling -D__AROS__=1 -D__aros__=1
>shouldnt be neccessary

It looks that it is necessary, but I could use only one flag.


The cross compiler defines those (they are hard coded in it). If they weren't there, most things in the source tree would not compile correctly. if the code doesn't detect them, you are likely using the wrong compiler.


I checked better. The compiler inject __AROS__. My compilation failed because __aros__ is not injected. I modified it in the patch to be with capital case.


Quote:

Quote:

> --cross-compile-prefix=i386-aros
> sould be probably left to the system to determine (what > about the other targets)



I believe that should be determined/set by openssl's configure scripts.



I guess you are right. I wanted a shortcut to avoid to patch the Configure script of OpenSSL, but I understand the point here. I guess I can use $(AROS_TARGET_CPU) to find the prefix.

Quote:

Quote:

> ...
> -debug
> -should probably be left out to be specified in configure flag.

Do you how I can find them? Can someone suggest some mmakefile or documentation?


Configure injects some of those into the TARGET_CFLAGS, via the generated files from "config/". if you are building in the build system they will be automatically provided, unless you use something incorrectly.


I see. I'll modify that also.

Posted on: 6/8 15:55
Transfer the post to other applications Transfer


Re: AmiSSL

Joined:
2017/9/11 14:28
From Basel
Group:
Member
Posts: 12
Offline
Hi all,

I implemented the changes we discussed. They are on the previous link

Posted on: 6/9 7:32
Transfer the post to other applications Transfer



« 1 (2) 3 »



You can view topic.
You cannot start a new topic.
You cannot reply to posts.
You cannot edit your posts.
You cannot delete your posts.
You cannot add new polls.
You cannot vote in polls.
You cannot attach files to posts.
You cannot post without approval.

[Advanced Search]


Search
Top Posters
1 paolone
paolone
4427
2 magorium
magorium
4095
3 nikolaos
nikolaos
4010
4 phoenixkonsole
phoenixkonsole
3921
5 deadwood
deadwood
2917
6 ncafferkey
ncafferkey
2794
7 mazze
mazze
2221
8 clusteruk
clusteruk
2112
9 damocles
damocles
1789
10 BSzili
BSzili
1511
© 2004-2018 AROS Exec