Package: evolver
Severity: serious
Tags: patch
Justification: no longer builds from source


Evolver fails to build using gcc-3.4:

cc  -DLINUX -DOOGL -DPTHREADS -c  calcforc.c
In file included from calcforc.c:15:
include.h:143: error: conflicting types for 'calloc'
include.h:143: error: conflicting types for 'calloc'
include.h:145: error: conflicting types for 'bsearch'
/usr/include/stdlib.h:739: error: previous declaration of 'bsearch' was here
include.h:145: error: conflicting types for 'bsearch'
/usr/include/stdlib.h:739: error: previous declaration of 'bsearch' was here


The following patch fixes it.


--- src/include.h.orig  2005-07-08 02:20:00.000000000 -0700
+++ src/include.h       2005-07-08 02:20:20.000000000 -0700
@@ -138,12 +138,6 @@
 #define is_finite(x) (((x)>(-1e300))&&((x)<1e300)) 
 /* MAXALLOC is maximum size allocable by calloc() */
 #define    MAXALLOC 0x7FFFFFFFL
-/* Some don't declare calloc, getenv, and bsearch in header files */
-#ifndef MAC_OS_X
-char *calloc();
-char *getenv();
-char *bsearch();
-#endif
 /* PATHCHAR is name-separating character in paths */
 #define PATHCHAR '/'
 /* ENVPATHCHAR is the path separating character in environment strings */




-- System Information:
Debian Release: 3.1
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.6.11-perfctr-2.6.13-bmc
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to