Hi, I am trying to install P4Python on linux 3.16.0-30-generic #40~14.04.1-Ubuntu SMP x86_64 x86_64 x86_64 GNU/Linux machine. Python version 2.7.6. p4python-2014.2.962887 and p4api version p4api-2014.2.978861.
The error i get is shown below: $python setup.py build --apidir /root/Downloads/p4api-2014.2.978861/ API Release 2014.2 running build running build_py creating build creating build/lib.linux-x86_64-2.7 copying P4.py -> build/lib.linux-x86_64-2.7 running build_ext building 'P4API' extension creating build/temp.linux-x86_64-2.7 x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -DID_OS="LINUX31X86_64" -DID_REL="2014.2" -DID_PATCH="962887" -DID_API="2014.2/978861" -DID_Y="2014" -DID_M="11" -DID_D="17" -I/root/Downloads/p4api-2014.2.978861/ -I/root/Downloads/p4api-2014.2.978861/include/p4 -I/usr/include/python2.7 -c P4API.cpp -o build/temp.linux-x86_64-2.7/P4API.o -DOS_LINUX -DOS_LINUX31 -DOS_LINUXX86_64 -DOS_LINUX31X86_64 cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ [enabled by default] x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -DID_OS="LINUX31X86_64" -DID_REL="2014.2" -DID_PATCH="962887" -DID_API="2014.2/978861" -DID_Y="2014" -DID_M="11" -DID_D="17" -I/root/Downloads/p4api-2014.2.978861/ -I/root/Downloads/p4api-2014.2.978861/include/p4 -I/usr/include/python2.7 -c PythonClientAPI.cpp -o build/temp.linux-x86_64-2.7/PythonClientAPI.o -DOS_LINUX -DOS_LINUX31 -DOS_LINUXX86_64 -DOS_LINUX31X86_64 cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ [enabled by default] x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -DID_OS="LINUX31X86_64" -DID_REL="2014.2" -DID_PATCH="962887" -DID_API="2014.2/978861" -DID_Y="2014" -DID_M="11" -DID_D="17" -I/root/Downloads/p4api-2014.2.978861/ -I/root/Downloads/p4api-2014.2.978861/include/p4 -I/usr/include/python2.7 -c PythonClientUser.cpp -o build/temp.linux-x86_64-2.7/PythonClientUser.o -DOS_LINUX -DOS_LINUX31 -DOS_LINUXX86_64 -DOS_LINUX31X86_64 cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ [enabled by default] x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -DID_OS="LINUX31X86_64" -DID_REL="2014.2" -DID_PATCH="962887" -DID_API="2014.2/978861" -DID_Y="2014" -DID_M="11" -DID_D="17" -I/root/Downloads/p4api-2014.2.978861/ -I/root/Downloads/p4api-2014.2.978861/include/p4 -I/usr/include/python2.7 -c SpecMgr.cpp -o build/temp.linux-x86_64-2.7/SpecMgr.o -DOS_LINUX -DOS_LINUX31 -DOS_LINUXX86_64 -DOS_LINUX31X86_64 cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ [enabled by default] x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -DID_OS="LINUX31X86_64" -DID_REL="2014.2" -DID_PATCH="962887" -DID_API="2014.2/978861" -DID_Y="2014" -DID_M="11" -DID_D="17" -I/root/Downloads/p4api-2014.2.978861/ -I/root/Downloads/p4api-2014.2.978861/include/p4 -I/usr/include/python2.7 -c P4Result.cpp -o build/temp.linux-x86_64-2.7/P4Result.o -DOS_LINUX -DOS_LINUX31 -DOS_LINUXX86_64 -DOS_LINUX31X86_64 cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ [enabled by default] x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -DID_OS="LINUX31X86_64" -DID_REL="2014.2" -DID_PATCH="962887" -DID_API="2014.2/978861" -DID_Y="2014" -DID_M="11" -DID_D="17" -I/root/Downloads/p4api-2014.2.978861/ -I/root/Downloads/p4api-2014.2.978861/include/p4 -I/usr/include/python2.7 -c PythonMergeData.cpp -o build/temp.linux-x86_64-2.7/PythonMergeData.o -DOS_LINUX -DOS_LINUX31 -DOS_LINUXX86_64 -DOS_LINUX31X86_64 cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ [enabled by default] x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -DID_OS="LINUX31X86_64" -DID_REL="2014.2" -DID_PATCH="962887" -DID_API="2014.2/978861" -DID_Y="2014" -DID_M="11" -DID_D="17" -I/root/Downloads/p4api-2014.2.978861/ -I/root/Downloads/p4api-2014.2.978861/include/p4 -I/usr/include/python2.7 -c P4MapMaker.cpp -o build/temp.linux-x86_64-2.7/P4MapMaker.o -DOS_LINUX -DOS_LINUX31 -DOS_LINUXX86_64 -DOS_LINUX31X86_64 cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ [enabled by default] x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -DID_OS="LINUX31X86_64" -DID_REL="2014.2" -DID_PATCH="962887" -DID_API="2014.2/978861" -DID_Y="2014" -DID_M="11" -DID_D="17" -I/root/Downloads/p4api-2014.2.978861/ -I/root/Downloads/p4api-2014.2.978861/include/p4 -I/usr/include/python2.7 -c PythonSpecData.cpp -o build/temp.linux-x86_64-2.7/PythonSpecData.o -DOS_LINUX -DOS_LINUX31 -DOS_LINUXX86_64 -DOS_LINUX31X86_64 cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ [enabled by default] x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -DID_OS="LINUX31X86_64" -DID_REL="2014.2" -DID_PATCH="962887" -DID_API="2014.2/978861" -DID_Y="2014" -DID_M="11" -DID_D="17" -I/root/Downloads/p4api-2014.2.978861/ -I/root/Downloads/p4api-2014.2.978861/include/p4 -I/usr/include/python2.7 -c PythonMessage.cpp -o build/temp.linux-x86_64-2.7/PythonMessage.o -DOS_LINUX -DOS_LINUX31 -DOS_LINUXX86_64 -DOS_LINUX31X86_64 cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ [enabled by default] x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -DID_OS="LINUX31X86_64" -DID_REL="2014.2" -DID_PATCH="962887" -DID_API="2014.2/978861" -DID_Y="2014" -DID_M="11" -DID_D="17" -I/root/Downloads/p4api-2014.2.978861/ -I/root/Downloads/p4api-2014.2.978861/include/p4 -I/usr/include/python2.7 -c PythonActionMergeData.cpp -o build/temp.linux-x86_64-2.7/PythonActionMergeData.o -DOS_LINUX -DOS_LINUX31 -DOS_LINUXX86_64 -DOS_LINUX31X86_64 cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ [enabled by default] x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -DID_OS="LINUX31X86_64" -DID_REL="2014.2" -DID_PATCH="962887" -DID_API="2014.2/978861" -DID_Y="2014" -DID_M="11" -DID_D="17" -I/root/Downloads/p4api-2014.2.978861/ -I/root/Downloads/p4api-2014.2.978861/include/p4 -I/usr/include/python2.7 -c PythonClientProgress.cpp -o build/temp.linux-x86_64-2.7/PythonClientProgress.o -DOS_LINUX -DOS_LINUX31 -DOS_LINUXX86_64 -DOS_LINUX31X86_64 cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ [enabled by default] x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -DID_OS="LINUX31X86_64" -DID_REL="2014.2" -DID_PATCH="962887" -DID_API="2014.2/978861" -DID_Y="2014" -DID_M="11" -DID_D="17" -I/root/Downloads/p4api-2014.2.978861/ -I/root/Downloads/p4api-2014.2.978861/include/p4 -I/usr/include/python2.7 -c P4PythonDebug.cpp -o build/temp.linux-x86_64-2.7/P4PythonDebug.o -DOS_LINUX -DOS_LINUX31 -DOS_LINUXX86_64 -DOS_LINUX31X86_64 cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ [enabled by default] c++ -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -D_FORTIFY_SOURCE=2 -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security build/temp.linux-x86_64-2.7/P4API.o build/temp.linux-x86_64-2.7/PythonClientAPI.o build/temp.linux-x86_64-2.7/PythonClientUser.o build/temp.linux-x86_64-2.7/SpecMgr.o build/temp.linux-x86_64-2.7/P4Result.o build/temp.linux-x86_64-2.7/PythonMergeData.o build/temp.linux-x86_64-2.7/P4MapMaker.o build/temp.linux-x86_64-2.7/PythonSpecData.o build/temp.linux-x86_64-2.7/PythonMessage.o build/temp.linux-x86_64-2.7/PythonActionMergeData.o build/temp.linux-x86_64-2.7/PythonClientProgress.o build/temp.linux-x86_64-2.7/P4PythonDebug.o -L/root/Downloads/p4api-2014.2.978861/ -L/root/Downloads/p4api-2014.2.978861/lib -lclient -lrpc -lsupp -lp4sslstub -lrt -o build/lib.linux-x86_64-2.7/P4API.so /usr/bin/ld: skipping incompatible /root/Downloads/p4api-2014.2.978861/lib/libclient.a when searching for -lclient /usr/bin/ld: cannot find -lclient /usr/bin/ld: skipping incompatible /root/Downloads/p4api-2014.2.978861/lib/librpc.a when searching for -lrpc /usr/bin/ld: cannot find -lrpc /usr/bin/ld: skipping incompatible /root/Downloads/p4api-2014.2.978861/lib/libsupp.a when searching for -lsupp /usr/bin/ld: cannot find -lsupp /usr/bin/ld: skipping incompatible /root/Downloads/p4api-2014.2.978861/lib/libp4sslstub.a when searching for -lp4sslstub /usr/bin/ld: cannot find -lp4sslstub collect2: error: ld returned 1 exit status error: command 'c++' failed with exit status 1 How do i resolve this error? Thanks -- Supercharge your Review Board with Power Pack: https://www.reviewboard.org/powerpack/ Want us to host Review Board for you? Check out RBCommons: https://rbcommons.com/ Happy user? Let us know! https://www.reviewboard.org/users/ --- You received this message because you are subscribed to the Google Groups "reviewboard" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
