Apache compile commands: JAVA_HOME="/opt/app/java/jdk1.6.0_30" PATH=$JAVA_HOME/bin/sparcv9:$PATH CFLAGS=" -O2 -mcpu=v9 -m64" ./configure --with-port=80 --prefix=/opt/app/itas/apache_2.2.21-64 --disable-userdir --enable-module=so --enable-module=most --enable-nonportable-atomics=yes --enable-rewrite= --enable-rule=SHARED_CORE --enable-rule=SHARED_CHAIN --enable-shared=max --disable-ssl --with-mpm=worker Resin compile commands: JAVA_HOME="/opt/app/java/jdk1.6.0_30" PATH=$JAVA_HOME/bin:$PATH CC="gcc -m64" CFLAGS=" -O2 -mcpu=v9 -m64" ./configure --with-gnu-ld --disable-ssl --disable-jni --enable-64bit --enable-64bit-plugin --prefix=/opt/app/itas/resin_pro_4.0.27-64 --with-apxs=/opt/app/itas/apache_2.2.21-64/bin/apxs --with-java-home=/opt/app/java/jdk1.6.0_30/ Output of make command: (cd modules/c/src; make) for dir in common apache2 resinssl resin; do (cd $dir; make); done gcc -m64 -O2 -mcpu=v9 -m64 -DPOLL -D_POSIX_PTHREAD_SEMANTICS -DB64 -fPIC -fno-omit-frame-pointer -m64 -DHAS_SOCK_TIMEOUT -D__SOLARIS__ -DRESIN_HOME=\"/opt/app/itas/resin_pro_4.0.27-64\" -I../common -I../resin_os -DCPU=\"sparcv9\" -DOS= -fPIC -fno-omit-frame-pointer -m64 -fPIC -c ssl_stub.c ssl_stub.c:11:17: jni.h: No such file or directory In file included from ssl_stub.c:13: ../resin_os/resin_os.h:69: error: syntax error before "JNIEnv" ../resin_os/resin_os.h:69: warning: no semicolon at end of struct or union ../resin_os/resin_os.h:96: error: 'pipe' redeclared as different kind of symbol /usr/include/unistd.h:406: error: previous declaration of 'pipe' was here ../resin_os/resin_os.h:96: error: 'pipe' redeclared as different kind of symbol /usr/include/unistd.h:406: error: previous declaration of 'pipe' was here ../resin_os/resin_os.h:101: error: syntax error before '}' token ../resin_os/resin_os.h:112: error: syntax error before "JNIEnv" ../resin_os/resin_os.h:112: warning: no semicolon at end of struct or union ../resin_os/resin_os.h:139: error: conflicting types for 'ssl_lock' ../resin_os/resin_os.h:78: error: previous declaration of 'ssl_lock' was here ../resin_os/resin_os.h:140: error: syntax error before '}' token ../resin_os/resin_os.h:140: warning: data definition has no type or storage class ../resin_os/resin_os.h:143: error: syntax error before "ssl_config_t" ../resin_os/resin_os.h:143: warning: no semicolon at end of struct or union ../resin_os/resin_os.h:161: error: 'accept' redeclared as different kind of symbol /usr/include/sys/socket.h:425: error: previous declaration of 'accept' was here ../resin_os/resin_os.h:161: error: 'accept' redeclared as different kind of symbol /usr/include/sys/socket.h:425: error: previous declaration of 'accept' was here ../resin_os/resin_os.h:163: error: 'close' redeclared as different kind of symbol /usr/include/unistd.h:244: error: previous declaration of 'close' was here ../resin_os/resin_os.h:163: error: 'close' redeclared as different kind of symbol /usr/include/unistd.h:244: error: previous declaration of 'close' was here ../resin_os/resin_os.h:167: error: syntax error before "_localAddrBuffer" ../resin_os/resin_os.h:167: warning: data definition has no type or storage class ../resin_os/resin_os.h:168: error: syntax error before "_localAddrLength" ../resin_os/resin_os.h:168: warning: data definition has no type or storage class ../resin_os/resin_os.h:169: error: syntax error before "_localPort" ../resin_os/resin_os.h:169: warning: data definition has no type or storage class ../resin_os/resin_os.h:171: error: syntax error before "_remoteAddrBuffer" ../resin_os/resin_os.h:171: warning: data definition has no type or storage class ../resin_os/resin_os.h:172: error: syntax error before "_remoteAddrLength" ../resin_os/resin_os.h:172: warning: data definition has no type or storage class ../resin_os/resin_os.h:173: error: syntax error before "_remotePort" ../resin_os/resin_os.h:173: warning: data definition has no type or storage class ../resin_os/resin_os.h:175: error: syntax error before "_isSecure" ../resin_os/resin_os.h:175: warning: data definition has no type or storage class ../resin_os/resin_os.h:202: error: syntax error before "ssl_config_t" ../resin_os/resin_os.h:206: error: syntax error before '*' token ../resin_os/resin_os.h:207: error: syntax error before '*' token ../resin_os/resin_os.h:255: error: syntax error before '*' token ../resin_os/resin_os.h:262: error: syntax error before '*' token ssl_stub.c:16: error: syntax error before "ssl_config_t" ssl_stub.c:21: error: syntax error before "jint" ssl_stub.c:22: error: syntax error before '*' token ssl_stub.c:32: error: syntax error before "jint" ssl_stub.c:33: error: syntax error before '*' token ssl_stub.c: In function `Java_com_caucho_vfs_OpenSSLFactory_initConfig': ssl_stub.c:46: error: `env' undeclared (first use in this function) ssl_stub.c:46: error: (Each undeclared identifier is reported only once ssl_stub.c:46: error: for each function it appears in.) ssl_stub.c: At top level: ssl_stub.c:52: error: syntax error before "void" ssl_stub.c:53: error: syntax error before '*' token ssl_stub.c:61: error: syntax error before "void" ssl_stub.c:62: error: syntax error before '*' token ssl_stub.c:70: error: syntax error before "void" ssl_stub.c:71: error: syntax error before '*' token ssl_stub.c:81: error: syntax error before "int" ssl_stub.c:82: error: syntax error before '*' token ssl_stub.c: In function `Java_com_caucho_vfs_OpenSSLFactory_open': ssl_stub.c:87: error: `env' undeclared (first use in this function) *** Error code 1 make: Fatal error: Command failed for target `ssl_stub.o' Current working directory /home/itasconf/source/resin-pro-4.0.27/modules/c/src/resinssl gcc -m64 -O2 -mcpu=v9 -m64 -DPOLL -D_POSIX_PTHREAD_SEMANTICS -DB64 -fPIC -fno-omit-frame-pointer -m64 -DHAS_SOCK_TIMEOUT -D__SOLARIS__ -DRESIN_HOME=\"/opt/app/itas/resin_pro_4.0.27-64\" -I../common -I../resin_os -DCPU=\"sparcv9\" -DOS= -fPIC -fno-omit-frame-pointer -m64 -fPIC -c ../resin_os/std.c ../resin_os/std.c:35:17: jni.h: No such file or directory In file included from ../resin_os/std.c:42: ../resin_os/resin_os.h:69: error: syntax error before "JNIEnv" ../resin_os/resin_os.h:69: warning: no semicolon at end of struct or union ../resin_os/resin_os.h:96: error: 'pipe' redeclared as different kind of symbol /usr/include/unistd.h:406: error: previous declaration of 'pipe' was here ../resin_os/resin_os.h:96: error: 'pipe' redeclared as different kind of symbol /usr/include/unistd.h:406: error: previous declaration of 'pipe' was here ../resin_os/resin_os.h:101: error: syntax error before '}' token ../resin_os/resin_os.h:112: error: syntax error before "JNIEnv" ../resin_os/resin_os.h:112: warning: no semicolon at end of struct or union ../resin_os/resin_os.h:139: error: conflicting types for 'ssl_lock' ../resin_os/resin_os.h:78: error: previous declaration of 'ssl_lock' was here ../resin_os/resin_os.h:140: error: syntax error before '}' token ../resin_os/resin_os.h:140: warning: data definition has no type or storage class ../resin_os/resin_os.h:143: error: syntax error before "ssl_config_t" ../resin_os/resin_os.h:143: warning: no semicolon at end of struct or union ../resin_os/resin_os.h:161: error: 'accept' redeclared as different kind of symbol /usr/include/sys/socket.h:425: error: previous declaration of 'accept' was here ../resin_os/resin_os.h:161: error: 'accept' redeclared as different kind of symbol /usr/include/sys/socket.h:425: error: previous declaration of 'accept' was here ../resin_os/resin_os.h:163: error: 'close' redeclared as different kind of symbol /usr/include/unistd.h:244: error: previous declaration of 'close' was here ../resin_os/resin_os.h:163: error: 'close' redeclared as different kind of symbol /usr/include/unistd.h:244: error: previous declaration of 'close' was here ../resin_os/resin_os.h:167: error: syntax error before "_localAddrBuffer" ../resin_os/resin_os.h:167: warning: data definition has no type or storage class ../resin_os/resin_os.h:168: error: syntax error before "_localAddrLength" ../resin_os/resin_os.h:168: warning: data definition has no type or storage class ../resin_os/resin_os.h:169: error: syntax error before "_localPort" ../resin_os/resin_os.h:169: warning: data definition has no type or storage class ../resin_os/resin_os.h:171: error: syntax error before "_remoteAddrBuffer" ../resin_os/resin_os.h:171: warning: data definition has no type or storage class ../resin_os/resin_os.h:172: error: syntax error before "_remoteAddrLength" ../resin_os/resin_os.h:172: warning: data definition has no type or storage class ../resin_os/resin_os.h:173: error: syntax error before "_remotePort" ../resin_os/resin_os.h:173: warning: data definition has no type or storage class ../resin_os/resin_os.h:175: error: syntax error before "_isSecure" ../resin_os/resin_os.h:175: warning: data definition has no type or storage class ../resin_os/resin_os.h:202: error: syntax error before "ssl_config_t" ../resin_os/resin_os.h:206: error: syntax error before '*' token ../resin_os/resin_os.h:207: error: syntax error before '*' token ../resin_os/resin_os.h:255: error: syntax error before '*' token ../resin_os/resin_os.h:262: error: syntax error before '*' token ../resin_os/std.c: In function `write_exception_status': ../resin_os/std.c:67: error: dereferencing pointer to incomplete type ../resin_os/std.c:68: error: dereferencing pointer to incomplete type ../resin_os/std.c:69: error: dereferencing pointer to incomplete type ../resin_os/std.c:75: error: dereferencing pointer to incomplete type ../resin_os/std.c:76: error: dereferencing pointer to incomplete type ../resin_os/std.c:78: error: dereferencing pointer to incomplete type ../resin_os/std.c: In function `resin_tcp_set_recv_timeout': ../resin_os/std.c:105: error: dereferencing pointer to incomplete type ../resin_os/std.c: In function `std_read_nonblock': ../resin_os/std.c:129: error: dereferencing pointer to incomplete type ../resin_os/std.c: In function `std_read': ../resin_os/std.c:244: error: dereferencing pointer to incomplete type ../resin_os/std.c:246: error: dereferencing pointer to incomplete type ../resin_os/std.c:254: error: dereferencing pointer to incomplete type ../resin_os/std.c:257: error: dereferencing pointer to incomplete type ../resin_os/std.c:258: error: dereferencing pointer to incomplete type ../resin_os/std.c:259: error: dereferencing pointer to incomplete type ../resin_os/std.c:287: error: dereferencing pointer to incomplete type ../resin_os/std.c: In function `std_write': ../resin_os/std.c:320: error: dereferencing pointer to incomplete type ../resin_os/std.c:326: error: dereferencing pointer to incomplete type ../resin_os/std.c:328: error: dereferencing pointer to incomplete type ../resin_os/std.c:328: error: dereferencing pointer to incomplete type ../resin_os/std.c:341: error: dereferencing pointer to incomplete type ../resin_os/std.c: In function `std_write_nonblock': ../resin_os/std.c:367: error: dereferencing pointer to incomplete type ../resin_os/std.c: In function `conn_close': ../resin_os/std.c:392: error: dereferencing pointer to incomplete type ../resin_os/std.c:393: error: dereferencing pointer to incomplete type ../resin_os/std.c:395: error: dereferencing pointer to incomplete type ../resin_os/std.c:396: error: dereferencing pointer to incomplete type ../resin_os/std.c:398: error: dereferencing pointer to incomplete type ../resin_os/std.c:399: error: dereferencing pointer to incomplete type ../resin_os/std.c:402: warning: passing arg 1 of pointer to function makes pointer from integer without a cast ../resin_os/std.c:406: warning: passing arg 1 of pointer to function makes pointer from integer without a cast ../resin_os/std.c:410: warning: passing arg 1 of pointer to function makes pointer from integer without a cast ../resin_os/std.c: In function `std_accept': ../resin_os/std.c:430: error: dereferencing pointer to incomplete type ../resin_os/std.c:434: error: dereferencing pointer to incomplete type ../resin_os/std.c:452: error: dereferencing pointer to incomplete type ../resin_os/std.c:453: error: dereferencing pointer to incomplete type ../resin_os/std.c:454: error: dereferencing pointer to incomplete type ../resin_os/std.c:454: error: dereferencing pointer to incomplete type ../resin_os/std.c:455: error: dereferencing pointer to incomplete type ../resin_os/std.c:455: warning: passing arg 1 of pointer to function makes pointer from integer without a cast ../resin_os/std.c:455: error: too many arguments to function ../resin_os/std.c:465: error: dereferencing pointer to incomplete type ../resin_os/std.c:466: error: dereferencing pointer to incomplete type ../resin_os/std.c: In function `std_init': ../resin_os/std.c:474: error: dereferencing pointer to incomplete type ../resin_os/std.c:475: error: dereferencing pointer to incomplete type ../resin_os/std.c:479: error: dereferencing pointer to incomplete type ../resin_os/std.c:479: error: dereferencing pointer to incomplete type ../resin_os/std.c:481: error: dereferencing pointer to incomplete type ../resin_os/std.c:487: error: dereferencing pointer to incomplete type ../resin_os/std.c:499: error: dereferencing pointer to incomplete type ../resin_os/std.c:507: error: dereferencing pointer to incomplete type ../resin_os/std.c:510: error: dereferencing pointer to incomplete type ../resin_os/std.c:511: error: dereferencing pointer to incomplete type ../resin_os/std.c:515: error: dereferencing pointer to incomplete type ../resin_os/std.c:516: error: dereferencing pointer to incomplete type ../resin_os/std.c:516: error: dereferencing pointer to incomplete type ../resin_os/std.c:518: error: dereferencing pointer to incomplete type ../resin_os/std.c:519: error: dereferencing pointer to incomplete type ../resin_os/std.c:526: error: dereferencing pointer to incomplete type ../resin_os/std.c:526: error: dereferencing pointer to incomplete type ../resin_os/std.c:527: error: dereferencing pointer to incomplete type ../resin_os/std.c:536: error: dereferencing pointer to incomplete type ../resin_os/std.c:538: error: dereferencing pointer to incomplete type ../resin_os/std.c:538: error: dereferencing pointer to incomplete type ../resin_os/std.c:539: error: dereferencing pointer to incomplete type ../resin_os/std.c:540: error: dereferencing pointer to incomplete type ../resin_os/std.c: In function `std_close_ss': ../resin_os/std.c:561: error: dereferencing pointer to incomplete type ../resin_os/std.c:562: error: dereferencing pointer to incomplete type ../resin_os/std.c:590: warning: passing arg 1 of pointer to function makes pointer from integer without a cast ../resin_os/std.c:597: warning: passing arg 1 of pointer to function makes pointer from integer without a cast ../resin_os/std.c:597: error: void value not ignored as it ought to be *** Error code 1 make: Fatal error: Command failed for target `../resin_os/std.o' Current working directory /home/itasconf/source/resin-pro-4.0.27/modules/c/src/resin *** Error code 1 make: Fatal error: Command failed for target `plugins' Current working directory /home/itasconf/source/resin-pro-4.0.27/modules/c/src *** Error code 1 make: Fatal error: Command failed for target `all'