Browse code

fix mingw compilation error

git-svn-id: file:///home/git/hedgehog.fhcrc.org/bioconductor/trunk/madman/Rpacks/seqbias@52987 bc3139a8-67e5-0310-9ffc-ced21a209358

Daniel Jones authored on 18/02/2011 20:32:21
Showing 2 changed files

... ...
@@ -10,11 +10,11 @@ generated by GNU Autoconf 2.67.  Invocation command line was
10 10
 ## Platform. ##
11 11
 ## --------- ##
12 12
 
13
-hostname = dtp2
13
+hostname = datahorse
14 14
 uname -m = i686
15
-uname -r = 2.6.35-25-generic-pae
15
+uname -r = 2.6.28-15-generic
16 16
 uname -s = Linux
17
-uname -v = #44-Ubuntu SMP Fri Jan 21 19:01:46 UTC 2011
17
+uname -v = #49-Ubuntu SMP Tue Aug 18 18:40:08 UTC 2009
18 18
 
19 19
 /usr/bin/uname -p = unknown
20 20
 /bin/uname -X     = unknown
... ...
@@ -28,9 +28,17 @@ uname -v = #44-Ubuntu SMP Fri Jan 21 19:01:46 UTC 2011
28 28
 /bin/universe          = unknown
29 29
 
30 30
 PATH: /home/dcjones/bin
31
-PATH: /home/dcjones/bin/i686
31
+PATH: /opt/local/sbin
32
+PATH: /opt/local/bin
33
+PATH: /usr/local/mysql/bin
34
+PATH: /usr/local/tomcat/bin
35
+PATH: /usr/local/ant/bin
36
+PATH: /usr/local/groovy/bin
37
+PATH: /usr/local/grails/bin
38
+PATH: /usr/local/tomcat/bin
39
+PATH: .
40
+PATH: /usr/local/scala/bin
32 41
 PATH: /home/dcjones/src/kent/built/bin/i386
33
-PATH: /home/dcjones/.cabal/bin
34 42
 PATH: /usr/local/sbin
35 43
 PATH: /usr/local/bin
36 44
 PATH: /usr/sbin
... ...
@@ -49,18 +57,18 @@ configure:2170: found /usr/bin/gcc
49 57
 configure:2181: result: gcc
50 58
 configure:2410: checking for C compiler version
51 59
 configure:2419: gcc --version >&5
52
-gcc (Ubuntu/Linaro 4.4.4-14ubuntu5) 4.4.5
53
-Copyright (C) 2010 Free Software Foundation, Inc.
60
+gcc (Ubuntu 4.3.3-5ubuntu4) 4.3.3
61
+Copyright (C) 2008 Free Software Foundation, Inc.
54 62
 This is free software; see the source for copying conditions.  There is NO
55 63
 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
56 64
 
57 65
 configure:2430: $? = 0
58 66
 configure:2419: gcc -v >&5
59 67
 Using built-in specs.
60
-Target: i686-linux-gnu
61
-Configured with: ../src/configure -v --with-pkgversion='Ubuntu/Linaro 4.4.4-14ubuntu5' --with-bugurl=file:///usr/share/doc/gcc-4.4/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.4 --enable-shared --enable-multiarch --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.4 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc --enable-targets=all --disable-werror --with-arch-32=i686 --with-tune=generic --enable-checking=release --build=i686-linux-gnu --host=i686-linux-gnu --target=i686-linux-gnu
68
+Target: i486-linux-gnu
69
+Configured with: ../src/configure -v --with-pkgversion='Ubuntu 4.3.3-5ubuntu4' --with-bugurl=file:///usr/share/doc/gcc-4.3/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --enable-shared --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls --with-gxx-include-dir=/usr/include/c++/4.3 --program-suffix=-4.3 --enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc --enable-mpfr --enable-targets=all --with-tune=generic --enable-checking=release --build=i486-linux-gnu --host=i486-linux-gnu --target=i486-linux-gnu
62 70
 Thread model: posix
63
-gcc version 4.4.5 (Ubuntu/Linaro 4.4.4-14ubuntu5) 
71
+gcc version 4.3.3 (Ubuntu 4.3.3-5ubuntu4) 
64 72
 configure:2430: $? = 0
65 73
 configure:2419: gcc -V >&5
66 74
 gcc: '-V' option must have argument
... ...
@@ -118,7 +126,7 @@ configure:2948: result: yes
118 126
 configure:2948: checking for pow
119 127
 configure:2948: gcc -o conftest -g -O2   conftest.c -lz  >&5
120 128
 conftest.c:35: warning: conflicting types for built-in function 'pow'
121
-/tmp/ccEJjBMZ.o: In function `main':
129
+/tmp/ccEcPBa3.o: In function `main':
122 130
 /home/dcjones/bio/seqbias/conftest.c:46: undefined reference to `pow'
123 131
 collect2: ld returned 1 exit status
124 132
 configure:2948: $? = 1
... ...
@@ -176,7 +184,7 @@ configure:2948: result: no
176 184
 configure:2948: checking for sqrt
177 185
 configure:2948: gcc -o conftest -g -O2   conftest.c -lz  >&5
178 186
 conftest.c:35: warning: conflicting types for built-in function 'sqrt'
179
-/tmp/ccxSUiW2.o: In function `main':
187
+/tmp/ccMe3Krm.o: In function `main':
180 188
 /home/dcjones/bio/seqbias/conftest.c:46: undefined reference to `sqrt'
181 189
 collect2: ld returned 1 exit status
182 190
 configure:2948: $? = 1
... ...
@@ -254,8 +262,7 @@ configure:2962: checking how to run the C preprocessor
254 262
 configure:2993: gcc -E  conftest.c
255 263
 configure:2993: $? = 0
256 264
 configure:3007: gcc -E  conftest.c
257
-conftest.c:16: fatal error: ac_nonexistent.h: No such file or directory
258
-compilation terminated.
265
+conftest.c:16:28: error: ac_nonexistent.h: No such file or directory
259 266
 configure:3007: $? = 1
260 267
 configure: failed program was:
261 268
 | /* confdefs.h */
... ...
@@ -278,8 +285,7 @@ configure:3032: result: gcc -E
278 285
 configure:3052: gcc -E  conftest.c
279 286
 configure:3052: $? = 0
280 287
 configure:3066: gcc -E  conftest.c
281
-conftest.c:16: fatal error: ac_nonexistent.h: No such file or directory
282
-compilation terminated.
288
+conftest.c:16:28: error: ac_nonexistent.h: No such file or directory
283 289
 configure:3066: $? = 1
284 290
 configure: failed program was:
285 291
 | /* confdefs.h */
... ...
@@ -777,7 +783,7 @@ generated by GNU Autoconf 2.67.  Invocation command line was
777 783
   CONFIG_COMMANDS = 
778 784
   $ ./config.status 
779 785
 
780
-on dtp2
786
+on datahorse
781 787
 
782 788
 config.status:734: creating src/Makevars
783 789
 
... ...
@@ -256,7 +256,7 @@ typedef struct {
256 256
 		int i, j;														\
257 257
 		for (i = n; i > 1; --i) {										\
258 258
 			type_t tmp;													\
259
-			j = (int)(drand48() * i);									\
259
+			j = (int)((float)rand() / (float)RAND_MAX * i);									\
260 260
 			tmp = a[j]; a[j] = a[i-1]; a[i-1] = tmp;					\
261 261
 		}																\
262 262
 	}