Bug #5115
Perl Module Bindings (XS LassoKey typemap missing?)
Start date:
08 July 2014
Due date:
% Done:
0%
Estimated time:
Patch proposed:
No
Planning:
No
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
History
Updated by Stefan Stiasny over 10 years ago
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
Updated by Benjamin Dauvergne over 9 years ago
- Status changed from Nouveau to Information nécessaire
Updated by Benjamin Dauvergne about 2 years ago
- Status changed from Information nécessaire to Fermé
- Planning set to No