Ad Widget

Collapse

[1.3.6] Solaris compile (flock) fixed - PATCH

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • NOB
    Senior Member
    Zabbix Certified Specialist
    • Mar 2007
    • 469

    #1

    [1.3.6] Solaris compile (flock) fixed - PATCH

    Hi,

    I finally found time - waited for 1.3.6, too - to fix the
    Solaris compile problem - see attached patch.

    This is a working fix, but it might not comply with the coding rules
    in place for ZABBIX.

    Alexei: would you mind integrating this into the next ZABBIX Beta ? Thanks.

    Regards,

    Norbert.
    Attached Files
    Last edited by NOB; 08-05-2007, 07:59.
  • bobster
    Junior Member
    • Feb 2007
    • 7

    #2
    Thanks

    Fantastic. Will give it a shot on the test machine. Thanks Norbert!!!

    Cheers,
    --Bob

    Comment

    • Paul Hanson
      Junior Member
      • Dec 2006
      • 5

      #3
      Another Thanks

      I had included the ucblib (not realizing that ucb was not thread safe) to get mine to compile...

      Much better to have a valid solution.

      Thank you Norbert!


      Paul Hanson

      Comment

      • hannibal20
        Junior Member
        • Jan 2007
        • 22

        #4
        this patch made 1.3.8 compile on Solaris (SunOS hostname 5.10 Generic_118855-33 i86pc i386 i86pc), and should be included in 1.3.X if doesn't break anything

        Comment

        • juampe
          Junior Member
          • Apr 2007
          • 17

          #5
          pid patch is OK

          The patch is OK for mine too
          (SunOS zbxdev 5.9 Generic_112233-11 sun4u sparc SUNW,Ultra-2)

          Comment

          • NOB
            Senior Member
            Zabbix Certified Specialist
            • Mar 2007
            • 469

            #6
            Hi,

            thank you all for the positive confirmations.

            This patch will even work - with a minor adjustment - for AIX 5.3.
            Instead of EAGAIN as Solaris does, EACCESS is returned by AIX in
            case that the file is already locked.
            So the check for EAGAIN must be replaced by EACCESS.

            The patch seems to be fine and works, but I am not sure whether the way
            it is done is OK for the general structure of the ZABBIX source code.
            There are some files, obviously, e.g. separated by OS.

            But, of course, I agree that this should be integrated in one of the
            next betas or in 1.4, finally.

            Regards,

            Norbert.

            Comment

            • bobster
              Junior Member
              • Feb 2007
              • 7

              #7
              Configuration failure Sol 2.9

              No luck with this release on our setup. A completely different issue cropped up with this release in which the configure step claims not be able to find net-snmp package onour Sol 9 box. I then "backed down" - attempting to install each of the preceding the beta releases as well as the stable releases and they all seemed to fail configuration for the very same reason. Zabbix without snmp support is not an option and I simply can't devote any more time to this - right now - but I do appreciate the help.

              Comment

              • Alexei
                Founder, CEO
                Zabbix Certified Trainer
                Zabbix Certified SpecialistZabbix Certified Professional
                • Sep 2004
                • 5654

                #8
                Compilation under Solaris was fixed, tested on Solaris 10.
                Alexei Vladishev
                Creator of Zabbix, Product manager
                New York | Tokyo | Riga
                My Twitter

                Comment

                • steveatmarz
                  Junior Member
                  • Apr 2007
                  • 1

                  #9
                  cant compile on sol 10 x86

                  /var/apps/zabbix-1.4.1/configure --enable-server --with-mysql=/opt/csw/mysql4 --with-net-snmp --with-jabber --with-libcurl ends with:

                  hecking for hstrerror... yes
                  checking for atoll... yes
                  checking for getopt_long... yes
                  checking for mysql_config... /opt/csw/bin/mysql_config
                  checking for main in -lmysqlclient ... no
                  configure: error: Not found mysqlclient library

                  When I run mysql_config I get :

                  scooter>/opt/csw/bin/mysql_config
                  Usage: /opt/csw/bin/mysql_config [OPTIONS]
                  Options:
                  --cflags [-I/opt/csw/mysql4/include/mysql -mt -D_FORTEC_ -xtarget=386]
                  --include [-I/opt/csw/mysql4/include/mysql]
                  --libs [-L/opt/csw/lib/32 -L/opt/csw/mysql4/lib/mysql -lmysqlclient -lz -lposix4 -lc -lgen -lsocket -lnsl -lm -L/opt/csw/lib -lssl -lcrypto]
                  --libs_r [-L/opt/csw/lib/32 -L/opt/csw/mysql4/lib/mysql -lmysqlclient_r -lz -lpthread -lthread -lposix4 -lc -lgen -lsocket -lnsl -lm -lpthread -lthread -L/opt/csw/lib -lssl -lcrypto]
                  --socket [/tmp/mysql.sock]
                  --port [3306]
                  --version [4.1.22]
                  --libmysqld-libs [-L/opt/csw/lib/32 -L/opt/csw/mysql4/lib/mysql -lmysqld -lz -lpthread -lthread -lposix4 -lc -lgen -lsocket -lnsl -lm -lpthread -lthread -lrt]

                  Any ideas ?

                  Comment

                  • lolziac
                    Junior Member
                    • Jul 2007
                    • 10

                    #10
                    guys, I got the same problem under AIX 5.3

                    when I run
                    ./configure --prefix=/usr/local/zabbix --enable-server --enable-agent --with-mysql --with-net-snmp --with-jabber --with-libcurl
                    >>
                    >>
                    checking for mysql_config... /usr/local/mysql/bin/mysql_config
                    checking for main in -lmysqlclient ... no
                    configure: error: Not found mysqlclient library

                    can anybody direct me, on fixing this problem , like how do u apply this patch ??!!!

                    Comment

                    Working...