[Kolab-devel] [issue1809] Configuration/compilation fails on Solaris 10 Sparc for kolab 2.2.0beta1 db4 not found

ComCept Soliva soliva at comcept.ch
Sat May 31 11:23:19 CEST 2008


Hi all

ok I found a solution but I do not know if this would be visible for you and
what the effects are regarding other stuff. At this point the error occoured
(php src package) I did following:

For long time ago I had a similar problem in relation with db4 and
Spamassassin and I remembered and looked in my documentation (good to always
document all :-). I followed up with the same kind of the art to compile db4
etc. which means:

# /kolab/bin/openpkg rpm -iv db-4.5.20.2-20070628.src.rpm
# cd /kolab/RPM/SRC/db
# vi db.spec

NOTE I enabled compat as I added shared yes and static yes
****

---------------------------------------
#   package options
%option       with_compat yes



%if "%{with_compat}" == "yes"
        --enable-compat185 \
%else
        --disable-compat185 \
%endif
%if "%{with_cxx}" == "yes"
        --enable-cxx \
%else
        --disable-cxx \
%endif
        --disable-java \
        --with-mutex="$mutex" \
        --enabled-shared=yes \
        --enabled-static=yes

---------------------------------------

# /kolab/bin/openpkg rpmbuild -bb /kolab/RPM/SRC/db/db.spec
# /kolab/bin/openpkg rpm --force -Uvh
/kolab/RPM/PKG/db-4.5.20.2-20070628.sparc64-solaris10-kolab.rpm

# ls -la /kolab/include/db*
-r--r--r--   1 kolab    kolab     102110 May 31 10:48 /kolab/include/db.h
-r--r--r--   1 kolab    kolab       6120 May 31 10:48
/kolab/include/db_185.h

# ls -la /kolab/lib/libdb* 
-rw-r--r--   1 kolab    kolab        797 May 31 10:54
/kolab/lib/libdb-4.5.la
-rwxr-xr-x   1 kolab    kolab    1111484 May 31 10:54
/kolab/lib/libdb-4.5.so
lrwxrwxrwx   1 kolab    kolab         12 May 31 10:55 /kolab/lib/libdb-4.so
-> libdb-4.5.so
-rw-r--r--   1 kolab    kolab    1457116 May 31 10:54 /kolab/lib/libdb.a
lrwxrwxrwx   1 kolab    kolab         12 May 31 10:55 /kolab/lib/libdb.so ->
libdb-4.5.so


# /kolab/bin/openpkg rpm -iv php-5.2.6-20080514_kolab.src.rpm
# cd /kolab/RPM/SRC/php
# vi php.spec

NOTE I do not know where db4 support is actually enabled from this point of
view to see if it is working
**** I enabled bdb support manually!

---------------------------------------

%option       with_bdb                  yes

---------------------------------------

# /kolab/bin/openpkg rpmbuild -bb /kolab/RPM/SRC/php/php.spec

checking for sys/types.h... (cached) yes
checking for inttypes.h... (cached) yes
checking for stdint.h... (cached) yes
checking for string.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for strtoll... yes
checking for atoll... yes
checking for strftime... (cached) yes
checking for QDBM support... no
checking for GDBM support... no
checking for NDBM support... no
checking for db4 minor version and patch level... ok
checking for Berkeley DB4 support... yes
checking for Berkeley DB3 support... no
checking for Berkeley DB2 support... no
checking for DB1 support... no
checking for DBM support... no 


You see it works and the compilation of php ended successful :-)

To see if I would be able to go complete through the compilation of overall
kolab bootstrap etc. would it be possible that you provide me a src file
db-4.5.20.2-20070628.src.rpm which include the above documented
modifications?

I do not know how I can pack db-4.5.20.2-20070628.src.rpm after modification
that I can run overall from the scratch including
db-4.5.20.2-20070628.src.rpm modifications?

Are the modifications for you a problem meaning can they be included in the
standard package?

If you would provide me with the modified db-4 src package or if you show me
how to do this by myself I can go forward with the next test which I would
perform from overall beginning. If you have the opinion that you see where
the overall issue is and another modification would help without modifying
the src db-4 package tell me what I should try etc.

kind regards

Andrea Soliva

-----Ursprüngliche Nachricht-----
Von: Thomas Arendsen Hein [mailto:kolab-issues at intevation.de] 
Gesendet: Freitag, 30. Mai 2008 16:28
An: bernhard at intevation.de; bh at intevation.de; p at rdus.de; soliva at comcept.ch;
thomas+kolab at lotterer.net; wilde at intevation.de
Betreff: [issue1809] Configuration/compilation fails on Solaris 10 Sparc for
kolab 2.2.0beta1 db4 not found


Thomas Arendsen Hein <thomas at intevation.de> added the comment:

msg14952 (in kolab/issue2727) contains the latest test: Still a problem with
2.2-rc3, i.e. updated OpenPKG components.

Assigning to myself even if I currently can't say how to proceed here
without
further investigations.

----------
assignedto: soliva -> thomas
status: need-eg -> chatting
___________________________________________________
Kolab issue tracker <kolab-issues at intevation.de>
<https://www.intevation.de/roundup/kolab/issue1809>
___________________________________________________




More information about the devel mailing list