Ticket #276 (closed defect: for support check mailinglist)

Opened 17 months ago

Last modified 17 months ago

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

Change History

comment:1 Changed 17 months ago by oetiker

  • Status changed from new to closed
  • Resolution set to for support check mailinglist

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

Note: See TracTickets for help on using tickets.

NOTE: The content of this website is accessible with any browser. The graphical design though relies completely on CSS2 styles. If you see this text, this means that your browser does not support CSS2. Consider upgrading to a standard conformant browser like Mozilla Firefox or Opera but also Apple's Safari or KDE's Konqueror for example. It may also be that you are looking at a mirror page which did not copy the CSS for this page. Or if some pictu res are missing, then the mirror may not have picked up the contents of the inc directory.