Ad Widget

Collapse

make error

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • kritsadakorn
    Junior Member
    • Nov 2005
    • 1

    #1

    make error

    Hi all,
    I have download zabbix1.0 for solaris .
    I have been implemented for zabbix
    I found a problem below.
    What should I do ?



    root@backup # ./configure
    checking whether make sets $(MAKE)... yes
    checking for gcc... gcc
    checking for C compiler default output... a.out
    checking whether the C compiler works... yes
    checking whether we are cross compiling... no
    checking for suffix of executables...
    checking for suffix of object files... o
    checking whether we are using the GNU C compiler... yes
    checking whether gcc accepts -g... yes
    checking for gcc option to accept ANSI C... none needed
    checking for main in -lsocket... yes
    checking for main in -lkstat... yes
    checking for main in -lnsl... yes
    checking how to run the C preprocessor... gcc -E
    checking for egrep... egrep
    checking for ANSI C header files... yes
    checking for sys/types.h... yes
    checking for sys/stat.h... yes
    checking for stdlib.h... yes
    checking for string.h... yes
    checking for memory.h... yes
    checking for strings.h... yes
    checking for inttypes.h... yes
    checking for stdint.h... no
    checking for unistd.h... yes
    checking stdio.h usability... yes
    checking stdio.h presence... yes
    checking for stdio.h... yes
    checking for stdlib.h... (cached) yes
    checking for string.h... (cached) yes
    checking for unistd.h... (cached) yes
    checking netdb.h usability... yes
    checking netdb.h presence... yes
    checking for netdb.h... yes
    checking signal.h usability... yes
    checking signal.h presence... yes
    checking for signal.h... yes
    checking syslog.h usability... yes
    checking syslog.h presence... yes
    checking for syslog.h... yes
    checking time.h usability... yes
    checking time.h presence... yes
    checking for time.h... yes
    checking errno.h usability... yes
    checking errno.h presence... yes
    checking for errno.h... yes
    checking for sys/types.h... (cached) yes
    checking for sys/stat.h... (cached) yes
    checking netinet/in.h usability... yes
    checking netinet/in.h presence... yes
    checking for netinet/in.h... yes
    checking sys/socket.h usability... yes
    checking sys/socket.h presence... yes
    checking for sys/socket.h... yes
    checking dirent.h usability... yes
    checking dirent.h presence... yes
    checking for dirent.h... yes
    checking ctype.h usability... yes
    checking ctype.h presence... yes
    checking for ctype.h... yes
    checking mtent.h usability... no
    checking mtent.h presence... no
    checking for mtent.h... no
    checking fcntl.h usability... yes
    checking fcntl.h presence... yes
    checking for fcntl.h... yes
    checking sys/param.h usability... yes
    checking sys/param.h presence... yes
    checking for sys/param.h... yes
    checking sys/mount.h usability... yes
    checking sys/mount.h presence... yes
    checking for sys/mount.h... yes
    checking arpa/inet.h usability... yes
    checking arpa/inet.h presence... yes
    checking for arpa/inet.h... yes
    checking sys/vfs.h usability... yes
    checking sys/vfs.h presence... yes
    checking for sys/vfs.h... yes
    checking sys/pstat.h usability... no
    checking sys/pstat.h presence... no
    checking for sys/pstat.h... no
    checking sys/sysinfo.h usability... yes
    checking sys/sysinfo.h presence... yes
    checking for sys/sysinfo.h... yes
    checking sys/statvfs.h usability... yes
    checking sys/statvfs.h presence... yes
    checking for sys/statvfs.h... yes
    checking for sys/socket.h... (cached) yes
    checking sys/loadavg.h usability... yes
    checking sys/loadavg.h presence... yes
    checking for sys/loadavg.h... yes
    checking for netinet/in.h... (cached) yes
    checking for arpa/inet.h... (cached) yes
    checking sys/swap.h usability... yes
    checking sys/swap.h presence... yes
    checking for sys/swap.h... yes
    checking sys/vmmeter.h usability... yes
    checking sys/vmmeter.h presence... yes
    checking for sys/vmmeter.h... yes
    checking for strings.h... (cached) yes
    checking sys/sysctl.h usability... no
    checking sys/sysctl.h presence... no
    checking for sys/sysctl.h... no
    checking vm/vm_param.h usability... no
    checking vm/vm_param.h presence... no
    checking for vm/vm_param.h... no
    checking sys/time.h usability... yes
    checking sys/time.h presence... yes
    checking for sys/time.h... yes
    checking kstat.h usability... yes
    checking kstat.h presence... yes
    checking for kstat.h... yes
    checking sys/syscall.h usability... yes
    checking sys/syscall.h presence... yes
    checking for sys/syscall.h... yes
    checking sys/sysmacros.h usability... yes
    checking sys/sysmacros.h presence... yes
    checking for sys/sysmacros.h... yes
    checking sys/procfs.h usability... yes
    checking sys/procfs.h presence... yes
    checking for sys/procfs.h... yes
    checking for an ANSI C-conforming const... yes
    checking for pid_t... yes
    checking for socklen_t... yes
    checking for /proc filesystem... yes
    checking for file /proc/1/status... yes
    checking for file /proc/0/psinfo... yes
    checking for file /proc/loadavg... no
    checking for file /proc/net/dev... no
    checking for mem_unit in struct sysinfo... no
    checking for freeswap in struct sysinfo... no
    checking for function sysconf() in unistd.h... yes
    checking for vmtotal in struct sys/vmmeter.h... no
    checking for struct swaptable in sys/swap.h... yes
    checking for totalswap in struct sysinfo... no
    checking for function sysctl (KERN_BOOTTIME)... no
    checking for function sysctl (KERN_MAXFILES)... no
    checking for function sysctl (KERN_MAXPROC)... no
    checking for function seteuid()... yes
    checking for function setproctitle()... no
    checking for totalram in struct sysinfo... no
    checking for totalram in struct sysinfo... no
    checking for sharedram in struct sysinfo... no
    checking for bufferram in struct sysinfo... no
    checking for freeram in struct sysinfo... no
    checking for uptime in struct sysinfo... no
    checking for procs in struct sysinfo... no
    checking return type of signal handlers... void
    checking for getloadavg... yes
    checking for socket... yes
    checking for strtod... yes
    checking for snprintf... yes
    checking for MySQL support... no
    checking for PostgreSQL support... no
    checking for NET-SNMP support... no
    checking for UCD-SNMP support... no
    configure: No database selected! Use --with-XXX where XXX is your preferred database type
    configure: Server processes (zabbix_suckerd and zabbix_trapper) will not be created !
    configure: creating ./config.status
    config.status: creating Makefile
    config.status: creating src/zabbix_sender/Makefile
    config.status: creating src/zabbix_agent/Makefile
    config.status: creating src/zabbix_sucker/Makefile
    config.status: creating src/zabbix_trapper/Makefile
    config.status: creating include/config.h
    config.status: include/config.h is unchanged

    ************************************************** *********
    * Now run 'make' *
    * *
    * Thank you for using Zabbix! *
    * <http://www.zabbix.com> *
    ************************************************** *********

    root@backup # make
    bash: -c: line 14: syntax error: unexpected end of file
    *** Error code 2
    make: Fatal error: Command failed for target `all'
  • mbobkiewicz
    Member
    • Aug 2005
    • 36

    #2
    Happens to all of us... Zabbix requieres parameters with ./configure. While you can use alternate database (mysql and postgresql) you have to tell configure with one to use and also if you want a client or server. So the line for a server should look like this: ./configure --with-mysql --enable-server. For other options you should take a short look at the manual.

    Comment

    • sl@cker
      Junior Member
      • Jan 2006
      • 3

      #3
      configure command

      i was able to get a clean configure on solaris 2.9 ultra with the following command:


      ./configure --with-mysql=/mysql/location --with-net-snmp=/net-snmp/location



      the MAKE should work

      Comment

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

        #4
        Use GNU make.
        Alexei Vladishev
        Creator of Zabbix, Product manager
        New York | Tokyo | Riga
        My Twitter

        Comment

        Working...