Cross Compiling jscoverage 0.5.1 for Linux

Questions, problems, suggestions, bug reports, and so on.
Post Reply
Kristian

Cross Compiling jscoverage 0.5.1 for Linux

Post by Kristian » 2011-07-28 5:36 pm

Hi all,

I am attempting to cross compile jscoverage on Windows for use on Linux (Ubuntu). I've installed Cygwin and have downloaded and installed the cross compiler found at http://metamod-p.sourceforge.net/cross- ... linux.html. Jscoverage is located at C:\cygwin\jscoverage-0.5.1.

When I run

Code: Select all

./configure --build i686-pc-cygwin --host i386-unknown-linux-gnu
I receive the following errors

Code: Select all

configure: error: Couldn’t find a 1-byte type
configure: error: ./configure.gnu failed for js
Here is the entire config log for further reference:

Code: Select all

This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by jscoverage configure 0.5.1, which was
generated by GNU Autoconf 2.67.  Invocation command line was

  $ ./configure --build i686-pc-cygwin --host i386-unknown-linux-gnu

## --------- ##
## Platform. ##
## --------- ##

hostname = C0500615-00
uname -m = i686
uname -r = 1.7.9(0.237/5/3)
uname -s = CYGWIN_NT-6.1-WOW64
uname -v = 2011-03-29 10:10

/usr/bin/uname -p = unknown
/bin/uname -X     = unknown

/bin/arch              = i686
/usr/bin/arch -k       = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo      = unknown
/bin/machine           = unknown
/usr/bin/oslevel       = unknown
/bin/universe          = unknown

PATH: /usr/local/bin
PATH: /usr/bin
PATH: /cygdrive/c/Windows/system32
PATH: /cygdrive/c/Windows
PATH: /cygdrive/c/Windows/System32/Wbem
PATH: /cygdrive/c/Windows/System32/WindowsPowerShell/v1.0
PATH: /cygdrive/c/Program Files/Perforce
PATH: /cygdrive/c/Program Files (x86)/Microsoft SQL Server/100/Tools/Binn
PATH: /cygdrive/c/Program Files/Microsoft SQL Server/100/Tools/Binn
PATH: /cygdrive/c/Program Files/Microsoft SQL Server/100/DTS/Binn
PATH: /cygdrive/c/Program Files/SlikSvn/bin
PATH: /cygdrive/c/PHP
PATH: /usr/lib/lapack


## ----------- ##
## Core tests. ##
## ----------- ##

configure:2226: checking for a BSD-compatible install
configure:2294: result: /usr/bin/install -c
configure:2305: checking whether build environment is sane
configure:2355: result: yes
configure:2404: checking for i386-unknown-linux-gnu-strip
configure:2434: result: no
configure:2444: checking for strip
configure:2460: found /usr/bin/strip
configure:2471: result: strip
configure:2483: WARNING: using cross tools not prefixed with host triplet
configure:2496: checking for a thread-safe mkdir -p
configure:2535: result: /usr/bin/mkdir -p
configure:2548: checking for gawk
configure:2564: found /usr/bin/gawk
configure:2575: result: gawk
configure:2586: checking whether make sets $(MAKE)
configure:2608: result: yes
configure:2695: checking build system type
configure:2709: result: i686-pc-cygwin
configure:2729: checking host system type
configure:2742: result: i386-unknown-linux-gnu
configure:2772: checking for i386-unknown-linux-gnu-gcc
configure:2802: result: no
configure:2812: checking for gcc
configure:2828: found /usr/bin/gcc
configure:2839: result: gcc
configure:3068: checking for C compiler version
configure:3077: gcc --version >&5
gcc (GCC) 4.3.4 20090804 (release) 1
Copyright (C) 2008 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:3088: $? = 0
configure:3077: gcc -v >&5
Using built-in specs.
Target: i686-pc-cygwin
Configured with: /gnu/gcc/releases/respins/4.3.4-4/gcc4-4.3.4-4/src/gcc-4.3.4/configure --srcdir=/gnu/gcc/releases/respins/4.3.4-4/gcc4-4.3.4-4/src/gcc-4.3.4 --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --libexecdir=/usr/lib --datadir=/usr/share --localstatedir=/var --sysconfdir=/etc --infodir=/usr/share/info --mandir=/usr/share/man -C --datadir=/usr/share --infodir=/usr/share/info --mandir=/usr/share/man -v --with-gmp=/usr --with-mpfr=/usr --enable-bootstrap --enable-version-specific-runtime-libs --with-slibdir=/usr/bin --libexecdir=/usr/lib --enable-static --enable-shared --enable-shared-libgcc --disable-__cxa_atexit --with-gnu-ld --with-gnu-as --with-dwarf2 --disable-sjlj-exceptions --enable-languages=ada,c,c++,fortran,java,objc,obj-c++ --disable-symvers --enable-libjava --program-suffix=-4 --enable-libgomp --enable-libssp --enable-libada --enable-threads=posix --with-arch=i686 --with-tune=generic --enable-libgcj-sublibs CC=gcc-4 CXX=g++-4 CC_FOR_TARGET=gcc-4 CXX_FOR_TARGET=g++-4 GNATMAKE_FOR_TARGET=gnatmake GNATBIND_FOR_TARGET=gnatbind --with-ecj-jar=/usr/share/java/ecj.jar
Thread model: posix
gcc version 4.3.4 20090804 (release) 1 (GCC) 
configure:3088: $? = 0
configure:3077: gcc -V >&5
gcc: '-V' option must have argument
configure:3088: $? = 1
configure:3077: gcc -qversion >&5
gcc: unrecognized option '-qversion'
gcc: no input files
configure:3088: $? = 1
configure:3108: checking whether the C compiler works
configure:3130: gcc    conftest.c  >&5
configure:3134: $? = 0
configure:3182: result: yes
configure:3185: checking for C compiler default output file name
configure:3187: result: a.exe
configure:3193: checking for suffix of executables
configure:3200: gcc -o conftest.exe    conftest.c  >&5
configure:3204: $? = 0
configure:3226: result: .exe
configure:3248: checking whether we are cross compiling
configure:3286: result: yes
configure:3291: checking for suffix of object files
configure:3313: gcc -c   conftest.c >&5
configure:3317: $? = 0
configure:3338: result: o
configure:3342: checking whether we are using the GNU C compiler
configure:3361: gcc -c   conftest.c >&5
configure:3361: $? = 0
configure:3370: result: yes
configure:3379: checking whether gcc accepts -g
configure:3399: gcc -c -g  conftest.c >&5
configure:3399: $? = 0
configure:3440: result: yes
configure:3457: checking for gcc option to accept ISO C89
configure:3521: gcc  -c -g -O2  conftest.c >&5
configure:3521: $? = 0
configure:3534: result: none needed
configure:3565: checking for style of include used by make
configure:3593: result: GNU
configure:3618: checking dependency style of gcc
configure:3728: result: gcc3
configure:3743: checking for gcc option to accept ISO C99
configure:3892: gcc  -c -g -O2  conftest.c >&5
conftest.c:61: error: expected ';', ',' or ')' before 'text'
conftest.c: In function 'main':
conftest.c:115: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'newvar'
conftest.c:115: error: 'newvar' undeclared (first use in this function)
conftest.c:115: error: (Each undeclared identifier is reported only once
conftest.c:115: error: for each function it appears in.)
conftest.c:125: error: 'for' loop initial declaration used outside C99 mode
configure:3892: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "jscoverage"
| #define PACKAGE_TARNAME "jscoverage"
| #define PACKAGE_VERSION "0.5.1"
| #define PACKAGE_STRING "jscoverage 0.5.1"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| #define PACKAGE "jscoverage"
| #define VERSION "0.5.1"
| /* end confdefs.h.  */
| #include <stdarg.h>
| #include <stdbool.h>
| #include <stdlib.h>
| #include <wchar.h>
| #include <stdio.h>
| 
| // Check varargs macros.  These examples are taken from C99 6.10.3.5.
| #define debug(...) fprintf (stderr, __VA_ARGS__)
| #define showlist(...) puts (#__VA_ARGS__)
| #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
| static void
| test_varargs_macros (void)
| {
|   int x = 1234;
|   int y = 5678;
|   debug ("Flag");
|   debug ("X = %d\n", x);
|   showlist (The first, second, and third items.);
|   report (x>y, "x is %d but y is %d", x, y);
| }
| 
| // Check long long types.
| #define BIG64 18446744073709551615ull
| #define BIG32 4294967295ul
| #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
| #if !BIG_OK
|   your preprocessor is broken;
| #endif
| #if BIG_OK
| #else
|   your preprocessor is broken;
| #endif
| static long long int bignum = -9223372036854775807LL;
| static unsigned long long int ubignum = BIG64;
| 
| struct incomplete_array
| {
|   int datasize;
|   double data[];
| };
| 
| struct named_init {
|   int number;
|   const wchar_t *name;
|   double average;
| };
| 
| typedef const char *ccp;
| 
| static inline int
| test_restrict (ccp restrict text)
| {
|   // See if C++-style comments work.
|   // Iterate through items via the restricted pointer.
|   // Also check for declarations in for loops.
|   for (unsigned int i = 0; *(text+i) != '\0'; ++i)
|     continue;
|   return 0;
| }
| 
| // Check varargs and va_copy.
| static void
| test_varargs (const char *format, ...)
| {
|   va_list args;
|   va_start (args, format);
|   va_list args_copy;
|   va_copy (args_copy, args);
| 
|   const char *str;
|   int number;
|   float fnumber;
| 
|   while (*format)
|     {
|       switch (*format++)
| 	{
| 	case 's': // string
| 	  str = va_arg (args_copy, const char *);
| 	  break;
| 	case 'd': // int
| 	  number = va_arg (args_copy, int);
| 	  break;
| 	case 'f': // float
| 	  fnumber = va_arg (args_copy, double);
| 	  break;
| 	default:
| 	  break;
| 	}
|     }
|   va_end (args_copy);
|   va_end (args);
| }
| 
| int
| main ()
| {
| 
|   // Check bool.
|   _Bool success = false;
| 
|   // Check restrict.
|   if (test_restrict ("String literal") == 0)
|     success = true;
|   char *restrict newvar = "Another string";
| 
|   // Check varargs.
|   test_varargs ("s, d' f .", "string", 65, 34.234);
|   test_varargs_macros ();
| 
|   // Check flexible array members.
|   struct incomplete_array *ia =
|     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
|   ia->datasize = 10;
|   for (int i = 0; i < ia->datasize; ++i)
|     ia->data[i] = i * 1.234;
| 
|   // Check named initializers.
|   struct named_init ni = {
|     .number = 34,
|     .name = L"Test wide string",
|     .average = 543.34343,
|   };
| 
|   ni.number = 58;
| 
|   int dynamic_array[ni.number];
|   dynamic_array[ni.number - 1] = 543;
| 
|   // work around unused variable warnings
|   return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
| 	  || dynamic_array[ni.number - 1] != 543);
| 
|   ;
|   return 0;
| }
configure:3892: gcc -std=gnu99 -c -g -O2  conftest.c >&5
configure:3892: $? = 0
configure:3912: result: -std=gnu99
configure:3934: checking for i386-unknown-linux-gnu-g++
configure:3964: result: no
configure:3934: checking for i386-unknown-linux-gnu-c++
configure:3964: result: no
configure:3934: checking for i386-unknown-linux-gnu-gpp
configure:3964: result: no
configure:3934: checking for i386-unknown-linux-gnu-aCC
configure:3964: result: no
configure:3934: checking for i386-unknown-linux-gnu-CC
configure:3964: result: no
configure:3934: checking for i386-unknown-linux-gnu-cxx
configure:3964: result: no
configure:3934: checking for i386-unknown-linux-gnu-cc++
configure:3964: result: no
configure:3934: checking for i386-unknown-linux-gnu-cl.exe
configure:3964: result: no
configure:3934: checking for i386-unknown-linux-gnu-FCC
configure:3964: result: no
configure:3934: checking for i386-unknown-linux-gnu-KCC
configure:3964: result: no
configure:3934: checking for i386-unknown-linux-gnu-RCC
configure:3964: result: no
configure:3934: checking for i386-unknown-linux-gnu-xlC_r
configure:3964: result: no
configure:3934: checking for i386-unknown-linux-gnu-xlC
configure:3964: result: no
configure:3978: checking for g++
configure:3994: found /usr/bin/g++
configure:4005: result: g++
configure:4032: checking for C++ compiler version
configure:4041: g++ --version >&5
g++ (GCC) 4.3.4 20090804 (release) 1
Copyright (C) 2008 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:4052: $? = 0
configure:4041: g++ -v >&5
Using built-in specs.
Target: i686-pc-cygwin
Configured with: /gnu/gcc/releases/respins/4.3.4-4/gcc4-4.3.4-4/src/gcc-4.3.4/configure --srcdir=/gnu/gcc/releases/respins/4.3.4-4/gcc4-4.3.4-4/src/gcc-4.3.4 --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --libexecdir=/usr/lib --datadir=/usr/share --localstatedir=/var --sysconfdir=/etc --infodir=/usr/share/info --mandir=/usr/share/man -C --datadir=/usr/share --infodir=/usr/share/info --mandir=/usr/share/man -v --with-gmp=/usr --with-mpfr=/usr --enable-bootstrap --enable-version-specific-runtime-libs --with-slibdir=/usr/bin --libexecdir=/usr/lib --enable-static --enable-shared --enable-shared-libgcc --disable-__cxa_atexit --with-gnu-ld --with-gnu-as --with-dwarf2 --disable-sjlj-exceptions --enable-languages=ada,c,c++,fortran,java,objc,obj-c++ --disable-symvers --enable-libjava --program-suffix=-4 --enable-libgomp --enable-libssp --enable-libada --enable-threads=posix --with-arch=i686 --with-tune=generic --enable-libgcj-sublibs CC=gcc-4 CXX=g++-4 CC_FOR_TARGET=gcc-4 CXX_FOR_TARGET=g++-4 GNATMAKE_FOR_TARGET=gnatmake GNATBIND_FOR_TARGET=gnatbind --with-ecj-jar=/usr/share/java/ecj.jar
Thread model: posix
gcc version 4.3.4 20090804 (release) 1 (GCC) 
configure:4052: $? = 0
configure:4041: g++ -V >&5
g++: '-V' option must have argument
configure:4052: $? = 1
configure:4041: g++ -qversion >&5
g++: unrecognized option '-qversion'
g++: no input files
configure:4052: $? = 1
configure:4056: checking whether we are using the GNU C++ compiler
configure:4075: g++ -c   conftest.cpp >&5
configure:4075: $? = 0
configure:4084: result: yes
configure:4093: checking whether g++ accepts -g
configure:4113: g++ -c -g  conftest.cpp >&5
configure:4113: $? = 0
configure:4154: result: yes
configure:4179: checking dependency style of g++
configure:4289: result: gcc3
configure:4353: checking for ld used by GCC
configure:4417: result: /usr/i686-pc-cygwin/bin/ld.exe
configure:4424: checking if the linker (/usr/i686-pc-cygwin/bin/ld.exe) is GNU ld
configure:4437: result: yes
configure:4444: checking for shared library run path origin
configure:4457: result: done
configure:4966: checking for iconv
configure:4988: gcc -std=gnu99 -o conftest.exe -g -O2   conftest.c  >&5
/tmp/ccYsLfXS.o: In function `main':
/jscoverage-0.5.1/conftest.c:16: undefined reference to `_libiconv_open'
/jscoverage-0.5.1/conftest.c:17: undefined reference to `_libiconv'
/jscoverage-0.5.1/conftest.c:18: undefined reference to `_libiconv_close'
collect2: ld returned 1 exit status
configure:4988: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "jscoverage"
| #define PACKAGE_TARNAME "jscoverage"
| #define PACKAGE_VERSION "0.5.1"
| #define PACKAGE_STRING "jscoverage 0.5.1"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| #define PACKAGE "jscoverage"
| #define VERSION "0.5.1"
| /* end confdefs.h.  */
| #include <stdlib.h>
| #include <iconv.h>
| int
| main ()
| {
| iconv_t cd = iconv_open("","");
|        iconv(cd,NULL,NULL,NULL,NULL);
|        iconv_close(cd);
|   ;
|   return 0;
| }
configure:5010: gcc -std=gnu99 -o conftest.exe -g -O2   conftest.c  -liconv >&5
configure:5010: $? = 0
configure:5020: result: yes
configure:5023: checking for working iconv
configure:5111: result: guessing yes
configure:5126: checking how to link with libiconv
configure:5128: result: -liconv
configure:5139: checking for iconv declaration
configure:5168: gcc -std=gnu99 -c -g -O2  conftest.c >&5
configure:5168: $? = 0
configure:5179: result: 
         extern size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
configure:5196: checking how to run the C preprocessor
configure:5227: gcc -std=gnu99 -E  conftest.c
configure:5227: $? = 0
configure:5241: gcc -std=gnu99 -E  conftest.c
conftest.c:13:28: error: ac_nonexistent.h: No such file or directory
configure:5241: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "jscoverage"
| #define PACKAGE_TARNAME "jscoverage"
| #define PACKAGE_VERSION "0.5.1"
| #define PACKAGE_STRING "jscoverage 0.5.1"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| #define PACKAGE "jscoverage"
| #define VERSION "0.5.1"
| #define HAVE_ICONV 1
| #define ICONV_CONST 
| /* end confdefs.h.  */
| #include <ac_nonexistent.h>
configure:5266: result: gcc -std=gnu99 -E
configure:5286: gcc -std=gnu99 -E  conftest.c
configure:5286: $? = 0
configure:5300: gcc -std=gnu99 -E  conftest.c
conftest.c:13:28: error: ac_nonexistent.h: No such file or directory
configure:5300: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "jscoverage"
| #define PACKAGE_TARNAME "jscoverage"
| #define PACKAGE_VERSION "0.5.1"
| #define PACKAGE_STRING "jscoverage 0.5.1"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| #define PACKAGE "jscoverage"
| #define VERSION "0.5.1"
| #define HAVE_ICONV 1
| #define ICONV_CONST 
| /* end confdefs.h.  */
| #include <ac_nonexistent.h>
configure:5329: checking for grep that handles long lines and -e
configure:5387: result: /usr/bin/grep
configure:5392: checking for egrep
configure:5454: result: /usr/bin/grep -E
configure:5459: checking for ANSI C header files
configure:5479: gcc -std=gnu99 -c -g -O2  conftest.c >&5
configure:5479: $? = 0
configure:5563: result: yes
configure:5576: checking for sys/types.h
configure:5576: gcc -std=gnu99 -c -g -O2  conftest.c >&5
configure:5576: $? = 0
configure:5576: result: yes
configure:5576: checking for sys/stat.h
configure:5576: gcc -std=gnu99 -c -g -O2  conftest.c >&5
configure:5576: $? = 0
configure:5576: result: yes
configure:5576: checking for stdlib.h
configure:5576: gcc -std=gnu99 -c -g -O2  conftest.c >&5
configure:5576: $? = 0
configure:5576: result: yes
configure:5576: checking for string.h
configure:5576: gcc -std=gnu99 -c -g -O2  conftest.c >&5
configure:5576: $? = 0
configure:5576: result: yes
configure:5576: checking for memory.h
configure:5576: gcc -std=gnu99 -c -g -O2  conftest.c >&5
configure:5576: $? = 0
configure:5576: result: yes
configure:5576: checking for strings.h
configure:5576: gcc -std=gnu99 -c -g -O2  conftest.c >&5
configure:5576: $? = 0
configure:5576: result: yes
configure:5576: checking for inttypes.h
configure:5576: gcc -std=gnu99 -c -g -O2  conftest.c >&5
configure:5576: $? = 0
configure:5576: result: yes
configure:5576: checking for stdint.h
configure:5576: gcc -std=gnu99 -c -g -O2  conftest.c >&5
configure:5576: $? = 0
configure:5576: result: yes
configure:5576: checking for unistd.h
configure:5576: gcc -std=gnu99 -c -g -O2  conftest.c >&5
configure:5576: $? = 0
configure:5576: result: yes
configure:5590: checking pthread.h usability
configure:5590: gcc -std=gnu99 -c -g -O2  conftest.c >&5
configure:5590: $? = 0
configure:5590: result: yes
configure:5590: checking pthread.h presence
configure:5590: gcc -std=gnu99 -E  conftest.c
configure:5590: $? = 0
configure:5590: result: yes
configure:5590: checking for pthread.h
configure:5590: result: yes
configure:5602: checking iconv.h usability
configure:5602: gcc -std=gnu99 -c -g -O2  conftest.c >&5
configure:5602: $? = 0
configure:5602: result: yes
configure:5602: checking iconv.h presence
configure:5602: gcc -std=gnu99 -E  conftest.c
configure:5602: $? = 0
configure:5602: result: yes
configure:5602: checking for iconv.h
configure:5602: result: yes
configure:5614: checking windows.h usability
configure:5614: gcc -std=gnu99 -c -g -O2  conftest.c >&5
configure:5614: $? = 0
configure:5614: result: yes
configure:5614: checking windows.h presence
configure:5614: gcc -std=gnu99 -E  conftest.c
configure:5614: $? = 0
configure:5614: result: yes
configure:5614: checking for windows.h
configure:5614: result: yes
configure:5626: checking whether byte ordering is bigendian
configure:5641: gcc -std=gnu99 -c -g -O2  conftest.c >&5
conftest.c:27: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'a'
configure:5641: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "jscoverage"
| #define PACKAGE_TARNAME "jscoverage"
| #define PACKAGE_VERSION "0.5.1"
| #define PACKAGE_STRING "jscoverage 0.5.1"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| #define PACKAGE "jscoverage"
| #define VERSION "0.5.1"
| #define HAVE_ICONV 1
| #define ICONV_CONST 
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_PTHREAD_H 1
| #define HAVE_ICONV_H 1
| #define HAVE_WINDOWS_H 1
| /* end confdefs.h.  */
| #ifndef __APPLE_CC__
| 	       not a universal capable compiler
| 	     #endif
| 	     typedef int dummy;
| 
configure:5686: gcc -std=gnu99 -c -g -O2  conftest.c >&5
configure:5686: $? = 0
configure:5704: gcc -std=gnu99 -c -g -O2  conftest.c >&5
conftest.c: In function 'main':
conftest.c:33: error: 'not' undeclared (first use in this function)
conftest.c:33: error: (Each undeclared identifier is reported only once
conftest.c:33: error: for each function it appears in.)
conftest.c:33: error: expected ';' before 'big'
configure:5704: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "jscoverage"
| #define PACKAGE_TARNAME "jscoverage"
| #define PACKAGE_VERSION "0.5.1"
| #define PACKAGE_STRING "jscoverage 0.5.1"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| #define PACKAGE "jscoverage"
| #define VERSION "0.5.1"
| #define HAVE_ICONV 1
| #define ICONV_CONST 
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_PTHREAD_H 1
| #define HAVE_ICONV_H 1
| #define HAVE_WINDOWS_H 1
| /* end confdefs.h.  */
| #include <sys/types.h>
| 		#include <sys/param.h>
| 
| int
| main ()
| {
| #if BYTE_ORDER != BIG_ENDIAN
| 		 not big endian
| 		#endif
| 
|   ;
|   return 0;
| }
configure:5832: result: no
configure:5855: checking for getaddrinfo
configure:5855: gcc -std=gnu99 -o conftest.exe -g -O2   conftest.c  >&5
configure:5855: $? = 0
configure:5855: result: yes
configure:5855: checking for gethostbyname_r
configure:5855: gcc -std=gnu99 -o conftest.exe -g -O2   conftest.c  >&5
/tmp/ccgvYAQw.o: In function `main':
/jscoverage-0.5.1/conftest.c:61: undefined reference to `_gethostbyname_r'
collect2: ld returned 1 exit status
configure:5855: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "jscoverage"
| #define PACKAGE_TARNAME "jscoverage"
| #define PACKAGE_VERSION "0.5.1"
| #define PACKAGE_STRING "jscoverage 0.5.1"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| #define PACKAGE "jscoverage"
| #define VERSION "0.5.1"
| #define HAVE_ICONV 1
| #define ICONV_CONST 
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_PTHREAD_H 1
| #define HAVE_ICONV_H 1
| #define HAVE_WINDOWS_H 1
| #define HAVE_GETADDRINFO 1
| /* end confdefs.h.  */
| /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
|    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
| #define gethostbyname_r innocuous_gethostbyname_r
| 
| /* System header to define __stub macros and hopefully few prototypes,
|     which can conflict with char gethostbyname_r (); below.
|     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|     <limits.h> exists even on freestanding compilers.  */
| 
| #ifdef __STDC__
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
| 
| #undef gethostbyname_r
| 
| /* Override any GCC internal prototype to avoid an error.
|    Use char because int might match the return type of a GCC
|    builtin and then its argument prototype would still apply.  */
| #ifdef __cplusplus
| extern "C"
| #endif
| char gethostbyname_r ();
| /* The GNU C library defines this for functions which it implements
|     to always fail with ENOSYS.  Some functions are actually named
|     something starting with __ and the normal name is an alias.  */
| #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
| choke me
| #endif
| 
| int
| main ()
| {
| return gethostbyname_r ();
|   ;
|   return 0;
| }
configure:5855: result: no
configure:5855: checking for inet_aton
configure:5855: gcc -std=gnu99 -o conftest.exe -g -O2   conftest.c  >&5
configure:5855: $? = 0
configure:5855: result: yes
configure:5855: checking for strndup
configure:5855: gcc -std=gnu99 -o conftest.exe -g -O2   conftest.c  >&5
conftest.c:51: warning: conflicting types for built-in function 'strndup'
configure:5855: $? = 0
configure:5855: result: yes
configure:5855: checking for vasprintf
configure:5855: gcc -std=gnu99 -o conftest.exe -g -O2   conftest.c  >&5
configure:5855: $? = 0
configure:5855: result: yes
configure:5855: checking for asprintf
configure:5855: gcc -std=gnu99 -o conftest.exe -g -O2   conftest.c  >&5
configure:5855: $? = 0
configure:5855: result: yes
configure:5864: checking for MultiByteToWideChar
configure:5883: gcc -std=gnu99 -o conftest.exe -g -O2   conftest.c  >&5
configure:5883: $? = 0
configure:5888: result: yes
configure:6074: creating ./config.status

