Problem with compilation

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

Moderators: Developers, Moderators

Post Reply
dlaperle

Problem with compilation

Post by dlaperle »

Hi, i try to compile cacti-cactid-0.8.6c

I use: Linux Fedora Core 2,
mysql-3.23.58-9
cacti 0.8.6c
The box is four-processor machine with like 5 gig of ram!

I have the following error with the make command:

gcc -I/usr/local/include/net-snmp -I/usr/local/include/net-snmp/.. -I/usr/include/mysql -g -O2 -L/usr/local/ssl/lib -L/usr/local/lib -L/usr/lib/mysql -o cactid sql.o cactid.o util.o snmp.o locks.o poller.o nft_popen.o php.o -lnetsnmp -lcrypto -lmysqlclient -lz -lpthread -lm -lnsl
poller.o(.text+0x119): In function `poll_host':
/home/nagios/cacti-cactid-0.8.6c/poller.c:99: undefined reference to `mysql_thread_init'
poller.o(.text+0xb76):/home/nagios/cacti-cactid-0.8.6c/poller.c:392: undefined reference to `mysql_thread_end'
collect2: ld returned 1 exit status
make: *** [cactid] Error 1

I really need to compile it, thks a lot for your help!

Do the problem come from the installation of MySQL?...if yes how can change this without recompile it :S...

Thks a lot again!
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Download the 0.8.6c branch from CVS, it should compile correctly.

Code: Select all

cvs -z3 -b RELEASE_0_8_6c -d:pserver:anonymous@cvs.cacti.net:/cvsroot/cacti co cactid_unix
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
dlaperle

Post by dlaperle »

I can't connect via cvs cause the firewall isnt let me pass...

and i can'T add rule to the firewall!

Thks!
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

I have the same problem at work.....

So, I can post the tar.gz tonight, so we can both get to it. ;)
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
dlaperle

Post by dlaperle »

;)

Thks, but i don't think it's corruption problem, i'd downloaded the files, but it seems to have a probleme with MySQL...

But if you think the brand new CVS will help, i'll be happy to try tomorrow!
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

You can browse CVS via the Cacti web site. You simply need to goto CACTID_UNIX and then select "BRANCH_0_8_6". Then sort by date. The file you need will be the newest one. Simply download it and you will be all set.

TheWitness

http://cvs.cacti.net/cgi-bin/viewcvs.cg ... _6#dirlist
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?
dlaperle
Posts: 21
Joined: Thu Jan 06, 2005 7:45 am
Location: Longueuil, Québec
Contact:

Post by dlaperle »

source='poller.c' object='poller.o' libtool=no \
depfile='.deps/poller.Po' tmpdepfile='.deps/poller.TPo' \
depmode=gcc3 /bin/sh ./config/depcomp \
gcc -DHAVE_CONFIG_H -I. -I. -I./config -I/usr/local/include/net-snmp -I/usr/local/include/net-snmp/.. -I/usr/include/mysql -g -O2 -c `test -f 'poller.c' || echo './'`poller.c
poller.c: In function `poll_host':
poller.c:130: error: structure has no member named `snmpv3_auth_username'
poller.c:130: error: structure has no member named `snmpv3_auth_username'
poller.c:131: error: structure has no member named `snmpv3_auth_password'
poller.c:131: error: structure has no member named `snmpv3_auth_password'
poller.c:132: error: structure has no member named `snmpv3_auth_protocol'
poller.c:132: error: structure has no member named `snmpv3_auth_protocol'
poller.c:133: error: structure has no member named `snmpv3_priv_passphrase'
poller.c:133: error: structure has no member named `snmpv3_priv_passphrase'
poller.c:134: error: structure has no member named `snmpv3_priv_protocol'
poller.c:134: error: structure has no member named `snmpv3_priv_protocol'
poller.c:137: error: structure has no member named `availability_method'
poller.c:138: error: structure has no member named `ping_method'
poller.c:160: error: structure has no member named `availability_method'
poller.c:161: error: structure has no member named `availability_method'
poller.c:161: error: `AVAIL_NONE' undeclared (first use in this function)
poller.c:161: error: (Each undeclared identifier is reported only once
poller.c:161: error: for each function it appears in.)
poller.c:162: error: structure has no member named `availability_method'
poller.c:170: error: structure has no member named `availability_method'
poller.c:173: error: structure has no member named `availability_method'
poller.c:294: error: structure has no member named `snmpv3_auth_username'
poller.c:294: error: structure has no member named `snmpv3_auth_username'
poller.c:295: error: structure has no member named `snmpv3_auth_password'
poller.c:295: error: structure has no member named `snmpv3_auth_password'
poller.c:296: error: structure has no member named `snmpv3_auth_protocol'
poller.c:296: error: structure has no member named `snmpv3_auth_protocol'
poller.c:297: error: structure has no member named `snmpv3_priv_passphrase'
poller.c:297: error: structure has no member named `snmpv3_priv_passphrase'
poller.c:298: error: structure has no member named `snmpv3_priv_protocol'
poller.c:298: error: structure has no member named `snmpv3_priv_protocol'
poller.c:301: error: structure has no member named `availability_method'
poller.c:302: error: structure has no member named `ping_method'
poller.c: In function `exec_poll':
poller.c:497: error: structure has no member named `max_script_runtime'
make: *** [poller.o] Error 1
===================================

I took the lastest poller.c from the place you gave me and now i receive these errors :S....
Oh look!...
dlaperle
Posts: 21
Joined: Thu Jan 06, 2005 7:45 am
Location: Longueuil, Québec
Contact:

Post by dlaperle »

Is this the lastest update?

poller.c 1.72.2.4 2 weeks thewitness small tweak...again

??????

Thks!
Oh look!...
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

No, you need to select "BRANCH_0_8_6" from the drop down on the web page to get the 0.8.6c version. You installed the 0.8.7 version. It is very different.

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?
dlaperle
Posts: 21
Joined: Thu Jan 06, 2005 7:45 am
Location: Longueuil, Québec
Contact:

Post by dlaperle »

I took the link you gave me...

http://cvs.cacti.net/cgi-bin/viewcvs.cg ... ANCH_0_8_6

Download the file!!!

I'm trying to compile :

cacti-cactid-0.8.6c
Oh look!...
dlaperle
Posts: 21
Joined: Thu Jan 06, 2005 7:45 am
Location: Longueuil, Québec
Contact:

Post by dlaperle »

OMFG again i'm sorry i do a wrong click...

I think that i must sleep a little bit more before getting to job ;)

Thks again!
Oh look!...
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests