Ticket #276 (closed defect: for support check mailinglist)
FYI: HOw to compile on Solaris 10 64bit
| Reported by: | human | Owned by: | oetiker |
|---|---|---|---|
| Priority: | major | Milestone: | |
| Component: | misc | Version: | 1.4.4 |
| Keywords: | Cc: |
Description
The build breaks on Solaris 10 64bit when the perl Config.pm doesn't have the same compiler settings that is being used to compile rrdtool. Here is the recipe to alter the bindings/perl-shared/Makefile after it's created from Makefile.PL by the first gmake. We then run another gmake to finish the build with the new CC settings to create the 64bit RRD.o:
setenv CC "cc -xtarget=ultra -m64 -xcode=pic32 -xc99"
setenv CXX "CC -xtarget=ultra -m64 -xcode=pic32"
cd /var/tmp
rm -rf rrdtool-1.4.4
untgz /usr/local/src/utils/rrdtool-1.4.4.tar.gz
cd rrdtool-1.4.4
./autogen.sh
./configure --prefix=/usr/local \
--with-libiconv-prefix=/usr/local \
--with-libintl-prefix=/usr/local
gmake
/bin/perl -pe "s%^CC =.*%CC=cc -xtarget=ultra -m64 -xcode=pic32 -xc99%" -i bindings/perl-shared/Makefile
/bin/perl -pe "s%^LD =.*%LD=cc -xtarget=ultra -m64 -xcode=pic32 -xc99%" -i bindings/perl-shared/Makefile
/bin/perl -pe "s% -xarch=v8%%" -i bindings/perl-shared/Makefile
gmake
gmake install



if the compile environment used for perl does not exist on the machine where you compile rrdtool all bets are off ... you have to twist things by hand and may get lucky (as you did) ...
enjoy! tobi