[MacPorts] #44550: crystfel @0.5.3a: error: variable has incomplete type 'struct termios'

MacPorts noreply at macports.org
Tue Aug 5 17:39:22 PDT 2014


#44550: crystfel @0.5.3a: error: variable has incomplete type 'struct termios'
--------------------------+-----------------------
 Reporter:  ryandesign@…  |      Owner:  rkirian@…
     Type:  defect        |     Status:  new
 Priority:  Normal        |  Milestone:
Component:  ports         |    Version:  2.3.1
 Keywords:                |       Port:  crystfel
--------------------------+-----------------------
 crystfel @0.5.3a failed to build for me on my OS X 10.7 test machine.

 {{{
 :info:build libtool: compile:  /usr/bin/clang -DHAVE_CONFIG_H -I. -I..
 -DDATADIR=\"/Volumes/Data/macports/lion/share\" -I../lib -Wall -I../lib
 -pipe -Os -arch x86_64 -I/Volumes/Data/macports/lion/include
 -I/Volumes/Data/macports/lion/include
 -I/Volumes/Data/macports/lion/include -pipe -Os -arch x86_64 -MT
 src/dirax.lo -MD -MP -MF src/.deps/dirax.Tpo -c src/dirax.c  -fno-common
 -DPIC -o src/.libs/dirax.o
 :info:build src/dirax.c:540:15: warning: implicit declaration of function
 'forkpty' is invalid in C99 [-Wimplicit-function-declaration]
 :info:build         dirax->pid = forkpty(&dirax->pty, NULL, NULL, NULL);
 :info:build                      ^
 :info:build src/dirax.c:548:18: error: variable has incomplete type
 'struct termios'
 :info:build                 struct termios t;
 :info:build                                ^
 :info:build src/dirax.c:548:10: note: forward declaration of 'struct
 termios'
 :info:build                 struct termios t;
 :info:build                        ^
 :info:build src/dirax.c:551:3: warning: implicit declaration of function
 'tcgetattr' is invalid in C99 [-Wimplicit-function-declaration]
 :info:build                 tcgetattr(STDIN_FILENO, &t);
 :info:build                 ^
 :info:build src/dirax.c:552:18: error: use of undeclared identifier 'ECHO'
 :info:build                 t.c_lflag &= ~(ECHO | ECHOE | ECHOK | ECHONL);
 :info:build                                ^
 :info:build src/dirax.c:552:25: error: use of undeclared identifier
 'ECHOE'
 :info:build                 t.c_lflag &= ~(ECHO | ECHOE | ECHOK | ECHONL);
 :info:build                                       ^
 :info:build src/dirax.c:552:33: error: use of undeclared identifier
 'ECHOK'
 :info:build                 t.c_lflag &= ~(ECHO | ECHOE | ECHOK | ECHONL);
 :info:build                                               ^
 :info:build src/dirax.c:552:41: error: use of undeclared identifier
 'ECHONL'
 :info:build                 t.c_lflag &= ~(ECHO | ECHOE | ECHOK | ECHONL);
 :info:build                                                       ^
 :info:build src/dirax.c:553:3: warning: implicit declaration of function
 'tcsetattr' is invalid in C99 [-Wimplicit-function-declaration]
 :info:build                 tcsetattr(STDIN_FILENO, TCSANOW, &t);
 :info:build                 ^
 :info:build src/dirax.c:553:27: error: use of undeclared identifier
 'TCSANOW'
 :info:build                 tcsetattr(STDIN_FILENO, TCSANOW, &t);
 :info:build                                         ^
 :info:build 3 warnings and 6 errors generated.
 }}}

 Some info about this machine:

 {{{
 $ sw_vers
 ProductName:    Mac OS X
 ProductVersion: 10.7.5
 BuildVersion:   11G63
 }}}
 {{{
 $ xcodebuild -version
 Xcode 4.3.3
 Build version 4E3002
 }}}
 {{{
 $ clang -v
 Apple clang version 3.1 (tags/Apple/clang-318.0.61) (based on LLVM 3.1svn)
 Target: x86_64-apple-darwin11.4.2
 Thread model: posix

 }}}

 It built fine on my OS X 10.8 test machine.

-- 
Ticket URL: <https://trac.macports.org/ticket/44550>
MacPorts <http://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list