Projet

Général

Profil

Bug #5115

Perl Module Bindings (XS LassoKey typemap missing?)

Ajouté par Stefan Stiasny il y a plus de 9 ans. Mis à jour il y a plus d'un an.

Statut:
Fermé
Priorité:
Normal
Assigné à:
-
Catégorie:
Binding perl
Version cible:
Début:
08 juillet 2014
Echéance:
% réalisé:

0%

Temps estimé:
Patch proposed:
Non
Planning:
Non

Description

Hi,

there seems to be a missing typemap definition when creating the necessary Perl bindings ...
Error message seems to be from bindings.py in lasso-2.4.0/bindings/

compile/make on Oracle Linux 6.5 (RHEL)

./configure --disable-java --disable-python --prefix=/usr --libdir=/usr/lib64
make

...
Making all in bindings
make[2]: Entering directory `/root/lasso-2.4.0/bindings'
Making all in perl
make[3]: Entering directory `/root/lasso-2.4.0/bindings/perl'
  GEN    Lasso.xs
W: skipping field LassoLibAuthnContext.AuthenticationContextStatement
W: skipping field LassoSamlAssertion.Statement
W: skipping field LassoSamlAssertion.AuthorizationDecisionStatement
failed to process: LassoKey* in line: LASSO_EXPORT char* lasso_node_export_to_saml2_query(LassoNode *node, const char *param_name, const char *url,
                                                                                          struct _LassoKey *key);

W: skipping function <Function return_type:('char*', None, {}) name:lasso_node_export_to_saml2_query args:[['LassoNode*', 'node', {}], ['const char*', 'param_name', {}], ['const char*', 'url', {}]]>
W: skipping function <Function return_type:('lasso_error_t', None, {}) name:lasso_server_load_metadata args:[['LassoServer*', 'server', {}], ['LassoProviderRole', 'role', {}], ['const gchar*', 'federation_file', {}], ['const gchar*', 'trusted_roots', {}], ['GList*', 'blacklisted_entity_ids', {}], ['GList**', 'loaded_entity_ids', {}], ['LassoServerLoadMetadataFlag', 'flags', {}]]>
  GEN    Makefile.perl
  SUBMAKE     Makefile.perl
Unrecognized argument in LIBS ignored: '-pthread'
Unrecognized argument in LIBS ignored: '/usr/local/openssl/lib/libcrypto.a'
  SUBMAKE     blib/arch/auto/Lasso/Lasso.so
make[3]: Leaving directory `/root/lasso-2.4.0/bindings/perl'
make[3]: Entering directory `/root/lasso-2.4.0/bindings'
...

Thx for helping me fix this ... Sadly, I do not have any knowledge of XS

Historique

#1

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

  • Assigné à Benjamin Dauvergne supprimé
#2

Mis à jour par Stefan Stiasny il y a plus de 9 ans

maybe not an XS problem ...

looks like the definitions in lasso/key.h

#define LASSO_TYPE_KEY (lasso_key_get_type())
#define LASSO_KEY(obj) \
        (G_TYPE_CHECK_INSTANCE_CAST((obj), LASSO_TYPE_KEY, \
                                LassoKey))
#define LASSO_KEY_CLASS(klass) \
        (G_TYPE_CHECK_CLASS_CAST((klass), LASSO_TYPE_KEY, \
                                LassoKeyClass))
#define LASSO_IS_KEY(obj) \
        (G_TYPE_CHECK_INSTANCE_TYPE((obj), LASSO_TYPE_KEY))
#define LASSO_IS_KEY_CLASS(klass) \
        (G_TYPE_CHECK_CLASS_TYPE ((klass), LASSO_TYPE_KEY))
#define LASSO_KEY_GET_CLASS(o) \
        (G_TYPE_INSTANCE_GET_CLASS ((o), LASSO_TYPE_KEY, \
                                LassoKeyClass))

typedef struct _LassoKey LassoKey;
typedef struct _LassoKeyClass LassoKeyClass;
typedef struct _LassoKeyPrivate LassoKeyPrivate;

typedef enum _LassoKeyType {
        LASSO_KEY_TYPE_FOR_SIGNATURE,
} LassoKeyType;

struct _LassoKey {
        LassoNode parent;
        /*< private >*/
      LassoKeyPrivate *private_data;
};

struct _LassoKeyClass {
        LassoNodeClass parent;
};

are missing (or should be) in lasso/xml/xml.h
otherwise bindings.py cannot gather the type for xs

#3

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

  • Version cible changé de 2.4.0 à future
#4

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

  • Statut changé de Nouveau à Information nécessaire
#5

Mis à jour par Benjamin Dauvergne il y a plus d'un an

  • Statut changé de Information nécessaire à Fermé
  • Planning mis à Non

Formats disponibles : Atom PDF