Hi all,
I am a relatively new user to NewPKI and I am trying to compile the 2.0.0rc1
from source (since the official Debian package seems to be the previous version
2.0.0beta4). The official newpki-server 2.0.0beta4-4 package from the official
Debian 'testing' repository), but When I try to build newpki-libs from source
using dpkg-buildpackage using the tarball from the newpki.org site, the
compilation fails with the following error:
Making all in src
make[3]: Entering directory `/local/src/newpki-lib-2.0.0/src'
if /bin/sh ../libtool --tag=CXX --mode=compile /usr/bin/g++-3.3 -DHAVE_CONFIG_H
-I. -I. -I.. -Wall -g -O2 -MT libnewpki_la-Asn1Backup.lo -MD -MP -MF
".deps/libnewpki_la-Asn1Backup.Tpo" -c -o libnewpki_la-Asn1Backup.lo `test -f
'./ASN1/Asn1Backup.cpp' || echo './'`./ASN1/Asn1Backup.cpp; \
then mv -f ".deps/libnewpki_la-Asn1Backup.Tpo"
".deps/libnewpki_la-Asn1Backup.Plo"; else rm -f
".deps/libnewpki_la-Asn1Backup.Tpo"; exit 1; fi
mkdir .libs
/usr/bin/g++-3.3 -DHAVE_CONFIG_H -I. -I. -I.. -Wall -g -O2 -MT
libnewpki_la-Asn1Backup.lo -MD -MP -MF .deps/libnewpki_la-Asn1Backup.Tpo -c
./ASN1/Asn1Backup.cpp -fPIC -DPIC -o .libs/libnewpki_la-Asn1Backup.o
/usr/bin/g++-3.3 -DHAVE_CONFIG_H -I. -I. -I.. -Wall -g -O2 -MT
libnewpki_la-Asn1Backup.lo -MD -MP -MF .deps/libnewpki_la-Asn1Backup.Tpo -c
./ASN1/Asn1Backup.cpp -o libnewpki_la-Asn1Backup.o >/dev/null 2>&1
if /bin/sh ../libtool --tag=CXX --mode=compile /usr/bin/g++-3.3 -DHAVE_CONFIG_H
-I. -I. -I.. -Wall -g -O2 -MT libnewpki_la-Asn1Cert.lo -MD -MP -MF
".deps/libnewpki_la-Asn1Cert.Tpo" -c -o libnewpki_la-Asn1Cert.lo `test -f
'./ASN1/Asn1Cert.cpp' || echo './'`./ASN1/Asn1Cert.cpp; \
then mv -f ".deps/libnewpki_la-Asn1Cert.Tpo"
".deps/libnewpki_la-Asn1Cert.Plo"; else rm -f
".deps/libnewpki_la-Asn1Cert.Tpo"; exit 1; fi
/usr/bin/g++-3.3 -DHAVE_CONFIG_H -I. -I. -I.. -Wall -g -O2 -MT
libnewpki_la-Asn1Cert.lo -MD -MP -MF .deps/libnewpki_la-Asn1Cert.Tpo -c
./ASN1/Asn1Cert.cpp -fPIC -DPIC -o .libs/libnewpki_la-Asn1Cert.o
/usr/bin/g++-3.3 -DHAVE_CONFIG_H -I. -I. -I.. -Wall -g -O2 -MT
libnewpki_la-Asn1Cert.lo -MD -MP -MF .deps/libnewpki_la-Asn1Cert.Tpo -c
./ASN1/Asn1Cert.cpp -o libnewpki_la-Asn1Cert.o >/dev/null 2>&1
if /bin/sh ../libtool --tag=CXX --mode=compile /usr/bin/g++-3.3 -DHAVE_CONFIG_H
-I. -I. -I.. -Wall -g -O2 -MT libnewpki_la-Asn1Conf.lo -MD -MP -MF
".deps/libnewpki_la-Asn1Conf.Tpo" -c -o libnewpki_la-Asn1Conf.lo `test -f
'./ASN1/Asn1Conf.cpp' || echo './'`./ASN1/Asn1Conf.cpp; \
then mv -f ".deps/libnewpki_la-Asn1Conf.Tpo"
".deps/libnewpki_la-Asn1Conf.Plo"; else rm -f
".deps/libnewpki_la-Asn1Conf.Tpo"; exit 1; fi
/usr/bin/g++-3.3 -DHAVE_CONFIG_H -I. -I. -I.. -Wall -g -O2 -MT
libnewpki_la-Asn1Conf.lo -MD -MP -MF .deps/libnewpki_la-Asn1Conf.Tpo -c
./ASN1/Asn1Conf.cpp -fPIC -DPIC -o .libs/libnewpki_la-Asn1Conf.o
/usr/bin/g++-3.3 -DHAVE_CONFIG_H -I. -I. -I.. -Wall -g -O2 -MT
libnewpki_la-Asn1Conf.lo -MD -MP -MF .deps/libnewpki_la-Asn1Conf.Tpo -c
./ASN1/Asn1Conf.cpp -o libnewpki_la-Asn1Conf.o >/dev/null 2>&1
if /bin/sh ../libtool --tag=CXX --mode=compile /usr/bin/g++-3.3 -DHAVE_CONFIG_H
-I. -I. -I.. -Wall -g -O2 -MT libnewpki_la-Asn1Entity.lo -MD -MP -MF
".deps/libnewpki_la-Asn1Entity.Tpo" -c -o libnewpki_la-Asn1Entity.lo `test -f
'./ASN1/Asn1Entity.cpp' || echo './'`./ASN1/Asn1Entity.cpp; \
then mv -f ".deps/libnewpki_la-Asn1Entity.Tpo"
".deps/libnewpki_la-Asn1Entity.Plo"; else rm -f
".deps/libnewpki_la-Asn1Entity.Tpo"; exit 1; fi
/usr/bin/g++-3.3 -DHAVE_CONFIG_H -I. -I. -I.. -Wall -g -O2 -MT
libnewpki_la-Asn1Entity.lo -MD -MP -MF .deps/libnewpki_la-Asn1Entity.Tpo -c
./ASN1/Asn1Entity.cpp -fPIC -DPIC -o .libs/libnewpki_la-Asn1Entity.o
/usr/bin/g++-3.3 -DHAVE_CONFIG_H -I. -I. -I.. -Wall -g -O2 -MT
libnewpki_la-Asn1Entity.lo -MD -MP -MF .deps/libnewpki_la-Asn1Entity.Tpo -c
./ASN1/Asn1Entity.cpp -o libnewpki_la-Asn1Entity.o >/dev/null 2>&1
if /bin/sh ../libtool --tag=CXX --mode=compile /usr/bin/g++-3.3 -DHAVE_CONFIG_H
-I. -I. -I.. -Wall -g -O2 -MT libnewpki_la-Asn1Err.lo -MD -MP -MF
".deps/libnewpki_la-Asn1Err.Tpo" -c -o libnewpki_la-Asn1Err.lo `test -f
'./ASN1/Asn1Err.cpp' || echo './'`./ASN1/Asn1Err.cpp; \
then mv -f ".deps/libnewpki_la-Asn1Err.Tpo"
".deps/libnewpki_la-Asn1Err.Plo"; else rm -f ".deps/libnewpki_la-Asn1Err.Tpo";
exit 1; fi
/usr/bin/g++-3.3 -DHAVE_CONFIG_H -I. -I. -I.. -Wall -g -O2 -MT
libnewpki_la-Asn1Err.lo -MD -MP -MF .deps/libnewpki_la-Asn1Err.Tpo -c
./ASN1/Asn1Err.cpp -fPIC -DPIC -o .libs/libnewpki_la-Asn1Err.o
/usr/bin/g++-3.3 -DHAVE_CONFIG_H -I. -I. -I.. -Wall -g -O2 -MT
libnewpki_la-Asn1Err.lo -MD -MP -MF .deps/libnewpki_la-Asn1Err.Tpo -c
./ASN1/Asn1Err.cpp -o libnewpki_la-Asn1Err.o >/dev/null 2>&1
if /bin/sh ../libtool --tag=CXX --mode=compile /usr/bin/g++-3.3 -DHAVE_CONFIG_H
-I. -I. -I.. -Wall -g -O2 -MT libnewpki_la-Asn1HashVal.lo -MD -MP -MF
".deps/libnewpki_la-Asn1HashVal.Tpo" -c -o libnewpki_la-Asn1HashVal.lo `test -f
'./ASN1/Asn1HashVal.cpp' || echo './'`./ASN1/Asn1HashVal.cpp; \
then mv -f ".deps/libnewpki_la-Asn1HashVal.Tpo"
".deps/libnewpki_la-Asn1HashVal.Plo"; else rm -f
".deps/libnewpki_la-Asn1HashVal.Tpo"; exit 1; fi
/usr/bin/g++-3.3 -DHAVE_CONFIG_H -I. -I. -I.. -Wall -g -O2 -MT
libnewpki_la-Asn1HashVal.lo -MD -MP -MF .deps/libnewpki_la-Asn1HashVal.Tpo -c
./ASN1/Asn1HashVal.cpp -fPIC -DPIC -o .libs/libnewpki_la-Asn1HashVal.o
/usr/bin/g++-3.3 -DHAVE_CONFIG_H -I. -I. -I.. -Wall -g -O2 -MT
libnewpki_la-Asn1HashVal.lo -MD -MP -MF .deps/libnewpki_la-Asn1HashVal.Tpo -c
./ASN1/Asn1HashVal.cpp -o libnewpki_la-Asn1HashVal.o >/dev/null 2>&1
if /bin/sh ../libtool --tag=CXX --mode=compile /usr/bin/g++-3.3 -DHAVE_CONFIG_H
-I. -I. -I.. -Wall -g -O2 -MT libnewpki_la-Asn1Helper.lo -MD -MP -MF
".deps/libnewpki_la-Asn1Helper.Tpo" -c -o libnewpki_la-Asn1Helper.lo `test -f
'./ASN1/Asn1Helper.cpp' || echo './'`./ASN1/Asn1Helper.cpp; \
then mv -f ".deps/libnewpki_la-Asn1Helper.Tpo"
".deps/libnewpki_la-Asn1Helper.Plo"; else rm -f
".deps/libnewpki_la-Asn1Helper.Tpo"; exit 1; fi
/usr/bin/g++-3.3 -DHAVE_CONFIG_H -I. -I. -I.. -Wall -g -O2 -MT
libnewpki_la-Asn1Helper.lo -MD -MP -MF .deps/libnewpki_la-Asn1Helper.Tpo -c
./ASN1/Asn1Helper.cpp -fPIC -DPIC -o .libs/libnewpki_la-Asn1Helper.o
ASN1/Asn1Helper.cpp: In function `bool Private_toSignEncrypt(Asn1EncryptSign&,
const ASN1_ITEM*, ASN1_VALUE*, const EVP_PKEY*, const EVP_PKEY*, const
EVP_MD*, const EVP_CIPHER*)':
ASN1/Asn1Helper.cpp:540: error: invalid conversion from `int (*)()' to `int
(*)(void*, unsigned char**)'
ASN1/Asn1Helper.cpp: In function `bool Private_fromSignEncrypt(const
Asn1EncryptSign&, const ASN1_ITEM*, ASN1_VALUE**, const EVP_PKEY*, const
EVP_PKEY*)':
ASN1/Asn1Helper.cpp:594: error: invalid conversion from `int (*)()' to `int
(*)(void*, unsigned char**)'
ASN1/Asn1Helper.cpp:675: error: invalid conversion from `unsigned char**' to `
const unsigned char**'
make[3]: *** [libnewpki_la-Asn1Helper.lo] Error 1
make[3]: Leaving directory `/local/src/newpki-lib-2.0.0/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/local/src/newpki-lib-2.0.0'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/local/src/newpki-lib-2.0.0'
make: *** [build-stamp] Error 2
Please can anyone tell me why this is failing? I am attempting to compile this
using the latest Debian testing (etch) distribution with gcc-4.0 but
compilation also fails using gcc-3.3 (as you can see from the local above).
(Also I've noticed that the version number for the debian package it is trying
to build is still claiming to be 2.0.0beta4 even though the tarball I
downloaded is definitely -rc1.)
Thanks
Gary H
--
Gary Hawkins MBCS <[EMAIL PROTECTED]>
PGP: 0x6D4E5C77 (expires 31 Dec 2006)
Web: http://www.garyhawkins.me.uk
_____________________________________________________________________
NewPKI http://www.newpki.org
User Support Mailing List [email protected]
Automated List Manager [EMAIL PROTECTED]