[rrd-users] rrdtool-1.4.7 build problem on OSX

Mike Schilli m at perlmeister.com
Thu Mar 8 08:35:54 CET 2012


On Thu, 8 Mar 2012, Tobias Oetiker wrote:

> running grep -r INSTALL_BASE . over the rrdtool source, I cann not see
> any matches ...

Oh, wow, I see, I had INSTALL_BASE defined in my environment, and
rrdtool sets PREFIX. This causes the rrdtool perl module to balk at the 
prospect of having both env variables set.

INSTALL_BASE is for used installing perl modules under a different
directory (using a CPAN module called local::lib), which is usually a
good idea if you don't want to mess with your main root, or want to
avoid being the superuser while installing or mess with files that your
package manager is managing.

Ideally, rrdtool would check for the INSTALL_BASE variable, and omit
setting PREFIX while building the perl wrappers ... but I can work
around the problem now that I know what's going on ... thanks, Tobi!

-- 
-- Mike

Mike Schilli
m at perlmeister.com

> Hi Mike,
>
> Tuesday Mike Schilli wrote:
>
>> On my Mac (OSX 10.6.8, Darwin 10.8.0), after running "./configure" and
>> "make", I get
>>
>> ...  tclrrd.c: In function ?Rrd_Graph?:tclrrd.c:507: warning: cast from
>> pointer to integer of different size gcc -dynamiclib -g -O2
>> -D_GNU_SOURCE -fno-strict-aliasing -Wall -std=gnu99 -pedantic -Wundef
>> -Wshadow -Wpointer-arith -Wcast-align -Wmissing-prototypes
>> -Wmissing-declarations -Wnested-externs -Winline -Wold-style-definition
>> -W  -L/opt/local/lib     -L/opt/local/lib     -Wl,-single_module
>> -L../../src/.libs -L../../src -L/opt/rrdtool-1.4.7/lib tclrrd.o -o
>> tclrrd1.4.7.dylib -lrrd_th -lm
>> -L/System/Library/Frameworks/Tcl.framework/Versions/8.5 -ltclstub8.5
>> -L/opt/local/lib     -L/opt/local/lib    ld: warning: directory
>> '/opt/rrdtool-1.4.7/lib' following -L not found cd perl-piped &&
>> /usr/local/bin/perl Makefile.PL PREFIX=/opt/rrdtool-1.4.7
>> LIB=/opt/rrdtool-1.4.7/lib/perl/5.12.3 Checking if your kit is
>> complete... Looks good
>>
>> Only one of PREFIX or INSTALL_BASE can be given.  Not both.
>>
>> make[3]: *** [perl-piped/Makefile] Error 2
>> make[2]: *** [all-recursive] Error 1
>> make[1]: *** [all-recursive] Error 1
>> make: *** [all] Error 2
>>
>> Seems like it's expecting the directory /opt/rrdtool-1.4.7 to exist
>> before it creates it.
>

>
> cheers
> tobi
>
>>
>> Would be great if you could look into it.
>>
>> Thanks!
>>
>>  -- -- Mike
>>
>> Mike Schilli
>> m at perlmeister.com
>
>



More information about the rrd-users mailing list