## ---------------------- ##
## Running config.status. ##
## ---------------------- ##

This file was extended by jscoverage config.status 0.5.1, which was
generated by GNU Autoconf 2.67.  Invocation command line was

  CONFIG_FILES    = 
  CONFIG_HEADERS  = 
  CONFIG_LINKS    = 
  CONFIG_COMMANDS = 
  $ ./config.status 

on C0500615-00

config.status:892: creating Makefile
config.status:892: creating make-dist.sh
config.status:892: creating make-bin-dist.sh
config.status:892: creating tests/Makefile
config.status:892: creating config.h
config.status:1072: config.h is unchanged
config.status:1120: executing depfiles commands
configure:7469: === configuring in js (/jscoverage-0.5.1/js)
configure:7532: running /bin/sh ./configure.gnu --disable-option-checking '--prefix=/usr/local'  '--build' 'i686-pc-cygwin' '--host' 'i386-unknown-linux-gnu' 'build_alias=i686-pc-cygwin' 'host_alias=i386-unknown-linux-gnu' --cache-file=/dev/null --srcdir=.
configure:7537: error: ./configure.gnu failed for js

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_build=i686-pc-cygwin
ac_cv_c_bigendian=no
ac_cv_c_compiler_gnu=yes
ac_cv_cxx_compiler_gnu=yes
ac_cv_env_CCC_set=
ac_cv_env_CCC_value=
ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=
ac_cv_env_CFLAGS_value=
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_CXXFLAGS_set=
ac_cv_env_CXXFLAGS_value=
ac_cv_env_CXX_set=
ac_cv_env_CXX_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_build_alias_set=set
ac_cv_env_build_alias_value=i686-pc-cygwin
ac_cv_env_host_alias_set=set
ac_cv_env_host_alias_value=i386-unknown-linux-gnu
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_exeext=.exe
ac_cv_func_asprintf=yes
ac_cv_func_getaddrinfo=yes
ac_cv_func_gethostbyname_r=no
ac_cv_func_inet_aton=yes
ac_cv_func_strndup=yes
ac_cv_func_vasprintf=yes
ac_cv_header_iconv_h=yes
ac_cv_header_inttypes_h=yes
ac_cv_header_memory_h=yes
ac_cv_header_pthread_h=yes
ac_cv_header_stdc=yes
ac_cv_header_stdint_h=yes
ac_cv_header_stdlib_h=yes
ac_cv_header_string_h=yes
ac_cv_header_strings_h=yes
ac_cv_header_sys_stat_h=yes
ac_cv_header_sys_types_h=yes
ac_cv_header_unistd_h=yes
ac_cv_header_windows_h=yes
ac_cv_host=i386-unknown-linux-gnu
ac_cv_objext=o
ac_cv_path_EGREP='/usr/bin/grep -E'
ac_cv_path_GREP=/usr/bin/grep
ac_cv_path_install='/usr/bin/install -c'
ac_cv_path_mkdir=/usr/bin/mkdir
ac_cv_prog_AWK=gawk
ac_cv_prog_CPP='gcc -std=gnu99 -E'
ac_cv_prog_ac_ct_CC=gcc
ac_cv_prog_ac_ct_CXX=g++
ac_cv_prog_ac_ct_STRIP=strip
ac_cv_prog_cc_c89=
ac_cv_prog_cc_c99=-std=gnu99
ac_cv_prog_cc_g=yes
ac_cv_prog_cxx_g=yes
ac_cv_prog_make_make_set=yes
acl_cv_hardcode_direct=no
acl_cv_hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
acl_cv_hardcode_libdir_separator=
acl_cv_hardcode_minus_L=no
acl_cv_libext=a
acl_cv_libname_spec='lib$name'
acl_cv_library_names_spec='$libname$shrext'
acl_cv_path_LD=/usr/i686-pc-cygwin/bin/ld.exe
acl_cv_prog_gnu_ld=yes
acl_cv_rpath=done
acl_cv_shlibext=so
acl_cv_wl=-Wl,
am_cv_CC_dependencies_compiler_type=gcc3
am_cv_CXX_dependencies_compiler_type=gcc3
am_cv_func_iconv=yes
am_cv_func_iconv_works='guessing yes'
am_cv_lib_iconv=yes
am_cv_proto_iconv='extern size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);'
am_cv_proto_iconv_arg1=

