[R-pkg-devel] Problem compiling openssl package (FreeBSD stable/11)
David Wolfskill
r at catwhisker.org
Thu Jan 19 01:44:16 CET 2017
On Wed, Jan 18, 2017 at 01:27:24PM -0600, Dirk Eddelbuettel wrote:
> ...
> | And it appears that the local sources are ephemeral, so I can't
> | readily patch those sources to see if I can get it to work (as the
> | patched sources wouldn't be used) -- unless I miss the mark....
> |
> | Any suggestions for how I might proceed?
>
> I don't follow. Can you not use 'diff' and 'patch'? I am so old that I have
>
> tar xvzf foo_1.2.3.tar.gz
> mv foo foo.orig
> tar xvzf foo_1.2.3.tar.gz
> cd foo
> /* now do your work */
> cd .. && diff -ru foo.orig foo > foo.patch
>
> fairly deeply engrained in muscle memory. And R itself is in pretty tip-top
> shape and will listen to 'configure; make; make install'. You probably can
> even skip make install as you are "just" fighting a failure to build.
> ....
OK; thanks (again!) for your hints. :-)
I was able puzzle through things enough to determine that re-invoking
install.packages() as
install.packages("~/R/Rtmp4VjFtY/dhw/openssl", repos = NULL)
(in my case) would allow me to work with my copy of the sources; some
experimentation^Whacking later, I determined that the patch:
--- src/ssl.c.orig 2016-12-30 13:26:04.000000000 -0800
+++ src/ssl.c 2017-01-18 16:31:02.301226000 -0800
@@ -2,6 +2,9 @@
#if !defined(_WIN32) && !defined(__sun) && !defined(_POSIX_C_SOURCE)
#define _POSIX_C_SOURCE 200112L
#endif
+#if defined(__FreeBSD__)
+#define __BSD_VISIBLE 1
+#endif
#include <Rinternals.h>
#include <stdlib.h>
appears to allow the build (& install) to complete successfully.
I have managed to report this to the openssl package author.
Thanks again!
Peace,
david
--
David H. Wolfskill r at catwhisker.org
How could one possibly "respect" a misogynist, racist, bullying con-man??!?
See http://www.catwhisker.org/~david/publickey.gpg for my public key.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 603 bytes
Desc: not available
URL: <https://stat.ethz.ch/pipermail/r-package-devel/attachments/20170118/a8d189dd/attachment.bin>
More information about the R-package-devel
mailing list