[ZBX-2666] Can't compile agent on Solaris 8 Created: 2010 Jul 08  Updated: 2017 May 30  Resolved: 2010 Jul 08

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Agent (G)
Affects Version/s: 1.8.2
Fix Version/s: 1.8.3, 1.9.0 (alpha)

Type: Incident report Priority: Major
Reporter: Aleksandrs Saveljevs Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

Cannot compile agent on Solaris 8:

$ uname -X
System = SunOS
Release = 5.8
KernelID = Generic_108528-29
Machine = sun4u

$ make
Making all in src
Making all in libs
Making all in zbxcrypto
Making all in zbxcommon
Making all in zbxlog
Making all in zbxalgo
Making all in zbxnix
Making all in zbxconf
Making all in zbxsysinfo
Making all in common
gcc -DHAVE_CONFIG_H -I. -I../../../../include -g -O2 -MT net.o -MD -MP -MF .deps/net.Tpo -c -o net.o net.c
net.c: In function `CHECK_DNS':
net.c:337: error: `_res' undeclared (first use in this function)
net.c:337: error: (Each undeclared identifier is reported only once
net.c:337: error: for each function it appears in.)
net.c:337: error: `RES_INIT' undeclared (first use in this function)

      • Error code 1
        make: Fatal error: Command failed for target `net.o'


 Comments   
Comment by Aleksandrs Saveljevs [ 2010 Jul 08 ]

Fixed in pre-1.8.3 in r13219.

Comment by Oleksii Zagorskyi [ 2010 Jul 08 ]

I want to say that after this commit no warnings on ./configure command about resolv.h and net/if.h on FreeBSD 8.0, but one similar warning still exist:

checking net/if_mib.h usability... no
checking net/if_mib.h presence... yes
configure: WARNING: net/if_mib.h: present but cannot be compiled
configure: WARNING: net/if_mib.h: check for missing prerequisite headers?
configure: WARNING: net/if_mib.h: see the Autoconf documentation
configure: WARNING: net/if_mib.h: section "Present But Cannot Be Compiled"
configure: WARNING: net/if_mib.h: proceeding with the preprocessor's result
configure: WARNING: net/if_mib.h: in the future, the compiler will take precedence
checking for net/if_mib.h... yes

I remember what I saw on the forum quite a old message about this warnings from other FreeBSD users.
may also need to fix?

FreeBSD_config.log attached

Comment by Oleksii Zagorskyi [ 2010 Jul 08 ]

sorry, I can not attach a file to not my request. if need be I will be able to send.

Comment by Aleksandrs Saveljevs [ 2010 Jul 09 ]

Thanks! I have moved header detection to ZBX-2671. Please add more headers and platforms if you find any.

Generated at Wed May 08 17:52:01 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.