PDA

View Full Version : Solaris 8 compile problems


fjnperf
26-01-2006, 23:46
I've been working to compile zabbix1.1-beta5 on solaris 8 (also tried 9), and could really use some of your help in identifying a resolution.

I use: ./configure --enable-server --with-mysql=/opt/mysql --enable-agent
and get the following warnings:

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

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

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

I'm getting the following errors in my config.log.

configure:5085: checking for function setproctitle()
configure:5108: gcc -o conftest -g -O2 -lresolv conftest.c -lkvm -lresolv -lnsl -lkstat -lsocket >&5
Undefined first referenced
symbol in file
setproctitle /var/tmp//ccCHfeFW.o
ld: fatal: Symbol referencing errors. No output written to conftest
collect2: ld returned 1 exit status
configure:5114: $? = 1
configure: failed program was:
| /* confdefs.h. */

configure:5868: checking for vasprintf
configure:5925: gcc -o conftest -g -O2 -lresolv conftest.c -lkvm -lresolv -lnsl -lkstat -lsocket >&5
Undefined first referenced
symbol in file
vasprintf /var/tmp//cccsKb3U.o
ld: fatal: Symbol referencing errors. No output written to conftest
collect2: ld returned 1 exit status
configure:5931: $? = 1
configure: failed program was:
| /* confdefs.h. */

configure:5969: checking for asprintf
configure:6026: gcc -o conftest -g -O2 -lresolv conftest.c -lkvm -lresolv -lnsl -lkstat -lsocket >&5
Undefined first referenced
symbol in file
asprintf /var/tmp//ccwx1TXP.o
ld: fatal: Symbol referencing errors. No output written to conftest
collect2: ld returned 1 exit status
configure:6032: $? = 1
configure: failed program was:
| /* confdefs.h. */

configure:6384: checking for floor
configure:6441: gcc -o conftest -g -O2 -lresolv conftest.c -lkvm -lresolv -lnsl -lkstat -lsocket >&5
conftest.c:109: warning: conflicting types for built-in function 'floor'
Undefined first referenced
symbol in file
floor /var/tmp//ccNpfYfj.o
ld: fatal: Symbol referencing errors. No output written to conftest
collect2: ld returned 1 exit status
configure:6447: $? = 1
configure: failed program was:
| /* confdefs.h. */

And make returns the following:
bash-2.03# make
Making all in src
make[1]: Entering directory `/tmp/zabbix-1.1beta5/src'
Making all in libs
make[2]: Entering directory `/tmp/zabbix-1.1beta5/src/libs'
Making all in zbxcommon
make[3]: Entering directory `/tmp/zabbix-1.1beta5/src/libs/zbxcommon'
make[4]: Entering directory `/tmp/zabbix-1.1beta5/src/libs/zbxcommon'
if gcc -DHAVE_CONFIG_H -I. -I. -I../../../include -g -O2 -MT misc.o -MD -MP -MF ".deps/misc.Tpo" -c -o misc.o misc.c; \
then mv -f ".deps/misc.Tpo" ".deps/misc.Po"; else rm -f ".deps/misc.Tpo"; exit 1; fi
In file included from ../../../include/sysinc.h:83,
from ../../../include/common.h:23,
from misc.c:1:
/usr/include/ldap.h:494: error: field `ldctl_value' has incomplete type
/usr/include/ldap.h:1083: error: parse error before "BerElement"
/usr/include/ldap.h:1085: error: parse error before "BerElement"
/usr/include/ldap.h:1115: error: parse error before "BerElement"
make[4]: *** [misc.o] Error 1
make[4]: Leaving directory `/tmp/zabbix-1.1beta5/src/libs/zbxcommon'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/tmp/zabbix-1.1beta5/src/libs/zbxcommon'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/tmp/zabbix-1.1beta5/src/libs'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/zabbix-1.1beta5/src'
make: *** [all-recursive] Error 1


Please let me know if I need to submit additional info, your help is much appreciated

fjnperf
31-01-2006, 15:42
I added ENV variable CC=gcc and even though the configure still had warnings, the compile worked fine

tuhl
07-02-2006, 14:23
I did a

export CC=gcc

before the ./configure --enable-agent

Still same problems with:

if gcc -DHAVE_CONFIG_H -I. -I. -I../../../include -g -O2 -MT misc.o -MD -MP -MF ".deps/misc.Tpo" -c -o misc.o misc.c; \
then mv -f ".deps/misc.Tpo" ".deps/misc.Po"; else rm -f ".deps/misc.Tpo"; exit 1; fi
In file included from ../../../include/sysinc.h:83,
from ../../../include/common.h:23,
from misc.c:1:
/usr/include/ldap.h:494: field `ldctl_value' has incomplete type
/usr/include/ldap.h:496: confused by earlier errors, bailing out

I am using gcc 3.2 on Solaris 8

Tom

elkor
07-02-2006, 14:46
try using the official openldap package (sunfreeware.com should have a package for you) as opposed to the one that ships with sol8. you could also try disabling ldap support if that's an option for you.

tuhl
13-02-2006, 18:58
Removing the Solaris LDAP package made the beast working... :)