Freebsd 4.11 + cactid

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
anh
Posts: 9
Joined: Wed Nov 09, 2005 5:59 am

Freebsd 4.11 + cactid

Post by anh »

When i try to install cactid from ports i get this error

su-2.05b# make install clean
===> Vulnerability check disabled, database not found
===> Extracting for cactid-0.8.6.f_1
=> Checksum OK for cacti-cactid-0.8.6f-1.tar.gz.
===> Patching for cactid-0.8.6.f_1
===> Applying FreeBSD patches for cactid-0.8.6.f_1
===> cactid-0.8.6.f_1 depends on shared library: netsnmp.7 - found
===> cactid-0.8.6.f_1 depends on shared library: mysqlclient.14 - found
===> Configuring for cactid-0.8.6.f_1
configure: WARNING: you should use --build, --host, --target
checking build system type... i386-portbld-freebsd4.11
checking host system type... i386-portbld-freebsd4.11
checking for a BSD-compatible install... /usr/bin/install -c -o root -g wheel
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... no
checking for nawk... nawk
checking whether make sets $(MAKE)... yes
checking for gawk... (cached) nawk
checking for i386-portbld-freebsd4.11-gcc... cc
checking for C compiler default output file name... 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 cc accepts -g... yes
checking for cc option to accept ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of cc... gcc
checking how to run the C preprocessor... cc -E
checking for a BSD-compatible install... /usr/bin/install -c -o root -g wheel
checking whether ln -s works... yes
checking for i386-portbld-freebsd4.11-ranlib... no
checking for ranlib... ranlib
checking whether to enable -Wall... no
checking for kstat_lookup in -lkstat... no
checking for gethostbyname in -lnsl... no
checking for socket in -lsocket... no
checking for floor in -lm... yes
checking for pthread_exit in -lpthread... no
checking for deflate in -lz... yes
checking for egrep... grep -E
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 malloc.h usability... yes
checking malloc.h presence... yes
checking for malloc.h... yes
checking ctype.h usability... yes
checking ctype.h presence... yes
checking for ctype.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking for unsigned long long... yes
checking for long long... yes
checking for an ANSI C-conforming const... yes
checking for size_t... yes
checking whether time.h and sys/time.h may both be included... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking return type of signal handlers... void
checking for gettimeofday... yes
checking for strerror... yes
checking for strtoll... yes
checking for mysql_init in -lmysqlclient... yes
checking for mysql_thread_init in -lmysqlclient... yes
checking if UCD-SNMP needs crypto support... no
checking if Net-SNMP needs crypto support... yes
checking for CRYPTO_free in -lcrypto... yes
checking for snmp_timeout in -lnetsnmp... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config/config.h
config.status: executing depfiles commands
===> Building for cactid-0.8.6.f_1
source='sql.c' object='sql.o' libtool=no depfile='.deps/sql.Po' tmpdepfile='.deps/sql.TPo' depmode=gcc /bin/sh ./config/depcomp cc -DHAVE_CONFIG_H -I. -I. -I./config -I/usr/local/include/net-snmp -I/usr/local/include/net-snmp/.. -I/usr/local/include/mysql -O -pipe -c `test -f 'sql.c' || echo './'`sql.c
source='cactid.c' object='cactid.o' libtool=no depfile='.deps/cactid.Po' tmpdepfile='.deps/cactid.TPo' depmode=gcc /bin/sh ./config/depcomp cc -DHAVE_CONFIG_H -I. -I. -I./config -I/usr/local/include/net-snmp -I/usr/local/include/net-snmp/.. -I/usr/local/include/mysql -O -pipe -c `test -f 'cactid.c' || echo './'`cactid.c
source='util.c' object='util.o' libtool=no depfile='.deps/util.Po' tmpdepfile='.deps/util.TPo' depmode=gcc /bin/sh ./config/depcomp cc -DHAVE_CONFIG_H -I. -I. -I./config -I/usr/local/include/net-snmp -I/usr/local/include/net-snmp/.. -I/usr/local/include/mysql -O -pipe -c `test -f 'util.c' || echo './'`util.c
source='snmp.c' object='snmp.o' libtool=no depfile='.deps/snmp.Po' tmpdepfile='.deps/snmp.TPo' depmode=gcc /bin/sh ./config/depcomp cc -DHAVE_CONFIG_H -I. -I. -I./config -I/usr/local/include/net-snmp -I/usr/local/include/net-snmp/.. -I/usr/local/include/mysql -O -pipe -c `test -f 'snmp.c' || echo './'`snmp.c
snmp.c: In function `snmp_get_multi':
snmp.c:311: syntax error before `int'
snmp.c:312: `count' undeclared (first use in this function)
snmp.c:312: (Each undeclared identifier is reported only once
snmp.c:312: for each function it appears in.)
*** Error code 1

Stop in /usr/ports/net/cactid/work/cacti-cactid-0.8.6f-1.
*** Error code 1

Stop in /usr/ports/net/cactid.



Any good idea's ?
remy74
Posts: 6
Joined: Wed Nov 09, 2005 9:28 am

Post by remy74 »

I have a similar problem, and ask to FreeBsd. It seem to be a problem in the package... So I install it after download the last version on this site, and it will be ok.
Some Guys at FreeBsd says they have to update the package.
Good Luck :lol:
naislacker
Posts: 5
Joined: Sat Nov 26, 2005 1:17 pm

Post by naislacker »

I have a same problem

cd /usr/ports/net/cactid
# make install
===> Building for cactid-0.8.6.f_1
source='snmp.c' object='snmp.o' libtool=no depfile='.deps/snmp.Po' tmpdepfile='.deps/snmp.TPo' depmode=gcc /bin/sh ./config/depcomp cc -DHAVE_CONFIG_H -I. -I. -I./config -I/usr/local/include/net-snmp -I/usr/local/include/net-snmp/.. -I/usr/local/include/mysql -O -pipe -c `test -f 'snmp.c' || echo './'`snmp.c
snmp.c: In function `snmp_get_multi':
snmp.c:311: syntax error before `int'
snmp.c:312: `count' undeclared (first use in this function)
snmp.c:312: (Each undeclared identifier is reported only once
snmp.c:312: for each function it appears in.)
*** Error code 1

Stop in /usr/ports/net/cactid/work/cacti-cactid-0.8.6f-1.
*** Error code 1

Stop in /usr/ports/net/cactid.
#
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

This problem has been resolved in SVN. You can either use that version, use the older version, or wait for the next release.

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest