Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compile error on OSX - serial_port.c error: use of undeclared identifier 'B57600' etc #155

Closed
sm3ulc opened this issue Jul 9, 2018 · 2 comments

Comments

@sm3ulc
Copy link

sm3ulc commented Jul 9, 2018

Pulled latest version on OSX (v10.13.5) and get this. Just some missing DEFINEs or?

serial_port.c:242:34: error: use of undeclared identifier 'B57600'
case 57600: cfsetispeed (&ts, B57600); cfsetospeed (&ts, B57600); break;
^
serial_port.c:242:61: error: use of undeclared identifier 'B57600'
case 57600: cfsetispeed (&ts, B57600); cfsetospeed (&ts, B57600); break;
^
serial_port.c:243:35: error: use of undeclared identifier 'B115200'
case 115200: cfsetispeed (&ts, B115200); cfsetospeed (&ts, B115200); break;
^
serial_port.c:243:63: error: use of undeclared identifier 'B115200'
case 115200: cfsetispeed (&ts, B115200); cfsetospeed (&ts, B115200); break;
^

@wb2osz
Copy link
Owner

wb2osz commented Jul 9, 2018

That problem was fixed August 2017. Please use a more recent version of the source code. I recommend the latest on the "dev" branch.

The "dev" branch is currently version 1.5 beta test 3. If no significant issues are found, this will soon be promoted to 1.5 stable. It would be good to get some feedback from a Mac user. I don't have a Mac and have to depend on others for testing.

@wb2osz wb2osz closed this as completed Jul 9, 2018
@sm3ulc
Copy link
Author

sm3ulc commented Jul 10, 2018

Being a bit novice on pulling:

git clone https://github.com/wb2osz/direwolf
git checkout dev
make

=>
...
find: /Developer/SDKs: No such file or directory

  1. Do not use any SDK
    ...
    =>
    igate.c:1280:15: error: use of undeclared identifier 'MSG_NOSIGNAL'
    err = SOCK_SEND (igate_sock, stemp, stemp_len);
    ^
    ./direwolf.h:259:50: note: expanded from macro 'SOCK_SEND'
    #define SOCK_SEND(s,data,size) send(s,data,size, MSG_NOSIGNAL)
    ^
    1 error generated.
    make: *** [igate.o] Error 1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants