Perl 6 - the future is here, just unevenly distributed

IRC log for #native, 2016-04-29

| Channels | #native index | Today | | Search | Google Search | Plain-Text | summary

All times shown according to UTC.

Time Nick Message
03:29 genio Is there an online and free source of FreeBSD VMs I can test with?  Runs fine on the mac, can't reproduce it anywhere, but CPAN testers complains about it all over
03:33 genio virtualbox + vagrant seems to be the go-to
03:58 genio ooooh.  Vagrant is pretty awesome so far.
04:11 preaction yeah, i like it
13:26 genio I keep running into this on FreeBSD.  http://www.cpantesters.org/cpan/report/676dc4be-0cc7-11e6-829f-59a5aef69d38
14:41 plicease genio: does the original package support --with-pic?
14:43 genio I believe so, but let me test
14:44 genio yes, it does.
14:45 plicease looks like on FreeBSD it is not building a dynamic lib.
14:46 plicease When I did Alien::Hunspell, this patch helped with a similar problem:
14:46 plicease https://metacpan.org/source/PLICEASE/Alien-Hunspell-0.07/patches/freebsd-autotools.diff
14:47 plicease I am pretty sure that I am being unclear.
14:50 plicease Tried this on my own FreeBSD.  Looks like it is passing --with-pic into the configure script.  That should produce a .a file that can be put into a .so file.
14:50 plicease but there might be a bug in the package.
14:50 plicease on FreeBSD it isn't creating a .so, just the .a
14:51 plicease It might work as it does on Linux if you can build a .so
14:51 plicease For Alien::Hunspell I had a problem where hunspell wasn't building a .so because it was miss-identifying FreeBSD 10 as FreeBSD 1
14:52 plicease the patch I posted helped with that.
14:52 plicease Have you gotten any reports from FreeBSD 9.x?
14:54 genio only if you count kfreebsd 9.0
14:54 plicease no.
14:54 plicease I have a FreeBSD 9 VM here, I can try that although there seems to be something wrong with it.
14:55 genio all freebsd reports have been from 10.2
14:55 genio It would take me a while to get a vagrant box up for that
14:56 plicease building on FreeBSD 9
14:56 genio Thanks for all of the help
14:56 plicease I get the same error.
14:57 plicease but weirdly it is building a .so file.
15:00 plicease are you doing anything to force it to link with the static lib?
15:00 plicease I thought usually gcc preferred the dynamic lib.
15:01 genio Not that I'm aware of.  No, I'm not.  https://metacpan.org/source/CAPOEIRAB/HTTP-GHTTP-1.080_004/dist.ini  generates https://metacpan.org/source/CAPOEIRAB/HTTP-GHTTP-1.080_004/Makefile.PL
15:03 genio https://metacpan.org/source/CAPOEIRAB/Alien-GHTTP-0.004/dist.ini for the actual Alien lib
15:09 plicease yeah, no I wouldn't expect that you would :)
15:10 plicease I am not sure it is responding to --with-pic though; it looks like it is building each .o file twice, but only using the -fPIC flag for one.
15:12 plicease yeah, on FreeBSD 10.x it is only compiling each .o once, and not using -fPIC at all.
15:13 plicease GNU configure files just ignore arguments they don't recognize, and it isn't in the --help output
15:13 plicease so I believe that it doesn't actually support --with-pic
15:16 plicease okay.  It does seem to prefer the .so file if there is a symlink
15:17 plicease libghttp.so => libghttp.so.1.0
15:17 plicease So I think you have two choices.  Upgrade the autotools to one that supports --with-pic
15:17 plicease or patch / upgrade autotools to recognize FreeBSD 10 as not FreeBSD 1
15:18 plicease the Alien::Hunspell patch I posted above may help.
15:19 genio I'll look into upgrading the autotools.  Thanks again!!
15:19 plicease np!
15:28 plicease I was able to get your dev version of HTTP::GHTTP to install by ading the symlink on FreeBSD 9.x
16:03 genio lots of fun with that autoreconf.  let me test a bit
16:36 genio Seems to properly make the .so -- however: https://gist.github.com/genio/5af0af9c6c6852daed5768a0b840a86f
17:24 plicease I believe to use the dynamic lib you will need to use Alien::GHTTP from your module.
17:24 plicease that should put the appropriate directory in the search path.
17:25 plicease I think it is better to actually use the static lib that way Alien::GHTTP doesn't need to be a run time dep.
17:25 plicease but the main reason you'd care is if you were expecting upgrades of libghttp which I am guessing isn't likely at this point.
17:26 plicease but to use the static lib you need to get it to build with -fPIC
17:28 plicease It is weird that it worked for me on FreeBSD 9 though.

| Channels | #native index | Today | | Search | Google Search | Plain-Text | summary