Subject: | Failing tests on *BSD; assumption about sockaddr contents |
Date: | Sat, 18 Oct 2008 09:19:36 +0300 |
To: | bug-Net-SSLeay [...] rt.cpan.org |
From: | Damyan Ivanov <dmn [...] debian.org> |
Message body not shown because it is not plain text.
Hi,
A Debian GNU/kFreeBSD porter, Petr Salinger reported the following
bug[1] against the Debian package.
[1] http://bugs.debian.org/502518
Please Cc 502518@bugs.debian.org, 502518-submitter@bugs.debian.org in
replies.
---------------------------
the current version fails to build on GNU/kFreeBSD.
It is due to failed tests. Unfortunately, tests assume some variant of
"struct sockaddr". This variant is not used on BSD* systems. The linux
one have at the beginning "short family", but BSD* systems have "char
length; char family".
It looks like it would be better to use sockaddr_in() for constructing
needed parameters. With the patch bellow the test suite passes on
GNU/kFreeBSD.
It would be nice if you can inform upstream about this problem, there
are also needed similar changes in examples.
---------------------------
The patch attached addresses "pack vs. sockaddr_in" only for tests.
The examples could get a bit of porting effort too.
Thanks,
dam
Debian Perl Group
--
dam JabberID: dam@jabber.minus273.org
Message body is not shown because sender requested not to inline it.