Re: Build failed in Hudson: 3.HEAD-i386-opensolaris-SunStudioCc #502

From: Tsantilas Christos <chtsanti_at_users.sourceforge.net>
Date: Fri, 03 Dec 2010 19:11:49 +0200

Hi all,
   The problem now is mixing extern "C" functions with c++.

On 12/03/2010 08:35 AM, noc_at_squid-cache.org wrote:
> libtool: compile: ccache /opt/SunStudioExpress/prod/bin/CC -DHAVE_CONFIG_H -I../../.. -I../../../include -I../../../lib -I../../../src -I../../include -I/usr/local/include -I/usr/include/gssapi -I/usr/include/kerberosv5 -I../../../libltdl -I/usr/include/libxml2 -I/usr/include/gssapi -I/usr/include/kerberosv5 -I/usr/include/libxml2 -errwarn=%all,no%badargtype2w,no%wbadinit,no%wbadasg -errtags -D_REENTRANT -D_FILE_OFFSET_BITS=64 -g -c ../../../src/base/AsyncCall.cc -KPIC -DPIC -o .libs/AsyncCall.o
> "../../../src/ssl/gadgets.h", line 38: Error, temargnoval: Template parameter DeAllocator requires an expression of type void(*)(x509_st*).
> "../../../src/ssl/gadgets.h", line 39: Error, temargnoval: Template parameter DeAllocator requires an expression of type void(*)(evp_pkey_st*).
> "../../../src/ssl/gadgets.h", line 40: Error, temargnoval: Template parameter DeAllocator requires an expression of type void(*)(bignum_st*).
> "../../../src/ssl/gadgets.h", line 42: Error, temargnoval: Template parameter DeAllocator requires an expression of type void(*)(asn1_string_st*).
> "../../../src/ssl/gadgets.h", line 43: Error, temargnoval: Template parameter DeAllocator requires an expression of type void(*)(txt_db_st*).
> "../../../src/ssl/gadgets.h", line 44: Error, temargnoval: Template parameter DeAllocator requires an expression of type void(*)(X509_name_st*).
> "../../../src/ssl/gadgets.h", line 45: Error, temargnoval: Template parameter DeAllocator requires an expression of type void(*)(rsa_st*).
> "../../../src/ssl/gadgets.h", line 46: Error, temargnoval: Template parameter DeAllocator requires an expression of type void(*)(X509_req_st*).
> "../../../src/ssl/gadgets.h", line 47: Error, temargnoval: Template parameter DeAllocator requires an expression of type void(*)(ssl_ctx_st*).
> "../../../src/ssl/gadgets.h", line 48: Error, temargnoval: Template parameter DeAllocator requires an expression of type void(*)(ssl_st*).
> 10 Error(s) detected.

The only way I found to solve the above is to define C++ wrappers
functions for X509_free, EVP_PKEY_free, BIG_NUM_free etc (~ 10 wrapper
functions)

Any opinion?

Regards,
     Christos
Received on Fri Dec 03 2010 - 17:12:06 MST

This archive was generated by hypermail 2.2.0 : Sat Dec 04 2010 - 12:00:03 MST