Opened 3 hours ago
Last modified 110 minutes ago
#71351 new defect
p5.34-curses does not build on PPC Tiger, Mac OS X 10.4.11, because of
Reported by: | ballapete (Peter "Pete" Dyballa) | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.10.4 |
Keywords: | tiger ppc | Cc: | |
Port: | p5-curses |
Description
/opt/local/bin/gcc-apple-4.2 -c -fno-common -DPERL_DARWIN -pipe -Os -fno-strict-aliasing -I/opt/local/include -D_FORTIFY_SOURCE=2 -DPERL_USE_SAFE_PUTENV -arch ppc -isysroot/ -O3 -DVERSION=\"1.45\" -DXS_VERSION=\"1.45\" "-I/opt/local/lib/perl5/5.34/darwin-thread-multi-2level/CORE" Curses.c Curses.c:217: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token Curses.c:221: error: expected identifier or '(' before '{' token Curses.c:233: error: expected declaration specifiers or '...' before 'FIELD' Curses.c: In function 'c_field2sv': Curses.c:239: error: 'fieldP' undeclared (first use in this function) Curses.c:239: error: (Each undeclared identifier is reported only once Curses.c:239: error: for each function it appears in.) Curses.c: At top level: Curses.c:242: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token Curses.c:246: error: expected identifier or '(' before '{' token Curses.c: In function 'c_form2sv': Curses.c:259: error: expected declaration specifiers before 'FORM' In file included from Curses.c:445: CursesFun.c: In function 'XS_Curses_pos_form_cursor': CursesFun.c:5744: error: 'FORM' undeclared (first use in this function) CursesFun.c: In function 'XS_Curses_data_ahead': CursesFun.c:5766: error: 'FORM' undeclared (first use in this function) CursesFun.c: In function 'XS_Curses_data_behind': CursesFun.c:5785: error: 'FORM' undeclared (first use in this function) CursesFun.c: In function 'XS_Curses_form_driver': CursesFun.c:5807: error: 'FORM' undeclared (first use in this function) CursesFun.c: In function 'XS_Curses_set_form_fields': CursesFun.c:5830: error: 'FORM' undeclared (first use in this function) CursesFun.c:5831: error: 'FIELD' undeclared (first use in this function) CursesFun.c:5831: error: 'fields' undeclared (first use in this function) CursesFun.c:5831: error: expected expression before ')' token CursesFun.c: In function 'XS_Curses_form_fields': CursesFun.c:5850: error: 'FORM' undeclared (first use in this function) CursesFun.c:5851: error: 'FIELD' undeclared (first use in this function) CursesFun.c:5851: error: 'ret' undeclared (first use in this function) CursesFun.c: In function 'XS_Curses_field_count': CursesFun.c:5869: error: 'FORM' undeclared (first use in this function) CursesFun.c: In function 'XS_Curses_move_field': CursesFun.c:5888: error: 'FIELD' undeclared (first use in this function) CursesFun.c:5888: error: 'field' undeclared (first use in this function) CursesFun.c: In function 'XS_Curses_new_form': CursesFun.c:5911: error: 'FIELD' undeclared (first use in this function) CursesFun.c:5911: error: 'fields' undeclared (first use in this function) CursesFun.c:5911: error: expected expression before ')' token CursesFun.c:5912: error: 'FORM' undeclared (first use in this function) CursesFun.c:5912: error: 'ret' undeclared (first use in this function) CursesFun.c: In function 'XS_Curses_free_form': CursesFun.c:5930: error: 'FORM' undeclared (first use in this function) CursesFun.c: In function 'XS_Curses_set_new_page': CursesFun.c:5952: error: 'FIELD' undeclared (first use in this function) CursesFun.c:5952: error: 'field' undeclared (first use in this function) CursesFun.c: In function 'XS_Curses_new_page': CursesFun.c:5972: error: 'FIELD' undeclared (first use in this function) CursesFun.c:5972: error: 'field' undeclared (first use in this function) CursesFun.c: In function 'XS_Curses_set_form_opts': CursesFun.c:5994: error: 'FORM' undeclared (first use in this function) CursesFun.c: In function 'XS_Curses_form_opts_on': CursesFun.c:6014: error: 'FORM' undeclared (first use in this function) CursesFun.c: In function 'XS_Curses_form_opts_off': CursesFun.c:6034: error: 'FORM' undeclared (first use in this function) CursesFun.c: In function 'XS_Curses_form_opts': CursesFun.c:6054: error: 'FORM' undeclared (first use in this function) CursesFun.c: In function 'XS_Curses_set_current_field': CursesFun.c:6076: error: 'FORM' undeclared (first use in this function) CursesFun.c:6077: error: 'FIELD' undeclared (first use in this function) CursesFun.c:6077: error: 'field' undeclared (first use in this function) CursesFun.c: In function 'XS_Curses_current_field': CursesFun.c:6096: error: 'FORM' undeclared (first use in this function) CursesFun.c:6097: error: 'FIELD' undeclared (first use in this function) CursesFun.c:6097: error: 'ret' undeclared (first use in this function) CursesFun.c:6100: error: too many arguments to function 'c_field2sv' CursesFun.c: In function 'XS_Curses_set_form_page': CursesFun.c:6115: error: 'FORM' undeclared (first use in this function) CursesFun.c: In function 'XS_Curses_form_page': CursesFun.c:6135: error: 'FORM' undeclared (first use in this function) CursesFun.c: In function 'XS_Curses_field_index': CursesFun.c:6154: error: 'FIELD' undeclared (first use in this function) CursesFun.c:6154: error: 'field' undeclared (first use in this function) CursesFun.c: In function 'XS_Curses_post_form': CursesFun.c:6176: error: 'FORM' undeclared (first use in this function) CursesFun.c: In function 'XS_Curses_unpost_form': CursesFun.c:6195: error: 'FORM' undeclared (first use in this function) CursesFun.c: In function 'XS_Curses_set_form_userptr': CursesFun.c:6217: error: 'FORM' undeclared (first use in this function) CursesFun.c: In function 'XS_Curses_form_userptr': CursesFun.c:6237: error: 'FORM' undeclared (first use in this function) CursesFun.c:6238: warning: initialization makes pointer from integer without a cast CursesFun.c: In function 'XS_Curses_set_form_win': CursesFun.c:6259: error: 'FORM' undeclared (first use in this function) CursesFun.c: In function 'XS_Curses_form_win': CursesFun.c:6279: error: 'FORM' undeclared (first use in this function) CursesFun.c:6280: warning: initialization makes pointer from integer without a cast CursesFun.c: In function 'XS_Curses_set_form_sub': CursesFun.c:6298: error: 'FORM' undeclared (first use in this function) CursesFun.c: In function 'XS_Curses_form_sub': CursesFun.c:6318: error: 'FORM' undeclared (first use in this function) CursesFun.c:6319: warning: initialization makes pointer from integer without a cast CursesFun.c: In function 'XS_Curses_scale_form': CursesFun.c:6337: error: 'FORM' undeclared (first use in this function) CursesFun.c: In function 'XS_Curses_set_field_fore': CursesFun.c:6363: error: 'FIELD' undeclared (first use in this function) CursesFun.c:6363: error: 'field' undeclared (first use in this function) CursesFun.c: In function 'XS_Curses_field_fore': CursesFun.c:6383: error: 'FIELD' undeclared (first use in this function) CursesFun.c:6383: error: 'field' undeclared (first use in this function) CursesFun.c: In function 'XS_Curses_set_field_back': CursesFun.c:6402: error: 'FIELD' undeclared (first use in this function) CursesFun.c:6402: error: 'field' undeclared (first use in this function) CursesFun.c: In function 'XS_Curses_field_back': CursesFun.c:6422: error: 'FIELD' undeclared (first use in this function) CursesFun.c:6422: error: 'field' undeclared (first use in this function) CursesFun.c: In function 'XS_Curses_set_field_pad': CursesFun.c:6441: error: 'FIELD' undeclared (first use in this function) CursesFun.c:6441: error: 'field' undeclared (first use in this function) CursesFun.c: In function 'XS_Curses_field_pad': CursesFun.c:6461: error: 'FIELD' undeclared (first use in this function) CursesFun.c:6461: error: 'field' undeclared (first use in this function) CursesFun.c: In function 'XS_Curses_set_field_buffer': CursesFun.c:6483: error: 'FIELD' undeclared (first use in this function) CursesFun.c:6483: error: 'field' undeclared (first use in this function) CursesFun.c: In function 'XS_Curses_field_buffer': CursesFun.c:6504: error: 'FIELD' undeclared (first use in this function) CursesFun.c:6504: error: 'field' undeclared (first use in this function) CursesFun.c:6506: warning: initialization makes pointer from integer without a cast CursesFun.c: In function 'XS_Curses_set_field_status': CursesFun.c:6524: error: 'FIELD' undeclared (first use in this function) CursesFun.c:6524: error: 'field' undeclared (first use in this function) CursesFun.c: In function 'XS_Curses_field_status': CursesFun.c:6544: error: 'FIELD' undeclared (first use in this function) CursesFun.c:6544: error: 'field' undeclared (first use in this function) CursesFun.c: In function 'XS_Curses_set_max_field': CursesFun.c:6563: error: 'FIELD' undeclared (first use in this function) CursesFun.c:6563: error: 'field' undeclared (first use in this function) CursesFun.c: In function 'XS_Curses_field_info': CursesFun.c:6586: error: 'FIELD' undeclared (first use in this function) CursesFun.c:6586: error: 'field' undeclared (first use in this function) CursesFun.c: In function 'XS_Curses_dynamic_field_info': CursesFun.c:6617: error: 'FIELD' undeclared (first use in this function) CursesFun.c:6617: error: 'field' undeclared (first use in this function) CursesFun.c: In function 'XS_Curses_set_field_just': CursesFun.c:6645: error: 'FIELD' undeclared (first use in this function) CursesFun.c:6645: error: 'field' undeclared (first use in this function) CursesFun.c: In function 'XS_Curses_field_just': CursesFun.c:6665: error: 'FIELD' undeclared (first use in this function) CursesFun.c:6665: error: 'field' undeclared (first use in this function) CursesFun.c: In function 'XS_Curses_new_field': CursesFun.c:6693: error: 'FIELD' undeclared (first use in this function) CursesFun.c:6693: error: 'ret' undeclared (first use in this function) CursesFun.c:6695: error: too many arguments to function 'c_field2sv' CursesFun.c: In function 'XS_Curses_dup_field': CursesFun.c:6710: error: 'FIELD' undeclared (first use in this function) CursesFun.c:6710: error: 'field' undeclared (first use in this function) CursesFun.c:6713: error: 'ret' undeclared (first use in this function) CursesFun.c:6716: error: too many arguments to function 'c_field2sv' CursesFun.c: In function 'XS_Curses_link_field': CursesFun.c:6731: error: 'FIELD' undeclared (first use in this function) CursesFun.c:6731: error: 'field' undeclared (first use in this function) CursesFun.c:6734: error: 'ret' undeclared (first use in this function) CursesFun.c:6737: error: too many arguments to function 'c_field2sv' CursesFun.c: In function 'XS_Curses_free_field': CursesFun.c:6752: error: 'FIELD' undeclared (first use in this function) CursesFun.c:6752: error: 'field' undeclared (first use in this function) CursesFun.c: In function 'XS_Curses_set_field_opts': CursesFun.c:6774: error: 'FIELD' undeclared (first use in this function) CursesFun.c:6774: error: 'field' undeclared (first use in this function) CursesFun.c: In function 'XS_Curses_field_opts_on': CursesFun.c:6794: error: 'FIELD' undeclared (first use in this function) CursesFun.c:6794: error: 'field' undeclared (first use in this function) CursesFun.c: In function 'XS_Curses_field_opts_off': CursesFun.c:6814: error: 'FIELD' undeclared (first use in this function) CursesFun.c:6814: error: 'field' undeclared (first use in this function) CursesFun.c: In function 'XS_Curses_field_opts': CursesFun.c:6834: error: 'FIELD' undeclared (first use in this function) CursesFun.c:6834: error: 'field' undeclared (first use in this function) CursesFun.c: In function 'XS_Curses_set_field_userptr': CursesFun.c:6856: error: 'FIELD' undeclared (first use in this function) CursesFun.c:6856: error: 'field' undeclared (first use in this function) CursesFun.c: In function 'XS_Curses_field_userptr': CursesFun.c:6876: error: 'FIELD' undeclared (first use in this function) CursesFun.c:6876: error: 'field' undeclared (first use in this function) CursesFun.c:6877: warning: initialization makes pointer from integer without a cast CursesFun.c: In function 'XS_Curses_field_arg': CursesFun.c:6898: error: 'FIELD' undeclared (first use in this function) CursesFun.c:6898: error: 'field' undeclared (first use in this function) CursesFun.c:6899: warning: initialization makes pointer from integer without a cast make: *** [Curses.o] Error 1 make: Leaving directory `/opt/local/var/macports/build/_Volumes_BSD-Linux_MacPorts-distfiles_ports_perl_p5-curses/p5.34-curses/work/Curses-1.45'
Change History (4)
comment:1 Changed 2 hours ago by ballapete (Peter "Pete" Dyballa)
comment:2 Changed 2 hours ago by ballapete (Peter "Pete" Dyballa)
The problem is, as described in the INSTALL
file, that these form.h
C header files get included:
.. /opt/local/lib/perl5/5.34/darwin-thread-multi-2level/CORE/form.h .. /opt/local/lib/perl5/5.34/darwin-thread-multi-2level/CORE/form.h /opt/local/lib/perl5/5.34/darwin-thread-multi-2level/CORE/form.h
The proper one is contents of curses
:
-rw-r--r-- 1 root admin 18899 30. Apr 2024 /opt/local/include/form.h
comment:3 Changed 2 hours ago by ballapete (Peter "Pete" Dyballa)
The cure for PPC Tiger, Mac OS X 10.4.11
seems to be an additional reinplace
:
post-patch { copy ${worksrcpath}/hints/c-freebsd.ncurses.h ${worksrcpath}/c-config.h reinplace "s|<form.h>|\"${prefix}/include/form.h\"|" ${worksrcpath}/c-config.h }
comment:4 Changed 110 minutes ago by ballapete (Peter "Pete" Dyballa)
This also works with the default C compiler
.
Note: See
TracTickets for help on using
tickets.
Using a more up-to-date C compiler does not help much: