#66645 closed defect (fixed)

bash fails on 10.6.8 with default compiler

Reported by: barracuda156 Owned by: raimue (Rainer Müller)
Priority: Normal Milestone:
Component: ports Version: 2.8.1
Keywords: snowleopard, leopard, legacy-os Cc:
Port: bash

Description

:info:build /usr/bin/gcc-4.2 -std=gnu99 -c   -DHAVE_CONFIG_H -DSHELL  -I. -I..  -I.. -I../include -I../lib -I.   -DMACOSX  -I/opt/local/include -pipe -Os -DSSH_SOURCE_BASHRC -arch ppc getopt.c
:info:build /usr/bin/gcc-4.2 -std=gnu99 -c -DHAVE_CONFIG_H -DSHELL  -I/opt/local/include -I. -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_shells_bash/bash/work/bash-5.2 -I../.. -I../../lib  -DMACOSX  -pipe -Os -DSSH_SOURCE_BASHRC -arch ppc  bind.c
:info:build complete.c: In function ‘rl_username_completion_function’:
:info:build complete.c:2308: error: dereferencing pointer to incomplete type
:info:build complete.c:2312: error: dereferencing pointer to incomplete type
:info:build complete.c:2312: error: dereferencing pointer to incomplete type
:info:build complete.c: In function ‘rl_filename_completion_function’:
:info:build complete.c:2458: error: nested functions are disabled, use -fnested-functions to re-enable
:info:build complete.c:2458: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
:info:build complete.c:2458: error: invalid type argument of ‘unary *’
:info:build complete.c:2458: error: ‘DIR’ undeclared (first use in this function)
:info:build complete.c:2458: error: (Each undeclared identifier is reported only once
:info:build complete.c:2458: error: for each function it appears in.)
:info:build complete.c:2458: error: expected expression before ‘)’ token
:info:build complete.c:2475: warning: implicit declaration of function ‘closedir’
:info:build complete.c:2476: error: expected expression before ‘)’ token
:info:build complete.c:2554: warning: implicit declaration of function ‘opendir’
:info:build complete.c:2554: error: lvalue required as left operand of assignment
:info:build complete.c:2579: warning: implicit declaration of function ‘readdir’
:info:build complete.c:2579: warning: assignment makes pointer from integer without a cast
:info:build complete.c:2581: error: dereferencing pointer to incomplete type
:info:build complete.c:2582: error: dereferencing pointer to incomplete type
:info:build complete.c:2614: error: expected expression before ‘)’ token
:info:build complete.c:2642: error: dereferencing pointer to incomplete type
:info:build complete.c:2655: error: dereferencing pointer to incomplete type
:info:build make[1]: *** [complete.o] Error 1

Attachments (1)

bash.txt (110.6 KB) - added by barracuda156 23 months ago.

Download all attachments as: .zip

Change History (4)

Changed 23 months ago by barracuda156

Attachment: bash.txt added

comment:1 Changed 20 months ago by barracuda156

Version: 2.8.02.8.1

The error is still there.

comment:2 Changed 20 months ago by raimue (Rainer Müller)

Keywords: legacy-os added

comment:3 Changed 18 months ago by barracuda156

Resolution: fixed
Status: assignedclosed

In 788d46e68bb0721088ca78aec7bac5b50153a0da/macports-ports (master):

bash: blacklist old Xcode compilers that fail to build it

Fixes: #66645

Note: See TracTickets for help on using tickets.