NicToolServer error at compiling

Started by superyupkent, October 23, 2007, 11:23:27 AM

Previous topic - Next topic

superyupkent

Gentlemen,

In the course of preparing a new qmail server, I decided this would be a good time to also take up a DNS server in my network. I have been busy for the past few days getting all the error messages from apache and CentOS. At the moment I am stuck at the compilation of the exporting tool in Nictool. I have tried making the error messages more verbose, tried gcc in stead of g++, all without any succes. My error message is as follows:
[root@ns djb]# make
g++ -o nt_export_djb nt_export_db.o db_mysql.o nt_export_conf.o generic_conf.o nt_export_djb.o -L/usr/lib/mysql -lmysqlclient -lz
nt_export_db.o: In function `nt_export_db_init':
nt_export_db.c:(.text+0x4a): undefined reference to `db_mysql_init'
nt_export_db.c:(.text+0x54): undefined reference to `db_mysql_build_nameservers'
nt_export_db.c:(.text+0x5e): undefined reference to `db_mysql_do_zone_query'
nt_export_db.c:(.text+0x68): undefined reference to `db_mysql_dump_zones'
nt_export_db.c:(.text+0x72): undefined reference to `db_mysql_print_error'
nt_export_db.c:(.text+0x7c): undefined reference to `db_mysql_cleanup'
db_mysql.o: In function `db_mysql_print_error(char*)':
db_mysql.cc:(.text+0x192): undefined reference to `nt_export_db_print_error(char*)'
db_mysql.cc:(.text+0x19f): undefined reference to `nt_export_db_print_error(char*)'
db_mysql.o: In function `db_mysql_do_zone_query(char*)':
db_mysql.cc:(.text+0x348): undefined reference to `nt_export_db_print_error(char*)'
collect2: ld returned 1 exit status
make: *** [nt_export_djb] Error 1


The collect2: ld error message is very widespread unfortunately, I found more than enough to read up on but nothing that brought me closer to a solution, dependency or alteration of config files. I continued checking in the nt_export_db.c file to see if I could find why there was an undefined reference, but my coding skills aren't that well to find the problem.

I was hoping that one of you guys could point me in the right direction, so I can finalize this final part of my DNS install.

Thanks in advance,

Alex van der Baan
Amsterdam , the Netherlands