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

Can't build with posix utmpx on Haiku #372

Open
khallebal opened this issue Nov 23, 2020 · 0 comments
Open

Can't build with posix utmpx on Haiku #372

khallebal opened this issue Nov 23, 2020 · 0 comments
Labels

Comments

@khallebal
Copy link

khallebal commented Nov 23, 2020

Hello
The problem i'm having is related to utmpx.h, i don't know why i'm getting these errors even though
Haiku has the posix version of it, what am i missing?
This is the error:

/boot/home/Desktop/work/qtermwidget/lib/kpty.cpp: In member function void KPty::login(const char*, const char*)':
/boot/home/Desktop/work/qtermwidget/lib/kpty.cpp:528:26: error: 'struct utmpx' has no member named 'ut_host'
         strncpy(l_struct.ut_host, remotehost, sizeof(l_struct.ut_host));
                          ^~~~~~~
/boot/home/Desktop/work/qtermwidget/lib/kpty.cpp:528:63: error: 'struct utmpx' has no member named 'ut_host'
         strncpy(l_struct.ut_host, remotehost, sizeof(l_struct.ut_hos));
                                                               ^~~~~~
/boot/home/Desktop/work/qtermwidget/lib/kpty.cpp:571:15: error: '_PATH_UTMPX' was not declared in this scope
     utmpxname(_PATH_UTMPX);
               ^~~~~~~~~~~
/boot/home/Desktop/work/qtermwidget/lib/kpty.cpp:571:15: note: suggested alternative: 'HAVE_UTMPX'
     utmpxname(_PATH_UTMPX);
               ^~~~~~~~~~~
               HAVE_UTMPX
/boot/home/Desktop/work/qtermwidget/lib/kpty.cpp:571:5: error: 'utmpxname' was not declared in this scope
     utmpxname(_PATH_UTMPX);
     ^~~~~~~~~
/boot/home/Desktop/work/qtermwidget/lib/kpty.cpp:571:5: note: suggested alternative: 'tmpnam'
     utmpxname(_PATH_UTMPX);
     ^~~~~~~~~
     tmpnam
/boot/home/Desktop/work/qtermwidget/lib/kpty.cpp: In member function void KPty::logout()':
/boot/home/Desktop/work/qtermwidget/lib/kpty.cpp:627:15: error: '_PATH_UTMPX' was not declared in this scope
     utmpxname(_PATH_UTMPX);
               ^~~~~~~~~~~
/boot/home/Desktop/work/qtermwidget/lib/kpty.cpp:627:15: note: suggested alternative: 'HAVE_UTMPX'
     utmpxname(_PATH_UTMPX);
               ^~~~~~~~~~~
               HAVE_UTMPX
/boot/home/Desktop/work/qtermwidget/lib/kpty.cpp:627:5: error: 'utmpxname' was not declared in this scope
     utmpxname(_PATH_UTMPX);
     ^~~~~~~~~
/boot/home/Desktop/work/qtermwidget/lib/kpty.cpp:627:5: note: suggested alternative: 'tmpnam'
     utmpxname(_PATH_UTMPX);
     ^~~~~~~~~
     tmpnam
/boot/home/Desktop/work/qtermwidget/lib/kpty.cpp:640:20: error: 'struct utmpx' has no member named 'ut_host'
         memset(ut->ut_host, 0, sizeof(*ut->ut_host));
                    ^~~~~~~
/boot/home/Desktop/work/qtermwidget/lib/kpty.cpp:640:44: error: 'struct utmpx' has no member named 'ut_host'
         memset(ut->ut_host, 0, sizeof(*ut->ut_host));

I am building with gcc-8.3.0 and Qt-5.15, if you need more info please let me know.

@khallebal khallebal changed the title Can't build on Haiku Can't build with posix utmpx on Haiku Nov 24, 2020
@yan12125 yan12125 added the bug label Nov 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants