PDA

View Full Version : Error making agent on OSX 10.4.10


Spikelite
28-08-2007, 20:40
I am installing the 1.4.2 agent on a OSX 10.4.10 machine that has XCode installed.

I ran the ./configure --enable-agent and it checked out fine, then I ran 'make' and got this error:

cpu.c: In function 'SYSTEM_CPU_UTIL':
cpu.c:50: error: parse error before '}' token
make[4]: *** [libspecsysinfo_a-cpu.o] Error 1
make[3]: *** [all-recursive] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive] Error 1

I found the thread: http://www.zabbix.com/forum/showthread.php?t=7404

I then fixed that problem by changing the cpu.c file as suggested in the thread.

Now I am getting this error:

/usr/bin/ld: Undefined symbols:
_res_9_init
_res_9_query
collect2: ld returned 1 exit status
make[2]: *** [zabbix_agent] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive] Error 1

Does anyone have any ideas?

Spikelite
29-08-2007, 19:59
I just attempted to make the client on 10.4.8 and ran into the same problem.

Alexei
29-08-2007, 20:05
It was already fixed. Please use the latest code from www.zabbix.com/developers.php.

Spikelite
29-08-2007, 20:15
The pre-zabbix-1.4 file would seem to be damaged, I can not open it via the GUI nor the CLI and both report errors in the file.

Spikelite
29-08-2007, 23:11
The Aug 30 build was extractable however I encountered the exact same error:

/usr/bin/ld: Undefined symbols:
_res_9_init
_res_9_query
collect2: ld returned 1 exit status
make[2]: *** [zabbix_agent] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive] Error 1

Any ideas?

BlouPhil
07-12-2007, 19:43
I had the same problem with 1.4.2.

I downloaded 1.4.3 from http://www.zabbix.com/developers.php and it compiled right away.

Running OSX 10.4.10

rabbitt
08-07-2008, 09:18
http://www.zabbix.com/forum/showpost.php?p=35213&postcount=5