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

macos M1 client build error #471

Open
1 task done
handbye opened this issue Apr 8, 2024 · 1 comment
Open
1 task done

macos M1 client build error #471

handbye opened this issue Apr 8, 2024 · 1 comment
Labels
clientside/teamserver Clientside problem, not implantrelated

Comments

@handbye
Copy link

handbye commented Apr 8, 2024

Contact Details

No response

What happened?

/Users/bingo/Downloads/Havoc/client/include/global.hpp:209:23: warning: anonymous non-C-compatible type given name for linkage purposes by typedef declaration; add a tag name here [-Wnon-c-typedef-for-linkage]
        typedef struct
                      ^
                       SessionItem
/Users/bingo/Downloads/Havoc/client/include/global.hpp:245:13: note: type is not C-compatible due to this member declaration
            void Export();
            ^~~~~~~~~~~~~
/Users/bingo/Downloads/Havoc/client/include/global.hpp:246:11: note: type is given name 'SessionItem' for linkage purposes by this typedef declaration
        } SessionItem;
          ^
In file included from /Users/bingo/Downloads/Havoc/client/src/Main.cc:1:
/Users/bingo/Downloads/Havoc/client/include/global.hpp:209:23: warning: anonymous non-C-compatible type given name for linkage purposes by typedef declaration; add a tag name here [-Wnon-c-typedef-for-linkage]
        typedef struct
                      ^
                       SessionItem
/Users/bingo/Downloads/Havoc/client/include/global.hpp:245:13: note: type is not C-compatible due to this member declaration
            void Export();
            ^~~~~~~~~~~~~
/Users/bingo/Downloads/Havoc/client/include/global.hpp:246:11: note: type is given name 'SessionItem' for linkage purposes by this typedef declaration
        } SessionItem;
          ^
In file included from /Users/bingo/Downloads/Havoc/client/src/Havoc/Connector.cc:1:
In file included from /Users/bingo/Downloads/Havoc/client/include/Havoc/Connector.hpp:4:
/Users/bingo/Downloads/Havoc/client/include/global.hpp:209:23: warning: anonymous non-C-compatible type given name for linkage purposes by typedef declaration; add a tag name here [-Wnon-c-typedef-for-linkage]
        typedef struct
                      ^
                       SessionItem
/Users/bingo/Downloads/Havoc/client/include/global.hpp:245:13: note: type is not C-compatible due to this member declaration
            void Export();
            ^~~~~~~~~~~~~
/Users/bingo/Downloads/Havoc/client/include/global.hpp:246:11: note: type is given name 'SessionItem' for linkage purposes by this typedef declaration
        } SessionItem;
          ^
In file included from /Users/bingo/Downloads/Havoc/client/src/Havoc/Packager.cc:1:
/Users/bingo/Downloads/Havoc/client/include/global.hpp:209:23: warning: anonymous non-C-compatible type given name for linkage purposes by typedef declaration; add a tag name here [-Wnon-c-typedef-for-linkage]
        typedef struct
                      ^
                       SessionItem
/Users/bingo/Downloads/Havoc/client/include/global.hpp:245:13: note: type is not C-compatible due to this member declaration
            void Export();
            ^~~~~~~~~~~~~
/Users/bingo/Downloads/Havoc/client/include/global.hpp:246:11: note: type is given name 'SessionItem' for linkage purposes by this typedef declaration
        } SessionItem;
          ^
In file included from /Users/bingo/Downloads/Havoc/client/src/Havoc/Packager.cc:8:
In file included from /Users/bingo/Downloads/Havoc/client/include/UserInterface/Widgets/TeamserverTabSession.h:8:
/Users/bingo/Downloads/Havoc/client/include/UserInterface/Widgets/LootWidget.h:29:10: warning: 'resizeEvent' overrides a member function but is not marked 'override' [-Winconsistent-missing-override]
    void resizeEvent(QResizeEvent *);
         ^
/opt/homebrew/opt/qt@5/lib/QtWidgets.framework/Headers/qwidget.h:635:18: note: overridden virtual function is here
    virtual void resizeEvent(QResizeEvent *event);
                 ^
In file included from /Users/bingo/Downloads/Havoc/client/src/Havoc/Packager.cc:8:
In file included from /Users/bingo/Downloads/Havoc/client/include/UserInterface/Widgets/TeamserverTabSession.h:8:
/Users/bingo/Downloads/Havoc/client/include/UserInterface/Widgets/LootWidget.h:30:10: warning: 'keyReleaseEvent' overrides a member function but is not marked 'override' [-Winconsistent-missing-override]
    void keyReleaseEvent( QKeyEvent* event );
         ^
/opt/homebrew/opt/qt@5/lib/QtWidgets.framework/Headers/qwidget.h:628:18: note: overridden virtual function is here
    virtual void keyReleaseEvent(QKeyEvent *event);
                 ^
In file included from /Users/bingo/Downloads/Havoc/client/src/Havoc/Packager.cc:8:
In file included from /Users/bingo/Downloads/Havoc/client/include/UserInterface/Widgets/TeamserverTabSession.h:8:
/Users/bingo/Downloads/Havoc/client/include/UserInterface/Widgets/LootWidget.h:32:10: warning: 'wheelEvent' overrides a member function but is not marked 'override' [-Winconsistent-missing-override]
    void wheelEvent(QWheelEvent *ev);
         ^
/opt/homebrew/opt/qt@5/lib/QtWidgets.framework/Headers/qwidget.h:625:18: note: overridden virtual function is here
    virtual void wheelEvent(QWheelEvent *event);
                 ^
1 warning generated.
[ 13%] Building CXX object CMakeFiles/Havoc.dir/src/Havoc/Service.cc.o
1 warning generated.
1 warning generated.
[ 15%] Building CXX object CMakeFiles/Havoc.dir/src/Havoc/DBManger/DBManager.cc.o
[ 17%] Building CXX object CMakeFiles/Havoc.dir/src/Havoc/DBManger/Teamserver.cc.o
[ 19%] Building CXX object CMakeFiles/Havoc.dir/src/Havoc/DBManger/Scripts.cc.o
4 warnings generated.
[ 21%] Building CXX object CMakeFiles/Havoc.dir/src/Havoc/Demon/ConsoleInput.cc.o
In file included from /Users/bingo/Downloads/Havoc/client/src/Havoc/DBManger/DBManager.cc:1:
In file included from /Users/bingo/Downloads/Havoc/client/include/Havoc/DBManager/DBManager.hpp:4:
/Users/bingo/Downloads/Havoc/client/include/global.hpp:209:23: warning: anonymous non-C-compatible type given name for linkage purposes by typedef declaration; add a tag name here [-Wnon-c-typedef-for-linkage]
        typedef struct
                      ^
                       SessionItem
/Users/bingo/Downloads/Havoc/client/include/global.hpp:245:13: note: type is not C-compatible due to this member declaration
            void Export();
            ^~~~~~~~~~~~~
/Users/bingo/Downloads/Havoc/client/include/global.hpp:246:11: note: type is given name 'SessionItem' for linkage purposes by this typedef declaration
        } SessionItem;
          ^
In file included from /Users/bingo/Downloads/Havoc/client/src/Havoc/DBManger/Teamserver.cc:1:
In file included from /Users/bingo/Downloads/Havoc/client/include/Havoc/DBManager/DBManager.hpp:4:
/Users/bingo/Downloads/Havoc/client/include/global.hpp:209:23: warning: anonymous non-C-compatible type given name for linkage purposes by typedef declaration; add a tag name here [-Wnon-c-typedef-for-linkage]
        typedef struct
                      ^
                       SessionItem
/Users/bingo/Downloads/Havoc/client/include/global.hpp:245:13: note: type is not C-compatible due to this member declaration
            void Export();
            ^~~~~~~~~~~~~
/Users/bingo/Downloads/Havoc/client/include/global.hpp:246:11: note: type is given name 'SessionItem' for linkage purposes by this typedef declaration
        } SessionItem;
          ^
