Skip to content

Unable to build switch #8

@rohan-kharade

Description

@rohan-kharade

getting error while compiling client
/switch/client$ make

Client.cc:4:41: error: no matching function for call to ‘OFClient::OFClient(int, const char [10], int)’ OFClient client(0, "127.0.0.1", 6653);
^
In file included from Client.cc:1:0:
OFClient.hh:29:5: note: candidate: OFClient::OFClient(int, std::__cxx11::string, int, uint64_t, fluid_base::OFServerSettings)
OFClient(int id, std::string address, int port, uint64_t datapath_id,
^
OFClient.hh:29:5: note: candidate expects 5 arguments, 3 provided
OFClient.hh:27:7: note: candidate: OFClient::OFClient(const OFClient&)
class OFClient : private BaseOFClient, public OFHandler {
^
OFClient.hh:27:7: note: candidate expects 1 argument, 3 provided
Makefile:4: recipe for target 'client' failed
make: *** [client] Error 1

Aslo tried to compile

/switch$ make
/usr/bin/ld: /tmp/ccTx4Ow8.o: undefined reference to symbol 'pthread_cancel@@GLIBC_2.2.5'
//lib/x86_64-linux-gnu/libpthread.so.0: error adding symbols: DSO missing from command line collect2: error: ld returned 1 exit status
Makefile:4: recipe for target 'switch' failed
make: *** [switch] Error 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions