Projet

Général

Profil

Bug #5062

Error bulid on CentOS release 6.5 (Final)

Ajouté par Timour Ezizov il y a presque 10 ans. Mis à jour il y a plus de 8 ans.

Statut:
Fermé
Priorité:
Bas
Assigné à:
-
Catégorie:
-
Version cible:
Début:
27 juin 2014
Echéance:
% réalisé:

0%

Temps estimé:
Patch proposed:
Non
Planning:

Description

Can't build on Centos

Full log in attachment

lasso.c: In function 'lasso_init':
lasso.c:176: error: 'openssl' undeclared (first use in this function)
lasso.c:176: error: (Each undeclared identifier is reported only once
lasso.c:176: error: for each function it appears in.)
make4: * [lasso.lo] Error 1
make4: Leaving directory `/home/tez/tmp2/lasso-2.4.0/lasso'
make3:
[all-recursive] Error 1
make3: Leaving directory `/home/tez/tmp2/lasso-2.4.0/lasso'
make2:
[all] Error 2
make2: Leaving directory `/home/tez/tmp2/lasso-2.4.0/lasso'
make1:
[all-recursive] Error 1
make1: Leaving directory `/home/tez/tmp2/lasso-2.4.0'
make: *
* [all] Error 2

[tez@localhost lasso-2.4.0]$ uname -a
Linux localhost.localdomain 2.6.32-431.20.3.el6.i686 #1 SMP Thu Jun 19 19:51:30 UTC 2014 i686 i686 i386 GNU/Linux


Fichiers

lasso_2.4_error.txt (15,2 ko) lasso_2.4_error.txt Timour Ezizov, 27 juin 2014 14:14
lasso_64_build_error.txt (15,3 ko) lasso_64_build_error.txt Timour Ezizov, 27 juin 2014 15:56

Historique

#1

Mis à jour par Timour Ezizov il y a presque 10 ans

In CentOS 6 64 bit same situation
Log attached.

#2

Mis à jour par Timour Ezizov il y a presque 10 ans

Changing lasso.c file line 178
- if (xmlSecCryptoDLLoadLibrary(BAD_CAST XMLSEC_CRYPTO)
+ if (xmlSecCryptoDLLoadLibrary(BAD_CAST "openssl")

did the trick, but...

#3

Mis à jour par Frédéric Péters il y a presque 10 ans

It looks like mssing quotes in the xmlsec1-openssl.pc file, could you check?

$ pkg-config --cflags xmlsec1-openssl
-DXMLSEC_CRYPTO=\"openssl\" -D__XMLSEC_FUNCTION__=__FUNCTION__ -DXMLSEC_NO_SIZE_T -DXMLSEC_NO_GOST=1 -DXMLSEC_NO_XKMS=1 -DXMLSEC_NO_CRYPTO_DYNAMIC_LOADING=1 -DXMLSEC_OPENSSL_098=1 -DXMLSEC_CRYPTO_OPENSSL=1 -I/usr/include/libxml2 -I/usr/include/xmlsec1 
#4

Mis à jour par Timour Ezizov il y a presque 10 ans

So,
if I run:

pkg-config --cflags xmlsec1-openssl
-DXMLSEC_CRYPTO="openssl" -D__XMLSEC_FUNCTION__=__FUNCTION__ -DXMLSEC_NO_GOST=1 -DXMLSEC_NO_XKMS=1 -DXMLSEC_DL_LIBLTDL=1 -DXMLSEC_OPENSSL_100=1 -DXMLSEC_CRYPTO_OPENSSL=1 -I/usr/include/xmlsec1 -I/usr/include/libxml2

but file self is:

cat /usr/lib/pkgconfig/xmlsec1-openssl.pc
prefix=/usr
exec_prefix=/usr
libdir=/usr/lib
includedir=/usr/include

Name: xmlsec1-openssl
Version: 1.2.19
Description: XML Security Library implements XML Signature and XML Encryption standards
Requires: libxml-2.0 >= 2.7.4 libxslt >= 1.0.20 
Cflags: -DXMLSEC_CRYPTO=\"openssl\"  -D__XMLSEC_FUNCTION__=__FUNCTION__ -DXMLSEC_NO_GOST=1 -DXMLSEC_NO_XKMS=1 -DXMLSEC_DL_LIBLTDL=1 -I/usr/include/xmlsec1     -DXMLSEC_OPENSSL_100=1 -DXMLSEC_CRYPTO_OPENSSL=1
Libs: -L/usr/lib -lxmlsec1-openssl -lxmlsec1 -lltdl  -lssl -lcrypto

also I found bug http://www.freebsd.org/cgi/query-pr.cgi?pr=152070 related to LASSO

and if I revert xmlsec1-openssl.pc file to (triple backslash \\\) then I have correct output

pkg-config --cflags xmlsec1-openssl
-DXMLSEC_CRYPTO=\"openssl\" -D__XMLSEC_FUNCTION__=__FUNCTION__ -DXMLSEC_NO_GOST=1 -DXMLSEC_NO_XKMS=1 -DXMLSEC_DL_LIBLTDL=1 -DXMLSEC_OPENSSL_100=1 -DXMLSEC_CRYPTO_OPENSSL=1 -I/usr/include/xmlsec1 -I/usr/include/libxml2

and can't build

Errors like this:

ake[5]: Entering directory `/home/tez/dev/lasso-2.4.0/lasso/xml/saml-2.0'
  CC     saml2_action.lo
<command-line>: warning: "XMLSEC_CRYPTO" redefined
<command-line>: warning: this is the location of the previous definition
  CC     saml2_advice.lo
<command-line>: warning: "XMLSEC_CRYPTO" redefined
<command-line>: warning: this is the location of the previous definition
  CC     saml2_assertion.lo

#5

Mis à jour par Benjamin Dauvergne il y a environ 9 ans

  • Priorité changé de Haut à Bas
#6

Mis à jour par Benjamin Dauvergne il y a plus de 8 ans

  • Version cible mis à future
#7

Mis à jour par Benjamin Dauvergne il y a plus de 8 ans

  • Statut changé de Nouveau à Fermé

Bug was in the .pc file.

Formats disponibles : Atom PDF