#66737 closed defect (fixed)

ipbt fails to build on 10.6.8: error: ‘LdiscInputToken’ has no member named ‘code’ etc.

Reported by: barracuda156 Owned by: khindenburg
Priority: Normal Milestone:
Component: ports Version: 2.8.0
Keywords: snowleopard, leopard Cc:
Port: ipbt

Description

:info:build cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_sysutils_ipbt/ipbt/work/build/charset && /opt/local/bin/perl /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_sysutils_ipbt/ipbt/work/ipbt-20220403.d4e7fcd/charset/sbcsgen.pl -o /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_sysutils_ipbt/ipbt/work/build/CMakeFiles/sbcsdat.c.tmp
:info:build /usr/bin/gcc-4.2 -DHAVE_CMAKE_H -DNO_GSSAPI -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_sysutils_ipbt/ipbt/work/ipbt-20220403.d4e7fcd/charset -I/opt/local/include/gtk-2.0 -I/opt/local/lib/gtk-2.0/include -I/opt/local/include/pango-1.0 -I/opt/local/include/gio-unix-2.0 -I/opt/local/include/cairo -I/opt/local/include/atk-1.0 -I/opt/local/include/gdk-pixbuf-2.0 -I/opt/local/include/harfbuzz -I/opt/local/include/fribidi -I/opt/local/include/pixman-1 -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include/freetype2 -I/opt/local/include/libpng16 -I/opt/local/include -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_sysutils_ipbt/ipbt/work/ipbt-20220403.d4e7fcd -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_sysutils_ipbt/ipbt/work/build/CMakeFiles -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_sysutils_ipbt/ipbt/work/ipbt-20220403.d4e7fcd/unix -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_sysutils_ipbt/ipbt/work/ipbt-20220403.d4e7fcd/terminal -pipe -Os -I/opt/local/include -g -arch ppc -mmacosx-version-min=10.6 -MD -MT CMakeFiles/guiterminal.dir/terminal/bidi.c.o -MF CMakeFiles/guiterminal.dir/terminal/bidi.c.o.d -o CMakeFiles/guiterminal.dir/terminal/bidi.c.o -c /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_sysutils_ipbt/ipbt/work/ipbt-20220403.d4e7fcd/terminal/bidi.c
:info:build /usr/bin/gcc-4.2 -DHAVE_CMAKE_H -DNO_GSSAPI -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_sysutils_ipbt/ipbt/work/ipbt-20220403.d4e7fcd/charset -I/opt/local/include/gtk-2.0 -I/opt/local/lib/gtk-2.0/include -I/opt/local/include/pango-1.0 -I/opt/local/include/gio-unix-2.0 -I/opt/local/include/cairo -I/opt/local/include/atk-1.0 -I/opt/local/include/gdk-pixbuf-2.0 -I/opt/local/include/harfbuzz -I/opt/local/include/fribidi -I/opt/local/include/pixman-1 -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include/freetype2 -I/opt/local/include/libpng16 -I/opt/local/include -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_sysutils_ipbt/ipbt/work/ipbt-20220403.d4e7fcd -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_sysutils_ipbt/ipbt/work/build/CMakeFiles -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_sysutils_ipbt/ipbt/work/ipbt-20220403.d4e7fcd/unix -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_sysutils_ipbt/ipbt/work/ipbt-20220403.d4e7fcd/terminal -pipe -Os -I/opt/local/include -g -arch ppc -mmacosx-version-min=10.6 -MD -MT CMakeFiles/guiterminal.dir/terminal/terminal.c.o -MF CMakeFiles/guiterminal.dir/terminal/terminal.c.o.d -o CMakeFiles/guiterminal.dir/terminal/terminal.c.o -c /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_sysutils_ipbt/ipbt/work/ipbt-20220403.d4e7fcd/terminal/terminal.c
:info:build [  6%] Checking current git commit
:info:build [  6%] Building C object unix/CMakeFiles/ipbt-be-list.dir/__/be_list.c.o
:info:build cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_sysutils_ipbt/ipbt/work/ipbt-20220403.d4e7fcd && /opt/local/bin/cmake -DGIT_EXECUTABLE=/opt/local/bin/git -DOUTPUT_FILE=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_sysutils_ipbt/ipbt/work/build/CMakeFiles/cmake_commit.c.tmp -DOUTPUT_TYPE=header -P /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_sysutils_ipbt/ipbt/work/ipbt-20220403.d4e7fcd/cmake/gitcommit.cmake
:info:build cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_sysutils_ipbt/ipbt/work/build/unix && /usr/bin/gcc-4.2 -DAPPNAME=IPBT -DHAVE_CMAKE_H -DNO_GSSAPI -DOTHERBACKENDS=0 -DSERIAL=0 -DSSH=0 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_sysutils_ipbt/ipbt/work/ipbt-20220403.d4e7fcd/charset -I/opt/local/include/gtk-2.0 -I/opt/local/lib/gtk-2.0/include -I/opt/local/include/pango-1.0 -I/opt/local/include/gio-unix-2.0 -I/opt/local/include/cairo -I/opt/local/include/atk-1.0 -I/opt/local/include/gdk-pixbuf-2.0 -I/opt/local/include/harfbuzz -I/opt/local/include/fribidi -I/opt/local/include/pixman-1 -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include/freetype2 -I/opt/local/include/libpng16 -I/opt/local/include -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_sysutils_ipbt/ipbt/work/ipbt-20220403.d4e7fcd -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_sysutils_ipbt/ipbt/work/build/CMakeFiles -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_sysutils_ipbt/ipbt/work/ipbt-20220403.d4e7fcd/unix -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_sysutils_ipbt/ipbt/work/ipbt-20220403.d4e7fcd/terminal -pipe -Os -I/opt/local/include -g -arch ppc -mmacosx-version-min=10.6 -MD -MT unix/CMakeFiles/ipbt-be-list.dir/__/be_list.c.o -MF CMakeFiles/ipbt-be-list.dir/__/be_list.c.o.d -o CMakeFiles/ipbt-be-list.dir/__/be_list.c.o -c /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_sysutils_ipbt/ipbt/work/ipbt-20220403.d4e7fcd/be_list.c
:info:build make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_sysutils_ipbt/ipbt/work/build'
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_sysutils_ipbt/ipbt/work/ipbt-20220403.d4e7fcd/terminal/bidi.c: In function ‘setup_types’:
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_sysutils_ipbt/ipbt/work/ipbt-20220403.d4e7fcd/terminal/bidi.c:2577: error: ‘for’ loop initial declaration used outside C99 mode
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_sysutils_ipbt/ipbt/work/ipbt-20220403.d4e7fcd/terminal/bidi.c: In function ‘text_needs_bidi’:
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_sysutils_ipbt/ipbt/work/ipbt-20220403.d4e7fcd/terminal/bidi.c:2590: error: ‘for’ loop initial declaration used outside C99 mode

