[vz-dev] Probleme beim Kompilieren des C++-Ports von vzlogger

Rainer Gauweiler volkszaehler at moppl.inka.de
Sat Jan 12 23:40:37 CET 2013


Hallo,

Am 12.01.2013 22:16, schrieb Dimitrios Bogiatzoules:
> Rainer Gauweiler said the following on 12.01.2013 20:47:
> [...]
>> -- Could NOT find GNUTLS  (missing:  GNUTLS_LIBRARIES GNUTLS_INCLUDE_DIR)
> [...]
>>               sml:  -LSML_LIBRARY-NOTFOUND;-lrt -ISML_INCLUDE_DIR-NOTFOUND
>
> Es fehlen sowohl die gnutls als auch die SML libraries, bzw. cmake
> findet sie nicht.
>
> Erstere müsste über das Paketwverwaltungssystem installierbar sein,

ja, apt-get install libgnutls-dev hilft. Das fehlt im Wiki.

> cp sml/lib/libsml.* /usr/lib/.
> cp sml/include/* /usr/include/.
> cp sml.pc /usr/lib/pkgconfig/.

Ist im Wiki als optional beschrieben, daher hatte ich es nicht gemacht.
Damit läuft dann aber cmake durch. Danke :-)

make hängt dann später an libsasl2, dagegen hilft dann apt-get install 
libsasl2-dev.

Aber danach patzt es wieder:
[100%] Building CXX object src/CMakeFiles/vzlogger.dir/Meter.cpp.o
/usr/local/src/vzlogger-c++/vzlogger/src/Meter.cpp:204: note: the 
mangling of ‘va_list’ has changed in GCC 4.4
Linking CXX executable vzlogger
/usr/lib/gcc/arm-linux-gnueabi/4.4.5/../../../libldap.a(os-ip.o): In 
function `ldap_pvt_is_socket_ready':
/build/buildd-openldap_2.4.23-7.2-armel-xZsc5h/openldap-2.4.23/debian/build/libraries/libldap_r/os-ip.c:262: 
warning: `sys_errlist' is deprecated; use `strerror' or `strerror_r' instead
/build/buildd-openldap_2.4.23-7.2-armel-xZsc5h/openldap-2.4.23/debian/build/libraries/libldap_r/os-ip.c:262: 
warning: `sys_nerr' is deprecated; use `strerror' or `strerror_r' instead
/usr/lib/gcc/arm-linux-gnueabi/4.4.5/../../../libgcrypt.a(libgcrypt_la-misc.o): 
In function `_gcry_fatal_error':
(.text+0x534): undefined reference to `gpg_strerror'
/usr/lib/gcc/arm-linux-gnueabi/4.4.5/../../../libgcrypt.a(libgcrypt_la-global.o): 
In function `_gcry_error_from_errno':
(.text+0x70): undefined reference to `gpg_err_code_from_errno'
/usr/lib/gcc/arm-linux-gnueabi/4.4.5/../../../libgcrypt.a(libgcrypt_la-global.o): 
In function `_gcry_err_make_from_errno':
(.text+0x98): undefined reference to `gpg_err_code_from_errno'
/usr/lib/gcc/arm-linux-gnueabi/4.4.5/../../../libgcrypt.a(libgcrypt_la-global.o): 
In function `_gcry_err_code_to_errno':
(.text+0xb8): undefined reference to `gpg_err_code_from_errno'
/usr/lib/gcc/arm-linux-gnueabi/4.4.5/../../../libgcrypt.a(libgcrypt_la-global.o): 
In function `_gcry_err_code_from_errno':
(.text+0xc8): undefined reference to `gpg_err_code_from_errno'
/usr/lib/gcc/arm-linux-gnueabi/4.4.5/../../../libgcrypt.a(libgcrypt_la-global.o): 
In function `_gcry_xrealloc':
(.text+0x270): undefined reference to `gpg_err_code_from_errno'
/usr/lib/gcc/arm-linux-gnueabi/4.4.5/../../../libgcrypt.a(libgcrypt_la-global.o):(.text+0x328): 
more undefined references to `gpg_err_code_from_errno' follow
/usr/lib/gcc/arm-linux-gnueabi/4.4.5/../../../libgcrypt.a(libgcrypt_la-global.o): 
In function `_gcry_strsource':
(.text+0x830): undefined reference to `gpg_strsource'
/usr/lib/gcc/arm-linux-gnueabi/4.4.5/../../../libgcrypt.a(libgcrypt_la-global.o): 
In function `_gcry_strerror':
(.text+0x840): undefined reference to `gpg_strerror'
/usr/lib/gcc/arm-linux-gnueabi/4.4.5/../../../libgcrypt.a(libgcrypt_la-sexp.o): 
In function `make_space':
(.text+0x1240): undefined reference to `gpg_err_code_from_errno'
/usr/lib/gcc/arm-linux-gnueabi/4.4.5/../../../libgcrypt.a(libgcrypt_la-sexp.o): 
In function `sexp_sscan':
(.text+0x1e30): undefined reference to `gpg_err_code_from_errno'
/usr/lib/gcc/arm-linux-gnueabi/4.4.5/../../../libgcrypt.a(libgcrypt_la-sexp.o): 
In function `sexp_sscan':
(.text+0x2464): undefined reference to `gpg_err_code_from_errno'
/usr/lib/gcc/arm-linux-gnueabi/4.4.5/../../../libgcrypt.a(libgcrypt_la-fips.o): 
In function `_gcry_fips_run_selftests':
(.text+0x630): undefined reference to `gpg_strerror'
/usr/lib/gcc/arm-linux-gnueabi/4.4.5/../../../libgcrypt.a(libgcrypt_la-fips.o): 
In function `_gcry_fips_run_selftests':
(.text+0x6a0): undefined reference to `gpg_strerror'
/usr/lib/gcc/arm-linux-gnueabi/4.4.5/../../../libgcrypt.a(libgcrypt_la-fips.o): 
In function `_gcry_fips_run_selftests':
(.text+0x6f0): undefined reference to `gpg_strerror'
/usr/lib/gcc/arm-linux-gnueabi/4.4.5/../../../libgcrypt.a(libgcrypt_la-fips.o): 
In function `_gcry_fips_run_selftests':
(.text+0x78c): undefined reference to `gpg_strerror'
/usr/lib/gcc/arm-linux-gnueabi/4.4.5/../../../libgcrypt.a(libgcrypt_la-fips.o): 
In function `_gcry_fips_run_selftests':
(.text+0x7b0): undefined reference to `gpg_strerror'
/usr/lib/gcc/arm-linux-gnueabi/4.4.5/../../../libgcrypt.a(dsa.o): In 
function `dsa_generate_ext':
(.text+0x1658): undefined reference to `gpg_err_code_from_syserror'
/usr/lib/gcc/arm-linux-gnueabi/4.4.5/../../../libgcrypt.a(dsa.o): In 
function `dsa_generate_ext':
(.text+0x1764): undefined reference to `gpg_err_code_from_syserror'
/usr/lib/gcc/arm-linux-gnueabi/4.4.5/../../../libgcrypt.a(primegen.o): 
In function `_gcry_generate_fips186_3_prime':
(.text+0xc30): undefined reference to `gpg_err_code_from_syserror'
/usr/lib/gcc/arm-linux-gnueabi/4.4.5/../../../libgcrypt.a(primegen.o): 
In function `_gcry_generate_fips186_2_prime':
(.text+0x11e8): undefined reference to `gpg_err_code_from_syserror'
/usr/lib/gcc/arm-linux-gnueabi/4.4.5/../../../libgcrypt.a(primegen.o): 
In function `prime_generate_internal':
(.text+0x2634): undefined reference to `gpg_err_code_from_errno'
/usr/lib/gcc/arm-linux-gnueabi/4.4.5/../../../libgcrypt.a(primegen.o): 
In function `prime_generate_internal':
(.text+0x2648): undefined reference to `gpg_err_code_from_errno'
/usr/lib/gcc/arm-linux-gnueabi/4.4.5/../../../libgcrypt.a(primegen.o): 
In function `prime_generate_internal':
(.text+0x266c): undefined reference to `gpg_err_code_from_errno'
/usr/lib/gcc/arm-linux-gnueabi/4.4.5/../../../libgcrypt.a(primegen.o): 
In function `prime_generate_internal':
(.text+0x2aa4): undefined reference to `gpg_err_code_from_errno'
/usr/lib/gcc/arm-linux-gnueabi/4.4.5/../../../libgcrypt.a(md.o): In 
function `md_enable':
(.text+0x94c): undefined reference to `gpg_err_code_from_errno'
/usr/lib/gcc/arm-linux-gnueabi/4.4.5/../../../libgcrypt.a(md.o):(.text+0xe7c): 
more undefined references to `gpg_err_code_from_errno' follow
/usr/lib/gcc/arm-linux-gnueabi/4.4.5/../../../libgcrypt.a(md.o): In 
function `_gcry_md_hash_buffer':
(.text+0x1178): undefined reference to `gpg_strerror'
/usr/lib/gcc/arm-linux-gnueabi/4.4.5/../../../libgcrypt.a(md.o): In 
function `_gcry_md_setkey':
(.text+0x13c4): undefined reference to `gpg_err_code_from_errno'
/usr/lib/gcc/arm-linux-gnueabi/4.4.5/../../../libgcrypt.a(md.o): In 
function `_gcry_md_copy':
(.text+0x16b4): undefined reference to `gpg_err_code_from_errno'
/usr/lib/gcc/arm-linux-gnueabi/4.4.5/../../../libgcrypt.a(md.o): In 
function `_gcry_md_copy':
(.text+0x1774): undefined reference to `gpg_err_code_from_errno'
/usr/lib/gcc/arm-linux-gnueabi/4.4.5/../../../libgcrypt.a(md.o): In 
function `_gcry_md_copy':
(.text+0x178c): undefined reference to `gpg_err_code_from_errno'
/usr/lib/gcc/arm-linux-gnueabi/4.4.5/../../../libgcrypt.a(cipher.o): In 
function `_gcry_cipher_open':
(.text+0x24fc): undefined reference to `gpg_err_code_from_errno'
/usr/lib/gcc/arm-linux-gnueabi/4.4.5/../../../libgcrypt.a(pubkey.o):(.text+0x30c): 
more undefined references to `gpg_err_code_from_errno' follow
/usr/lib/gcc/arm-linux-gnueabi/4.4.5/../../../libgcrypt.a(mpicoder.o): 
In function `gpg_error_from_syserror':
(.text+0x4): undefined reference to `gpg_err_code_from_syserror'
/usr/lib/gcc/arm-linux-gnueabi/4.4.5/../../../libgcrypt.a(libgcrypt_la-module.o): 
In function `_gcry_module_add':
(.text+0x23c): undefined reference to `gpg_err_code_from_errno'
/usr/lib/gcc/arm-linux-gnueabi/4.4.5/../../../libgcrypt.a(ecc.o): In 
function `scanval':
(.text+0x80): undefined reference to `gpg_strerror'
/usr/lib/gcc/arm-linux-gnueabi/4.4.5/../../../libgcrypt.a(ecc.o): In 
function `ec2os':
(.text+0x40c): undefined reference to `gpg_strerror'
/usr/lib/gcc/arm-linux-gnueabi/4.4.5/../../../libgcrypt.a(ecc.o): In 
function `ec2os':
(.text+0x420): undefined reference to `gpg_strerror'
/usr/lib/gcc/arm-linux-gnueabi/4.4.5/../../../libgcrypt.a(ecc.o): In 
function `compute_keygrip':
(.text+0x79c): undefined reference to `gpg_err_code_from_syserror'
/usr/lib/gcc/arm-linux-gnueabi/4.4.5/../../../libgcrypt.a(ecc.o): In 
function `ecc_generate_ext':
(.text+0x1470): undefined reference to `gpg_err_code_from_syserror'
/usr/lib/gcc/arm-linux-gnueabi/4.4.5/../../../libgcrypt.a(random-fips.o): In 
function `_gcry_rngfips_init_external_test':
(.text+0x59c): undefined reference to `gpg_err_code_from_syserror'
collect2: ld returned 1 exit status
make[2]: *** [src/vzlogger] Fehler 1
make[1]: *** [src/CMakeFiles/vzlogger.dir/all] Fehler 2
make: *** [all] Fehler 2

Jemand eine Idee?

Gruss
      Rainer



More information about the volkszaehler-dev mailing list