[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#665407: siege: FTBFS[!linux] problematic private definittion of INT_MAX

Package: src:siege
Version: 2.70-2
Severity: serious
Tags: sid wheezy patch
User: debian-bsd@lists.debian.org
Usertags: kfreebsd
X-Debbugs-Cc: debian-bsd@lists.debian.org
Justification: fails to build from source (but built successfully in the past)


Your package failed to build on the kfreebsd-* buildds:

gcc -DHAVE_CONFIG_H -I. -I. -I../include -I/usr/include/openssl -I/usr/include  -I/usr/include/openssl -I/usr/include -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -W -Wall -DOPENSSL_NO_KRB5 -g -O2 -c client.c
In file included from /usr/include/limits.h:153:0,
                 from /usr/lib/gcc/x86_64-kfreebsd-gnu/4.6/include-fixed/limits.h:169,
                 from /usr/lib/gcc/x86_64-kfreebsd-gnu/4.6/include-fixed/syslimits.h:7,
                 from /usr/lib/gcc/x86_64-kfreebsd-gnu/4.6/include-fixed/limits.h:34,
                 from /usr/include/x86_64-kfreebsd-gnu/bits/socket.h:31,
                 from /usr/include/x86_64-kfreebsd-gnu/sys/socket.h:40,
                 from /usr/include/netinet/in.h:25,
                 from ./client.h:31,
                 from client.c:24:
/usr/include/x86_64-kfreebsd-gnu/bits/xopen_lim.h:95:6: error: missing binary operator before token "("
/usr/include/x86_64-kfreebsd-gnu/bits/xopen_lim.h:98:7: error: missing binary operator before token "("
client.c: In function 'http_request':
client.c:193:12: warning: variable 'len' set but not used [-Wunused-but-set-variable]
make[2]: *** [client.o] Error 1

#ifndef INT_MIN
# define INT_MIN (~0 << (sizeof (int) * CHAR_BIT - 1))
#ifndef INT_MAX
# define INT_MAX (~0 - INT_MIN)

This breaks simple 
# if INT_MAX == 32767

including limits.h so INT_MAX is already defined and doesn't get set to
this insane value. (Note: some of these #include <limits.h> are guarded
by HAVE_LIMITS_H, some are not)

Full build log at



If you have further questions please mail debian-bsd@lists.debian.org

--- siege-2.70.orig/src/setup.h
+++ siege-2.70/src/setup.h
@@ -33,6 +33,7 @@
 #include <pthread.h>
 #include <ctype.h>
 #include <stdarg.h>
+#include <limits.h>
 # include <sys/wait.h>

9FED 5C6C E206 B70A 5857  70CA 9655 22B9 D49A E731
Debian Developer | Lisp Hacker | CaCert Assurer

Reply to: