Looking for Solaris Makefile

2002-01-31
2013-04-30
  • Matthew Rettagliata

    Has anyone created a Makefile for use with Solaris Operating System and the GCC compliler.  Thanks

     
    • FRLinux

      FRLinux - 2008-08-05

      I just tried a compile on a Sparc Solaris 10 system (using GCC from Blastwave) and it now fails. I can swear it used to work fine.

      g++  -O -pipe -Wall -Wno-non-virtual-dtor  -L/usr/local/lib  -L../../lib -o twprint  stdtwprint.o twprint.o twprintcmdline.o twprinterrors.o twprintmain.o twprintstrings.o  -ltripwire -lcryptlib -ldl -lnsl -lsocket  -lcrypto
      Undefined                       first referenced
      symbol                             in file
      std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_limit(unsigned int, unsigned int) const../../lib/libtripwire.a(twlocale.o)
      std::locale::id::_M_id() const      ../../lib/libtripwire.a(twlocale.o)
      std::basic_istream<char, std::char_traits<char> >::basic_istream()../../lib/libtripwire.a(twlocale.o)
      std::basic_ostream<char, std::char_traits<char> >::basic_ostream()../../lib/libtripwire.a(twlocale.o)
      std::_Rb_tree_increment(std::_Rb_tree_node_base*)../../lib/libtripwire.a(textreportviewer.o)
      std::_List_node_base::hook(std::_List_node_base*)../../lib/libtripwire.a(cmdlineparser.o)
      std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_Rep::_S_empty_rep_storagestdtwprint.o
      std::_List_node_base::unhook()      ../../lib/libtripwire.a(fcoreport.o)
      __gnu_cxx::__exchange_and_add(int volatile*, int)stdtwprint.o
      std::_Rb_tree_increment(std::_Rb_tree_node_base const*)twprintcmdline.o
      std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_Rep::_S_create(unsigned int, unsigned int, std::allocator<char> const&)../../lib/libtripwire.a(fconame.o)
      std::_Rb_tree_rebalance_for_erase(std::_Rb_tree_node_base*, std::_Rb_tree_node_base&)../../lib/libtripwire.a(textreportviewer.o)
      std::_Rb_tree_insert_and_rebalance(bool, std::_Rb_tree_node_base*, std::_Rb_tree_node_base*, std::_Rb_tree_node_base&)twprintcmdline.o
      std::_Rb_tree_decrement(std::_Rb_tree_node_base*)twprintcmdline.o
      ld: fatal: Symbol referencing errors. No output written to twprint
      collect2: ld returned 1 exit status
      make[3]: *** [twprint] Error 1
      make[3]: Leaving directory `/tmp/tripwire-2.4.1.2-src/src/twprint'
      make[2]: *** [all-recursive] Error 1
      make[2]: Leaving directory `/tmp/tripwire-2.4.1.2-src/src'
      make[1]: *** [all-recursive] Error 1
      make[1]: Leaving directory `/tmp/tripwire-2.4.1.2-src'
      make: *** [all] Error 2

      tellus:/tmp/tripwire-2.4.1.2-src> gcc -v
      Reading specs from /opt/csw/gcc3/lib/gcc/sparc-sun-solaris2.8/3.4.5/specs
      Configured with: ../sources/gcc-3.4.5/configure --prefix=/opt/csw/gcc3 --with-local-prefix=/opt/csw --without-gnu-as --with-as=/usr/ccs/bin/as --without-gnu-ld --with-ld=/usr/ccs/bin/ld --enable-threads=posix --enable-shared --enable-multilib --enable-nls --with-included-gettext --with-libiconv-prefix=/opt/csw --with-x --enable-java-awt=xlib --enable-languages=all
      Thread model: posix
      gcc version 3.4.5

      I'll have to look into that.
      Steph

       
    • Tidy Tibs

      Tidy Tibs - 2009-01-15

      For tripwire-2.4.1.2-src on Solaris 10 on a T2000 I had the following setup:

      SunOS tidytibs 5.10 Generic_137111-06 sun4v sparc SUNW,Sun-Fire-T200

      # gcc --version
      gcc (GCC) 3.4.6

      # ld -V
      ld: Software Generation Utilities - Solaris Link Editors: 5.10-1.489

      # cat /var/sadm/system/admin/CLUSTER
      CLUSTER=SUNWCall

      # set | grep path
      path    (/bin /sbin /usr/bin /usr/sbin /usr/local/bin /usr/ccs/bin /usr/ucb /opt/sfw/bin /usr/sfw/bin)

      ./configure --prefix=/opt/tripwire

      I executed a 'make' and 'make install' with NO problems whatsoever.

      -T

       

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks