[kde-linux] KDE 3.5 Compilation and openssl

Michaël Todorovic michael.todorovic at eivl.net
Sun Jan 15 14:57:47 UTC 2006


Hello,
I'm using debian 3.1 stable 64bits and I would like to try KDE3.5. I downloaded
konstruct and I have tried a "make" in konstruct/meta/kde. After a long time,
the compilation stopped with this message :

Making all in crypto
make[5]: entrant dans le répertoire «
/home/mik/kde3.5/konstruct/kde/kdebase/work/kdebase-3.5.0/kcontrol/crypto »
if /bin/sh ../../libtool --silent --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H
-I. -I. -I../..  -I/root/kde3.5/include -I/usr/X11R6/include 
-I/usr/kerberos/include  -DQT_THREAD_SUPPORT -I/root/kde3.5/include
-I/usr/X11R6/include -I/root/kde3.5/include -I/usr/X11R6/include -D_REENTRANT 
-Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align
-Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -O2
-I/root/kde3.5/include -I/usr/X11R6/include -L/root/kde3.5/lib -L/usr/X11R6/lib
-O2 -pipe -I/root/kde3.5/include -I/usr/X11R6/include -L/root/kde3.5/lib
-L/usr/X11R6/lib -O2 -pipe -Wformat-security -Wmissing-format-attribute
-Wno-non-virtual-dtor -fno-exceptions -fno-check-new -fno-common
-DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT
-DQT_NO_TRANSLATION -D_GNU_SOURCE  -MT kcm_crypto_la.all_cpp.lo -MD -MP -MF
".deps/kcm_crypto_la.all_cpp.Tpo" -c -o kcm_crypto_la.all_cpp.lo
kcm_crypto_la.all_cpp.cpp; \
then mv -f ".deps/kcm_crypto_la.all_cpp.Tpo" ".deps/kcm_crypto_la.all_cpp.Plo";
else rm -f ".deps/kcm_crypto_la.all_cpp.Tpo"; exit 1; fi
In file included from /root/kde3.5/include/ksslinfodlg.h:28,
                 from /root/kde3.5/include/ksslall.h:24,
                 from crypto.cpp:87,
                 from kcm_crypto_la.all_cpp.cpp:2:
/root/kde3.5/include/ksslcertificate.h:61: error: conflicting types for `struct
   X509'
/usr/include/openssl/ossl_typ.h:109: error: previous declaration as `typedef
   struct x509_st X509'
In file included from /root/kde3.5/include/ksslall.h:34,
                 from crypto.cpp:87,
                 from kcm_crypto_la.all_cpp.cpp:2:
/root/kde3.5/include/ksslpkcs7.h:35: error: conflicting types for `struct PKCS7
   '
/usr/include/openssl/pkcs7.h:217: error: previous declaration as `typedef
   struct pkcs7_st PKCS7'
In file included from /root/kde3.5/include/ksslall.h:35,
                 from crypto.cpp:87,
                 from kcm_crypto_la.all_cpp.cpp:2:
/root/kde3.5/include/ksslpkcs12.h:36: error: conflicting types for `struct
   EVP_PKEY'
/usr/include/openssl/ossl_typ.h:107: error: previous declaration as `typedef
   struct evp_pkey_st EVP_PKEY'
In file included from kcm_crypto_la.all_cpp.cpp:2:
crypto.cpp: In member function `void KCryptoConfig::slotCAImport()':
crypto.cpp:1878: error: `X509_STORE_new' undeclared (first use this function)
crypto.cpp:1878: error: (Each undeclared identifier is reported only once for
   each function it appears in.)
crypto.cpp:1879: error: `X509_LOOKUP_file' undeclared (first use this function)
crypto.cpp:1879: error: `X509_STORE_add_lookup' undeclared (first use this
   function)
crypto.cpp:1882: error: `X509_LOOKUP_ctrl' undeclared (first use this function)
crypto.cpp:1885: error: `sk_num' undeclared (first use this function)
crypto.cpp:1886: error: `sk_value' undeclared (first use this function)
crypto.cpp:1955: error: `X509_STORE_free' undeclared (first use this function)
make[5]: *** [kcm_crypto_la.all_cpp.lo] Erreur 1

I made some changes on the headers and now, I have no conflicts but X509_* are
still undefined.

Making all in crypto
make[5]: entrant dans le répertoire «
/home/mik/kde3.5/konstruct/kde/kdebase/work/kdebase-3.5.0/kcontrol/crypto »
if /bin/sh ../../libtool --silent --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H
-I. -I. -I../..  -I/root/kde3.5/include -I/usr/X11R6/include 
-I/usr/kerberos/include  -DQT_THREAD_SUPPORT -I/root/kde3.5/include
-I/usr/X11R6/include -I/root/kde3.5/include -I/usr/X11R6/include -D_REENTRANT 
-Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align
-Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -O2
-I/root/kde3.5/include -I/usr/X11R6/include -L/root/kde3.5/lib -L/usr/X11R6/lib
-O2 -pipe -I/root/kde3.5/include -I/usr/X11R6/include -L/root/kde3.5/lib
-L/usr/X11R6/lib -O2 -pipe -Wformat-security -Wmissing-format-attribute
-Wno-non-virtual-dtor -fno-exceptions -fno-check-new -fno-common
-DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT
-DQT_NO_TRANSLATION -D_GNU_SOURCE  -MT kcm_crypto_la.all_cpp.lo -MD -MP -MF
".deps/kcm_crypto_la.all_cpp.Tpo" -c -o kcm_crypto_la.all_cpp.lo
kcm_crypto_la.all_cpp.cpp; \
then mv -f ".deps/kcm_crypto_la.all_cpp.Tpo" ".deps/kcm_crypto_la.all_cpp.Plo";
else rm -f ".deps/kcm_crypto_la.all_cpp.Tpo"; exit 1; fi
In file included from kcm_crypto_la.all_cpp.cpp:2:
crypto.cpp: In member function `void KCryptoConfig::slotCAImport()':
crypto.cpp:1882: error: `X509_STORE_new' undeclared (first use this function)
crypto.cpp:1882: error: (Each undeclared identifier is reported only once for
   each function it appears in.)
crypto.cpp:1883: error: `X509_LOOKUP_file' undeclared (first use this function)
crypto.cpp:1883: error: `X509_STORE_add_lookup' undeclared (first use this
   function)
crypto.cpp:1886: error: `X509_LOOKUP_ctrl' undeclared (first use this function)
crypto.cpp:1889: error: `sk_num' undeclared (first use this function)
crypto.cpp:1890: error: `sk_value' undeclared (first use this function)
crypto.cpp:1959: error: `X509_STORE_free' undeclared (first use this function)
make[5]: *** [kcm_crypto_la.all_cpp.lo] Erreur 1

I tried to add X509_STORE *X509_STORE_new(void); at the begining of the
KCryptoConfig::slotCAImport() but I have still the line with the corresponding
error, so it doesn't change anything. I have learnt only the C language but I
don't know about cpp.

How can I fix those errors ?
Thanks



More information about the kde-linux mailing list