Skip Menu |

This queue is for tickets about the Vmprobe CPAN distribution.

Report information
The Basics
Id: 111223
Status: resolved
Priority: 0/
Queue: Vmprobe

People
Owner: Nobody in particular
Requestors: SREZIC [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Cannot compile on FreeBSD 10 systems (clang!)
FreeBSD 10 does not ship anymore gcc and g++ by default, but instead clang and clang++. Therefore compilation fails: ... g++ -std=c++11 -O2 -g -Wall -fPIC -c crawler.cpp g++: not found ... If the CXX definition is removed from libvmprobe/Makefile, then the compilation works. I think CXX has a reasonable default and may be removed everywhere. The other problem is the call to msync(), where the first argument has to be casted, it seems. With these patches also the test suite passes.
Subject: 0001-enable-compilation-on-FreeBSD-10.patch
From 75ac40fd5e1fa32dab3db12900a6a487d9bb1843 Mon Sep 17 00:00:00 2001 From: Slaven Rezic <cpansand@cvrsnica-freebsd-101.herceg.de> Date: Fri, 15 Jan 2016 22:08:09 +0100 Subject: [PATCH] enable compilation on FreeBSD 10 --- libvmprobe/Makefile | 2 +- libvmprobe/file.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libvmprobe/Makefile b/libvmprobe/Makefile index 393446d..cc05762 100644 --- a/libvmprobe/Makefile +++ b/libvmprobe/Makefile @@ -1,4 +1,4 @@ -CXX = g++ +#CXX = g++ AR = ar W = -Wall OPT = -O2 -g diff --git a/libvmprobe/file.cpp b/libvmprobe/file.cpp index fe46318..580a183 100644 --- a/libvmprobe/file.cpp +++ b/libvmprobe/file.cpp @@ -115,7 +115,7 @@ void file::evict(size_t start, size_t len) { #if defined(__linux__) || defined(__hpux) posix_fadvise(fd, start, len, POSIX_FADV_DONTNEED); #elif defined(__FreeBSD__) || defined(__sun__) || defined(__APPLE__) - msync(start, len, MS_INVALIDATE); + msync((void*)start, len, MS_INVALIDATE); #endif } -- 2.6.0
Thanks very much for the report! It's extremely early days for this module but I definitely plan to support BSD as much as possible. There are a few problem areas I know about that the (ahem) very minimal test-suite doesn't yet cover, but this information will be useful when I do get started on the FreeBSD port (hopefully very soon). Cheers, Doug PS. vmtouch has worked on FreeBSD since at least version 4, so technically there shouldn't be a problem. On Fri Jan 15 16:11:05 2016, SREZIC wrote: Show quoted text
> FreeBSD 10 does not ship anymore gcc and g++ by default, but instead > clang and clang++. Therefore compilation fails: > > ... > g++ -std=c++11 -O2 -g -Wall -fPIC -c crawler.cpp > g++: not found > ... > > If the CXX definition is removed from libvmprobe/Makefile, then the > compilation works. I think CXX has a reasonable default and may be > removed everywhere. > > The other problem is the call to msync(), where the first argument has > to be casted, it seems. > > With these patches also the test suite passes.
The reported issues should now be fixed in Vmprobe 0.1.4, although the FreeBSD functionality as a remote is still for now somewhat limited. Using FreeBSD as the controller system should work just fine though. BTW: I added github as the preferred issue tracker since it's easier for me to manage that way. Thanks! On Fri Jan 15 17:31:34 2016, FRACTAL wrote: Show quoted text
> Thanks very much for the report! It's extremely early days for this > module but I definitely plan to support BSD as much as possible. There > are a few problem areas I know about that the (ahem) very minimal > test-suite doesn't yet cover, but this information will be useful when > I do get started on the FreeBSD port (hopefully very soon). > > Cheers, > > Doug > > PS. vmtouch has worked on FreeBSD since at least version 4, so > technically there shouldn't be a problem. > > On Fri Jan 15 16:11:05 2016, SREZIC wrote:
> > FreeBSD 10 does not ship anymore gcc and g++ by default, but instead > > clang and clang++. Therefore compilation fails: > > > > ... > > g++ -std=c++11 -O2 -g -Wall -fPIC -c crawler.cpp > > g++: not found > > ... > > > > If the CXX definition is removed from libvmprobe/Makefile, then the > > compilation works. I think CXX has a reasonable default and may be > > removed everywhere. > > > > The other problem is the call to msync(), where the first argument > > has > > to be casted, it seems. > > > > With these patches also the test suite passes.
On Tue Jan 26 12:29:19 2016, FRACTAL wrote: Show quoted text
> The reported issues should now be fixed in Vmprobe 0.1.4, although the > FreeBSD functionality as a remote is still for now somewhat limited. > Using FreeBSD as the controller system should work just fine though. > > BTW: I added github as the preferred issue tracker since it's easier > for me to manage that way. > > Thanks! > > > On Fri Jan 15 17:31:34 2016, FRACTAL wrote:
> > Thanks very much for the report! It's extremely early days for this > > module but I definitely plan to support BSD as much as possible. > > There > > are a few problem areas I know about that the (ahem) very minimal > > test-suite doesn't yet cover, but this information will be useful > > when > > I do get started on the FreeBSD port (hopefully very soon). > > > > Cheers, > > > > Doug > > > > PS. vmtouch has worked on FreeBSD since at least version 4, so > > technically there shouldn't be a problem. > > > > On Fri Jan 15 16:11:05 2016, SREZIC wrote:
> > > FreeBSD 10 does not ship anymore gcc and g++ by default, but > > > instead > > > clang and clang++. Therefore compilation fails: > > > > > > ... > > > g++ -std=c++11 -O2 -g -Wall -fPIC -c crawler.cpp > > > g++: not found > > > ... > > > > > > If the CXX definition is removed from libvmprobe/Makefile, then the > > > compilation works. I think CXX has a reasonable default and may be > > > removed everywhere. > > > > > > The other problem is the call to msync(), where the first argument > > > has > > > to be casted, it seems. > > > > > > With these patches also the test suite passes.