net/viamillipede seeks commiter

Ash Gokhale ashfixit at gmail.com
Mon Mar 5 15:25:42 UTC 2018


On Sun, Mar 4, 2018 at 11:58 AM, Josh Paetzel <josh at tcbug.org> wrote:

>
>
> On Sat, Mar 3, 2018, at 12:51 PM, Kurt Jaeger wrote:
>
> > --
> > pi at opsec.eu            +49 171 3101372                         2 years
> to go !
>
> I get a different failure on 10.4 using poudriere:
>
> --- rx.o ---
> rx.c:182:14: error: expected ')'
>                         (void *(* _Nonnull)(void *))&rxworker,
>                                   ^
> rx.c:182:11: note: to match this '('
>                         (void *(* _Nonnull)(void *))&rxworker,
>                                ^
> 1 error generated.
> --- tx.o ---
> tx.c:317:14: error: expected ')'
>                         (void *(* _Nonnull)(void *))&txworker_sm,
>                                   ^
> tx.c:317:11: note: to match this '('
>                         (void *(* _Nonnull)(void *))&txworker_sm,
>                                ^
> 1 error generated.
> *** [tx.o] Error code 1
>
> I have a small Makefile patch I'll send as a pull request to satisfy
> portlint.
>
> --
>
> Thanks,
>
> Josh Paetzel
>

The nonnull attrib error is a thing to ponder nice  to save those two
instructions:
http://rachid.koucha.free.fr/tech_corner/nonnull_gcc_attribute.html.
Looks like we got it here https://reviews.freebsd.org/D2101
And clang suggested a change that I complicitly copied without
understanding  the portability damage.
What's the portable way to murder all the typing and shut up  the compiler
warnings?
Is there a correct way to indicate the correct types through the pthreads
interfaces?

I'm also open to suggestions for a minimal makefile that satisfies the
build discipline. The tool itself doesn't need anything except sockets and
stdio. Future work would  cap limit this, but it's not really portable yet.

And thanks for the portlint PR while I learn the poudriere.


More information about the freebsd-ports mailing list