a12689851 / slowhttptest

Automatically exported from code.google.com/p/slowhttptest
Apache License 2.0
0 stars 0 forks source link

Build failure on FreeBSD #8

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Build failure on FreeBSD

Original issue reported on code.google.com by shek...@gmail.com on 8 Jan 2012 at 5:12

GoogleCodeExporter commented 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

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
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