In file included from /Users/bingo/Downloads/Havoc/client/src/Havoc/DBManger/Scripts.cc:1:
In file included from /Users/bingo/Downloads/Havoc/client/include/Havoc/DBManager/DBManager.hpp:4:
/Users/bingo/Downloads/Havoc/client/include/global.hpp:209:23: warning: anonymous non-C-compatible type given name for linkage purposes by typedef declaration; add a tag name here [-Wnon-c-typedef-for-linkage]
        typedef struct
                      ^
                       SessionItem
/Users/bingo/Downloads/Havoc/client/include/global.hpp:245:13: note: type is not C-compatible due to this member declaration
            void Export();
            ^~~~~~~~~~~~~
/Users/bingo/Downloads/Havoc/client/include/global.hpp:246:11: note: type is given name 'SessionItem' for linkage purposes by this typedef declaration
        } SessionItem;
          ^
In file included from /Users/bingo/Downloads/Havoc/client/src/Havoc/Demon/ConsoleInput.cc:1:
/Users/bingo/Downloads/Havoc/client/include/global.hpp:209:23: warning: anonymous non-C-compatible type given name for linkage purposes by typedef declaration; add a tag name here [-Wnon-c-typedef-for-linkage]
        typedef struct
                      ^
                       SessionItem
/Users/bingo/Downloads/Havoc/client/include/global.hpp:245:13: note: type is not C-compatible due to this member declaration
            void Export();
            ^~~~~~~~~~~~~
/Users/bingo/Downloads/Havoc/client/include/global.hpp:246:11: note: type is given name 'SessionItem' for linkage purposes by this typedef declaration
        } SessionItem;
          ^
/Users/bingo/Downloads/Havoc/client/src/Havoc/Demon/ConsoleInput.cc:780:32: warning: result of comparison against a string literal is unspecified (use an explicit string comparison function instead) [-Wstring-compare]
                if ( FilesOnly == "true" && DirsOnly == "true" )
                               ^  ~~~~~~
/Users/bingo/Downloads/Havoc/client/src/Havoc/Demon/ConsoleInput.cc:780:54: warning: result of comparison against a string literal is unspecified (use an explicit string comparison function instead) [-Wstring-compare]
                if ( FilesOnly == "true" && DirsOnly == "true" )
                                                     ^  ~~~~~~
1 warning generated.
[ 23%] Building CXX object CMakeFiles/Havoc.dir/src/Havoc/Demon/CommandSend.cc.o
1 warning generated.
[ 25%] Building CXX object CMakeFiles/Havoc.dir/src/Havoc/Demon/CommandOutput.cc.o
1 warning generated.
[ 27%] Building CXX object CMakeFiles/Havoc.dir/src/Havoc/Demon/Commands.cc.o
3 warnings generated.
[ 29%] Building CXX object CMakeFiles/Havoc.dir/src/Havoc/PythonApi/PythonApi.cc.o
In file included from /Users/bingo/Downloads/Havoc/client/src/Havoc/Demon/CommandSend.cc:1:
In file included from /Users/bingo/Downloads/Havoc/client/include/Havoc/DemonCmdDispatch.h:4:
/Users/bingo/Downloads/Havoc/client/include/global.hpp:209:23: warning: anonymous non-C-compatible type given name for linkage purposes by typedef declaration; add a tag name here [-Wnon-c-typedef-for-linkage]
        typedef struct
                      ^
                       SessionItem
/Users/bingo/Downloads/Havoc/client/include/global.hpp:245:13: note: type is not C-compatible due to this member declaration
            void Export();
            ^~~~~~~~~~~~~
/Users/bingo/Downloads/Havoc/client/include/global.hpp:246:11: note: type is given name 'SessionItem' for linkage purposes by this typedef declaration
        } SessionItem;
          ^
In file included from /Users/bingo/Downloads/Havoc/client/src/Havoc/Demon/CommandOutput.cc:4:
In file included from /Users/bingo/Downloads/Havoc/client/include/Havoc/DemonCmdDispatch.h:4:
/Users/bingo/Downloads/Havoc/client/include/global.hpp:209:23: warning: anonymous non-C-compatible type given name for linkage purposes by typedef declaration; add a tag name here [-Wnon-c-typedef-for-linkage]
        typedef struct
                      ^
                       SessionItem
/Users/bingo/Downloads/Havoc/client/include/global.hpp:245:13: note: type is not C-compatible due to this member declaration
            void Export();
            ^~~~~~~~~~~~~
/Users/bingo/Downloads/Havoc/client/include/global.hpp:246:11: note: type is given name 'SessionItem' for linkage purposes by this typedef declaration
        } SessionItem;
          ^
In file included from /Users/bingo/Downloads/Havoc/client/src/Havoc/Demon/CommandOutput.cc:7:
In file included from /Users/bingo/Downloads/Havoc/client/include/UserInterface/Widgets/TeamserverTabSession.h:8:
/Users/bingo/Downloads/Havoc/client/include/UserInterface/Widgets/LootWidget.h:29:10: warning: 'resizeEvent' overrides a member function but is not marked 'override' [-Winconsistent-missing-override]
    void resizeEvent(QResizeEvent *);
         ^
/opt/homebrew/opt/qt@5/lib/QtWidgets.framework/Headers/qwidget.h:635:18: note: overridden virtual function is here
    virtual void resizeEvent(QResizeEvent *event);
                 ^
In file included from /Users/bingo/Downloads/Havoc/client/src/Havoc/Demon/CommandOutput.cc:7:
In file included from /Users/bingo/Downloads/Havoc/client/include/UserInterface/Widgets/TeamserverTabSession.h:8:
/Users/bingo/Downloads/Havoc/client/include/UserInterface/Widgets/LootWidget.h:30:10: warning: 'keyReleaseEvent' overrides a member function but is not marked 'override' [-Winconsistent-missing-override]
    void keyReleaseEvent( QKeyEvent* event );
         ^
/opt/homebrew/opt/qt@5/lib/QtWidgets.framework/Headers/qwidget.h:628:18: note: overridden virtual function is here
    virtual void keyReleaseEvent(QKeyEvent *event);
                 ^
In file included from /Users/bingo/Downloads/Havoc/client/src/Havoc/Demon/CommandOutput.cc:7:
In file included from /Users/bingo/Downloads/Havoc/client/include/UserInterface/Widgets/TeamserverTabSession.h:8:
/Users/bingo/Downloads/Havoc/client/include/UserInterface/Widgets/LootWidget.h:32:10: warning: 'wheelEvent' overrides a member function but is not marked 'override' [-Winconsistent-missing-override]
    void wheelEvent(QWheelEvent *ev);
         ^
/opt/homebrew/opt/qt@5/lib/QtWidgets.framework/Headers/qwidget.h:625:18: note: overridden virtual function is here
    virtual void wheelEvent(QWheelEvent *event);
                 ^
In file included from /Users/bingo/Downloads/Havoc/client/src/Havoc/Demon/Commands.cc:1:
In file included from /Users/bingo/Downloads/Havoc/client/include/Havoc/DemonCmdDispatch.h:4:
/Users/bingo/Downloads/Havoc/client/include/global.hpp:209:23: warning: anonymous non-C-compatible type given name for linkage purposes by typedef declaration; add a tag name here [-Wnon-c-typedef-for-linkage]
        typedef struct
                      ^
                       SessionItem
/Users/bingo/Downloads/Havoc/client/include/global.hpp:245:13: note: type is not C-compatible due to this member declaration
            void Export();
            ^~~~~~~~~~~~~
/Users/bingo/Downloads/Havoc/client/include/global.hpp:246:11: note: type is given name 'SessionItem' for linkage purposes by this typedef declaration
        } SessionItem;
          ^