## ----------------- ##
## Output variables. ##
## ----------------- ##

ACLOCAL='${SHELL} /jscoverage-0.5.1/missing --run aclocal-1.11'
AMDEPBACKSLASH='\'
AMDEP_FALSE='#'
AMDEP_TRUE=''
AMTAR='${SHELL} /jscoverage-0.5.1/missing --run tar'
AUTOCONF='${SHELL} /jscoverage-0.5.1/missing --run autoconf'
AUTOHEADER='${SHELL} /jscoverage-0.5.1/missing --run autoheader'
AUTOMAKE='${SHELL} /jscoverage-0.5.1/missing --run automake-1.11'
AWK='gawk'
CC='gcc -std=gnu99'
CCDEPMODE='depmode=gcc3'
CFLAGS='-g -O2'
CPP='gcc -std=gnu99 -E'
CPPFLAGS=''
CXX='g++'
CXXDEPMODE='depmode=gcc3'
CXXFLAGS='-g -O2'
CYGPATH_W='cygpath -w'
DEFS='-DHAVE_CONFIG_H'
DEPDIR='.deps'
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP='/usr/bin/grep -E'
EXEEXT='.exe'
EXTRA_SOCKET_LIBS=''
EXTRA_THREAD_LIBS='-lpthread'
EXTRA_TIMER_LIBS=''
GREP='/usr/bin/grep'
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='$(install_sh) -c -s'
LDFLAGS=''
LIBICONV='-liconv'
LIBOBJS=''
LIBS=''
LTLIBICONV='-liconv'
LTLIBOBJS=''
MAKEINFO='${SHELL} /jscoverage-0.5.1/missing --run makeinfo'
MKDIR_P='/usr/bin/mkdir -p'
OBJEXT='o'
PACKAGE='jscoverage'
PACKAGE_BUGREPORT=''
PACKAGE_NAME='jscoverage'
PACKAGE_STRING='jscoverage 0.5.1'
PACKAGE_TARNAME='jscoverage'
PACKAGE_URL=''
PACKAGE_VERSION='0.5.1'
PATH_SEPARATOR=':'
SET_MAKE=''
SHELL='/bin/sh'
SPIDERMONKEY_LIBS='js/libjs_static.a'
STRIP='strip'
VERSION='0.5.1'
XP_DEF='-DXP_UNIX'
ac_ct_CC='gcc'
ac_ct_CXX='g++'
am__EXEEXT_FALSE='#'
am__EXEEXT_TRUE=''
am__fastdepCC_FALSE='#'
am__fastdepCC_TRUE=''
am__fastdepCXX_FALSE='#'
am__fastdepCXX_TRUE=''
am__include='include'
am__isrc=''
am__leading_dot='.'
am__quote=''
am__tar='${AMTAR} chof - "$$tardir"'
am__untar='${AMTAR} xf -'
bindir='${exec_prefix}/bin'
build='i686-pc-cygwin'
build_alias='i686-pc-cygwin'
build_cpu='i686'
build_os='cygwin'
build_vendor='pc'
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
exec_prefix='${prefix}'
host='i386-unknown-linux-gnu'
host_alias='i386-unknown-linux-gnu'
host_cpu='i386'
host_os='linux-gnu'
host_vendor='unknown'
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
install_sh='${SHELL} /jscoverage-0.5.1/install-sh'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
mkdir_p='/usr/bin/mkdir -p'
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='/usr/local'
program_transform_name='s,x,x,'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
subdirs=' js'
sysconfdir='${prefix}/etc'
target_alias=''

## ----------- ##
## confdefs.h. ##
## ----------- ##


#define WINVER 0x501
#define _WIN32_WINNT 0x501
#define _WIN32_IE 0x0500
#define HAVE_SNPRINTF 1
#define _WINDOWS 1
#define WIN32 1
#define XP_WIN 1
#define XP_WIN32 1
#define HW_THREADS 1
#define STDC_HEADERS 1
#define NEW_H <new>
#define WIN32_LEAN_AND_MEAN 1
#define NO_X11 1
#define _X86_ 1
#define D_INO d_ino
#define const 
#define mode_t int
#define off_t long
#define pid_t int
#define size_t unsigned

configure: exit 1
[/size]
Any help would be very much appreciated.

Thanks,

Kristian

Post Reply