Comments (3)
this is a link error. did you try the make file under proxygen/proxygen/httpclient/samples/curl
from proxygen.
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 for
all-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|[^/];\ 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.
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)
- Forward Proxy
- SessionPooling
- hq: undefined symbol: _ZN6google10LogMessageC1EPKciimMS0_FvvE
- Detaching Socket HOT 1
- Error while replacing HTTPConnector HOT 5
- [2023.10.02.00 regression] error: no member named 'QuicAsyncUDPSocketWrapperImpl' in namespace 'quic' HOT 1
- Bandwidth Utilization
- This resolves CVE-2023-44487.
- Building Proxygen in Windows
- HTTP3 Server and Client from samples HOT 11
- Does proxygen support iOS ?
- Transferring Sessions between threads for Http Client Connection Pool HOT 8
- DetachThreadLocals() fails CHECK HOT 22
- Homebrew build of proxygen failing HOT 7
- ServerIdleSessionConroller:getIdleSession() returns session already in thread HOT 5
- Concurrent performance supported by the HTTP server
- Websocket Key Mismatch HOT 2
- Connection Close Reason SHUTDOWN HOT 3
- `EchoHandler` in `proxygen/httpserver/samples/echo/EchoHandler.h` has unnecessary `body_` member
- Request smuggling vulnerability in Proxygen
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from proxygen.