Opened 4 years ago

Closed 4 years ago

#61066 closed defect (fixed)

rlwrap fails on build of MacOS Big Sur Beta 11.0 using XCode 12 Beta 5

Reported by: chicagotripp (Altoine Barker) Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: chicagotripp (Altoine Barker)
Port: rlwrap

Description

The port rlwrap is unable to build on MacOS Big Sur Beta 11.0 using XCode 12 Beta 5.I receive the following error message:

/usr/bin/clang -DHAVE_CONFIG_H -I. -I..   -I/opt/local/include -isysroot/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.0.sdk -DDATADIR=\"/opt/local/share\"  -pipe -Os -isysroot/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.0.sdk -arch x86_64 -MT filter.o -MD -MP -MF .deps/filter.Tpo -c -o filter.o filter.c
completion.rb:25:32: warning: unknown warning group '-Wunused-but-set-variable', ignored [-Wunknown-warning-option]
#pragma GCC diagnostic ignored "-Wunused-but-set-variable"
                               ^
ptytty.c:72:7: error: implicit declaration of function 'openpty' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
  if (openpty(&pfd, fd_tty, tty_name, NULL, NULL) != -1) {
      ^
ptytty.c:72:7: note: did you mean 'openat'?
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.0.sdk/usr/include/sys/fcntl.h:556:9: note: 'openat' declared here
int     openat(int, const char *, int, ...) __DARWIN_NOCANCEL(openat) __OSX_AVAILABLE_STARTING(__MAC_10_10, __IPHONE_8_0);
        ^
1 error generated.
make[2]: *** [ptytty.o] Error 1
make[2]: *** Waiting for unfinished jobs....
mv -f .deps/malloc_debug.Tpo .deps/malloc_debug.Po
string_utils.c:982:16: warning: shifting a negative signed value is undefined [-Wshift-negative-value]
  if (length > MAX_FIELD_LENGTH)
               ^~~~~~~~~~~~~~~~
string_utils.c:914:33: note: expanded from macro 'MAX_FIELD_LENGTH'
#define MAX_FIELD_LENGTH (~((-1)<<(DIGITS_NUMBER * 4 -1)) -1)
                            ~~~~^
string_utils.c:984:62: warning: shifting a negative signed value is undefined [-Wshift-negative-value]
            mangle_string_for_debug_log(field, 10), length,  MAX_FIELD_LENGTH);
                                                             ^~~~~~~~~~~~~~~~
string_utils.c:914:33: note: expanded from macro 'MAX_FIELD_LENGTH'
#define MAX_FIELD_LENGTH (~((-1)<<(DIGITS_NUMBER * 4 -1)) -1)
                            ~~~~^
mv -f .deps/pty.Tpo .deps/pty.Po
mv -f .deps/filter.Tpo .deps/filter.Po
mv -f .deps/term.Tpo .deps/term.Po
mv -f .deps/signals.Tpo .deps/signals.Po
mv -f .deps/utils.Tpo .deps/utils.Po
1 warning generated.
mv -f .deps/completion.Tpo .deps/completion.Po
mv -f .deps/main.Tpo .deps/main.Po
mv -f .deps/readline.Tpo .deps/readline.Po
2 warnings generated.
mv -f .deps/string_utils.Tpo .deps/string_utils.Po
make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_sysutils_rlwrap/rlwrap/work/rlwrap-0.43/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_sysutils_rlwrap/rlwrap/work/rlwrap-0.43'
make: *** [all] Error 2
make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_sysutils_rlwrap/rlwrap/work/rlwrap-0.43'
Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_sysutils_rlwrap/rlwrap/work/rlwrap-0.43" && /usr/bin/make -j16 -w all 
Exit code: 2
Error: Failed to build rlwrap: command execution failed
DEBUG: Error code: CHILDSTATUS 35457 2
DEBUG: Backtrace: command execution failed
    while executing
"system {*}$notty {*}$callback {*}$nice $fullcmdstring"
    invoked from within
"command_exec -callback portprogress::target_progress_callback build"
    (procedure "portbuild::build_main" line 8)
    invoked from within
"$procedure $targetname"
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_sysutils_rlwrap/rlwrap/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets to report a bug.
Error: Processing of port rlwrap failed

I am including the main.log file as an attachment.

Attachments (1)

rlwrap-main.log (31.2 KB) - added by chicagotripp (Altoine Barker) 4 years ago.
main.log file for rlwrap

Download all attachments as: .zip

Change History (3)

Changed 4 years ago by chicagotripp (Altoine Barker)

Attachment: rlwrap-main.log added

main.log file for rlwrap

comment:1 Changed 4 years ago by jmroot (Joshua Root)

Looks like https://github.com/hanslub42/rlwrap/pull/85 probably fixes this.

comment:2 Changed 4 years ago by ryandesign (Ryan Carsten Schmidt)

Owner: set to ryandesign
Resolution: fixed
Status: newclosed

In 55a91d0796c28069a9bd3e5d48e265b21bb74f20/macports-ports (master):

rlwrap: Fix implicit function declaration

Closes: #61066

Also rewrite long description.

Note: See TracTickets for help on using tickets.