JoeDog / siege

Siege is an http load tester and benchmarking utility
GNU General Public License v3.0
5.95k stars 385 forks source link

Trouble building on OSX #30

Open tracker1 opened 9 years ago

tracker1 commented 9 years ago

After gettienr autoconf, automake and libtools installed...

I ran utils/bootstrap then ./configure without issue... during make, I'm getting a few warnings and an error... Here's the output (OSX Yosimite and XCode 6.4)

Making all in .
make[1]: Nothing to be done for `all-am'.
Making all in include
/Applications/Xcode.app/Contents/Developer/usr/bin/make  all-recursive
Making all in joedog
make[3]: Nothing to be done for `all'.
make[3]: Nothing to be done for `all-am'.
Making all in lib
Making all in joedog
/bin/sh ../../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../include    -W -Wall -Wunused-value -g -O2 -c -o memory.lo memory.c
mkdir .libs
 gcc -DHAVE_CONFIG_H -I. -I../../include -W -Wall -Wunused-value -g -O2 -c memory.c  -fno-common -DPIC -o .libs/memory.o
 gcc -DHAVE_CONFIG_H -I. -I../../include -W -Wall -Wunused-value -g -O2 -c memory.c -o memory.o >/dev/null 2>&1
/bin/sh ../../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../include    -W -Wall -Wunused-value -g -O2 -c -o notify.lo notify.c
 gcc -DHAVE_CONFIG_H -I. -I../../include -W -Wall -Wunused-value -g -O2 -c notify.c  -fno-common -DPIC -o .libs/notify.o
 gcc -DHAVE_CONFIG_H -I. -I../../include -W -Wall -Wunused-value -g -O2 -c notify.c -o notify.o >/dev/null 2>&1
/bin/sh ../../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../include    -W -Wall -Wunused-value -g -O2 -c -o perl.lo perl.c
 gcc -DHAVE_CONFIG_H -I. -I../../include -W -Wall -Wunused-value -g -O2 -c perl.c  -fno-common -DPIC -o .libs/perl.o
 gcc -DHAVE_CONFIG_H -I. -I../../include -W -Wall -Wunused-value -g -O2 -c perl.c -o perl.o >/dev/null 2>&1
/bin/sh ../../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../include    -W -Wall -Wunused-value -g -O2 -c -o util.lo util.c
 gcc -DHAVE_CONFIG_H -I. -I../../include -W -Wall -Wunused-value -g -O2 -c util.c  -fno-common -DPIC -o .libs/util.o
 gcc -DHAVE_CONFIG_H -I. -I../../include -W -Wall -Wunused-value -g -O2 -c util.c -o util.o >/dev/null 2>&1
/bin/sh ../../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../include    -W -Wall -Wunused-value -g -O2 -c -o snprintf.lo snprintf.c
 gcc -DHAVE_CONFIG_H -I. -I../../include -W -Wall -Wunused-value -g -O2 -c snprintf.c  -fno-common -DPIC -o .libs/snprintf.o
 gcc -DHAVE_CONFIG_H -I. -I../../include -W -Wall -Wunused-value -g -O2 -c snprintf.c -o snprintf.o >/dev/null 2>&1
/bin/sh ../../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../include    -W -Wall -Wunused-value -g -O2 -c -o stralloc.lo stralloc.c
 gcc -DHAVE_CONFIG_H -I. -I../../include -W -Wall -Wunused-value -g -O2 -c stralloc.c  -fno-common -DPIC -o .libs/stralloc.o
 gcc -DHAVE_CONFIG_H -I. -I../../include -W -Wall -Wunused-value -g -O2 -c stralloc.c -o stralloc.o >/dev/null 2>&1
/bin/sh ../../libtool  --tag=CC   --mode=link gcc -W -Wall -Wunused-value -g -O2 -version-info 1:0:1  -o libjoedog.la  memory.lo notify.lo perl.lo util.lo snprintf.lo stralloc.lo
libtool: link: warning: `-version-info/-version-number' is ignored for convenience libraries
ar cru .libs/libjoedog.a .libs/memory.o .libs/notify.o .libs/perl.o .libs/util.o .libs/snprintf.o .libs/stralloc.o
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: .libs/libjoedog.a(snprintf.o) has no symbols
ranlib .libs/libjoedog.a
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: .libs/libjoedog.a(snprintf.o) has no symbols
creating libjoedog.la
(cd .libs && rm -f libjoedog.la && ln -s ../libjoedog.la libjoedog.la)
make[2]: Nothing to be done for `all-am'.
Making all in src
gcc -DHAVE_CONFIG_H -I. -I../include     -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -W -Wall -Wunused-value  -g -O2 -c -o array.o array.c
gcc -DHAVE_CONFIG_H -I. -I../include     -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -W -Wall -Wunused-value  -g -O2 -c -o auth.o auth.c
auth.c:130:23: warning: unused function '__mkhash' [-Wunused-function]
private void          __mkhash(const char *pass, unsigned char *nonce, unsigned char *lmresp, unsigned char *ntresp);
                      ^
1 warning generated.
gcc -DHAVE_CONFIG_H -I. -I../include     -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -W -Wall -Wunused-value  -g -O2 -c -o base64.o base64.c
gcc -DHAVE_CONFIG_H -I. -I../include     -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -W -Wall -Wunused-value  -g -O2 -c -o client.o client.c
gcc -DHAVE_CONFIG_H -I. -I../include     -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -W -Wall -Wunused-value  -g -O2 -c -o cookie.o cookie.c
gcc -DHAVE_CONFIG_H -I. -I../include     -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -W -Wall -Wunused-value  -g -O2 -c -o cfg.o cfg.c
gcc -DHAVE_CONFIG_H -I. -I../include     -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -W -Wall -Wunused-value  -g -O2 -c -o creds.o creds.c
gcc -DHAVE_CONFIG_H -I. -I../include     -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -W -Wall -Wunused-value  -g -O2 -c -o crew.o crew.c
gcc -DHAVE_CONFIG_H -I. -I../include     -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -W -Wall -Wunused-value  -g -O2 -c -o data.o data.c
gcc -DHAVE_CONFIG_H -I. -I../include     -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -W -Wall -Wunused-value  -g -O2 -c -o date.o date.c
gcc -DHAVE_CONFIG_H -I. -I../include     -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -W -Wall -Wunused-value  -g -O2 -c -o eval.o eval.c
gcc -DHAVE_CONFIG_H -I. -I../include     -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -W -Wall -Wunused-value  -g -O2 -c -o ftp.o ftp.c
ftp.c:146:11: warning: incompatible pointer to integer conversion initializing 'size_t' (aka 'unsigned long') with an
      expression of type 'pthread_t' (aka 'struct _opaque_pthread_t *') [-Wint-conversion]
  size_t  id = pthread_self();
          ^    ~~~~~~~~~~~~~~
ftp.c:236:7: warning: variable 'bytes' is uninitialized when used here [-Wuninitialized]
      bytes += n;
      ^~~~~
ftp.c:223:13: note: initialize the variable 'bytes' to silence this warning
  int  bytes;
            ^
             = 0
2 warnings generated.
gcc -DHAVE_CONFIG_H -I. -I../include     -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -W -Wall -Wunused-value  -g -O2 -c -o getopt.o getopt.c
gcc -DHAVE_CONFIG_H -I. -I../include     -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -W -Wall -Wunused-value  -g -O2 -c -o getopt1.o getopt1.c
gcc -DHAVE_CONFIG_H -I. -I../include     -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -W -Wall -Wunused-value  -g -O2 -c -o handler.o handler.c
gcc -DHAVE_CONFIG_H -I. -I../include     -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -W -Wall -Wunused-value  -g -O2 -c -o hash.o hash.c
gcc -DHAVE_CONFIG_H -I. -I../include     -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -W -Wall -Wunused-value  -g -O2 -c -o http.o http.c
gcc -DHAVE_CONFIG_H -I. -I../include     -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -W -Wall -Wunused-value  -g -O2 -c -o init.o init.c
init.c:182:54: warning: comparison of array 'my.logfile' equal to a null pointer is always false
      [-Wtautological-pointer-compare]
  printf("log file:                       %s\n", (my.logfile == NULL) ? LOG_FILE : my.logfile);
                                                  ~~~^~~~~~~    ~~~~
1 warning generated.
gcc -DHAVE_CONFIG_H -I. -I../include     -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -W -Wall -Wunused-value  -g -O2 -c -o load.o load.c
gcc -DHAVE_CONFIG_H -I. -I../include     -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -W -Wall -Wunused-value  -g -O2 -c -o log.o log.c
gcc -DHAVE_CONFIG_H -I. -I../include     -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -W -Wall -Wunused-value  -g -O2 -c -o main.o main.c
gcc -DHAVE_CONFIG_H -I. -I../include     -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -W -Wall -Wunused-value  -g -O2 -c -o md5.o md5.c
gcc -DHAVE_CONFIG_H -I. -I../include     -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -W -Wall -Wunused-value  -g -O2 -c -o sock.o sock.c
gcc -DHAVE_CONFIG_H -I. -I../include     -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -W -Wall -Wunused-value  -g -O2 -c -o ssl.o ssl.c
ssl.c:50:10: fatal error: 'tls1.h' file not found
#include <tls1.h>
         ^
1 error generated.
make[1]: *** [ssl.o] Error 1
make: *** [all-recursive] Error 1
JoeDog commented 9 years ago

Do you have openssl installed? If you do, then you'll have to tell configure where it is because it didn't pick it up. Run configure --help to see how to do that...

On Thu, Sep 10, 2015, 5:33 PM Michael J. Ryan notifications@github.com wrote:

After gettienr autoconf, automake and libtools installed...

I ran utils/bootstrap then ./configure without issue... during make, I'm getting a few warnings and an error... Here's the output (OSX Yosimite and XCode 6.4)

Making all in . make[1]: Nothing to be done for all-am'. Making all in include /Applications/Xcode.app/Contents/Developer/usr/bin/make all-recursive Making all in joedog make[3]: Nothing to be done forall'. make[3]: Nothing to be done for all-am'. Making all in lib Making all in joedog /bin/sh ../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../include -W -Wall -Wunused-value -g -O2 -c -o memory.lo memory.c mkdir .libs gcc -DHAVE_CONFIG_H -I. -I../../include -W -Wall -Wunused-value -g -O2 -c memory.c -fno-common -DPIC -o .libs/memory.o gcc -DHAVE_CONFIG_H -I. -I../../include -W -Wall -Wunused-value -g -O2 -c memory.c -o memory.o >/dev/null 2>&1 /bin/sh ../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../include -W -Wall -Wunused-value -g -O2 -c -o notify.lo notify.c gcc -DHAVE_CONFIG_H -I. -I../../include -W -Wall -Wunused-value -g -O2 -c notify.c -fno-common -DPIC -o .libs/notify.o gcc -DHAVE_CONFIG_H -I. -I../../include -W -Wall -Wunused-value -g -O2 -c notify.c -o notify.o >/dev/null 2>&1 /bin/sh ../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../include -W -Wall -Wunused-value -g -O2 -c -o perl.lo perl.c gcc -DHAVE_CONFIG_H -I. -I../../include -W -Wall -Wunused-value -g -O2 -c perl.c -fno-common -DPIC -o .libs/perl.o gcc -DHAVE_CONFIG_H -I. -I../../include -W -Wall -Wunused-value -g -O2 -c perl.c -o perl.o >/dev/null 2>&1 /bin/sh ../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../include -W -Wall -Wunused-value -g -O2 -c -o util.lo util.c gcc -DHAVE_CONFIG_H -I. -I../../include -W -Wall -Wunused-value -g -O2 -c util.c -fno-common -DPIC -o .libs/util.o gcc -DHAVE_CONFIG_H -I. -I../../include -W -Wall -Wunused-value -g -O2 -c util.c -o util.o >/dev/null 2>&1 /bin/sh ../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../include -W -Wall -Wunused-value -g -O2 -c -o snprintf.lo snprintf.c gcc -DHAVE_CONFIG_H -I. -I../../include -W -Wall -Wunused-value -g -O2 -c snprintf.c -fno-common -DPIC -o .libs/snprintf.o gcc -DHAVE_CONFIG_H -I. -I../../include -W -Wall -Wunused-value -g -O2 -c snprintf.c -o snprintf.o >/dev/null 2>&1 /bin/sh ../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../include -W -Wall -Wunused-value -g -O2 -c -o stralloc.lo stralloc.c gcc -DHAVE_CONFIG_H -I. -I../../include -W -Wall -Wunused-value -g -O2 -c stralloc.c -fno-common -DPIC -o .libs/stralloc.o gcc -DHAVE_CONFIG_H -I. -I../../include -W -Wall -Wunused-value -g -O2 -c stralloc.c -o stralloc.o >/dev/null 2>&1 /bin/sh ../../libtool --tag=CC --mode=link gcc -W -Wall -Wunused-value -g -O2 -version-info 1:0:1 -o libjoedog.la memory.lo notify.lo perl.lo util.lo snprintf.lo stralloc.lo libtool: link: warning:-version-info/-version-number' is ignored for convenience libraries ar cru .libs/libjoedog.a .libs/memory.o .libs/notify.o .libs/perl.o .libs/util.o .libs/snprintf.o .libs/stralloc.o /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: .libs/libjoedog.a(snprintf.o) has no symbols ranlib .libs/libjoedog.a /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: .libs/libjoedog.a(snprintf.o) has no symbols creating libjoedog.la (cd .libs && rm -f libjoedog.la && ln -s ../libjoedog.la libjoedog.la) make[2]: Nothing to be done for `all-am'. Making all in src gcc -DHAVE_CONFIG_H -I. -I../include -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -W -Wall -Wunused-value -g -O2 -c -o array.o array.c gcc -DHAVE_CONFIG_H -I. -I../include -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -W -Wall -Wunused-value -g -O2 -c -o auth.o auth.c auth.c:130:23: warning: unused function 'mkhash' [-Wunused-function] private void mkhash(const char _pass, unsigned char nonce, unsigned char lmresp, unsigned char ntresp); ^ 1 warning generated. gcc -DHAVE_CONFIG_H -I. -I../include -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -W -Wall -Wunused-value -g -O2 -c -o base64.o base64.c gcc -DHAVE_CONFIG_H -I. -I../include -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -W -Wall -Wunused-value -g -O2 -c -o client.o client.c gcc -DHAVE_CONFIG_H -I. -I../include -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -W -Wall -Wunused-value -g -O2 -c -o cookie.o cookie.c gcc -DHAVE_CONFIG_H -I. -I../include -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -W -Wall -Wunused-value -g -O2 -c -o cfg.o cfg.c gcc -DHAVE_CONFIG_H -I. -I../include -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -W -Wall -Wunused-value -g -O2 -c -o creds.o creds.c gcc -DHAVE_CONFIG_H -I. -I../include -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -W -Wall -Wunused-value -g -O2 -c -o crew.o crew.c gcc -DHAVE_CONFIG_H -I. -I../include -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -W -Wall -Wunused-value -g -O2 -c -o data.o data.c gcc -DHAVE_CONFIG_H -I. -I../include -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -W -Wall -Wunused-value -g -O2 -c -o date.o date.c gcc -DHAVE_CONFIG_H -I. -I../include -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -W -Wall -Wunused-value -g -O2 -c -o eval.o eval.c gcc -DHAVE_CONFIG_H -I. -I../include -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -W -Wall -Wunused-value -g -O2 -c -o ftp.o ftp.c ftp.c:146:11: warning: incompatible pointer to integer conversion initializing 'size_t' (aka 'unsigned long') with an expression of type 'pthread_t' (aka 'struct _opaque_pthread_t ') [-Wint-conversion] size_t id = pthread_self(); ^ ~~~~~~ ftp.c:236:7: warning: variable 'bytes' is uninitialized when used here [-Wuninitialized] bytes += n; ^~~~~ ftp.c:223:13: note: initialize the variable 'bytes' to silence this warning int bytes; ^ = 0 2 warnings generated. gcc -DHAVE_CONFIG_H -I. -I../include -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -W -Wall -Wunused-value -g -O2 -c -o getopt.o getopt.c gcc -DHAVE_CONFIG_H -I. -I../include -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -W -Wall -Wunused-value -g -O2 -c -o getopt1.o getopt1.c gcc -DHAVE_CONFIG_H -I. -I../include -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -W -Wall -Wunused-value -g -O2 -c -o handler.o handler.c gcc -DHAVE_CONFIG_H -I. -I../include -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -W -Wall -Wunused-value -g -O2 -c -o hash.o hash.c gcc -DHAVE_CONFIG_H -I. -I../include -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -W -Wall -Wunused-value -g -O2 -c -o http.o http.c gcc -DHAVE_CONFIG_H -I. -I../include -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -W -Wall -Wunused-value -g -O2 -c -o init.o init.c init.c:182:54: warning: comparison of array 'my.logfile' equal to a null pointer is always false [-Wtautological-pointer-compare] printf("log file: %s\n", (my.logfile == NULL) ? LOG_FILE : my.logfile);


1 warning generated.
gcc -DHAVE_CONFIG_H -I. -I../include     -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -W -Wall -Wunused-value  -g -O2 -c -o load.o load.c
gcc -DHAVE_CONFIG_H -I. -I../include     -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -W -Wall -Wunused-value  -g -O2 -c -o log.o log.c
gcc -DHAVE_CONFIG_H -I. -I../include     -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -W -Wall -Wunused-value  -g -O2 -c -o main.o main.c
gcc -DHAVE_CONFIG_H -I. -I../include     -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -W -Wall -Wunused-value  -g -O2 -c -o md5.o md5.c
gcc -DHAVE_CONFIG_H -I. -I../include     -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -W -Wall -Wunused-value  -g -O2 -c -o sock.o sock.c
gcc -DHAVE_CONFIG_H -I. -I../include     -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -W -Wall -Wunused-value  -g -O2 -c -o ssl.o ssl.c
ssl.c:50:10: fatal error: 'tls1.h' file not found
#include <tls1.h>
         ^
1 error generated.
make[1]: *_\* [ssl.o] Error 1
make: **\* [all-recursive] Error 1

—
Reply to this email directly or view it on GitHub
https://github.com/JoeDog/siege/issues/30.
claudiojulioferraz commented 9 years ago

I am using linux. It is giving the same error, even when --without-ssl use. Using Google Translator.

JoeDog commented 9 years ago

Quick work around: build without-ssl and in remove this from ssl.c

include

I'll get source release and repository fixed up soon.

On Tue, Sep 15, 2015 at 3:59 PM, Cláudio Júlio Ferraz < notifications@github.com> wrote:

I am using linux. It is giving the same error, even when --without-ssl use. Using Google Translator.

— Reply to this email directly or view it on GitHub https://github.com/JoeDog/siege/issues/30#issuecomment-140519342.