[Kroupware] Apache compile failed

J.A.J. van Belkum avbelkum at gfo.nl
Mon Sep 8 10:47:06 CEST 2003


Hi,

I am trying to install the kolab server, but it hangs on the Apache 
compile... I have seen this before in the mailing lists, and have tried 
all the suggested options.....

This is what I did:

rpm -bb gdbm.spec --define 'with_ndbm yes'
/kolab/bin/rpm -Uvh ../../PKG/gdbm-1.8.3-20030213.ix86-linux2.4-kol.rpm

rpm -ba apache.spec --define 'with_mod_ssl yes' --define 'with_mod_dav 
yes'   --define 'with_mod_auth_ldap yes' --define 'with_mod_php_openldap 
yes'  --define 'with_mod_php_imap yes' --define 'with_mod_php yes' 
     --define 'with_mod_php_gettext yes' --define 'with_gdbm yes' 
   --define 'with_ndbm yes'

This failed, so I copied the ndbm header file to /kolab/include....

redid the apache compile, and got the same error:

modules/proxy/libproxy.a(proxy_cache.o)(.text+0x261c): In function 
`ap_proxy_cache_update':
: the use of `mktemp' is dangerous, better use `mkstemp'
modules/standard/libstandard.a(mod_auth_dbm.o)(.text+0xb6): In function 
`get_dbm_pw':
: undefined reference to `dbm_open'
modules/standard/libstandard.a(mod_auth_dbm.o)(.text+0xd3): In function 
`get_dbm_pw':
: undefined reference to `dbm_fetch'
modules/standard/libstandard.a(mod_auth_dbm.o)(.text+0xe8): In function 
`get_dbm_pw':
: undefined reference to `dbm_close'
collect2: ld returned 1 exit status
make[3]: *** [target_static] Error 1
make[2]: *** [build-std] Error 2
make[1]: *** [build] Error 2
make: *** [install-all] Error 2
+ /kolab/lib/openpkg/shtool install -c -m 644 /dev/null 
/kolab/RPM/TMP/apache-1.3.27-root/kolab/etc/apache/php.ini
cp: cannot create regular file 
`/kolab/RPM/TMP/apache-1.3.27-root/kolab/etc/apache/#INST at 21808#': No 
such file or directory
error: Bad exit status from /kolab/RPM/TMP/rpm-tmp.12447 (%install)


RPM build errors:
     Bad exit status from /kolab/RPM/TMP/rpm-tmp.12447 (%install)



When I query gdbm i get the following:

apache]# /kolab/bin/rpm -qi gdbm
Name:    gdbm                        Source RPM: 
gdbm-1.8.3-20030213.src.rpm
Version: 1.8.3                       Packager:     The OpenPKG Project
Release: 20030213                    Build Host:   aukjan.office.gfo.int
Group:   Database                    Build System: ix86-linux2.4
Distrib: OpenPKG [PLUS]              Build Time:   Sun 07 Sep 2003 
11:10:05 AM CEST
License: LGPL                        Relocations:  /kolab
Vendor:  FSF                         Install Size: 97275 bytes
URL:     http://www.gnu.org/software/gdbm/ Install Time: Sun 07 Sep 2003 
11:12:20 AM CEST
Summary: GNU Database Library
Description:
     GNU dbm is a set of database routines that use extensible hashing.
     It works similar to the standard UNIX dbm routines.
Provides:
     gdbm::with_ndbm = yes
     gdbm::with_nofsync = no
     gdbm = 1.8.3-20030213


furthermore I see in the apache compile:

/kolab/RPM/TMP/imap-2002d/c-client/osdep.c:267: the use of `tmpnam' is 
dangerous, better use `mkstemp'
/kolab/lib/libldap.a(os-ip.o)(.text+0x39b): In function 
`ldap_pvt_is_socket_ready':
: `sys_errlist' is deprecated; use `strerror' or `strerror_r' instead
/kolab/lib/libldap.a(os-ip.o)(.text+0x392): In function 
`ldap_pvt_is_socket_ready':
: `sys_nerr' is deprecated; use `strerror' or `strerror_r' instead
modules/proxy/libproxy.a(proxy_cache.o)(.text+0x261c): In function 
`ap_proxy_cache_update':
: the use of `mktemp' is dangerous, better use `mkstemp'
modules/standard/libstandard.a(mod_auth_dbm.o)(.text+0xb6): In function 
`get_dbm_pw':
: undefined reference to `dbm_open'
modules/standard/libstandard.a(mod_auth_dbm.o)(.text+0xd3): In function 
`get_dbm_pw':
: undefined reference to `dbm_fetch'
modules/standard/libstandard.a(mod_auth_dbm.o)(.text+0xe8): In function 
`get_dbm_pw':
: undefined reference to `dbm_close'
collect2: ld returned 1 exit status
make[3]: *** [target_static] Error 1
make[2]: *** [build-std] Error 2
make[1]: *** [build] Error 2
make: *** [build-quiet] Error 2


And also:

Creating Makefile in src
  + configured for Linux platform
  + setting C pre-processor to /kolab/bin/cc -E
  + checking for system header files
  + using custom target name: apache
  + adding selected modules
     o rewrite_module uses ConfigStart/End
       disabling DBM support for mod_rewrite
       (perhaps you need to add -ldbm, -lndbm or -lgdbm to EXTRA_LIBS)
     o dbm_auth_module uses ConfigStart/End


And lastly:

checking for GDBM support... no
checking for NDBM support... no



Please give me some directions where to start!

Thnx

Aukjan



More information about the Kroupware mailing list