Seeking feedback for nng egg

2021-10-09 Thread Ariela Wenner
Hi all. I've been working on writing a very barebones nng egg[0] and I think it's usable now. It supports rep, req, pull, push, sub, pub, pair, surveyor, respondent and bus sockets, with TLS transport. At the moment options are kinda limited, but it is fairly easy to add anything missing. If it

Re: Seeking feedback for nng egg

2021-10-12 Thread Matt Welland
Hi Ariela, I'd like to give this a try but I'm not sure how to build it. 1. it seems to need srfi-69 2. I tried to compile with "make" and "chicken-install" but get a message about needing to use -fPIC. How to do that? I tried with: CSC_OPTIONS='-C "-fPIC"' make Thanks. On Sat, 2021-1

Re: Seeking feedback for nng egg

2021-10-13 Thread Ariela Wenner
Hi Matt! Oh yeah, I'm aware of the srfi-69 dep missing , I'll be fixing that asap I have to admit I've never come across that error while working on this egg, though. What OS are you using? I'll see if I can replicate that. Thanks for giving this a try, cheers! El 12 de octubre de 2021 11:28:4

Re: Seeking feedback for nng egg

2021-10-13 Thread Matt Welland
OS is lubuntu 20.04, latest nng from git. Thanks. On Wed, Oct 13, 2021, 8:11 AM Ariela Wenner wrote: > Hi Matt! > > Oh yeah, I'm aware of the srfi-69 dep missing , I'll be fixing that asap > > I have to admit I've never come across that error while working on this > egg, though. What OS are you

Re: Seeking feedback for nng egg

2021-10-13 Thread Ariela Wenner
Huh, weird. I have been trying to replicate whatever is going on, without luck so far. Would you mind editing the csc-options inside the egg definition on line 8? Should look like this: (csc-options "-C" "-fPIC" "-L" "-lnng") Then try building again. If the error persist send me the logs and

Re: Seeking feedback for nng egg

2021-10-14 Thread Matt Welland
I added "-C" "-fPIC" and get this: matt@mars:~/src/chicken-nng$ ck5 chicken-install -s building nng /home/matt/data/buildall/ck5.2/bin/csc -host -D compiling-extension -J -s -regenerate-import-libraries -setup-mode -I /home/matt/src/chicken-nng -C -I/home/matt/src/chicken-nng -C -fPIC -L -lnng

Re: Seeking feedback for nng egg

2021-10-14 Thread Zbigniew Szadkowski
Is nng compiled as a shared library? Because it looks like it’s linking against an archive file. > On Oct 14, 2021, at 20:49, Matt Welland wrote: > >  > I added "-C" "-fPIC" and get this: > > matt@mars:~/src/chicken-nng$ ck5 chicken-install -s > building nng >/home/matt/data/buildall/ck5.

Re: Seeking feedback for nng egg

2021-10-16 Thread Matt Welland
Yes, that was it. I'm not familiar with cmake. To get shared libraries in nng I guess you need to do: cd build cmake -D BUILD_SHARED_LIBS:BOOL=on .. The nng egg built fine after that. Now I'll give testing it a try. Thanks. On Thu, Oct 14, 2021 at 11:37 PM Zbigniew Szadkowski wrote: > Is nng