Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[META] U64/I64 now exposed beyond PERL_CORE #14827

Open
p5pRT opened this issue Jul 29, 2015 · 2 comments
Open

[META] U64/I64 now exposed beyond PERL_CORE #14827

p5pRT opened this issue Jul 29, 2015 · 2 comments

Comments

@p5pRT
Copy link

p5pRT commented Jul 29, 2015

Migrated from rt.perl.org#125718 (status was 'new')

Searchable as RT125718$

@p5pRT
Copy link
Author

p5pRT commented Jul 29, 2015

From @jhi

In http​://perl5.git.perl.org/perl.git/commit/16d89be8 I (jhi) exposed the U64/I64 to anyone, not just PERL_CORE.

This is a meta ticket for any CPAN breakages caused by this​: because of the long history, some XS might have
workarounds for the lack of U64/I64.

@p5pRT
Copy link
Author

p5pRT commented Aug 12, 2015

From @jhi

Not a CPAN breakage directly, but net-snmp breakage, noticed by Mathieu Arnold <mat@​freebsd.org>

What happened was that the SNMP code has its own U64 which was a struct of two ulongs {hi, lo}; probably to emulate a 64-bit int in 32-bit lands.

The workaround which was tested to work was to add

+#ifdef U64TYPE
+#define U64 U64pairU32
+#endif

before any

#include <net-snmp/net-snmp-config.h>

in any code using the Perl headers.

Mathieu submitted a patch for net-snmp for this​:

http​://sourceforge.net/p/net-snmp/patches/1307/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants