Ad Widget

Collapse

1.4.2 and solaris...

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • hannibal20
    Junior Member
    • Jan 2007
    • 22

    #1

    1.4.2 and solaris...

    As usual, I have tried the brand new 'stable' release under solaris. Here is what I got:
    1. ./configure --enable-server --with-net-snmp --with-ldap --with-libcurl --with-jabber --with-mysql found my curl, but then gave me this:
      checking for curl-config... /opt/csw/bin//curl-config
      checking for the version of libcurl... 7.16.2
      checking for libcurl >= version 7.13.1... yes
      checking for main in -lcurl... yes
      checking whether libcurl is usable... no
      configure: error: Not found Curl library
    2. --with-libcurl=/path/to/curl-config didn't help either
    3. so I've set LIBCURL_LIBS manually in configure script to what curl-config --libs gave me. It went further and stopped at
      checking for net-snmp-config... /opt/csw/bin//net-snmp-config
      checking for main in -lnetsnmp ... no
      configure: error: Not found NET-SNMP library
    4. then I've set SNMP_LIBS to what net-snmp-config --libs gave me
    5. after this ./configure finished with no error
    6. I went to compilation, being sure I'll have to correct Makefile (as I have done before 1.4.2), to fix path to `ar` and some LIBS, but the compilation went smoothly (!)
    7. happy with that I tried to run my new server, but the processes disappear as fast as they spawn...
    8. I see no message in the debug (level 4) indicating something is wrong besides 'one child has died'
    9. system trace:
      so_socket(PF_INET6, SOCK_STREAM, IPPROTO_IP, "", SOV_DEFAULT) = 3
      close(3) = 0
      sigaction(SIGPIPE, 0x080479D0, 0x00000000) = 0
      sigaction(SIGPIPE, 0x08047A20, 0x00000000) = 0
      sysconfig(_CONFIG_STACK_PROT) = 7
      sysi86(SI86FPSTART, 0xCDF9FD18, 0x0000133F, 0x00001F80) = 0x00000001
      open("etc/zabbix_server.conf", O_RDONLY) = 3
      fstat64(3, 0x08047370) = 0
      fstat64(3, 0x080472B0) = 0
      ioctl(3, TCGETA, 0x08047344) Err#25 ENOTTY
      read(3, " # T h i s i s c o".., 3072) = 2708
      sysconfig(_CONFIG_PAGESIZE) = 4096
      read(3, 0x080D876C, 3072) = 0
      llseek(3, 0, SEEK_CUR) = 2708
      close(3) = 0
      getuid() = 0 [0]
      open64("/var/run/name_service_door", O_RDONLY) = 3
      fcntl(3, F_SETFD, 0x00000001) = 0
      door_info(3, 0xCDF9F3E0) = 0
      door_call(3, 0x08047808) = 0
      setgid(1) = 0
      setuid(102) = 0
      setegid(1) = 0
      seteuid(102) = 0
      schedctl() = 0xCD9FC000
      fork1() = 3764
      lwp_sigmask(SIG_SETMASK, 0x00000000, 0x00000000) = 0xFFBFFEFF [0x0000FFFF]
      _exit(0)
    10. I suspected libcurl for the segfault, but recompiling zabbix_server w/o web monitoring via CURL didn't help


    Any solutions?
  • Eugene
    Member
    • Feb 2006
    • 57

    #2
    Try this patch.
    Attached Files

    Comment

    • hannibal20
      Junior Member
      • Jan 2007
      • 22

      #3
      reverted my changes, applied the patch, made 'configure' step as in the first post:

      ...
      checking for IKSEMEL... yes
      checking for getaddrinfo... yes
      checking for gawk... (cached) nawk
      checking for curl-config... /opt/csw/bin//curl-config
      checking for the version of libcurl... 7.16.2
      checking for libcurl >= version 7.13.1... yes
      checking for main in -lcurl... yes
      checking whether libcurl is usable... no
      configure: error: Not found Curl library

      Comment

      • Eugene
        Member
        • Feb 2006
        • 57

        #4
        Check your 'config.log', after line 'checking whether libcurl is usable' for more information of compilation errors.

        Comment

        • sauter
          Junior Member
          • Dec 2005
          • 7

          #5
          I'm also trying to compile 1.4.2 on Solaris 10, and ran into the same problems with 'configure' as hannibal20. I applied the patch provided by Eugene, but that doesn't seem to help. I still get:

          checking for curl-config... /opt/csw/bin/curl-config
          checking for the version of libcurl... 7.16.3
          checking for libcurl >= version 7.13.1... yes
          checking for main in -lcurl... yes
          checking whether libcurl is usable... no
          configure: error: Not found Curl library
          In config.log I get the following:

          configure:10035: checking whether libcurl is usable
          configure:10078: cc -o conftest -g -I/opt/csw/mysql5/include/mysql -mt -D_FORTEC_ -xarch=v8 -D_FILE_OFFSET_BITS=64 -DHAVE_CURSES_H -DHAVE_RWLOCK_T -I/opt/csw/include conftest.c -lcurl -lkvm -lm -lresolv -lnsl -lkstat -lsocket >&5
          ld: fatal: library -lcurl: not found
          ld: fatal: File processing errors. No output written to conftest
          configure:10084: $? = 1
          To me it seems like "-L/opt/csw/lib" is missing in the above command. The output from /opt/csw/bin/curl-config --libs is:
          -L/opt/csw/lib -lcurl -L/opt/csw/lib -L/opt/csw/lib -lidn -lssl -lcrypto -ldl -lsocket -lnsl -lz
          If I set LDFLAGS=-L/opt/csw/lib before I run configure, I manage to get pass the libcurl problem, but then configure exits on:

          checking for curl-config... /opt/csw/bin/curl-config
          checking for the version of libcurl... 7.16.3
          checking for libcurl >= version 7.13.1... yes
          checking for main in -lcurl... yes
          checking whether libcurl is usable... yes
          checking for curl_free... yes
          checking for net-snmp-config... /opt/csw/bin/net-snmp-config
          checking for main in -lnetsnmp ... no
          configure: error: Not found NET-SNMP library

          Comment

          • cognitiveflux
            Junior Member
            • Nov 2007
            • 1

            #6
            Solution

            I encountered these exact same problems and found a solution.

            After setting the LDFLAGS environment variable (LDFLAGS=-L/opt/csw/lib in my case), I edited the configure script:
            (note: no other changes were made from the configure script source)

            Change line 10543 from:
            LIBS="-lnetsnmp $LIBS"
            to
            LIBS="-lnetsnmp -lssl -lcrypto $LIBS"
            Stepping through the compiler I discovered that it encounters a series of undefined symbols (used for crypto algorithms). Including the other libraries above resolves the issue.

            Build Information:
            Solaris 10 x86 Update 4 (8/07 127112-02)
            netsnmp 5.3.0.1
            curl 7.16.3
            postgresql 8.2.3
            php 5.2.1
            openssl 0.9.8
            apache2 2.2.4

            Configure options:
            --enable-server --with-pgsql=<...> --with-net-snmp=<...> --with-libcurl
            Last edited by cognitiveflux; 26-11-2007, 10:25.

            Comment

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

              #7
              Running

              export LDFLAGS="-lcrypt"

              or

              export LDFLAGS="-lcrypto"

              may help when the configure script is enable to detect NET-SNMP libs.
              Alexei Vladishev
              Creator of Zabbix, Product manager
              New York | Tokyo | Riga
              My Twitter

              Comment

              Working...