bugPSPP - Bugs: bug #60069, implicit ioctl is invalid c99

 
 

bug #60069: implicit ioctl is invalid c99

Submitter:  Jeremy Lavergne <snc>
Submitted:  Tue 16 Feb 2021 09:09:25 PM UTC
   
 
Category:  Compilation/Portability Severity:  5 - Average
Status:  Fixed Assigned to:  None
Open/Closed:  Closed Release:  None
Effort:  0.00
* Mandatory Fields

Add a New Comment Rich Markup
   

Sun 21 Feb 2021 06:33:52 PM UTC, comment #1: 

Thanks for the report.  I think I've fixed it now with commit 22c639606904 ("ascii: Always include <sys/ioctl.h> if we're calling ioctl.")

Ben Pfaff <blp>
Group administrator
Tue 16 Feb 2021 09:09:25 PM UTC, original submission:  

```
libtool: compile:  /usr/bin/clang -DHAVE_CONFIG_H -I. -I/opt/local/include/libxml2 -I./gl -I./gl -DINSTALLDIR=\"/opt/local/bin\" -I./src -I./lib -Isrc -I./src/language/stats -I./src/language/expressions -I./src/language/expressions -Isrc -I/opt/local/include -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -I/opt/local/include/pango-1.0 -I/opt/local/include/harfbuzz -I/opt/local/include/pango-1.0 -I/opt/local/include/fribidi -I/opt/local/include/cairo -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include/pixman-1 -I/opt/local/include/ossp -I/opt/local/include/freetype2 -I/opt/local/include/libpng16 -Wall -Wextra -Wwrite-strings -Wstrict-prototypes -Wpointer-arith -Wno-sign-compare -Wmissing-prototypes -pipe -Os -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -arch x86_64 -DGCC_LINT -MT src/output/liboutput_la-ascii.lo -MD -MP -MF src/output/.deps/liboutput_la-ascii.Tpo -c src/output/ascii.c  -fno-common -DPIC -o src/output/.libs/liboutput_la-ascii.o
src/output/ascii.c:1125:12: error: implicit declaration of function 'ioctl' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
      if (!ioctl (0, TIOCGWINSZ, &ws))
           ^
1 error generated.
```

Think the message is straightforward. Let me know if anything else is needed.

Cross reference https://trac.macports.org/ticket/62147

Jeremy Lavergne <snc>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by blp (Posted a comment)
  • -email is unavailable- added by snc (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2021-02-21 blp StatusNone Fixed
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-4b48.
    Corresponding source code