Ad Widget

Collapse

compilation error on AIX 6.1 compiling zabbix proxy

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • zabbaix
    Junior Member
    • Jan 2013
    • 5

    #1

    compilation error on AIX 6.1 compiling zabbix proxy

    AIX 6.1, gcc 4.7.2

    I wanted to compile just proxy, so here is a configure line which finished without errors:

    ./configure --prefix=/usr/local --enable-proxy --with-net-snmp=/opt/freeware/bin/net-snmp-config --with-sqlite3 --with-ssh2

    But "make install" soon finished with the following errors:

    gcc -DHAVE_CONFIG_H -I. -I../../../include -g -O2 -I/usr/include -I/opt/freeware/include -I. -I/opt/freeware/include -I/usr/include -MT nodehistory.o -MD -MP -MF .deps/nodehistory.Tpo -c -o nodehistory.o nodehistory.c
    In file included from /usr/include/fcntl.h:188:0,
    from ../../../include/sysinc.h:153,
    from ../../../include/common.h:23,
    from nodehistory.c:23:
    /usr/include/unistd.h:171:16: error: conflicting types for 'lseek64'
    /usr/include/unistd.h:169:14: note: previous declaration of 'lseek64' was here
    In file included from /usr/include/unistd.h:746:0,
    from /usr/include/fcntl.h:188,
    from ../../../include/sysinc.h:153,
    from ../../../include/common.h:23,
    from nodehistory.c:23:
    /usr/include/sys/lockf.h:64:13: error: conflicting types for 'lockf64'
    /usr/include/sys/lockf.h:62:13: note: previous declaration of 'lockf64' was here
    In file included from /usr/include/fcntl.h:188:0,
    from ../../../include/sysinc.h:153,
    from ../../../include/common.h:23,
    from nodehistory.c:23:
    /usr/include/unistd.h:809:14: error: conflicting types for 'ftruncate64'
    /usr/include/unistd.h:807:14: note: previous declaration of 'ftruncate64' was here
    /usr/include/unistd.h:845:14: error: conflicting types for 'truncate64'
    /usr/include/unistd.h:843:14: note: previous declaration of 'truncate64' was here
    /usr/include/unistd.h:862:18: error: conflicting types for 'pread64'
    /usr/include/unistd.h:859:18: note: previous declaration of 'pread64' was here
    /usr/include/unistd.h:863:18: error: conflicting types for 'pwrite64'
    /usr/include/unistd.h:860:18: note: previous declaration of 'pwrite64' was here
    /usr/include/unistd.h:942:17: error: conflicting types for 'fclear64'
    /usr/include/unistd.h:939:15: note: previous declaration of 'fclear64' was here
    /usr/include/unistd.h:943:13: error: conflicting types for 'fsync_range64'
    /usr/include/unistd.h:940:13: note: previous declaration of 'fsync_range64' was here
    make: 1254-004 The error code from the last command is 1.


    Stop.
    make: 1254-004 The error code from the last command is 1.


    Stop.
    make: 1254-004 The error code from the last command is 1.


    Stop.


    Any suggestions how to resolve this?
    Thank you and regards.
Working...