Change History (7)

comment:1 Changed 22 months ago by barracuda156

Summary: ipbt fails to build on 10.6.8:ipbt fails to build on 10.6.8: error: ‘for’ loop initial declaration used outside C99 mode

comment:2 Changed 22 months ago by barracuda156

Passing -std=c99 does not save it:

/opt/local/var/macports/build/_opt_PPCRosettaPorts_sysutils_ipbt/ipbt/work/ipbt-20220403.d4e7fcd/terminal/terminal.c: In function ‘term_get_userpass_input’:
/opt/local/var/macports/build/_opt_PPCRosettaPorts_sysutils_ipbt/ipbt/work/ipbt-20220403.d4e7fcd/terminal/terminal.c:7725: error: ‘LdiscInputToken’ has no member named ‘code’
/opt/local/var/macports/build/_opt_PPCRosettaPorts_sysutils_ipbt/ipbt/work/ipbt-20220403.d4e7fcd/terminal/terminal.c:7733: error: ‘LdiscInputToken’ has no member named ‘chr’

comment:3 Changed 22 months ago by barracuda156

Summary: ipbt fails to build on 10.6.8: error: ‘for’ loop initial declaration used outside C99 modeipbt fails to build on 10.6.8: error: ‘LdiscInputToken’ has no member named ‘code’ etc.

comment:4 Changed 22 months ago by barracuda156

Okay, so it just needs a blacklist of old Apple compilers. gcc12 builds it fine.

comment:5 Changed 22 months ago by barracuda156

BTW, it looks for GTK, why it is not in dependencies or why no variant for it?

-- Found PkgConfig: /opt/local/bin/pkg-config (found version "0.29.2") 
-- Checking for module 'gtk+-3.0'
--   Package 'egl', required by 'epoxy', not found
-- Checking for module 'gtk+-2.0'
--   Found gtk+-2.0, version 2.24.33
-- Looking for pango_font_family_is_monospace
-- Looking for pango_font_family_is_monospace - found
-- Looking for pango_font_map_list_families
-- Looking for pango_font_map_list_families - found
-- Found X11: /opt/local/include

comment:6 in reply to:  4 Changed 22 months ago by jmroot (Joshua Root)

Port: ipbt added; ibpt removed

Replying to barracuda156:

Okay, so it just needs a blacklist of old Apple compilers. gcc12 builds it fine.

Anonymous structs and unions, needs C11.

comment:7 Changed 22 months ago by barracuda156

Resolution: fixed
Status: assignedclosed

In 39a2633e581883a574c2c385a2c498713269dd13/macports-ports (master):

ipbt: fix build on <10.7
Fixes: #66737

Note: See TracTickets for help on using tickets.