1 warning generated.
[ 31%] Building CXX object CMakeFiles/Havoc.dir/src/Havoc/PythonApi/Havoc.cc.o
4 warnings generated.
[ 33%] Building CXX object CMakeFiles/Havoc.dir/src/Havoc/PythonApi/HavocUi.cc.o
In file included from /Users/bingo/Downloads/Havoc/client/src/Havoc/PythonApi/PythonApi.cc:1:
In file included from /Users/bingo/Downloads/Havoc/client/include/Havoc/PythonApi/PythonApi.h:4:
/Users/bingo/Downloads/Havoc/client/include/global.hpp:209:23: warning: anonymous non-C-compatible type given name for linkage purposes by typedef declaration; add a tag name here [-Wnon-c-typedef-for-linkage]
        typedef struct
                      ^
                       SessionItem
/Users/bingo/Downloads/Havoc/client/include/global.hpp:245:13: note: type is not C-compatible due to this member declaration
            void Export();
            ^~~~~~~~~~~~~
/Users/bingo/Downloads/Havoc/client/include/global.hpp:246:11: note: type is given name 'SessionItem' for linkage purposes by this typedef declaration
        } SessionItem;
          ^
1 warning generated.
[ 35%] Building CXX object CMakeFiles/Havoc.dir/src/Havoc/PythonApi/UI/PyDialogClass.cc.o
1 warning generated.
[ 37%] Building CXX object CMakeFiles/Havoc.dir/src/Havoc/PythonApi/UI/PyLoggerClass.cc.o
In file included from /Users/bingo/Downloads/Havoc/client/src/Havoc/PythonApi/Havoc.cc:1:
/Users/bingo/Downloads/Havoc/client/include/global.hpp:209:23: warning: anonymous non-C-compatible type given name for linkage purposes by typedef declaration; add a tag name here [-Wnon-c-typedef-for-linkage]
        typedef struct
                      ^
                       SessionItem
/Users/bingo/Downloads/Havoc/client/include/global.hpp:245:13: note: type is not C-compatible due to this member declaration
            void Export();
            ^~~~~~~~~~~~~
/Users/bingo/Downloads/Havoc/client/include/global.hpp:246:11: note: type is given name 'SessionItem' for linkage purposes by this typedef declaration
        } SessionItem;
          ^
In file included from /Users/bingo/Downloads/Havoc/client/src/Havoc/PythonApi/HavocUi.cc:1:
In file included from /Users/bingo/Downloads/Havoc/client/include/Havoc/PythonApi/PythonApi.h:4:
/Users/bingo/Downloads/Havoc/client/include/global.hpp:209:23: warning: anonymous non-C-compatible type given name for linkage purposes by typedef declaration; add a tag name here [-Wnon-c-typedef-for-linkage]
        typedef struct
                      ^
                       SessionItem
/Users/bingo/Downloads/Havoc/client/include/global.hpp:245:13: note: type is not C-compatible due to this member declaration
            void Export();
            ^~~~~~~~~~~~~
/Users/bingo/Downloads/Havoc/client/include/global.hpp:246:11: note: type is given name 'SessionItem' for linkage purposes by this typedef declaration
        } SessionItem;
          ^
In file included from /Users/bingo/Downloads/Havoc/client/src/Havoc/PythonApi/UI/PyDialogClass.cc:6:
In file included from /Users/bingo/Downloads/Havoc/client/include/Havoc/PythonApi/PythonApi.h:4:
In file included from /Users/bingo/Downloads/Havoc/client/include/global.hpp:36:
In file included from /Users/bingo/Downloads/Havoc/client/include/External.h:6:
In file included from /Users/bingo/Downloads/Havoc/client/external/toml/toml.hpp:32:
In file included from /Users/bingo/Downloads/Havoc/client/external/toml/toml/parser.hpp:14:
In file included from /Users/bingo/Downloads/Havoc/client/external/toml/toml/value.hpp:8:
/Users/bingo/Downloads/Havoc/client/external/toml/toml/exception.hpp:44:17: error: cannot initialize a variable of type 'const char *' with an rvalue of type 'int'
    const char* result = strerror_r(errnum, buf.data(), bufsize);
                ^        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /Users/bingo/Downloads/Havoc/client/src/Havoc/PythonApi/UI/PyDialogClass.cc:6:
In file included from /Users/bingo/Downloads/Havoc/client/include/Havoc/PythonApi/PythonApi.h:4:
/Users/bingo/Downloads/Havoc/client/include/global.hpp:209:23: warning: anonymous non-C-compatible type given name for linkage purposes by typedef declaration; add a tag name here [-Wnon-c-typedef-for-linkage]
        typedef struct
                      ^
                       SessionItem
/Users/bingo/Downloads/Havoc/client/include/global.hpp:245:13: note: type is not C-compatible due to this member declaration
            void Export();
            ^~~~~~~~~~~~~
/Users/bingo/Downloads/Havoc/client/include/global.hpp:246:11: note: type is given name 'SessionItem' for linkage purposes by this typedef declaration
        } SessionItem;
          ^
In file included from /Users/bingo/Downloads/Havoc/client/src/Havoc/PythonApi/UI/PyLoggerClass.cc:6:
In file included from /Users/bingo/Downloads/Havoc/client/include/Havoc/PythonApi/PythonApi.h:4:
In file included from /Users/bingo/Downloads/Havoc/client/include/global.hpp:36:
In file included from /Users/bingo/Downloads/Havoc/client/include/External.h:6:
In file included from /Users/bingo/Downloads/Havoc/client/external/toml/toml.hpp:32:
In file included from /Users/bingo/Downloads/Havoc/client/external/toml/toml/parser.hpp:14:
In file included from /Users/bingo/Downloads/Havoc/client/external/toml/toml/value.hpp:8:
/Users/bingo/Downloads/Havoc/client/external/toml/toml/exception.hpp:44:17: error: cannot initialize a variable of type 'const char *' with an rvalue of type 'int'
    const char* result = strerror_r(errnum, buf.data(), bufsize);
                ^        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /Users/bingo/Downloads/Havoc/client/src/Havoc/PythonApi/UI/PyLoggerClass.cc:6:
In file included from /Users/bingo/Downloads/Havoc/client/include/Havoc/PythonApi/PythonApi.h:4:
/Users/bingo/Downloads/Havoc/client/include/global.hpp:209:23: warning: anonymous non-C-compatible type given name for linkage purposes by typedef declaration; add a tag name here [-Wnon-c-typedef-for-linkage]
        typedef struct
                      ^
                       SessionItem
/Users/bingo/Downloads/Havoc/client/include/global.hpp:245:13: note: type is not C-compatible due to this member declaration
            void Export();
            ^~~~~~~~~~~~~
/Users/bingo/Downloads/Havoc/client/include/global.hpp:246:11: note: type is given name 'SessionItem' for linkage purposes by this typedef declaration
        } SessionItem;
          ^
1 warning and 1 error generated.
make[3]: *** [CMakeFiles/Havoc.dir/src/Havoc/PythonApi/UI/PyDialogClass.cc.o] Error 1
make[3]: *** Waiting for unfinished jobs....
1 warning generated.
1 warning generated.
1 warning and 1 error generated.
make[3]: *** [CMakeFiles/Havoc.dir/src/Havoc/PythonApi/UI/PyLoggerClass.cc.o] Error 1
make[2]: *** [CMakeFiles/Havoc.dir/all] Error 2
make[1]: *** [all] Error 2
make: *** [client-build] Error 2

Did You Do a Pull First?

Latest (You performed a pull first)

Did You Try With the Dev Branch?

No (You only tried the main branch...)

Relevant log output

No response

Did You Read Over Your Issue First?

  • I declare I made an effort and provided the necessary information for replication of the issue.
@handbye handbye added the clientside/teamserver Clientside problem, not implantrelated label Apr 8, 2024
@0xwataru
Copy link

//const char* result = strerror_r(errnum, buf.data(), bufsize); 

->
int ret = strerror_r(errnum, buf.data(), bufsize);
const char *result;
if (ret == 0) {
// Success, use the error message string in buf
result = buf.data();
} else {
// Handle error, e.g., set result to a default error message
result = "Error retrieving system message";
}

after this change, i am ok now . i wish this can help you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
clientside/teamserver Clientside problem, not implantrelated
Projects
None yet
Development

No branches or pull requests

2 participants