Giter VIP home page Giter VIP logo

Comments (3)

w-o-o avatar w-o-o commented on May 12, 2024

this is a link error. did you try the make file under proxygen/proxygen/httpclient/samples/curl

from proxygen.

shivamsingh262 avatar shivamsingh262 commented on May 12, 2024

I tried make file

shivam@shivam-PC:~/Documents/proxygen/proxygen/httpclient/samples/curl$ make
Making all in .
make[1]: Entering directory /home/shivam/Documents/proxygen/proxygen/httpclient/samples/curl' make[1]: Nothing to be done forall-am'.
make[1]: Leaving directory `/home/shivam/Documents/proxygen/proxygen/httpclient/samples/curl'

I even did 'make clean' followed by 'make'

shivam@shivam-PC:~/Documents/proxygen/proxygen/httpclient/samples/curl$ make
Making all in .
make[1]: Entering directory /home/shivam/Documents/proxygen/proxygen/httpclient/samples/curl' depbase=echo CurlClient.o | sed 's|[^/]$|.deps/&|;s|.o$||';\ g++ -DHAVE_CONFIG_H -I../../../.. -I../../../lib/test/gmock-1.7.0/include -I../../../lib/test/gmock-1.7.0/gtest/include -I/usr/include -DLIBMC_FBTRACE_DISABLE -Wno-missing-field-initializers -Wno-deprecated -O3 -g -W -Wall -Wextra -Wno-unused-parameter -fno-strict-aliasing -std=gnu++0x -g -O2 -MT CurlClient.o -MD -MP -MF $depbase.Tpo -c -o CurlClient.o CurlClient.cpp &&\ mv -f $depbase.Tpo $depbase.Po depbase=echo CurlClientMain.o | sed 's|[^/]$|.deps/&|;s|.o$||';\ g++ -DHAVE_CONFIG_H -I../../../.. -I../../../lib/test/gmock-1.7.0/include -I../../../lib/test/gmock-1.7.0/gtest/include -I/usr/include -DLIBMC_FBTRACE_DISABLE -Wno-missing-field-initializers -Wno-deprecated -O3 -g -W -Wall -Wextra -Wno-unused-parameter -fno-strict-aliasing -std=gnu++0x -g -O2 -MT CurlClientMain.o -MD -MP -MF $depbase.Tpo -c -o CurlClientMain.o CurlClientMain.cpp &&\ mv -f $depbase.Tpo $depbase.Po /bin/bash ../../../libtool --tag=CXX --mode=link g++ -DLIBMC_FBTRACE_DISABLE -Wno-missing-field-initializers -Wno-deprecated -O3 -g -W -Wall -Wextra -Wno-unused-parameter -fno-strict-aliasing -std=gnu++0x -g -O2 -o curl CurlClient.o CurlClientMain.o ../../../lib/libproxygenlib.la -lwangle -lfolly -lz -lssl -lcrypto -lcap -levent -lgflags -lglog -L/usr/lib64 -lpthread -pthread -lfolly -lglog -ldouble-conversion -lboost_system -lboost_thread libtool: link: g++ -DLIBMC_FBTRACE_DISABLE -Wno-missing-field-initializers -Wno-deprecated -O3 -g -W -Wall -Wextra -Wno-unused-parameter -fno-strict-aliasing -std=gnu++0x -g -O2 -o curl CurlClient.o CurlClientMain.o -pthread ../../../lib/.libs/libproxygenlib.a -L/usr/lib64 /usr/local/lib/libfolly.so -lboost_context -lboost_program_options -lboost_filesystem -lboost_regex -lboost_chrono -llzma -lsnappy -llz4 -liberty -ljemalloc -lwangle -lz -lssl -lcrypto -lcap -levent -lgflags -lpthread -lfolly -lglog -ldouble-conversion -lboost_system -lboost_thread -pthread make[1]: Leaving directory/home/shivam/Documents/proxygen/proxygen/httpclient/samples/curl'

But I still have the same issue.

from proxygen.

shivamsingh262 avatar shivamsingh262 commented on May 12, 2024

I was able to resolve this by copying 'HTTPConnector.o' from /lib/http/ directory and 'HTTPUpstreamSession.o' from /lib/http/session/ directory into the /httpclient/samples/curl directory.

Now when I run,

shivam@shivam-PC:~/proxygen/proxygen/httpclient/samples/curl$ g++ -std=c++11 -o my_echo CurlClient.cpp CurlClientMain.cpp HTTPUpstreamSession.o HTTPConnector.o -lproxygenhttpserver -lfolly -lglog -lgflags -pthread

This fixes the linker error, and the client works. There should be a better way though.

from proxygen.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.