Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support  

 FAQFAQ   SearchSearch   MemberlistMemberlist    RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in    


Can't compile 0.8.6c but 0.8.6b compiles fine.

 
Post new topic   Reply to topic    Cacti Forum Index -> Help: Unstable Development Versions
Author Message
roddie
Cacti User


Joined: 10 Feb 2004
Posts: 90
Location: Frisco, TX

PostPosted: Mon Nov 15, 2004 10:43 am    Post subject: Can't compile 0.8.6c but 0.8.6b compiles fine. Reply with quote

I'm unable to compile cacitd 0.8.6c on Solaris 2.8. This is the message that I get:

Code:
Undefined                       first referenced
 symbol                             in file
mysql_thread_init                   poller.o
mysql_thread_end                    poller.o
ld: fatal: Symbol referencing errors. No output written to cactid
collect2: ld returned 1 exit status
make: *** [cactid] Error 1


I am able to compile 0.8.6b, however, with no problem (just tested both again).

Any tips?
Back to top
paul tergeist
Guest





PostPosted: Mon Nov 15, 2004 10:57 am    Post subject: Reply with quote

adding

#ifndef OLD_MYSQL
mysql_thread_end();
#endif

and

#ifndef OLD_MYSQL
mysql_thread_init();
#endif

and
#define OLD_MYSQL 1 (in config.h)

resolved the problem for me (doing it like in 0.8.6b in fact)

and at least 0.8.6c doesnt segfault anymore like 0.8.6b was.
Back to top
TheWitness
Developer


Joined: 14 May 2002
Posts: 9671
Location: MI, USA

PostPosted: Mon Nov 15, 2004 12:53 pm    Post subject: Reply with quote

Thanks for the post. What version of MySQL client libraries are you running?

TheWitness
Back to top
roddie
Cacti User


Joined: 10 Feb 2004
Posts: 90
Location: Frisco, TX

PostPosted: Mon Nov 15, 2004 8:51 pm    Post subject: Reply with quote

Paul,

Thanks for the tip - The ifndef additions worked great.

Larry,

I think I'm running 3.23, however I'll have to double-check in the morning. mysql is at 3.x for sure.

Roddie
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Help: Unstable Development Versions All times are GMT - 5 Hours
Page 1 of 1

 



Powered by phpBB © 2001, 2005 phpBB Group