Ad Widget

Collapse

Compile Error On Solaris 10

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • bisbell
    Junior Member
    • May 2008
    • 14

    #1

    Compile Error On Solaris 10

    I am running Solaris 10 with the coolstack AMP stack.
    I also have a bunch of the gcc stuff downloaded and installed from blastwave.
    And I am trying to compile Zabbix 1.4.6

    I hope I'm providing enough information here.

    Here is my configure command. I tried to set the LDFLAGS to include any lib directory that seems important. The libmysqlclient file exists in /opt/coolstack/mysql_32bit/lib/mysql/libmysqlclient.so
    and is a symlink that points to libmysqlclient.so.16.0.0

    # env LDFLAGS="-L/opt/coolstack/mysql_32bit/lib/mysql -L/opt/coolstack/lib -L/opt/csw/lib -L/opt/csw/libexec -L/opt/csw/gcc4/lib" ./configure --prefix=/opt/Zabbix --enable-server --disable-agent --with-mysql=/opt/coolstack/mysql_32bit/bin/mysql_config --with-libcurl=/opt/coolstack/lib

    And here is my error:

    checking for mysql_config... /opt/coolstack/mysql_32bit/bin/mysql_config
    checking for main in -lmysqlclient ... no
    configure: error: Not found mysqlclient library


    I have seen several posts with this problem and I have tried changing my configure command based on the other posts.
    I've also tried using gcc4 and gcc3.
    As well as using different version of make, gmake, ld, gld.......
    Nothing has worked so far.
    Any help would be much appreciated.
    Last edited by bisbell; 13-08-2008, 00:44.
  • luc
    Junior Member
    • Aug 2008
    • 2

    #2
    config.log ?

    could you provide config.log ? I have built zabbix server and agents on S10U5 with Sun Compiler (Sun Studio12). I don't use CSW (Blastawave). I have built PHP5, CURL, NET-SNMP myself. Apache2, OpenSSL, PostgreSQL I'm using a bundled version from S10U5.

    Comment

    • dodgetimes2
      Junior Member
      • Aug 2008
      • 4

      #3
      I just built 1.4.6 on Solaris 10 a few days ago (I'm also running the Cool stack). I had this same problem, it turned out to be my PATH setting. I believe during the compile it checks to see which mysql is in your path. The problem I had was I needed /opt/coolstack/mysql_32bit/bin in my PATH.

      Comment

      • bisbell
        Junior Member
        • May 2008
        • 14

        #4
        config.log

        When I try to attach the config.log file it tells me that it's an unsupported file type. So I changed it to config.log.txt, but the file size is too big for a txt type file (228K) I could name is something like config.log.c so that it meets the file size requirements, but I don't want to break the rules of the website and get the admin mad at me. How should I post this file?

        I'm going to retry this again tonight with Sun Studio and setting my PATH variable according to the responses.

        Thanks for the ideas,

        -Brad

        Comment

        • luc
          Junior Member
          • Aug 2008
          • 2

          #5
          you send it to my mailbox directly.

          Comment

          Working...