[kde] Unable to build kdebase-3.5.10 with OpenSSL

Etienne Robillard erob at gthcfoundation.org
Sat Aug 7 12:53:12 UTC 2010


Hi,

After upgrading system to FreeBSD 8.1-PRERELEASE, kdebase (x11/kdebase3) 
won't compile correctly. I have noticed build errors with both the 
system OpenSSL distribution and
the ports (aka portable) version (security/openssl). The error below is 
with security/openssl, however when using the system OpenSSL 
distribution, the error is different.

cheers,

Etienne

Making all in crypto
gmake[3]: Entering directory 
`/usr/ports/x11/kdebase3/work/kdebase-3.5.10/kcontrol/crypto'
/usr/local/bin/moc ./crypto.h -o crypto.moc
/bin/sh /usr/local/bin/libtool --silent --tag=CXX   --mode=compile c++ 
-DHAVE_CONFIG_H -I. -I../..  -I/usr/local/include  -I/usr/local/include  
-D_THREAD_SAFE -pthread -DQT_THREAD_SUPPORT   -I/usr/local/include 
-I/usr/local/include  -I/usr/local/include -D_GETOPT_H -D_THREAD_SAFE  
-D_LARGE_FILES=1 -Wno-long-long -Wundef -Wall -W -Wpointer-arith 
-DNDEBUG -DNO_DEBUG -O2 -O2 -pipe -DLDAP_DEPRECATED -fno-strict-aliasing 
-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  -DLIBDIR=/usr/local/lib 
-Wno-long-long -Wundef -Wall -W -Wpointer-arith -DNDEBUG -DNO_DEBUG -O2 
-O2 -pipe -DLDAP_DEPRECATED -fno-strict-aliasing -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 crypto.lo -MD -MP -MF .deps/crypto.Tpo -c -o 
crypto.lo crypto.cpp
In file included from crypto.cpp:88:
/usr/local/include/kopenssl.h:453: error: ISO C++ forbids declaration of 
'ASN1_METHOD' with no type
/usr/local/include/kopenssl.h:453: error: expected ';' before '*' token
/usr/local/include/kopenssl.h:526: error: expected ';' before '(' token
/usr/local/include/kopenssl.h:532: error: 'STACK' has not been declared
/usr/local/include/kopenssl.h:538: error: 'STACK' has not been declared
/usr/local/include/kopenssl.h:544: error: expected ';' before '(' token
/usr/local/include/kopenssl.h:550: error: ISO C++ forbids declaration of 
'STACK' with no type
/usr/local/include/kopenssl.h:550: error: expected ';' before '*' token
/usr/local/include/kopenssl.h:556: error: 'STACK' has not been declared
/usr/local/include/kopenssl.h:562: error: ISO C++ forbids declaration of 
'STACK' with no type
/usr/local/include/kopenssl.h:562: error: expected ';' before '*' token
/usr/local/include/kopenssl.h:828: error: ISO C++ forbids declaration of 
'STACK' with no type
/usr/local/include/kopenssl.h:828: error: expected ';' before '*' token
/usr/local/include/kopenssl.h:829: error: 'STACK' has not been declared
crypto.cpp: In member function 'void KCryptoConfig::slotCAImport()':
crypto.cpp:1851: error: no matching function for call to 
'KOpenSSLProxy::sk_num(_STACK*)'
/usr/local/include/kopenssl.h:538: note: candidates are: int 
KOpenSSLProxy::sk_num(int*)
crypto.cpp:1852: error: 'class KOpenSSLProxy' has no member named 'sk_value'
crypto.cpp: In member function 'bool KCryptoConfig::loadCiphers()':
crypto.cpp:2329: error: invalid conversion from 'const SSL_METHOD*' to 
'SSL_METHOD*'
crypto.cpp:2341: error: invalid conversion from 'const SSL_CIPHER*' to 
'SSL_CIPHER*'
crypto.cpp:2358: error: invalid conversion from 'const SSL_METHOD*' to 
'SSL_METHOD*'
crypto.cpp:2369: error: invalid conversion from 'const SSL_CIPHER*' to 
'SSL_CIPHER*'
gmake[3]: *** [crypto.lo] Error 1
gmake[3]: Leaving directory 
`/usr/ports/x11/kdebase3/work/kdebase-3.5.10/kcontrol/crypto'
gmake[2]: *** [all-recursive] Error 1
gmake[2]: Leaving directory 
`/usr/ports/x11/kdebase3/work/kdebase-3.5.10/kcontrol'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/usr/ports/x11/kdebase3/work/kdebase-3.5.10'
gmake: *** [all] Error 2
*** Error code 1

Stop in /usr/ports/x11/kdebase3.
*** Error code 1

Stop in /usr/ports/x11/kdebase3.

===>>> make failed for x11/kdebase3
===>>> Aborting update

===>>> Update for kdebase-3.5.10_5 failed
===>>> Aborting update



-- 
Etienne Robillard 
Green Tea Hackers Club

E-mail:     erob at gthcfoundation.org
Work phone: 1 (514) 962-7703
Website:    https://gthc.org/

During times of universal deceit, telling the truth becomes a revolutionary act. -- George Orwell 



More information about the freebsd-ports mailing list