Closed GoogleCodeExporter closed 9 years ago
slowhttptest.cc:209: error: 'PF_UNSPEC' was not declared in this scope
slowhttptest.cc:210: error: 'SOCK_STREAM' was not declared in this scope
FreeBSD error
Original comment by uniso...@gmail.com
on 8 Jan 2012 at 9:09
Enjoy!
Open /src/slowhttptest.cc
Before -- >
#include <sys/resource.h>
add --->
#include <sys/socket.h>
Save
Open /src/showlog.cc
Delete
1.
#include <execinfo.h>
2.
void print_call_stack() {
static void* buf[64];
const int depth = backtrace(buf, sizeof(buf)/sizeof(buf[0]));
backtrace_symbols_fd(buf, depth, fileno(stdout));
if (stdout != log_file) {
backtrace_symbols_fd(buf, depth, fileno(log_file));
}
}
3. print_call_stack(); (2)
Save
configure - make - make install
Original comment by uniso...@gmail.com
on 8 Jan 2012 at 1:20
Nice! Thank you. Didn't check if it build for FreeBSD. Installing BSD now..
Original comment by shek...@gmail.com
on 8 Jan 2012 at 5:11
Apologies for FreeBSD users. Fix checked into svn. Use svn checkout
http://slowhttptest.googlecode.com/svn/trunk/ slowhttptest-read-only
to build on FreeBSD, until release of new version.
Original comment by shek...@gmail.com
on 8 Jan 2012 at 7:00
Original issue reported on code.google.com by
shek...@gmail.com
on 8 Jan 2012 at 5:12