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

Doesn't build on latest Haiku #46

Open
nigelhorne opened this issue Sep 22, 2024 · 1 comment
Open

Doesn't build on latest Haiku #46

nigelhorne opened this issue Sep 22, 2024 · 1 comment

Comments

@nigelhorne
Copy link

nigelhorne commented Sep 22, 2024

I see a previous fix to support Haiku from some time ago, but I get this error with the latest Haiku (installed yesterday, vanilla beta 5 release).

/packages/perl_x86-5.40.0-4/.self/lib/perl5/5.40.0/BePC-haiku-thread-multi/CORE/inline.h: In function `Perl_av_remove_offset':
In file included from /packages/perl_x86-5.40.0-4/.self/lib/perl5/5.40.0/BePC-haiku-thread-multi/CORE/perl.h:7869,
                 from /boot/home/.cpan/build/Data-UUID-1.227-0/UUID.xs:2:
/packages/perl_x86-5.40.0-4/.self/lib/perl5/5.40.0/BePC-haiku-thread-multi/CORE/inline.h:226: parse error before `i'
/packages/perl_x86-5.40.0-4/.self/lib/perl5/5.40.0/BePC-haiku-thread-multi/CORE/inline.h:227: `i' undeclared (first use in this function)
/packages/perl_x86-5.40.0-4/.self/lib/perl5/5.40.0/BePC-haiku-thread-multi/CORE/inline.h:227: (Each undeclared identifier is reported only once
/packages/perl_x86-5.40.0-4/.self/lib/perl5/5.40.0/BePC-haiku-thread-multi/CORE/inline.h:227: for each function it appears in.)
/packages/perl_x86-5.40.0-4/.self/lib/perl5/5.40.0/BePC-haiku-thread-multi/CORE/inline.h: In function `S_PerlEnv_putenv':
/packages/perl_x86-5.40.0-4/.self/lib/perl5/5.40.0/BePC-haiku-thread-multi/CORE/inline.h:313: parse error before `retval'
/packages/perl_x86-5.40.0-4/.self/lib/perl5/5.40.0/BePC-haiku-thread-multi/CORE/inline.h:316: `retval' undeclared (first use in this function)
/packages/perl_x86-5.40.0-4/.self/lib/perl5/5.40.0/BePC-haiku-thread-multi/CORE/inline.h: In function `Perl_rpp_context':
/packages/perl_x86-5.40.0-4/.self/lib/perl5/5.40.0/BePC-haiku-thread-multi/CORE/inline.h:1074: parse error before `*'
/packages/perl_x86-5.40.0-4/.self/lib/perl5/5.40.0/BePC-haiku-thread-multi/CORE/inline.h:1076: `top' undeclared (first use in this function)
/packages/perl_x86-5.40.0-4/.self/lib/perl5/5.40.0/BePC-haiku-thread-multi/CORE/inline.h: In function `Perl_push_stackinfo':
/packages/perl_x86-5.40.0-4/.self/lib/perl5/5.40.0/BePC-haiku-thread-multi/CORE/inline.h:4016: parse error before `*'
/packages/perl_x86-5.40.0-4/.self/lib/perl5/5.40.0/BePC-haiku-thread-multi/CORE/inline.h:4024: `next' undeclared (first use in this function)
/packages/perl_x86-5.40.0-4/.self/lib/perl5/5.40.0/BePC-haiku-thread-multi/CORE/inline.h: In function `Perl_pop_stackinfo':
/packages/perl_x86-5.40.0-4/.self/lib/perl5/5.40.0/BePC-haiku-thread-multi/CORE/inline.h:4056: parse error before `*'
/packages/perl_x86-5.40.0-4/.self/lib/perl5/5.40.0/BePC-haiku-thread-multi/CORE/inline.h:4062: `prev' undeclared (first use in this function)
/packages/perl_x86-5.40.0-4/.self/lib/perl5/5.40.0/BePC-haiku-thread-multi/CORE/inline.h: In function `Perl_newPADxVOP':
/packages/perl_x86-5.40.0-4/.self/lib/perl5/5.40.0/BePC-haiku-thread-multi/CORE/inline.h:4098: parse error before `*'
/packages/perl_x86-5.40.0-4/.self/lib/perl5/5.40.0/BePC-haiku-thread-multi/CORE/inline.h:4099: `o' undeclared (first use in this function)
/packages/perl_x86-5.40.0-4/.self/lib/perl5/5.40.0/BePC-haiku-thread-multi/CORE/inline.h: In function `Perl_foldEQ':
/packages/perl_x86-5.40.0-4/.self/lib/perl5/5.40.0/BePC-haiku-thread-multi/CORE/inline.h:4124: parse error before `const'
/packages/perl_x86-5.40.0-4/.self/lib/perl5/5.40.0/BePC-haiku-thread-multi/CORE/inline.h:4132: `a' undeclared (first use in this function)
/packages/perl_x86-5.40.0-4/.self/lib/perl5/5.40.0/BePC-haiku-thread-multi/CORE/inline.h:4132: `b' undeclared (first use in this function)
/packages/perl_x86-5.40.0-4/.self/lib/perl5/5.40.0/BePC-haiku-thread-multi/CORE/inline.h: In function `Perl_foldEQ_latin1':
/packages/perl_x86-5.40.0-4/.self/lib/perl5/5.40.0/BePC-haiku-thread-multi/CORE/inline.h:4149: parse error before `const'
/packages/perl_x86-5.40.0-4/.self/lib/perl5/5.40.0/BePC-haiku-thread-multi/CORE/inline.h:4157: `a' undeclared (first use in this function)
/packages/perl_x86-5.40.0-4/.self/lib/perl5/5.40.0/BePC-haiku-thread-multi/CORE/inline.h:4157: `b' undeclared (first use in this function)
/packages/perl_x86-5.40.0-4/.self/lib/perl5/5.40.0/BePC-haiku-thread-multi/CORE/inline.h: In function `Perl_cop_file_avn':
/packages/perl_x86-5.40.0-4/.self/lib/perl5/5.40.0/BePC-haiku-thread-multi/CORE/inline.h:4468: parse error before `const'
/packages/perl_x86-5.40.0-4/.self/lib/perl5/5.40.0/BePC-haiku-thread-multi/CORE/inline.h:4469: `file' undeclared (first use in this function)
/boot/system/develop/headers/os/kernel/OS.h: At top level:
In file included from /boot/home/.cpan/build/Data-UUID-1.227-0/UUID.xs:8:
/boot/system/develop/headers/os/kernel/OS.h:366: parse error before `has_data'
/boot/system/develop/headers/os/kernel/OS.h:366: warning: data definition has no type or storage class
/boot/system/develop/headers/os/kernel/OS.h:439: parse error before `bool'
/boot/system/develop/headers/os/kernel/OS.h:439: warning: no semicolon at end of struct or union
/boot/system/develop/headers/os/kernel/OS.h:441: parse error before `}'
/boot/system/develop/headers/os/kernel/OS.h:441: warning: data definition has no type or storage class
/boot/system/develop/headers/os/kernel/OS.h:553: parse error before `cpu_info'
/boot/home/.cpan/build/Data-UUID-1.227-0/UUID.xs: In function `MD5Init':
/boot/home/.cpan/build/Data-UUID-1.227-0/UUID.xs:278: `bool' undeclared (first use in this function)
/boot/home/.cpan/build/Data-UUID-1.227-0/UUID.xs: In function `MD5Update':
/boot/home/.cpan/build/Data-UUID-1.227-0/UUID.xs:301: `bool' undeclared (first use in this function)
/boot/home/.cpan/build/Data-UUID-1.227-0/UUID.xs: In function `MD5Final':
/boot/home/.cpan/build/Data-UUID-1.227-0/UUID.xs:323: `bool' undeclared (first use in this function)
/boot/home/.cpan/build/Data-UUID-1.227-0/UUID.c: In function `XS_Data__UUID_compare':
/boot/home/.cpan/build/Data-UUID-1.227-0/UUID.c:678: `bool' undeclared (first use in this function)
/boot/home/.cpan/build/Data-UUID-1.227-0/UUID.c: In function `boot_Data__UUID':
/boot/home/.cpan/build/Data-UUID-1.227-0/UUID.c:870: `bool' undeclared (first use in this function)
Makefile:344: recipe for target 'UUID.o' failed
@nigelhorne
Copy link
Author

nigelhorne commented Sep 25, 2024

This hack makes it build and test. I don't like it, but at least it works pending a solution from the author:

*** UUID.xs	2024-09-25 11:06:47.817889280 -0400
--- ../UUID.xs	2024-09-25 10:55:40.565182464 -0400
***************
*** 8,15 ****
  #  include <OS.h>
  #endif
  
! #ifdef __HAIKU__
! #define	bool	unsigned int
  #  include <OS.h>
  #endif
  
--- 8,14 ----
  #  include <OS.h>
  #endif
  
! #if defined __HAIKU__
  #  include <OS.h>
  #endif

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

1 participant