Ad Widget

Collapse

Compiling problem alpha11 on Suse Enterprise 9

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • RohrbaGe
    Senior Member
    • Aug 2005
    • 167

    #1

    Compiling problem alpha11 on Suse Enterprise 9

    Hi,

    I tried to compile on Suse 9 Enterprise.
    Here some lines from the config.log

    ......
    $ ./configure --with-mysql --enable-server --prefix=/usr/local/zabbix


    .....

    configure:2570: result: none needed
    configure:2588: gcc -c -g -O2 conftest.c >&5
    conftest.c:2: error: parse error before "me"
    configure:2594: $? = 1
    configure: failed program was:
    | #ifndef __cplusplus
    | choke me
    | #endif
    configure:2735: checking for style of include used by make
    configure:2763: result: GNU
    configure:2791: checking dependency style of gcc
    configure:2881: result: gcc3
    configure:2901: checking for main in -lsocket
    configure:2925: gcc -o conftest -g -O2 conftest.c -lsocket >&5
    /usr/lib/gcc-lib/i586-suse-linux/3.3.3/../../../../i586-suse-linux/bin/ld: cannot find -lsocket
    collect2: ld returned 1 exit status
    configure:2931: $? = 1
    configure: failed program was:
    | /* confdefs.h. */
    |
    | #define PACKAGE_NAME ""
    | #define PACKAGE_TARNAME ""
    | #define PACKAGE_VERSION ""
    | #define PACKAGE_STRING ""
    | #define PACKAGE_BUGREPORT ""
    | #define PACKAGE "ZABBIX"
    | #define VERSION "1.1alpha11"
    | /* end confdefs.h. */
    |

    The make does not bring an error message, it is just not creating the binarys.

    I´m quite sure, that I have to install a library only, but I have no idea which.

    Has anyone an idea?
    The 1.0 version is running fine on the same machine. So there must
    me used in the alpha version 11 another lib, I guess.


    Gerald
  • James Wells
    Senior Member
    • Jun 2005
    • 664

    #2
    Greetings,

    Right off the bat, it appears that you are missing the unix socket library. Look in /lib and /usr/lib for a file called libsocket*, if it does not exist, then you will need to disable it in configure.
    Unofficial Zabbix Developer

    Comment

    • RohrbaGe
      Senior Member
      • Aug 2005
      • 167

      #3
      Make install

      make install
      helped. Problem was between the ears.

      Comment

      Working...