Project

General

Profile

Actions

Support #869

closed

1.4.3: Solaris 10 & 11 SPARC & i86pc build HOWTO

Added by Mark Solaris almost 11 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Affected Versions:
Label:

Description

If you've applied the diffs from all the fixes listed here:

https://redmine.openinfosecfoundation.org/issues/851
https://redmine.openinfosecfoundation.org/issues/852
https://redmine.openinfosecfoundation.org/issues/853
https://redmine.openinfosecfoundation.org/issues/854
https://redmine.openinfosecfoundation.org/issues/858
https://redmine.openinfosecfoundation.org/issues/859
https://redmine.openinfosecfoundation.org/issues/860
https://redmine.openinfosecfoundation.org/issues/862
https://redmine.openinfosecfoundation.org/issues/863
https://redmine.openinfosecfoundation.org/issues/865
https://redmine.openinfosecfoundation.org/issues/866
https://redmine.openinfosecfoundation.org/issues/867
https://redmine.openinfosecfoundation.org/issues/868

then this recipe will build suricata 1.4.3 on Solaris 10 & 11 SPARC and i86pc using the Sun Studio 12.3 compiler. It unpacks it, removes all the gcc options and then configures and compiles it. We use gtar as well since Solaris tar bombs out on the options used.

All the support software can be found on the Solaris Package Archive. I'll likely re-visit some of the skipped pre-reqs in the future and upload them there too. Once I've tested this package works I'll upload suricata there as well.
http://www.ibiblio.org/pub/packages/solaris/sparc/

ta,
Mark

==============================================================================
suricata 1.4.3
    http://suricata-ids.org/download/

Pre-reqs:
    Compile libyaml 0.1.4                  Done
    Compile libjansson 2.4                 Done
    Compile libnfnetlink       linux only
    Compile libnetfilter_queue linux only
    Compile libprelude 1.0.1               Done (skipped perl - log bug)
    Compile libnet             not needed
    Compile libpfring          linux only
    Compile libpcap 1.3.0                  Done
    Compile libhtp 0.5.3                   Done
    Compile cuda               linux only
    Compile libcap_ng          linux only
    Compile dag                not needed
    Compile libnspr 4.10                   Done
    Compile libnss 3.15                    Skipped
    Compile libmagic 5.14 aka file         Done
    Compile napatech           not needed
    Compile libluajit 2.0.1                Skipped
    Compile spatch 1.0.0.rc17              Skipped until ocaml compiles

    setenv CC "cc -features=extensions" 
    setenv CXX "CC -features=extensions" 
    setenv LD_RUN_PATH "/usr/local/lib:/lib:/usr/lib" 
or
    setenv CC "cc -xtarget=ultra -m64 -xcode=pic32 -features=extensions" 
    setenv CXX "CC -xtarget=ultra -m64 -xcode=pic32 -features=extensions" 
    setenv LD_RUN_PATH "/usr/local/lib:/lib/64:/usr/lib/64:/lib:/usr/lib" 

common:
    setenv CPPFLAGS "-I/usr/local/include" 
    setenv LDFLAGS "-L/usr/local/lib -R/usr/local/lib" 
    setenv LIBS "-lsocket -lnsl -lrt" 

    cd /var/tmp
    rm -rf suricata-1.4.3
    gunzip -c /usr/local/src/security/suricata-1.4.3.tar.gz | tar -xvf -
    echo "Did you install the fixes??" 
    cd suricata-1.4.3
    /bin/perl -pe "s%-Werror%%g"                              -i configure
    /bin/perl -pe "s%-Wall -fno-strict-aliasing%%g"           -i configure
    /bin/perl -pe "s%-Werror=incompatible-pointer-types%%g"   -i configure
    /bin/perl -pe "s%-Wformat -Wformat-security%%g"           -i configure
    /bin/perl -pe "s%-Wno-unused-parameter%%g"                -i configure
    /bin/perl -pe "s%-std=gnu99%%g"                           -i configure
    /bin/perl -pe 's%-D_GNU_SOURCE -g -O2 -Wall -Wextra -std=gnu99 -pedantic%-g%g'          -i libhtp/htp/Makefile.in
    /bin/perl -pe 's%-D_GNU_SOURCE -g -O2 -Wall -Wextra -std=gnu99 -pedantic%-g%g'          -i libhtp/htp/Makefile.am
    /bin/perl -pe 's% tar % gtar %g'          -i Makefile.in
    /bin/perl -pe 's% tar % gtar %g'          -i Makefile.am
    ./configure --prefix=/usr/local \
        --enable-profiling \
        --enable-debug \
        --enable-af-packet \
        --with-libpcre-includes=/usr/local/include \
        --with-libpcre-libraries=/usr/local/lib \
        --with-libyaml-includes=/usr/local/include \
        --with-libyaml-libraries=/usr/local/lib \
        --with-libjansson-includes=/usr/local/include \
        --with-libjansson-libraries=/usr/local/lib \
        --with-libprelude-prefix=/usr/local \
        --with-libpcap-includes=/usr/local/include \
        --with-libpcap-libraries=/usr/local/lib \
        --with-libnspr-includes=/usr/local/include \
        --with-libnspr-libraries=/usr/local/lib \
        --with-libmagic-includes=/usr/local/include \
        --with-libmagic-includes=/usr/local/lib
    gmake
    gmake install install-conf install-rules
Actions #1

Updated by Mark Solaris almost 11 years ago

For a good time, apply this fix as well:

https://redmine.openinfosecfoundation.org/issues/871

Actions #2

Updated by Victor Julien over 10 years ago

  • Target version set to TBD
Actions #3

Updated by Andreas Herz over 8 years ago

  • Status changed from New to Closed
Actions #4

Updated by Victor Julien over 6 years ago

  • Target version deleted (TBD)
Actions

Also available in: Atom PDF