Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#61375 closed defect (fixed)

ispell @3.4.00: error: implicit declaration of function 'ioctl' is invalid in C99

Reported by: bernardkelly (Bernard Kelly) Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 2.6.3
Keywords: Cc:
Port: ispell

Description

Hi. Doing a port upgrade outdated on my Catalina (MacOS 10.15.7) machine, and the ispell upgrade failed. I uninstalled & cleaned the port, and tried to install it again, with the same result. Here's where I see the error (I'm attaching the full log to this ticket):

:info:build make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_github.com_macports_macports-ports_textproc_ispell/ispell/work/ispell-3.4.00'
:info:build chmod +x tryaffix
:info:build /usr/bin/clang -O -c term.c
:info:build term.c:225:9: error: implicit declaration of function 'ioctl' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
:info:build     if (ioctl (0, TIOCGWINSZ, (char *) &wsize) >= 0)
:info:build         ^
:info:build 1 error generated.
:info:build term.c wouldn't compile.  Try inverting USG in local.h
:info:build make: *** [term.o] Error 1
:info:build make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_github.com_macports_macports-ports_textproc_ispell/ispell/work/ispell-3.4.00'
:info:build Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_github.com_macports_macports-ports_textproc_ispell/ispell/work/ispell-3.4.00" && /usr/bin/make -w all 
:info:build Exit code: 2
:error:build Failed to build ispell: command execution failed
:debug:build Error code: CHILDSTATUS 77505 2
:debug:build Backtrace: command execution failed
:debug:build     while executing
:debug:build "system {*}$notty {*}$nice $fullcmdstring"
:debug:build     invoked from within
:debug:build "command_exec build"
:debug:build     (procedure "portbuild::build_main" line 8)

I don't see any maintainer for this port, so I can't CC them.

Attachments (1)

ispell_install_failure.log (16.4 KB) - added by bernardkelly (Bernard Kelly) 4 years ago.
Log file for attempted from-scratch installation of "ispell" port.

Download all attachments as: .zip

Change History (4)

Changed 4 years ago by bernardkelly (Bernard Kelly)

Attachment: ispell_install_failure.log added

Log file for attempted from-scratch installation of "ispell" port.

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

Keywords: ispell C99 ioctl removed
Summary: ispell failing to build: implicit declaration of function 'ioctl' is invalid in C99ispell @3.4.00: error: implicit declaration of function 'ioctl' is invalid in C99

If you'd like to avoid these kinds of errors until we can get around to fixing them, downgrade to Xcode 11.x and the Xcode 11.x version of the command line tools.

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

Owner: set to ryandesign
Resolution: fixed
Status: newclosed

In b4a90e6424bbf539e1e6f75971f19107a704eca6/macports-ports (master):

ispell: Fix implicit declaration of functions

Closes: #61375

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

I reported the bug to the developers of ispell via their web form.

Note: See TracTickets for help on using tickets.