-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Trying to compile with vbcc the https.c #44
Comments
Try adding |
Yeah. That did the trick. And I also had to remove the I tried to compile it for 68k as well with the following command: but I am getting a couple of errors
Thank you for your valuable help. I just want to know that the development environment I am creating has what is needed to compile programs that need AmiSSL. |
No problem - if there is anything I can do to improve to SDK, I'll try to do it. For the first error, you need to add -D__NEW_TIMEVAL_DEFINITION_USED__ - I'm going to modify https.c so these two definitions are added there too, so it is more obvious than having to decipher our Makefile. For the socket warnings/errors where is your clib/socket_protos.h coming from? I can't seem to find __Psocket, etc, anywhere in the includes that I have. You appear to have two conflicting headers that are defining a socket() macro, for example. For testing with VBCC, I used some ancient AmiTCP includes (that I'm using with SAS/C!) to compile https.c. I can see that Jens is using the Roadshow includes for building the OS3 AmiSSL though. |
Unfortunately the -D__NEW_TIMEVAL_DEFINITION_USED__ didn't solve anything. I am using PosixLib. There is the clib/socket_protos.h. I tried using Roadshow as well, without PosixLib, but I get the following error
Where can I find that Makefile to have a look? |
I was referring to https://github.com/jens-maus/amissl/blob/master/Makefile for AmiSSL, which also builds the https example with GCC for OS3/OS4, so there is not much to learn from that now that I have updated https://github.com/jens-maus/amissl/blob/master/test/https.c - I've removed some unnecessary includes which should help with compiling with VBCC, whilst still compiling ok with GCC. There may be complications using PosixLib with AmiSSL. Ultimately, at some point you need to pass the low level socket to AmiSSL, maybe with something like |
@Futaura Thank you very much for your help on that. Unfortunately, under m68k it still has issues. If I compile it without Posix Lib includes I get the following error
with Posix lib includes
The dev environment I am building it is based on docker, and can be found at |
Apologies for the delayed reply - things have been going wrong elsewhere, so haven't had time to get back to AmiSSL until now... As I eluded too, I think making the https.c example compile with PosixLib is out of the question, as that example code is intentionally Amiga-centric. But, in your own code, I think you should be able to use PosixLib without a problem as long as it provides as way to get the real AmigaOS native socket value so that it can be passed to To compile the example on 68k, you will need to install some other sys/types.h file and use that - I've forgotten what I used on my system, as I have various copies of that file lying around. |
Has anyone else managed to resolve this? I've checked out @walkero-gr's code after seeing his AmiWest tutorial but I'm having the same problems. I apologise if this isn't the right place and I should open up an issue with him, but I wanted to see if any work's been done here or if there's another AmiSSL client example that could compile on m68k? |
I am trying to compile with vbcc the example code https.c, but I am getting errors. I am using a cross compiling environment, with AmigaOS 4 SDK and latest AmiSSL 4.4 dev files installed.
I am using the following command to compile it:
vc +aosppc +newlib -I/opt/sdk/ppc-amigaos/Include/include_h -I/opt/sdk/ppc-amigaos/Include/netinclude -I/opt/sdk/ppc-amigaos/newlib/include -I/opt/sdk/AmiSSL/include -lauto https.c -o https -v
I get a few errors and a lot of warnings. I think that I am missing something.
I tried to use PosixLib as well, but no luck.
Any idea what I am missing there?
The text was updated successfully, but these errors were encountered: